/* A women's salon: its booking page (a printed price list in cream and dusty rose, the salon's name in Kufi under a
   mirror's arch) and its own space (the day's agenda, brides, money, settings). Phone first; RTL. */
:root {
  color-scheme: light;
  --paper: #fbf7f4;
  --blush: #f5e7e5;
  --card: #ffffff;
  --ink: #26191d;
  --mute: #7a6a6e;
  --line: rgba(38, 25, 29, .12);
  --line-strong: rgba(38, 25, 29, .24);
  --rose: #b8707c;
  --rose-deep: #8f4b58;
  --rose-soft: #f3e1e3;
  --ok: #2f7a55;
  --ok-bg: #e4f2ea;
  --wait: #93701e;
  --wait-bg: #f7eed6;
  --bad: #b2453f;
  --bad-bg: #f8e4e1;
  --wa: #1f9d55;
  --kufi: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); font: 16px/1.7 var(--sans); overflow-x: hidden;
  background: radial-gradient(120% 60% at 50% -10%, var(--blush), transparent 60%) no-repeat, var(--paper);
  min-height: 100vh;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.35; }
bdi { unicode-bidi: isolate; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.mute { color: var(--mute); }
.empty { color: var(--mute); text-align: center; padding: 18px 8px; margin: 0; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent; background: var(--card); text-decoration: none; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #3a2a2f; }
.btn.ghost { border-color: var(--line-strong); background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, .7); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.quiet { background: none; color: var(--bad); font-weight: 500; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.big { width: 100%; min-height: 54px; font-size: 18px; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-col { display: grid; gap: 10px; margin-top: 18px; }

label { display: grid; gap: 6px; font-weight: 500; }
label small { color: var(--mute); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
input[type=tel] { direction: ltr; text-align: right; letter-spacing: .04em; }
input.bad { border-color: var(--bad); }
.phone-hint { font-size: 13px; color: var(--bad); }
.phone-hint.ok { color: var(--ok); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
label.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.fine { font-size: 13px; color: var(--mute); margin: 10px 0 0; }
.fine.ok { color: var(--ok); text-align: center; }

/* ---------- the booking page ---------- */
.demo-ribbon { background: var(--wait-bg); color: var(--wait); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.hero { padding: 26px 16px 10px; }
.arch {
  position: relative; max-width: 560px; margin: 0 auto; padding: 64px 22px 26px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 280px 280px 28px 28px / 190px 190px 28px 28px; /* a mirror's arch */
  box-shadow: 0 28px 60px -34px rgba(110, 50, 62, .45);
}
.arch::before { /* the inner line of the mirror's frame */
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--rose-soft); pointer-events: none;
  border-radius: 270px 270px 20px 20px / 182px 182px 20px 20px;
}
.spark {
  display: block; width: 22px; height: 22px; margin: 0 auto 10px; background: var(--rose);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.salon-name { font-family: var(--kufi); font-weight: 700; font-size: clamp(36px, 9vw, 54px); line-height: 1.2; }
.tagline { margin: 6px 0 0; font-size: 17px; color: var(--mute); }
.meta { margin: 10px 0 0; font-size: 14px; color: var(--rose-deep); font-weight: 500; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.mine-banner, .mine-link {
  display: grid; max-width: 560px; margin: 12px auto 0; padding: 12px 18px; border-radius: var(--r);
  background: var(--ink); color: #fff; text-decoration: none; text-align: center; line-height: 1.5;
}
.mine-banner span { opacity: .85; font-size: 14px; }
.mine-link { background: transparent; color: var(--ink); border: 1px dashed var(--line-strong); font-weight: 600; }

.page { max-width: 720px; margin: 0 auto; padding: 0 16px 20px; }
.cats {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 14px -16px 0; padding: 12px 16px; background: rgba(251, 247, 244, .92); backdrop-filter: blur(10px);
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font-weight: 500; white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat { margin-top: 26px; }
.cat h2 { display: flex; align-items: center; gap: 12px; font-family: var(--kufi); font-weight: 700; font-size: 25px; }
.cat h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, var(--line-strong), transparent); }
.cat-note { margin: 6px 0 0; color: var(--rose-deep); font-size: 15px; }
.cat-bride { padding: 22px 18px 10px; border-radius: 120px 120px var(--r) var(--r) / 50px 50px var(--r) var(--r); background: var(--rose-soft); }
.cat-bride h2 { justify-content: center; }
.cat-bride h2::after { display: none; }
.cat-bride .cat-note { text-align: center; }
.svc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pick-hint { margin: 14px 0 0; font-size: 14px; color: var(--mute); text-align: center; }
.svc {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "name leader price" "sub sub add";
  align-items: baseline; column-gap: 10px; width: 100%; padding: 14px 8px; text-align: start; text-decoration: none;
  background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background .2s ease;
}
.svc-list li:last-child .svc { border-bottom: none; }
.svc:hover { background: rgba(255, 255, 255, .6); }
.svc.in { background: #fff; box-shadow: inset 0 0 0 1.5px var(--rose); }
.svc-name { grid-area: name; font-weight: 600; font-size: 17px; }
.leader { grid-area: leader; border-bottom: 2px dotted var(--line-strong); transform: translateY(-5px); min-width: 16px; }
.svc-price { grid-area: price; font-weight: 600; white-space: nowrap; color: var(--rose-deep); }
.svc-sub { grid-area: sub; font-size: 14px; color: var(--mute); }
.svc-add {
  grid-area: add; justify-self: end; align-self: center; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; border: 1.5px solid var(--rose); color: var(--rose-deep); font-size: 19px; font-weight: 600; line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.svc.in .svc-add { background: var(--rose); color: #fff; font-size: 16px; }
body.has-cart { padding-bottom: 96px; }
.cart-bar { position: fixed; z-index: 40; inset: auto 0 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.cart-in {
  pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 10px; padding-inline-start: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(60, 25, 35, .45);
}
.cart-sum { display: grid; line-height: 1.4; }
.cart-sum small { color: var(--mute); }

.av {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--c, var(--rose)); color: #fff; font-style: normal; font-weight: 700; font-size: 14px;
}
.team { margin-top: 34px; }
.team h2, .info h2 { font-family: var(--kufi); font-weight: 700; font-size: 21px; margin-top: 18px; }
.team ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.team li { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 8px 16px 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.team li .av { grid-row: span 2; width: 38px; height: 38px; font-size: 16px; }
.team li small { color: var(--mute); font-size: 13px; line-height: 1.3; }
.info { margin-top: 18px; }
.info p { margin: 6px 0 0; }
.hours { list-style: none; margin: 8px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: none; }
.hours li.on { font-weight: 600; background: var(--rose-soft); }
.foot { margin-top: 40px; padding: 26px 16px 40px; text-align: center; color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); }
.foot-space { font-weight: 600; color: var(--ink); }
.made-by { margin: 10px 0 0; font-size: 12px; }
.made-by a { text-decoration: none; }

/* ---------- booking steps ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(251, 247, 244, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; min-height: 40px; }
.topname { font-family: var(--kufi); font-weight: 700; font-size: 19px; }
.book { padding-top: 18px; }
.svc-card { padding: 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px -30px rgba(110, 50, 62, .5); }
.eyebrow { margin: 0; font-size: 13px; color: var(--rose-deep); font-weight: 600; }
.svc-card h1 { font-family: var(--kufi); font-weight: 700; font-size: 28px; margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.facts span { padding: 4px 12px; border-radius: 999px; background: var(--rose-soft); font-weight: 600; font-size: 14px; }
.svc-card .mute { margin: 10px 0 0; font-size: 14px; }
.bride-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--wait-bg); color: var(--wait); font-size: 14px; font-weight: 500; }
.step { margin-top: 26px; }
.step > h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 12px; }
.step > h2 b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.person { padding-inline-start: 6px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day {
  flex: none; width: 66px; display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; scroll-snap-align: center; line-height: 1.35;
}
.day small { font-size: 12px; color: var(--mute); }
.day b { font-size: 22px; }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on small { color: rgba(255, 255, 255, .8); }
.day:disabled { cursor: default; background: transparent; opacity: .5; }
.day.closed b { text-decoration: line-through; text-decoration-thickness: 1px; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 17px; }
.nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font-size: 18px; }
.nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid small { font-size: 12px; color: var(--mute); padding: 4px 0; }
.cell { aspect-ratio: 1; border: none; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 500; color: var(--line-strong); }
.cell.free { background: var(--rose-soft); color: var(--ink); }
.cell.full { color: var(--mute); text-decoration: line-through; }
.cell.on { background: var(--ink); color: #fff; }
.cal-key { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--mute); }
.cal-key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-inline-start: 8px; }
.k-free { background: var(--rose-soft); }
.k-full { border: 1px solid var(--line-strong); }
.when { margin: 0 0 4px; font-weight: 600; color: var(--rose-deep); }
.part { margin: 10px 0 6px; font-size: 13px; color: var(--mute); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time { min-height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font-weight: 600; font-size: 16px; }
.time.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#book-form { display: grid; gap: 14px; }
.summary { display: grid; gap: 4px; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--rose-soft); }
.plan { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.plan li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 500; }
.plan li bdi { font-weight: 700; color: var(--rose-deep); }
.plan small { color: var(--mute); font-weight: 400; }
.appt .plan { margin: 10px 0 0; }

/* the basket on the booking page */
.basket { padding: 18px 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px -30px rgba(110, 50, 62, .5); }
.basket-list { list-style: none; margin: 8px 0 0; padding: 0; }
.bi { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.bi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bi-top b { font-size: 17px; }
.bi small { color: var(--mute); }
.bi-who { color: var(--rose-deep) !important; }
.bi-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; color: var(--mute); }
.chips.mini { gap: 6px; margin-top: 4px; }
.chips.mini .chip { min-height: 34px; padding: 3px 12px; font-size: 14px; }
.chips.mini .chip.person { padding-inline-start: 4px; }
.chips.mini .av { width: 24px; height: 24px; font-size: 12px; }
.basket-total { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; }
.basket-total span { color: var(--mute); }
.basket-total b { color: var(--rose-deep); font-size: 18px; }
.add-more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--rose-deep); text-decoration: none; }
.basket .bride-note { margin-top: 12px; }
.basket .fine { margin-top: 8px; }

/* ---------- her appointments ---------- */
.mine { padding-top: 22px; }
.page-title { font-family: var(--kufi); font-weight: 700; font-size: 28px; margin-bottom: 14px; }
.sub-title { font-size: 17px; margin: 26px 0 8px; color: var(--mute); }
.appt { padding: 22px 20px; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px -30px rgba(110, 50, 62, .5); }
.appt-status { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 700; font-size: 17px; }
.appt.ok .appt-status { color: var(--ok); }
.appt.wait .appt-status { color: var(--wait); }
.appt.bad .appt-status { color: var(--bad); }
.appt.past .appt-status { color: var(--mute); }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 18px; }
.appt h2 { font-family: var(--kufi); font-weight: 700; font-size: 25px; }
.appt dl { display: grid; gap: 2px; margin: 12px 0 0; }
.appt dl div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.appt dt { color: var(--mute); }
.appt dd { margin: 0; font-weight: 500; }
.deposit { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--wait-bg); color: var(--wait); font-weight: 500; }
.again { text-align: center; margin-top: 20px; }
.past-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }

/* ---------- sheets and the toast ---------- */
dialog.sheet {
  width: min(560px, 100vw); max-width: 100vw; max-height: 92vh; margin: auto auto 0; padding: 0; border: none;
  border-radius: 22px 22px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .35);
}
dialog.sheet::backdrop { background: rgba(38, 25, 29, .45); }
.sheet-in { position: relative; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 92vh; }
.sheet .x { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(38, 25, 29, .07); cursor: pointer; font-size: 16px; }
.sheet h2 { font-size: 21px; margin: 0 0 14px; padding-inline-end: 44px; }
.sheet.small .sheet-in { padding-top: 30px; }
.ask { font-size: 18px; font-weight: 600; margin: 0 0 18px; padding-inline-end: 40px; }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border-radius: 22px; }
}
.toast {
  position: fixed; z-index: 100; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  max-width: min(92vw, 520px); padding: 12px 20px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); font-weight: 500;
}

@media (max-width: 480px) {
  .hero { padding-top: 18px; }
  .arch { padding: 46px 18px 20px; border-radius: 220px 220px 24px 24px / 130px 130px 24px 24px; }
  .arch::before { border-radius: 210px 210px 16px 16px / 122px 122px 16px 16px; }
  .spark { width: 18px; height: 18px; margin-bottom: 6px; }
  .hero-actions { margin-top: 14px; }
}

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

/* ---------- the loyalty card ---------- */
.loyal { margin-top: 30px; }
.loyal-card {
  position: relative; padding: 18px 18px 16px; text-align: center; border-radius: 22px; background: var(--card);
  border: 1.5px dashed var(--rose); box-shadow: 0 18px 40px -30px rgba(110, 50, 62, .5);
}
.mine .loyal-card { margin-bottom: 14px; }
.loyal-title { margin: 0; font-family: var(--kufi); font-weight: 700; font-size: 21px; }
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 8px; max-width: 320px; }
.stamps i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--rose); }
.stamps i.on { border-style: solid; background: var(--rose); box-shadow: inset 0 0 0 3px #fff; }
.stamps i.gift { display: inline-grid; place-items: center; border-color: var(--rose-deep); }
.stamps i.gift::after { content: "🎁"; font-size: 13px; font-style: normal; line-height: 1; }
.stamps i.gift.on { background: var(--rose-soft); }
.loyal-text { margin: 0; color: var(--mute); }
.loyal-mine { margin: 8px 0 0; font-weight: 600; color: var(--rose-deep); }
.loyal-mine.ready { color: var(--ok); }

/* ---------- the waiting list ---------- */
.wait-box { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--card); border: 1.5px dashed var(--line-strong); }
.wait-box.ok { border-color: var(--ok); background: var(--ok-bg); }
.wait-lead { margin: 0; }
.wait-box .when { margin: 0; }
#wait-form { display: grid; gap: 12px; }
.chip input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.wait-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.wait-card .appt-status { color: var(--wait); }
.wait-card .mute { margin: 6px 0 0; }
.wait-card .btn-row { margin-top: 12px; }
.day.full:not(:disabled) { cursor: pointer; opacity: .8; }
.cell.full:not(:disabled) { cursor: pointer; }
