/* ============================================================
   صالون حسام | الواجهة
   لغة بصرية: فحمي دافي + عاجي + نحاسي واحد. خطوط: Alexandria للعناوين،
   Aref Ruqaa للكلمة المميزة (بدل الإيطالي الذهبي)، IBM Plex Sans Arabic للنص.
   ============================================================ */

:root {
  --ink: #14110f;
  --ink-2: #1c1815;
  --ink-3: #26211c;
  --line: rgba(239, 232, 220, 0.12);
  --line-2: rgba(239, 232, 220, 0.22);
  --bone: #efe8dc;
  --muted: #a89f92;
  --brass: #c9a25c;
  --brass-hi: #dcb873;
  --on-brass: #1a140c;
  --red: #b21e20;
  --r: 14px;
  --r-sm: 10px;
  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-accent: 'Aref Ruqaa', 'Alexandria', serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--f-body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

em { font-style: normal; font-family: var(--f-accent); color: var(--brass); font-weight: 700; }

/* ---------- حبيبات خفيفة فوق كل شي، بتكسر نعومة الديجيتال ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- الكانفس ---------- */
#pole {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none;
  transition: opacity .6s linear;
}
body::before { /* بقعة ضو خلف العمود */
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 50% 42%, rgba(201, 162, 92, .13), transparent 60%),
    radial-gradient(120vmax 80vmax at 50% 120%, rgba(0, 0, 0, .55), transparent 60%);
  transition: opacity 1s;
}
body.is-docked::before { opacity: .55; }

/* بديل لو الجهاز ما بيدعم WebGL */
.pole-fallback { display: none; }
body.no-webgl .pole-fallback {
  display: flex; flex-direction: column; align-items: center; position: fixed; z-index: 1; pointer-events: none;
  inset-inline-start: 50%; top: 50%; transform: translate(50%, -50%); transition: transform 1s var(--ease-out), opacity .6s;
}
body.no-webgl.is-docked .pole-fallback { opacity: .5; }
.pf-cap, .pf-base { width: 140px; height: 46px; border-radius: 50% 50% 12px 12px; background: linear-gradient(90deg, #6d6863, #f4f1ec 35%, #8f8a84 60%, #e9e5df 80%, #5c5854); }
.pf-base { border-radius: 12px 12px 30px 30px; }
.pf-tube { width: 104px; height: 300px; overflow: hidden; border-radius: 4px; position: relative; box-shadow: inset 12px 0 20px rgba(0,0,0,.35), inset -12px 0 20px rgba(0,0,0,.35); }
.pf-tube i {
  position: absolute; inset: -120px 0 0; background: repeating-linear-gradient(-35deg, var(--red) 0 24px, #efe9df 24px 48px, #1a3a8c 48px 72px, #efe9df 72px 96px);
  animation: pf 2.4s linear infinite;
}
@keyframes pf { to { transform: translateY(117px); } }

/* ---------- الستارة (انتقال «ادخل») ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; background: #0c0a09;
  opacity: 0; transition: opacity .55s var(--ease-io);
}
.curtain.on { opacity: 1; pointer-events: auto; }

/* ============================================================
   الافتتاحية
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--gut);
  pointer-events: none;
}
body:not(.is-intro) .intro { display: none; }
.intro-mark { text-align: center; display: grid; justify-items: center; gap: 6px; transform: translateY(2vh); position: relative; }
.intro-mark::before { /* تعتيم خفيف ورا الكلام حتى يضل مقروء فوق الخطوط */
  content: ''; position: absolute; inset: 10% -12% -6%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(closest-side, rgba(14,12,10,.62), transparent);
}
.intro.show-mark .intro-mark::before { opacity: 1; }
.intro-name {
  margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(96px, 20vw, 260px); line-height: .95; letter-spacing: 0;
  color: #f6f1e8;   /* بروز ثلاثي الأبعاد متل الشعار بالفيديو */
  text-shadow:
    0 1px 0 #d9d2c6, 0 2px 0 #cfc7ba, 0 3px 0 #c3bbad, 0 4px 0 #b6ad9f, 0 5px 0 #a79e90,
    0 6px 1px rgba(0,0,0,.2), 0 10px 18px rgba(0,0,0,.45), 0 24px 50px rgba(0,0,0,.45);
}
.intro-name .nm { display: inline-block; padding: 0 .06em .12em; opacity: 0; transform: translateY(.18em) scale(.94); filter: blur(14px);
  clip-path: inset(0 0 100% 0); transition: opacity .9s var(--ease-out), transform 1.3s var(--ease-out), filter 1s var(--ease-out), clip-path 1.2s var(--ease-out); }
.intro-tag { margin: 4px 0 0; font-family: var(--f-body); font-weight: 600; letter-spacing: .5em; font-size: 13px; color: var(--bone); text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9);
  direction: ltr; opacity: 0; transition: opacity 1s .2s; }
.intro-tag b { color: var(--brass); }
.enter {
  pointer-events: auto; margin-top: 26px; min-width: 150px; padding: 14px 34px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(239,232,220,.35); background: rgba(20,17,15,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; font-size: 16px;
  opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), background .3s, border-color .3s, color .3s;
}
.enter:hover { background: var(--brass); color: var(--on-brass); border-color: var(--brass); }
.skip {
  pointer-events: auto; position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-start: var(--gut);
  background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px; text-decoration: underline; text-underline-offset: 4px;
}

.intro.show-mark .intro-name .nm { opacity: 1; transform: none; filter: none; clip-path: inset(-20% -10% -30% -10%); }
.intro.show-mark .intro-tag { opacity: 1; }
.intro.show-enter .enter { opacity: 1; transform: none; }

body.is-intro { overflow: hidden; }
body.is-intro main, body.is-intro .foot, body.is-intro .nav { visibility: hidden; }

/* ============================================================
   الهيدر
   ============================================================ */
.nav {
  position: fixed; z-index: 40; top: 12px; inset-inline: var(--gut); max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 8px; padding-inline-start: 20px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(20, 17, 15, .62);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transform: translateY(-140%); transition: transform .9s var(--ease-out) .35s;
}
body.is-docked .nav { transform: none; }
.brand { font-family: var(--f-display); font-weight: 900; font-size: 22px; text-decoration: none; display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.brand small { font-family: var(--f-body); font-size: 9px; letter-spacing: .35em; color: var(--brass); font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .25s; }
.nav-links a:hover { color: var(--bone); }

/* ============================================================
   أزرار
   ============================================================ */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn-sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn-brass::after { /* لمعة بتمرّ على الزر */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease-out);
}
.btn-brass:hover::after { transform: translateX(-120%); }
.btn-brass:hover { background: var(--brass-hi); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn .ic { transition: transform .35s var(--ease-out); }
.btn:hover .ic { transform: translateX(-4px); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; }

/* ============================================================
   عام
   ============================================================ */
main { position: relative; z-index: 5; }
section { position: relative; }
.sec-title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 6vw, 76px); line-height: 1.3; margin: 0;
}
.sec-title em { font-size: 1em; }
.sec-sub { color: var(--muted); max-width: 36ch; margin: 18px 0 0; }

/* كشف الكلمات */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .32em .2em; margin-block: -.32em -.2em; }
.reveal-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.reveal-words.in .w > span { transform: none; }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.fade-up.in { opacity: 1; transform: none; }

/* ============================================================
   الهيرو
   ============================================================ */
.hero {
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 120px var(--gut) 60px; max-width: var(--maxw); margin-inline: auto;
}
.hero-copy { max-width: 720px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; color: var(--muted);
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6fbf73; box-shadow: 0 0 0 4px rgba(111,191,115,.18); }
.status.closed::before { background: var(--red); box-shadow: 0 0 0 4px rgba(178,30,32,.2); }
.hero-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 6.6vw, 94px); line-height: 1.32; margin: 0; }
.hero-title em { font-size: 1em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: #cfc6b8; max-width: 34ch; margin: 26px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   الأسعار
   ============================================================ */
.menu {
  max-width: var(--maxw); margin: 0 auto; padding: 16vh var(--gut) 14vh;
  display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: 6vw; align-items: start;
}
.menu-head { position: sticky; top: 120px; }
.price-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.price-list li { border-top: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 1px solid var(--line); }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; width: 100%; text-align: start;
  padding: 26px 4px; background: none; border: 0; cursor: pointer; position: relative;
}
.price-row::before { /* خط نحاسي بيمشي تحت الصف */
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out);
}
.price-row:hover::before, .price-row:focus-visible::before { transform: scaleX(1); }
.price-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.25; transition: transform .5s var(--ease-out); }
.price-row:hover .price-name { transform: translateX(-8px); }
.price-val { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); direction: ltr; font-variant-numeric: tabular-nums; }
.price-val small { font-size: .55em; color: var(--brass); margin-inline-end: 4px; font-weight: 600; }
.price-desc { grid-column: 1; color: var(--muted); font-size: 15px; }
.price-meta { grid-column: 2; grid-row: 2; justify-self: end; font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.price-go {
  position: absolute; inset-inline-end: -46px; top: 50%; translate: 0 -50%; opacity: 0; color: var(--brass);
  transition: opacity .3s, inset-inline-end .5s var(--ease-out);
}
.price-row:hover .price-go { opacity: 1; inset-inline-end: -34px; }
.price-skel { height: 104px; background: linear-gradient(90deg, transparent, rgba(239,232,220,.05), transparent) 0 0 / 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============================================================
   شو رقمك؟ (أرقام مشط الماكينة)
   ============================================================ */
.guard { max-width: var(--maxw); margin: 0 auto; padding: 14vh var(--gut) 12vh; display: grid; gap: clamp(28px, 4vw, 48px); }
.guard-head { display: grid; grid-template-columns: auto 1fr; gap: 12px 6vw; align-items: end; }
.guard-head .sec-sub { margin: 0 0 10px; }
.guard-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.fade-view { margin: 0; border-radius: var(--r); background: var(--bone); color: var(--ink); overflow: hidden; display: grid; grid-template-rows: 1fr auto; min-height: 300px; }
.fade-view canvas { width: 100%; height: 100%; display: block; min-height: 250px; }
.fade-view figcaption { display: flex; justify-content: space-between; padding: 10px 18px 12px; font-size: 13px; color: #6b6358; background: #3b2e26; color: #e9dccb; }
.guard-read { display: grid; align-content: center; gap: 8px; }
.g-num { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(110px, 14vw, 190px); line-height: .85; color: var(--bone); font-variant-numeric: tabular-nums; }
.g-num span { display: inline-block; }
.g-num span.swap { animation: numSwap .45s var(--ease-out); }
@keyframes numSwap { from { transform: translateY(18%); opacity: 0; filter: blur(6px); } }
.g-mm { margin: 0; color: var(--brass); font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.g-mm b { font-size: 28px; font-weight: 800; }
.g-name { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); }
.g-desc { margin: 0 0 10px; color: #cfc6b8; max-width: 38ch; min-height: 3.4em; }
.guard-read .btn { justify-self: start; }

/* المشط نفسه: جسم عاجي وأسنان، وكل سن هو زر */
.comb {
  position: relative; display: grid; grid-template-columns: repeat(var(--n, 9), 1fr); align-items: end;
  padding: 0 10px; height: 104px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.comb::before { /* الظهر */
  content: ''; position: absolute; inset: 0 0 auto; height: 34px; border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #f3ede2, #d9d0c1); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 10px 24px -12px rgba(0,0,0,.6);
}
.comb::after { /* الأسنان */
  content: ''; position: absolute; inset: 32px 10px 34px; border-radius: 0 0 3px 3px;
  background: repeating-linear-gradient(90deg, #e3dacb 0 5px, transparent 5px 11px);
  -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent);
}
.tooth {
  position: relative; z-index: 2; height: 100%; display: grid; align-content: space-between; justify-items: center;
  background: none; border: 0; padding: 0 0 2px; cursor: pointer; color: var(--muted); font-variant-numeric: tabular-nums;
}
.tooth b { margin-top: 5px; font-family: var(--f-display); font-weight: 800; font-size: 16px; color: #5b5146; transition: color .3s; line-height: 24px; }
.tooth small { font-size: 12px; line-height: 1.2; transition: color .3s; }
.tooth[aria-checked="true"] b { color: var(--ink); }
.tooth[aria-checked="true"] small { color: var(--brass-hi); }
.comb-knob {
  position: absolute; z-index: 1; top: -6px; height: 46px; width: 46px; border-radius: 50%; background: var(--brass);
  box-shadow: 0 6px 18px rgba(0,0,0,.45); transform: translateX(50%); transition: right .5s var(--ease-out); pointer-events: none;
}

/* ============================================================
   المعرض
   ============================================================ */
.gallery { padding: 16vh 0 8vh; }
.gallery .sec-title { padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto 40px; }
.gallery-row {
  display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gut) 20px; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-row figure {
  flex: none; width: clamp(220px, 28vw, 380px); aspect-ratio: 3/4; margin: 0; border-radius: var(--r); overflow: hidden; position: relative;
  scroll-snap-align: start; clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.2s var(--ease-out);
}
.gallery-row figure:nth-child(3n+2) { aspect-ratio: 4/5; margin-top: 8vh; }
.gallery-row figure.in { clip-path: inset(0 0 0 0 round var(--r)); }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.gallery-row figure.in img { transform: scale(1); }
.gallery-row figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-size: 14px; background: linear-gradient(transparent, rgba(12,10,9,.8)); }

/* ============================================================
   الحجز
   ============================================================ */
.book { padding: 14vh var(--gut) 16vh; max-width: var(--maxw); margin: 0 auto; }
.book-head { display: grid; grid-template-columns: 1fr auto; gap: 28px 6vw; align-items: end; margin-bottom: 48px; }
.board {
  display: grid; gap: 10px; justify-items: start; padding: 20px 22px 22px; border-radius: var(--r);
  background: #0f0d0c; border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 50px -24px rgba(0,0,0,.8);
}
.board-label { margin: 0; font-size: 14px; color: var(--muted); }
.board-label span { color: var(--bone); }
.board-row { display: flex; align-items: center; gap: 12px; }
.flaps { display: flex; gap: 5px; perspective: 400px; }
.flap {
  position: relative; width: 50px; height: 70px; border-radius: 7px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #2b2621 0 49.4%, #1d1916 50.6% 100%);
  font-family: var(--f-display); font-weight: 800; font-size: 44px; color: #f3ede2; font-variant-numeric: tabular-nums; line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05), 0 2px 0 #070605;
}
.flap::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: #070605; }
.flap.sep { width: 20px; background: none; box-shadow: none; color: var(--brass); }
.flap.sep::after { display: none; }
.flap.tick { animation: flip .09s linear; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(-70deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
.board-ap { font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--brass); }
.board-day { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 18px; }

.book-grid { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.book-flow { display: grid; gap: 14px; min-width: 0; }
.bstep { border: 1px solid var(--line); border-radius: var(--r); padding: 22px clamp(16px, 2.4vw, 28px) 26px; margin: 0; min-width: 0; transition: opacity .4s, border-color .4s; }
.bstep[disabled] { opacity: .5; padding-bottom: 18px; }
.bstep[disabled] > :not(legend) { display: none; }
.bstep[disabled]::after { content: attr(data-hint); display: block; color: var(--muted); font-size: 14px; }
.bstep:not([disabled]):focus-within { border-color: var(--line-2); }
.bstep legend { font-family: var(--f-display); font-weight: 600; font-size: 19px; padding: 0 10px; margin-inline-start: -10px; display: flex; align-items: center; gap: 12px; }
.bstep legend b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-3); color: var(--brass); font-size: 15px; }
.bstep legend small { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--muted); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.chip {
  text-align: start; border: 1px solid var(--line); background: var(--ink-2); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer;
  display: grid; gap: 2px; transition: border-color .25s, background .25s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--line-2); }
.chip[aria-checked="true"] { border-color: var(--brass); background: rgba(201,162,92,.1); }
.chip b { font-weight: 600; font-size: 16px; }
.chip span { font-size: 13px; color: var(--muted); }

.day-strip-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 8px; }
.day-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.day-nav:disabled { opacity: .25; cursor: default; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px; scroll-behavior: smooth; }
.day-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 76px; padding: 10px 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--ink-2);
  display: grid; justify-items: center; gap: 0; cursor: pointer; scroll-snap-align: start; transition: border-color .25s, background .25s, color .25s;
}
.day small { font-size: 12px; color: var(--muted); }
.day b { font-family: var(--f-display); font-size: 26px; font-weight: 800; line-height: 1.25; }
.day span { font-size: 11px; color: var(--muted); }
.day:hover { border-color: var(--line-2); }
.day[aria-checked="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.day[aria-checked="true"] small, .day[aria-checked="true"] span { color: #5b544b; }
.day:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; min-height: 52px; }
.slot {
  height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: none; cursor: pointer; font-variant-numeric: tabular-nums;
  font-weight: 500; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease-out);
  opacity: 0; animation: slotIn .5s var(--ease-out) forwards; animation-delay: calc(var(--i) * 18ms);
}
@keyframes slotIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slot:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-hi); }
.slot[aria-checked="true"] { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.slot:disabled { cursor: not-allowed; border-style: dashed; border-color: var(--line); color: rgba(239,232,220,.3); text-decoration: line-through; }
.slots-empty { grid-column: 1 / -1; color: var(--muted); margin: 6px 0 0; }
.legend-row { display: flex; gap: 18px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.lg::before { content: ''; display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); margin-inline-end: 6px; vertical-align: -1px; }
.lg-taken::before { border-style: dashed; border-color: var(--line); background: repeating-linear-gradient(-45deg, transparent 0 2px, rgba(239,232,220,.18) 2px 3px); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  height: 50px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ink-2); padding: 0 14px; font-size: 16px; width: 100%;
  transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--brass); }
.field input::placeholder { color: rgba(168,159,146,.6); }
.field input[dir="ltr"] { text-align: right; }
.form-msg { margin: 4px 0 0; min-height: 1.4em; color: #f09a8f; font-size: 15px; }
.form-msg.ok { color: #9fd3a2; }

/* التذكرة */
.ticket {
  position: sticky; top: 96px; background: var(--bone); color: var(--ink); border-radius: var(--r); padding: 22px 22px 22px; overflow: hidden;
  --hole: 13px;
  -webkit-mask: radial-gradient(circle var(--hole) at 0 var(--perf, 70%), transparent 98%, #000) , radial-gradient(circle var(--hole) at 100% var(--perf, 70%), transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.ticket-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(20,17,15,.14); }
.ticket-brand { font-family: var(--f-display); font-weight: 900; font-size: 26px; }
.ticket-no { font-family: var(--f-accent); color: #8a6a2f; font-size: 20px; }
.ticket-rows { margin: 8px 0 0; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(20,17,15,.16); }
.ticket-rows dt { color: #6b6358; font-size: 14px; }
.ticket-rows dd { margin: 0; font-weight: 600; text-align: end; }
.ticket-rows dd.pop { animation: pop .5s var(--ease-out); }
@keyframes pop { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ticket-perf { height: 1px; margin: 18px -22px; border-top: 2px dashed rgba(20,17,15,.2); }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.ticket-total span { color: #6b6358; }
.ticket-total strong { font-family: var(--f-display); font-weight: 900; font-size: 36px; direction: ltr; }
.ticket .btn-brass { background: var(--ink); color: var(--bone); }
.ticket .btn-brass:hover { background: #2a241e; }
.stamp {
  position: absolute; top: 34%; left: 50%; translate: -50% -50%; rotate: -14deg; scale: 2.4; opacity: 0; pointer-events: none;
  font-family: var(--f-display); font-weight: 900; font-size: 44px; color: var(--red); padding: 4px 22px; border: 4px solid var(--red); border-radius: 12px;
  mix-blend-mode: multiply;
}
.stamp.on { animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stamp { to { scale: 1; opacity: .9; } }

/* بعد الحجز */
.done { border: 0; padding: 0; background: transparent; color: var(--bone); max-width: min(520px, calc(100vw - 32px)); width: 100%; }
.done::backdrop { background: rgba(10, 8, 7, .78); backdrop-filter: blur(6px); }
.done[open] .done-inner { animation: dlg .7s var(--ease-out); }
@keyframes dlg { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.done-inner { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px clamp(20px, 4vw, 36px); text-align: center; display: grid; gap: 8px; }
.done-kicker { margin: 0; color: var(--brass); font-family: var(--f-accent); font-size: 24px; }
.done-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.2; }
.done-when { margin: 0; color: #cfc6b8; }
.done-code { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 0; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.done-code span { color: var(--muted); font-size: 14px; }
.done-code strong { font-family: var(--f-display); font-size: 28px; letter-spacing: .18em; direction: ltr; }
.done-note { font-size: 14px; color: var(--muted); margin: 0; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.done-close { background: none; border: 0; color: var(--muted); margin-top: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   الدوام
   ============================================================ */
.visit {
  max-width: var(--maxw); margin: 0 auto; padding: 12vh var(--gut) 14vh; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw;
}
.hours { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 17px; }
.hours td { padding: 13px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--brass-hi); font-weight: 600; }
.hours tr.off td:last-child { color: var(--muted); }
.visit-info { display: grid; align-content: start; gap: 28px; padding-top: 12px; }
.visit-addr { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin: 0; }
.visit-addr a { text-decoration-color: var(--brass); text-underline-offset: 6px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
}
.soc .ic { width: 24px; height: 24px; }
.soc:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: translateY(-3px); }
.cancel { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.cancel summary { cursor: pointer; padding: 14px 0; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
.cancel summary::after { content: '+'; font-size: 20px; line-height: 1; }
.cancel[open] summary::after { content: '−'; }
.cancel-form { display: grid; gap: 12px; padding-bottom: 18px; }

/* ============================================================
   الفوتر
   ============================================================ */
.foot { position: relative; z-index: 5; padding: 0 var(--gut) 28px; }
.foot-stripe { /* نفس خطوط العمود، شريط رفيع بيمشي */
  height: 6px; margin-inline: calc(-1 * var(--gut));
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, #efe9df 14px 28px, #1a3a8c 28px 42px, #efe9df 42px 56px) 0 0 / 79.2px 100%;
  animation: stripe 2.4s linear infinite;
}
@keyframes stripe { to { background-position: 79.2px 0; } }
.foot-grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.foot-q { margin: 0 0 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.3; }
.foot-meta { display: grid; gap: 6px; justify-items: end; text-align: end; color: var(--muted); }
.foot-brand { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 30px; color: var(--bone); display: flex; align-items: baseline; gap: 8px; line-height: 1.2; }
.foot-brand small { font-family: var(--f-body); font-size: 10px; letter-spacing: .35em; color: var(--brass); font-weight: 600; }
.foot-meta p { margin: 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; max-width: var(--maxw); margin: 0 auto; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-admin { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.foot-admin:hover { color: var(--bone); }

.mbar { display: none; }
.demo-bar {
  position: fixed; z-index: 50; bottom: 12px; inset-inline: 12px; margin: 0 auto; max-width: 560px; text-align: center;
  padding: 10px 44px 10px 16px; border-radius: 12px; font-size: 13px; background: #2b2217; border: 1px solid rgba(201,162,92,.35); color: #e9d6b0;
}
.demo-bar button { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }

/* ============================================================
   الموبايل والتابلت
   ============================================================ */
@media (max-width: 960px) {
  .hero-copy { max-width: 52%; margin-inline-start: 0; }
  .guard-head { grid-template-columns: 1fr; }
  /* الرقم فوق، الشعر بالنص، المشط تحته مباشرة: كل اشي بيبين وإنت بتسحب */
  .guard { gap: 18px; }
  .guard-head { margin-bottom: 10px; }
  .guard-stage { display: contents; }
  .guard-read { order: 1; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 2px; align-items: end; }
  .guard-read .g-num { grid-row: span 2; font-size: 96px; }
  .guard-read .g-mm { align-self: end; }
  .guard-read .g-name { margin: 0; align-self: start; }
  .guard-read .g-desc, .guard-read .btn { grid-column: 1 / -1; }
  .guard-read .g-desc { min-height: 0; margin: 6px 0 4px; }
  .fade-view { order: 2; }
  .comb { order: 3; }
  .guard-read .btn { order: 4; }
  .book-head { grid-template-columns: 1fr; }
  .ticket { display: none; }
  .mbar {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 45; inset-inline: 0; bottom: 0;
    padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(239, 232, 220, .97); color: var(--ink); box-shadow: 0 -14px 40px rgba(0,0,0,.45);
    transform: translateY(110%); transition: transform .5s var(--ease-out);
  }
  body.mbar-on .mbar { transform: none; }
  body.mbar-on .demo-bar { display: none !important; }
  .mbar-info { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
  .mbar-info b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-info span { font-size: 13px; color: #6b6358; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-price { font-family: var(--f-display); font-weight: 900; font-size: 22px; direction: ltr; }
  .mbar .btn-brass { background: var(--ink); color: var(--bone); --h: 46px; padding: 0 22px; }
  .book { padding-bottom: 10vh; }
  .menu { grid-template-columns: 1fr; gap: 36px; }
  .menu-head { position: static; }
  .book-grid { grid-template-columns: 1fr; }
  .ticket { position: relative; top: 0; }
  .visit { grid-template-columns: 1fr; gap: 48px; }
  .price-go { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .foot-meta { justify-items: start; text-align: start; }
  .hero-copy { max-width: none; }
  .guard-read .g-num { font-size: 84px; }
  .fade-view, .fade-view canvas { min-height: 210px; }
  .tooth small { font-size: 11px; }
  .tooth b { font-size: 14px; }
  .comb { padding: 0 4px; }
  .comb::after { inset-inline: 4px; }
  .flap { width: 42px; height: 60px; font-size: 36px; }
  .board { justify-self: stretch; }
  .nav { gap: 12px; padding-inline-start: 16px; top: max(10px, env(safe-area-inset-top)); }
  .nav-links { display: none; }
  .nav .btn { margin-inline-start: auto; }
  .hero { align-items: end; padding-bottom: 12vh; }
  .hero-copy { position: relative; }
  .hero-copy::before { /* تعتيم ورا النص فوق العمود */
    content: ''; position: absolute; inset: -40px -24px -30px; z-index: -1;
    background: radial-gradient(ellipse at 50% 60%, rgba(20,17,15,.88), rgba(20,17,15,.55) 60%, transparent 80%);
  }
  .hero-cta .btn { flex: 1 1 auto; }
  .fields { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .chip { padding: 12px; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .day-nav { display: none; }
  .day-strip-wrap { grid-template-columns: 1fr; margin-inline: calc(-1 * clamp(16px, 2.4vw, 28px)); }
  .day-strip { padding-inline: clamp(16px, 2.4vw, 28px); }
  .intro-tag { letter-spacing: .35em; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 40px; }
  .hero-sub { margin: 18px 0 24px; }
  .svc-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .grain { animation: none; }
  .foot-stripe { animation: none; }
}
