/* «فساتين»: a dress-rental shop's site. White and cream, the black Kufi name; the 3D shop front (a shop that has one) after its real shop. */
:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --cream: #f3ece2;
  --card: #ffffff;
  --ink: #1b1819;
  --mute: #6d6561;
  --line: rgba(27, 24, 25, .12);
  --line-strong: rgba(27, 24, 25, .26);
  --brass: #b0844a;
  --free: #2b7a52;
  --free-bg: #e3f1e8;
  --taken: #b3433b;
  --taken-bg: #f8e3e0;
  --prep: #94701a;
  --prep-bg: #f5ecd3;
  --wa: #1f9d55;
  --kufi: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 600; margin: 0; }
.logo { font-family: var(--kufi); font-weight: 700; text-decoration: none; line-height: 1; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease;
}
.top.solid { background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.top .logo { font-size: 30px; transition: opacity .3s ease; }
.top:not(.solid) .logo { opacity: 0; } /* the sign on the shop front already says it */
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--mute); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a.on { color: var(--ink); border-color: var(--ink); }
.top:not(.solid) nav a { color: var(--ink); text-shadow: 0 1px 10px rgba(255, 255, 255, .9); }

main { min-height: 70vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page-top { padding-top: 96px; }

.foot { margin-top: 80px; color: var(--mute); font-size: 14px; }
.foot::before { /* a strip of her black-and-white terrace */
  content: ""; display: block; height: 16px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 16px 16px;
}
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 28px 20px 44px; }
.foot-shop { display: grid; gap: 2px; }
.foot .logo { font-size: 36px; color: var(--ink); margin-bottom: 8px; }

/* ---------- intro: her shop front, scrubbed by scroll ---------- */
.intro { position: relative; height: 720svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #efe7dc; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-fallback { position: absolute; inset: 0; background: radial-gradient(30% 40% at 50% 62%, #fff3df, transparent 70%), linear-gradient(#efe7dc, #e6dccf); }
.scene {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 90px 20px 40px; pointer-events: none; text-align: center;
}
.scene:not(.s-gate) { visibility: hidden; opacity: 0; }
.s-gate { align-content: end; gap: 4px; padding-bottom: 26px; }
.gate-line, .scroll-hint { margin: 0; }
.gate-line { padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px -12px rgba(60, 40, 20, .4); }
.gate-line { font-size: clamp(16px, 2vw, 20px); font-weight: 500; }
.scroll-hint { font-size: 14px; color: #fff; display: grid; justify-items: center; gap: 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.boqala-card {
  width: min(540px, 90vw); padding: 40px 30px 30px; border-radius: 999px 999px 24px 24px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(60, 40, 20, .35);
}
.spark { /* the four-point star of her sign */
  display: block; width: 22px; height: 22px; margin: 0 auto 6px; background: var(--ink);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.boqala-title { font-family: var(--kufi); font-size: 34px; line-height: 1.3; }
.boqala-sub { margin: 2px 0 0; color: var(--mute); font-size: 15px; }
.verse { margin: 18px 0 0; display: grid; gap: 4px; font-family: var(--kufi); font-weight: 500; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.75; }
.scene-title { font-family: var(--kufi); font-size: clamp(38px, 5.6vw, 60px); line-height: 1.25; text-shadow: 0 0 24px #fff, 0 0 6px #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; place-items: center; }
.step {
  grid-area: 1 / 1; width: min(400px, 84vw); padding: 56px 28px 30px;
  border-radius: 999px 999px 24px 24px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 30px 70px -30px rgba(60, 40, 20, .35);
}
.step b { display: block; font-family: var(--kufi); font-weight: 700; font-size: 58px; line-height: 1; }
.step h3 { font-family: var(--kufi); font-size: 27px; line-height: 1.4; margin: 12px 0 8px; }
.step p { margin: 0; color: var(--mute); }
.dots { display: flex; gap: 10px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .2; }
.rules-card {
  width: min(540px, 90vw); padding: 28px 28px 30px; border-radius: 24px;
  background: rgba(255, 255, 255, .88); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(60, 40, 20, .35);
}
.rules-card .scene-title { text-shadow: none; }
.rules-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; text-align: start; }
.rules-card li { position: relative; padding-inline-start: 24px; font-size: 17px; }
.rules-card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.s-end { background: radial-gradient(40% 30% at 50% 50%, rgba(255, 255, 255, .6), transparent 75%); }
.end-line { margin: 0; font-family: var(--kufi); font-size: clamp(46px, 7.6vw, 92px); line-height: 1.25; text-shadow: 0 0 30px #fff, 0 0 8px #fff; }
.skip {
  position: fixed; z-index: 35; bottom: 18px; inset-inline-end: 18px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-strong); color: var(--ink);
  text-decoration: none; font-weight: 500; box-shadow: 0 8px 24px -10px rgba(60, 40, 20, .4);
}
/* reduced motion: no scroll film, the same content as a plain page */
.intro.static { height: auto; }
.intro.static .stage { position: relative; height: auto; overflow: visible; background: none; }
.intro.static canvas, .intro.static .stage-fallback { position: relative; height: 70svh; }
.intro.static .scene { position: relative; inset: auto; visibility: visible; opacity: 1; padding: 30px 20px; }
.intro.static .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1180px; }
.intro.static .step { grid-area: auto; width: auto; }
.intro.static .dots, .intro.static .scroll-hint { display: none; }

/* ---------- finder + collection ---------- */
#collection { scroll-margin-top: 64px; }
.collection { padding-top: 36px; }
.find { display: grid; gap: 14px; padding: 30px 0 34px; }
.find-title { font-family: var(--kufi); font-size: clamp(29px, 7.4vw, 62px); line-height: 1.3; padding-inline-start: 6px; }
.finder {
  display: grid; gap: 12px; max-width: 760px; padding: 14px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(60, 40, 20, .35);
}
.finder label { display: grid; gap: 4px; font-size: 13.5px; color: var(--mute); }
.finder input, .finder select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font-size: 17px;
}
.finder .go {
  height: 50px; align-self: end; border: 0; border-radius: 14px; padding: 0 26px; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px;
}
@media (min-width: 720px) { .finder { grid-template-columns: 1.3fr 1fr auto; align-items: end; } }

.coll-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.coll-head h2 { font-family: var(--kufi); font-size: clamp(26px, 3.8vw, 38px); line-height: 1.35; max-width: 24ch; }
.coll-head .count { font-variant-numeric: tabular-nums; }
.coll-head .sub { color: var(--mute); margin-top: 4px; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--mute); font-weight: 500; }
.tabs button.on { background: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 26px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; color: inherit; }
.arch { /* her windows: round arches lit from inside */
  position: relative; aspect-ratio: 5 / 7; overflow: hidden; background: var(--cream);
  border-radius: 999px 999px 10px 10px; box-shadow: inset 0 0 0 1px var(--line);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .arch img { transform: scale(1.045); }
.card .name { font-family: var(--kufi); font-weight: 600; font-size: 21px; line-height: 1.4; margin-top: 12px; }
.card .avail { font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.swatch { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.state { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.state.free { background: var(--free); }
.state.taken { background: var(--taken); }
.card.taken .arch img { filter: grayscale(.9) opacity(.55); }
.card.taken .name { color: var(--mute); }
.taken-head { font-family: var(--kufi); font-size: 26px; margin: 70px 0 22px; color: var(--mute); }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line-strong); border-radius: 22px; }

/* ---------- dress page ---------- */
.crumb { display: inline-block; margin: 0 0 18px; color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.dress { display: grid; gap: 34px; }
@media (min-width: 940px) { .dress { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 56px; } .mirror-wrap { position: sticky; top: 96px; } }
.rdv > *, .dress > *, .cols > * { min-width: 0; } /* let the day strip scroll instead of widening the page */
.mirror-wrap { perspective: 1200px; }
.mirror {
  position: relative; aspect-ratio: 5 / 7; border-radius: 999px 999px 14px 14px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 30%, #fffaf2, var(--cream) 75%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(60, 40, 20, .45);
  transform-style: preserve-3d; touch-action: pan-y; user-select: none; cursor: zoom-in;
}
.mirror.spin { cursor: grab; }
.mirror.zoomed { cursor: zoom-out; }
.mirror img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform .35s ease; }
.mirror::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 30%, transparent 70%, rgba(255, 255, 255, .12)); }
.mirror-note { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--mute); font-size: 14px; }
.mirror-note b { color: var(--ink); font-weight: 500; }
.info h1 { font-family: var(--kufi); font-size: clamp(40px, 5.6vw, 60px); line-height: 1.25; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--mute); margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 7px; }
.price { font-size: 22px; margin-top: 10px; font-weight: 600; }
.panel { border-top: 1px solid var(--line); padding: 22px 0 6px; margin-top: 24px; }
.panel h3 { font-family: var(--kufi); font-size: 24px; margin-bottom: 12px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 54px; height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); font-size: 16px; font-variant-numeric: tabular-nums;
}
.size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size.off { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--taken); }
.hintline { color: var(--mute); font-size: 14.5px; margin-top: 10px; }

#d-cal { max-width: 430px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font-size: 18px; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-title { font-weight: 500; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.cal .dow { font-size: 12px; color: var(--mute); padding-bottom: 2px; }
.cal .d {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; padding: 0;
  font-size: 14.5px; font-variant-numeric: tabular-nums; background: none; cursor: pointer;
}
.cal .d.free { background: var(--free-bg); color: var(--free); }
.cal .d.free:hover { border-color: var(--free); }
.cal .d.busy { background: var(--taken-bg); color: var(--taken); cursor: not-allowed; }
.cal .d.clean { background: var(--prep-bg); color: var(--prep); cursor: not-allowed; }
.cal .d.past, .cal .d.blank { color: rgba(109, 101, 97, .4); cursor: default; }
.cal .d.sel { background: var(--ink); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--mute); margin-top: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14.5px; color: var(--mute); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); font-size: 16px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules { margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--cream); font-size: 14.5px; }
.rules ul { margin: 0; padding-inline-start: 18px; }
.rules li + li { margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px;
  border: 0; border-radius: 16px; padding: 12px 20px; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px;
}
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.small { width: auto; min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 12px; }
.btn-row { display: grid; gap: 10px; margin-top: 14px; }
.err { color: var(--taken); font-size: 14.5px; min-height: 1.4em; margin-bottom: 8px; }
.done { text-align: center; padding: 10px 0; }
.done .seal {
  width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--kufi); font-weight: 700; font-size: 26px;
}
.done h3 { font-family: var(--kufi); font-size: 26px; line-height: 1.45; }
.done p { color: var(--mute); max-width: 46ch; margin: 8px auto 0; }

/* ---------- fitting appointment ---------- */
.page-title { font-family: var(--kufi); font-size: clamp(42px, 6.6vw, 68px); line-height: 1.25; }
.page-sub { color: var(--mute); margin: 6px 0 26px; max-width: 52ch; }
.rdv { display: grid; gap: 30px; }
@media (min-width: 940px) { .rdv { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 56px; } }
.for-dress { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.for-dress img { width: 64px; height: 86px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; }
.for-dress b { font-family: var(--kufi); font-size: 22px; display: block; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; width: 76px; padding: 10px 6px; border-radius: 999px 999px 14px 14px; border: 1px solid var(--line-strong);
  background: var(--card); text-align: center; cursor: pointer; line-height: 1.3;
}
.day b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0; }
.day small { color: var(--mute); font-size: 12px; }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on small { color: #ddd; }
.part { color: var(--mute); font-size: 14px; margin: 18px 0 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { padding: 9px 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.35; }
.slot small { display: block; font-size: 11.5px; color: var(--mute); }
.slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot.on small { color: #ddd; }
.slot:disabled { opacity: .35; cursor: default; }

/* ---------- owner's space ---------- */
.admin-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 22px 0 34px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 820px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--card); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--kufi); font-size: 38px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--mute); font-size: 14px; }
.cols { display: grid; gap: 34px; }
@media (min-width: 980px) { .cols { grid-template-columns: 1fr 1fr; gap: 34px 56px; } }
.cols section h3 { font-family: var(--kufi); font-size: 26px; margin-bottom: 6px; }
.row { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row img { width: 50px; height: 66px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; }
.row .t { font-weight: 500; }
.row .s { color: var(--mute); font-size: 13.5px; }
.row .time { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.row .acts { display: flex; flex-direction: column; gap: 6px; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; }
.tag.wait { background: var(--prep-bg); color: var(--prep); }
.tag.ok { background: var(--free-bg); color: var(--free); }
.day-label { color: var(--mute); font-size: 14px; margin-top: 16px; }
.bar { display: grid; grid-template-columns: minmax(0, 9em) 1fr 2em; gap: 12px; align-items: center; margin: 10px 0; font-size: 14.5px; }
.bar .track { height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--ink); }
.bar b { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.note { font-size: 13.5px; color: var(--mute); margin-top: 26px; }

/* receipt: the same paper on the screen and on the printer */
.modal { position: fixed; inset: 0; background: rgba(27, 24, 25, .45); display: grid; place-items: center; padding: 16px; z-index: 60; }
.receipt { background: var(--card); width: min(520px, 100%); border-radius: 22px; padding: 28px 24px 22px; max-height: 92vh; overflow: auto; color: var(--ink); font-size: 16px; }
.rc-head { text-align: center; padding-bottom: 14px; }
@media screen { .modal.quiet { opacity: 0; pointer-events: none; } }
.rc-logo { display: inline-grid; justify-items: center; }
.rc-name { margin: 0; font-weight: 800; font-size: 30px; line-height: 1.2; }
.receipt.paper .rc-name { font-size: 17pt; }
.receipt.paper.label .rc-name, .receipt.paper.ticket .rc-name { font-size: 14pt; }
.rc-logo b { font-family: var(--kufi); font-weight: 700; font-size: 58px; line-height: 1.05; }
.rc-stars { display: flex; gap: 22px; align-items: end; height: 18px; }
.rc-stars i, .rc-thanks i { display: block; width: 14px; height: 14px; background: var(--ink); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.rc-stars i:nth-child(2) { width: 11px; height: 11px; margin-bottom: 6px; }
.rc-line { display: block; width: 70%; height: 3px; border-radius: 2px; background: var(--brass); margin-top: 6px; }
.rc-tag { margin: 10px 0 2px; color: var(--mute); font-size: 15px; }
.rc-contact { margin: 0; display: flex; gap: 8px; justify-content: center; font-weight: 600; font-size: 15px; }
.rc-contact span { color: var(--mute); }
.rc-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); padding: 10px 2px; margin-bottom: 14px; }
.rc-title b { font-family: var(--kufi); font-size: 24px; }
.rc-title span { color: var(--mute); font-size: 15px; }
.rc-title span bdi { color: var(--ink); font-weight: 700; }
.rc-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.rc-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.rc-box h3 { font-size: 13px; color: var(--mute); font-weight: 500; margin: 0 0 4px; }
.rc-box p { margin: 0; }
.rc-big { font-size: 19px; font-weight: 700; line-height: 1.35; }
.rc-dress { display: flex; gap: 12px; align-items: center; }
.rc-dress img { width: 52px; height: 70px; object-fit: cover; border-radius: 26px 26px 8px 8px; flex: none; }
.rc-dates { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; margin: 12px 0; }
.rc-dates div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; display: grid; gap: 2px; }
.rc-dates small { color: var(--mute); font-size: 13px; }
.rc-dates b { font-size: 15.5px; line-height: 1.35; }
.rc-dates .main { background: var(--ink); color: #fff; border-color: var(--ink); }
.rc-dates .main small { color: rgba(255, 255, 255, .75); }
.rc-money { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rc-money dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.rc-money dt { color: var(--mute); }
.rc-money dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-money .rc-total { border-top: 1px dashed var(--line-strong); padding-top: 8px; font-size: 19px; font-weight: 700; color: var(--ink); }
.rc-note { margin: 6px 0 0; font-size: 14px; color: var(--mute); text-align: start; }
.rc-rules { margin: 14px 0 0; padding: 12px 30px 12px 14px; background: var(--cream); border-radius: 14px; font-size: 15px; line-height: 1.7; }
.rc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 26px 4px 6px; }
.rc-sign div { border-top: 1px solid var(--ink); padding-top: 6px; text-align: center; font-size: 13.5px; color: var(--mute); padding-bottom: 34px; }
.rc-thanks { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 16px; font-family: var(--kufi); font-size: 21px; text-align: center; }
.rc-thanks i { width: 11px; height: 11px; background: var(--brass); flex: none; }
@media (max-width: 420px) {
  .receipt { padding: 22px 16px 18px; font-size: 15px; }
  .rc-row { grid-template-columns: 1fr; }
  .rc-dates b { font-size: 14px; }
}
@media print {
  /* an A5 sheet, like the receipt books shops use */
  @page { size: A5 portrait; margin: 8mm; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
  body.printing > *:not(.modal), body.printing > .modal:not(.print-me) { display: none !important; }
  body.printing .modal { position: static; display: block; background: none; padding: 0; }
  body.printing .receipt .no-print { display: none; }
  .receipt * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* the receipt on paper (printing, or the PDF made in the browser): A5 sizes */
.receipt.paper { width: 100%; max-width: 132mm; margin: 0 auto; max-height: none; overflow: visible; border-radius: 0; padding: 0; font-size: 10.5pt; box-shadow: none; }
.receipt.paper .rc-head { padding-bottom: 1mm; }
.receipt.paper .rc-logo b { font-size: 34pt; }
.receipt.paper .rc-tag, .receipt.paper .rc-contact, .receipt.paper .rc-title span { font-size: 9.5pt; }
.receipt.paper .rc-title { padding: 1.6mm 0; margin-bottom: 2mm; }
.receipt.paper .rc-title b { font-size: 15pt; }
.receipt.paper .rc-row { grid-template-columns: 1fr 1.3fr; gap: 2.5mm; }
.receipt.paper .rc-box, .receipt.paper .rc-money { padding: 2.5mm 3mm; border-radius: 3mm; }
.receipt.paper .rc-box h3, .receipt.paper .rc-dates small { font-size: 8.5pt; }
.receipt.paper .rc-big { font-size: 12.5pt; }
.receipt.paper .rc-dress img { width: 11mm; height: 15mm; }
.receipt.paper .rc-dates { gap: 2mm; margin: 2mm 0; }
.receipt.paper .rc-dates div { padding: 2mm 1.5mm; border-radius: 3mm; }
.receipt.paper .rc-dates b { font-size: 9.5pt; }
.receipt.paper .rc-money .rc-total { font-size: 12.5pt; }
.receipt.paper .rc-note { font-size: 9pt; }
.receipt.paper .rc-rules { font-size: 9.5pt; line-height: 1.45; margin-top: 2mm; padding: 2mm 7mm 2mm 3mm; border-radius: 3mm; }
.receipt.paper .rc-sign { margin: 3mm 1mm 0; gap: 8mm; }
.receipt.paper .rc-sign div { font-size: 8.5pt; padding-bottom: 5mm; }
.receipt.paper .rc-thanks { font-size: 12pt; margin: 1mm 0 0; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 500; max-width: calc(100% - 32px); }

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

/* the field only robots fill */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* date and time fields: the value reads left to right («13 nov. 2026», not «nov. 2026 13») and stays inside its box */
input[type="date"], input[type="time"] { direction: ltr; text-align: right; min-width: 0; max-width: 100%; }
[dir="ltr"] input[type="date"], [dir="ltr"] input[type="time"] { text-align: left; } /* French and English pages read left to right */
.finder label, .field { min-width: 0; }
/* iPhone draws its own date field with a fixed width unless it is told not to */
@supports (-webkit-touch-callout: none) {
  input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; line-height: 48px; }
  input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: right; margin: 0; }
  [dir="ltr"] input[type="date"]::-webkit-date-and-time-value, [dir="ltr"] input[type="time"]::-webkit-date-and-time-value { text-align: left; }
}
.rc-logo-img { display: block; width: min(300px, 78%); margin: -6px auto 0; }
.receipt.paper .rc-logo-img { width: 46mm; margin-top: 0; }

/* 4×6 label printer (thermal, black only): smaller, outlined instead of filled, no photo, no grey */
.receipt.paper.label { max-width: none; font-size: 9pt; }
.receipt.paper.label * { color: #000 !important; }
.receipt.paper.label .rc-logo-img { width: 32mm; }
.receipt.paper.label .rc-tag, .receipt.paper.label .rc-contact, .receipt.paper.label .rc-title span { font-size: 7.5pt; }
.receipt.paper.label .rc-tag { margin: 1mm 0 0; }
.receipt.paper.label .rc-title { padding: 1mm 0; margin-bottom: 1.5mm; border-bottom-color: #000; }
.receipt.paper.label .rc-title b { font-size: 12.5pt; }
.receipt.paper.label .rc-row { grid-template-columns: 1fr 1fr; gap: 1.5mm; }
.receipt.paper.label .rc-dress img { display: none; }
.receipt.paper.label .rc-box, .receipt.paper.label .rc-money { padding: 1.3mm 2mm; border: .3mm solid #000; border-radius: 2mm; }
.receipt.paper.label .rc-box h3, .receipt.paper.label .rc-dates small { font-size: 7pt; }
.receipt.paper.label .rc-big { font-size: 11pt; }
.receipt.paper.label .rc-dates { gap: 1.2mm; margin: 1.5mm 0; }
.receipt.paper.label .rc-dates div { padding: 1.2mm .6mm; border: .3mm solid #000; border-radius: 2mm; }
.receipt.paper.label .rc-dates .main { background: none; border-width: .8mm; }
.receipt.paper.label .rc-dates b { font-size: 8.6pt; }
.receipt.paper.label .rc-money dl { gap: .8mm 3mm; }
.receipt.paper.label .rc-money .rc-total { font-size: 11pt; padding-top: 1mm; border-top-color: #000; }
.receipt.paper.label .rc-note { font-size: 7pt; margin-top: .6mm; }
.receipt.paper.label .rc-rules { background: none; border: .3mm solid #000; font-size: 8pt; line-height: 1.35; padding: 1.2mm 5mm 1.2mm 2mm; margin-top: 1.5mm; border-radius: 2mm; }
.receipt.paper.label .rc-sign { margin: 2.5mm 0 0; gap: 5mm; }
.receipt.paper.label .rc-sign div { font-size: 7.5pt; padding-bottom: 5mm; border-top-color: #000; }
.receipt.paper.label .rc-thanks { font-size: 10pt; margin: .5mm 0 0; }
.receipt.paper.label .rc-thanks i { background: #000; width: 7px; height: 7px; }

/* paper size and actions under the receipt */
.rc-tools { margin-top: 12px; display: grid; gap: 4px; }
.rc-papers { margin-bottom: 4px; }
.rc-hint { margin: 0 2px 6px; font-size: 13.5px; color: var(--mute); line-height: 1.5; }

/* phone fields: red while the number cannot be a mobile one, the network's name once it is */
input.bad { border-color: var(--taken) !important; }
.phone-hint { display: block; font-size: 13px; color: var(--taken); margin-top: 2px; }
.phone-hint.ok { color: var(--free); }

/* a receipt for several dresses: the girl on one line, then one short line per dress, then the totals */
.rc-client { margin-bottom: 10px; }
.rc-client p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rc-client + .rc-dates { margin-top: 0; }
.rc-items { border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-top: 10px; }
.rc-items > h3 { font-size: 13px; color: var(--mute); font-weight: 500; margin: 0 0 2px; }
.rc-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "what price" "when price"; gap: 0 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line-strong); }
.rc-items > h3 + .rc-item { border-top: 0; }
.rc-what, .rc-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.4; }
.rc-what { grid-area: what; }
.rc-when { grid-area: when; }
.rc-what > b { font-size: 15.5px; }
.rc-when > b { font-size: 13.5px; }
.rc-what small, .rc-when small { color: var(--mute); font-size: 12.5px; }
.rc-price { grid-area: price; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt.paper .rc-client { margin-bottom: 2mm; padding: 1.8mm 3mm; }
.receipt.paper .rc-client .rc-big { font-size: 11.5pt; }
.receipt.paper .rc-items { padding: 1mm 3mm; border-radius: 3mm; margin-top: 2mm; }
.receipt.paper .rc-item { padding: 1.2mm 0; }
.receipt.paper .rc-what > b { font-size: 10.5pt; }
.receipt.paper .rc-when > b { font-size: 9pt; }
.receipt.paper .rc-what small, .receipt.paper .rc-when small, .receipt.paper .rc-items > h3 { font-size: 8.5pt; }
.receipt.paper .rc-price { font-size: 10pt; }
.receipt.paper.label .rc-client { padding: 1.2mm 2mm; }
.receipt.paper.label .rc-client .rc-big { font-size: 10pt; }
.receipt.paper.label .rc-items { border: .3mm solid #000; border-radius: 2mm; padding: .6mm 2mm; margin-top: 1.5mm; }
.receipt.paper.label .rc-item { border-top-color: #000; padding: .8mm 0; }
.receipt.paper.label .rc-what > b, .receipt.paper.label .rc-price { font-size: 9pt; }
.receipt.paper.label .rc-when > b { font-size: 7.8pt; }
.receipt.paper.label .rc-what small, .receipt.paper.label .rc-when small, .receipt.paper.label .rc-items > h3 { font-size: 7pt; }

/* an order of several dresses on paper: a smaller sign and tighter boxes, so it stays on one sheet */
.receipt.paper .rc-body.many .rc-logo-img { width: 30mm; }
.receipt.paper .rc-body.many .rc-tag { margin-top: 1mm; }
.receipt.paper .rc-body.many .rc-money { padding: 1.5mm 3mm; margin-top: 2mm; }
.receipt.paper .rc-body.many .rc-money dl { gap: .6mm 4mm; }
.receipt.paper .rc-body.many .rc-money .rc-total { padding-top: .8mm; }
.receipt.paper .rc-body.many .rc-note { margin-top: .4mm; }
.receipt.paper .rc-body.many .rc-rules { margin-top: 1.5mm; padding-block: 1.2mm; font-size: 8.8pt; line-height: 1.35; }
.receipt.paper .rc-body.many .rc-sign { margin-top: 2.5mm; }
.receipt.paper .rc-body.many .rc-sign div { padding-bottom: 3.5mm; }
.receipt.paper .rc-body.many .rc-thanks { font-size: 10.5pt; }
.receipt.paper.label .rc-body.many .rc-logo-img { width: 22mm; }
.receipt.paper.label .rc-body.many .rc-rules { font-size: 7pt; }
.receipt.paper.label .rc-body.many .rc-sign div { padding-bottom: 2.5mm; }
.receipt.paper.label .rc-body.many .rc-thanks { font-size: 9pt; }

/* her basket */
.cart-link b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-family: var(--sans); }
.cart-note { background: var(--cream); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; margin-bottom: 12px; line-height: 1.6; }
.cart-note a { color: var(--ink); font-weight: 600; }
#d-form .btn.more, .cart .btn.more { margin-top: 8px; width: 100%; }
.cart { display: grid; gap: 12px; max-width: 560px; }
.cart-list { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.cart-item img { width: 56px; height: 74px; object-fit: cover; border-radius: 28px 28px 8px 8px; display: block; }
.cart-item div { display: grid; gap: 2px; min-width: 0; }
.cart-item span { color: var(--mute); font-size: 14px; }
.cart-item em { color: var(--taken); font-style: normal; font-size: 13.5px; }
.cart-item.gone { border-color: var(--taken); }
.cart-item .x { border: 0; background: var(--paper); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--mute); }
.sent-list { text-align: start; margin: 6px 0 10px; padding-inline-start: 20px; line-height: 1.7; }

/* till roll, 80 mm (thermal, black only): one narrow column, lines instead of boxes, the days as a list */
.receipt.paper.ticket { font-size: 9pt; }
.receipt.paper.ticket * { color: #000 !important; }
.receipt.paper.ticket .rc-logo-img, .receipt.paper.ticket .rc-body.many .rc-logo-img { width: 40mm; }
.receipt.paper.ticket .rc-tag, .receipt.paper.ticket .rc-contact { font-size: 8pt; }
.receipt.paper.ticket .rc-contact { flex-wrap: wrap; }
.receipt.paper.ticket .rc-title { flex-wrap: wrap; justify-content: center; gap: .5mm 3mm; padding: 1.5mm 0; margin-bottom: 2mm; border-top: .5mm solid #000; border-bottom: .3mm dashed #000; }
.receipt.paper.ticket .rc-title b { width: 100%; text-align: center; font-size: 13pt; }
.receipt.paper.ticket .rc-title span { font-size: 8pt; }
.receipt.paper.ticket .rc-row { grid-template-columns: 1fr; gap: 0; }
.receipt.paper.ticket .rc-box, .receipt.paper.ticket .rc-money, .receipt.paper.ticket .rc-items, .receipt.paper.ticket .rc-client { border: 0; border-bottom: .3mm dashed #000; border-radius: 0; padding: 1mm 0 1.5mm; margin: 0 0 1mm; }
.receipt.paper.ticket .rc-box h3, .receipt.paper.ticket .rc-items > h3 { font-size: 7.5pt; margin: 0; }
.receipt.paper.ticket .rc-big, .receipt.paper.ticket .rc-client .rc-big { font-size: 11pt; }
.receipt.paper.ticket .rc-dress img { display: none; }
.receipt.paper.ticket .rc-dates { grid-template-columns: 1fr; gap: .6mm; margin: 1mm 0 1.5mm; padding-bottom: 1.5mm; border-bottom: .3mm dashed #000; }
.receipt.paper.ticket .rc-dates div { display: flex; justify-content: space-between; align-items: baseline; padding: 0; border: 0; border-radius: 0; background: none; text-align: start; }
.receipt.paper.ticket .rc-dates small { font-size: 8pt; }
.receipt.paper.ticket .rc-dates b { font-size: 9pt; }
.receipt.paper.ticket .rc-dates .main b { font-size: 10.5pt; }
.receipt.paper.ticket .rc-item { border-top-color: #000; padding: .8mm 0; }
.receipt.paper.ticket .rc-what > b, .receipt.paper.ticket .rc-price { font-size: 9.5pt; }
.receipt.paper.ticket .rc-when > b { font-size: 8.5pt; }
.receipt.paper.ticket .rc-what small, .receipt.paper.ticket .rc-when small { font-size: 7.5pt; }
.receipt.paper.ticket .rc-money dl { gap: .6mm 3mm; }
.receipt.paper.ticket .rc-money .rc-total { font-size: 12pt; padding-top: .8mm; border-top-color: #000; }
.receipt.paper.ticket .rc-note { font-size: 7.5pt; }
.receipt.paper.ticket .rc-rules { background: none; border: 0; border-radius: 0; margin: 1mm 0 0; padding: 0 4mm 0 0; font-size: 7.5pt; line-height: 1.4; }
.receipt.paper.ticket .rc-sign { margin: 4mm 0 0; gap: 4mm; }
.receipt.paper.ticket .rc-sign div { font-size: 7pt; padding-bottom: 7mm; border-top-color: #000; }
.receipt.paper.ticket .rc-thanks { font-size: 10pt; margin: 1mm 0 0; }
.receipt.paper.ticket .rc-thanks i { background: #000; width: 6px; height: 6px; }

/* the receipt window: a back arrow in its corner (never printed) */
.modal-back { position: fixed; top: calc(12px + env(safe-area-inset-top)); inset-inline-start: 12px; z-index: 61; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 6px 20px -6px rgba(27, 24, 25, .45); cursor: pointer; }
.modal-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .modal-back svg { transform: scaleX(-1); }
.modal.quiet .modal-back, body.printing .modal-back { display: none !important; }
@media print { .modal-back { display: none !important; } }

/* a shop's home without a 3D front: its photo (or four of its dresses), its name, and the dresses right after */
.front { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 84px 16px 6px; }
.front-media { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.front-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.front-media.mosaic { aspect-ratio: 16 / 9; }
.front-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 100%; padding: 10px; }
.front-mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 999px 999px 14px 14px; display: block; }
.front-text { display: grid; gap: 10px; justify-items: start; align-content: center; }
.front-name { font-family: var(--kufi); font-size: clamp(42px, 7vw, 76px); line-height: 1.15; margin: 0; }
.front-logo { width: min(300px, 72%); height: auto; }
.front-tag { color: var(--mute); font-size: 18px; margin: 0; }
.front-go { margin-top: 4px; }
.front-info { display: grid; gap: 18px; padding-top: 10px; padding-bottom: 40px; }
.front-info .rules-card, .front-info .boqala-card, .how-card { width: auto; box-shadow: none; background: var(--card); }
.how-card { padding: 28px; border-radius: 24px; border: 1px solid var(--line); }
.how-card .scene-title, .front-info .scene-title { text-shadow: none; font-size: clamp(30px, 4.4vw, 44px); }
.how { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.how li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.how b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--kufi); font-size: 22px; }
.how h3 { margin: 4px 0 4px; font-family: var(--kufi); font-size: 21px; line-height: 1.4; }
.how p { margin: 0; color: var(--mute); }
.front-info .boqala-card { text-align: center; }
@media (min-width: 900px) {
  .front { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 100px; }
  .front-media, .front-media.mosaic { aspect-ratio: auto; height: min(430px, 50vh); }
  .front-info { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
}
.made-by { margin: 0; padding: 14px 16px 20px; text-align: center; font-size: 13px; }
.made-by a { color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.made-by img { width: 12px; height: auto; opacity: .75; }
.made-by a:hover { color: var(--ink); text-decoration: underline; }
