/* خطوط ثمانية (بموافقة ثمانية) */
@font-face { font-family: 'Thmanyah Sans'; font-weight: 400; font-display: swap; src: url("../fonts/thmanyah-sans-400.woff2") format("woff2"); }
@font-face { font-family: 'Thmanyah Sans'; font-weight: 500; font-display: swap; src: url("../fonts/thmanyah-sans-500.woff2") format("woff2"); }
@font-face { font-family: 'Thmanyah Sans'; font-weight: 600 700; font-display: swap; src: url("../fonts/thmanyah-sans-700.woff2") format("woff2"); }
@font-face { font-family: 'Thmanyah Serif Display'; font-weight: 500; font-display: swap; src: url("../fonts/thmanyah-serif-display-500.woff2") format("woff2"); }
@font-face { font-family: 'Thmanyah Serif Display'; font-weight: 600 700; font-display: swap; src: url("../fonts/thmanyah-serif-display-700.woff2") format("woff2"); }

:root {
  --cream: #FBF3E1;
  --card: #FFF9EE;
  --ink: #262625;
  --orange: #FE730E;
  --green: #51AD70;
  --muted: #5E5C57;
  --danger: #B3261E;
  --line: rgba(38, 38, 37, .12);
  --font: 'Thmanyah Sans', system-ui, sans-serif;
  --font-head: 'Thmanyah Serif Display', 'Thmanyah Sans', system-ui, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --studio-panel: radial-gradient(75% 60% at 50% 42%, #FFF8EB 0%, #F4E9D3 65%, #EADBBF 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--cream); color: var(--ink); overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3, .slogan { font-family: var(--font-head); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- الهيدر ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 243, 225, .84);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
}
.top.show { transform: none; }
.top .mark { height: 30px; display: block; }
.home-link { display: block; padding: 6px 0; border-radius: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); text-decoration: none;
}

/* ---------- البداية ---------- */
.hero {
  position: relative;
  min-height: 82vh; min-height: 82svh;
  display: grid; place-items: center; align-content: center;
  padding: 48px 24px 24px; text-align: center;
}
.hero-in {
  display: grid; justify-items: center; gap: 22px;
  transform: translateY(var(--hy, 0px)) scale(var(--hs, 1));
  opacity: var(--ho, 1);
}
.hero-logo { width: min(68vw, 340px); height: auto; overflow: visible; }
.hero-logo .glyphs { opacity: 0; transform: translateY(6px); }
.slogan { font-size: clamp(20px, 5.6vw, 28px); font-weight: 500; opacity: 0; transform: translateY(12px); }
/* كروم ما يلوّن الحركات لحالها، فنركّب طبقتين: النص بحركاته برتقالي، وفوقه نفس النص بدون حركات بالفحمي */
.marks { display: inline-grid; }
.marks > span { grid-area: 1 / 1; }
.marks .m { color: var(--orange); }
.marks .b { color: var(--ink); -webkit-text-stroke: .5px var(--ink); }
.hint {
  position: absolute; left: 0; right: 0; bottom: 26px; margin: auto; width: max-content;
  display: grid; justify-items: center; gap: 4px;
  font-size: 13px; color: var(--muted); opacity: 0; transform: translateY(8px);
}
.hint-in { display: grid; justify-items: center; gap: 4px; opacity: var(--ho, 1); }
.hint svg { width: 22px; height: 22px; color: var(--ink); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(7px); opacity: 1; } }
.intro-run .hero-logo .glyphs { animation: rise 1.3s var(--ease-out) .05s forwards; }
.intro-run .slogan { animation: rise 1.1s var(--ease-out) 1.15s forwards; }
.hero.intro-run .hint { animation: rise 1s var(--ease-out) 1.6s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* الأقسام تدخل بهدوء لما توصلها */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
/* خلفية استوديو بألوان القالب */
.studio { background: radial-gradient(65% 50% at 50% 46%, #FFFAF0 0%, #FBF3E1 100%); }
.reveal-media.studio, .picker.studio, .printer.studio, .o-preview.studio {
  background: var(--studio-panel);
}

/* ---------- الصورة المتمددة ---------- */
.reveal { position: relative; height: 170vh; height: 170svh; }
.reveal-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  --it: 30%; --ib: 18%; --is: 24%; --ir: 400px; --sc: 1.22; --my: 6%; --to: 0;
}
.reveal.off { height: auto; }
.reveal.off .reveal-sticky { position: relative; --it: 0%; --ib: 0%; --is: 0%; --ir: 0px; --sc: 1; --my: 0%; --to: 1; }
.reveal-media {
  position: absolute; inset: 0;
  clip-path: inset(var(--it) var(--is) var(--ib) var(--is) round var(--ir));
  will-change: clip-path;
}
.reveal-media img {
  position: absolute; left: 0; right: 0; top: 6%; margin: auto;
  height: 74%; width: 100%; object-fit: contain;
  transform: translateY(var(--my)) scale(var(--sc));
  will-change: transform;
}
.reveal-copy {
  position: absolute; inset: auto 0 0; padding: 120px 24px 120px;
  background: linear-gradient(transparent, rgba(251, 243, 225, .92) 55%);
  opacity: min(1, calc(var(--to) * 2));
}
.reveal-copy h1 { font-family: var(--font-head); font-size: clamp(34px, 10vw, 48px); font-weight: 700; line-height: 1.15; overflow: hidden; }
.reveal-copy h1 span { display: inline-block; transform: translateY(calc((1 - var(--to)) * 110%)); }
.reveal-copy p { margin-top: 8px; font-size: 16px; color: var(--muted); opacity: var(--to); }

/* ---------- قصة المنتج: سحب يمين ويسار بين الخمس صور ---------- */
.story { position: relative; }
.story-in {
  height: 100vh; height: 100svh; min-height: 560px;
  display: grid; grid-template-rows: 1fr auto; padding-top: 60px;
}
/* المسرح: طبقات صور فوق بعض؛ شفافيتها وحركتها يحددها السحب. pan-y: السكرول لتحت يظل للصفحة */
.stage {
  position: relative; min-height: 0; overflow: hidden; perspective: 1400px;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stage.dragging { cursor: grabbing; }
.stage:focus-visible { outline-offset: -4px; }
.stage img, .stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; will-change: opacity, transform; pointer-events: none; -webkit-user-drag: none;
}
/* أسهم للكمبيوتر بس؛ الجوال يسحب */
.story-nav {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(251, 243, 225, .86); color: var(--ink);
  transition: opacity .3s, transform .3s var(--ease);
}
.story-nav:hover { transform: scale(1.06); }
.story-nav.prev { left: 16px; }
.story-nav.next { right: 16px; }
.story-nav[disabled] { opacity: 0; pointer-events: none; }
.swipe-hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  background: rgba(38, 38, 37, .8); color: var(--cream); font-size: 13px;
  pointer-events: none; transition: opacity .6s var(--ease);
}
.swipe-hint svg { animation: swipe-hint 1.6s var(--ease) infinite; }
@keyframes swipe-hint { 0%, 100% { transform: translateX(5px); opacity: .45; } 50% { transform: translateX(-6px); opacity: 1; } }
.swipe-hint.gone { opacity: 0; }
@media (hover: none) { .story-nav { display: none; } }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }
/* clip: النصوص البعيدة تتحرك برا العرض وقت التنقل، وما نبيها تسوي سكرول جانبي للصفحة */
.caps { position: relative; min-height: 230px; padding: 0 24px 108px; overflow: hidden; overflow: clip; }
.cap { position: absolute; inset: 22px 24px auto; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.cap-n { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cap h3 { margin-top: 6px; font-size: 26px; font-weight: 700; }
.cap p { margin-top: 6px; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 34ch; }
.dots { position: absolute; inset: 0 24px auto; display: flex; justify-content: flex-end; gap: 6px; }
.dots button { flex: 0 0 18px; padding: 10px 0; margin: -10px 0; border: 0; background: none; cursor: pointer; transition: flex-basis .4s var(--ease); }
.dots button::after { content: ""; display: block; height: 3px; border-radius: 2px; background: var(--line); transition: background .4s; }
.dots button.on { flex-basis: 34px; }
.dots button.on::after { background: var(--ink); }

/* ---------- الأقسام ---------- */
.sec { padding: 72px 24px; max-width: 560px; margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.eyebrow svg, .cap-n svg { width: 16px; height: 6px; }
.sec h2 { margin-top: 10px; font-size: clamp(28px, 8vw, 38px); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.sec > p { margin-top: 12px; font-size: 17px; line-height: 1.8; color: var(--muted); }

/* الطباعة: لقطات الرف وهو ينطبع، تتقدم مع السكرول، وتحتها عداد الطبقات */
.printer { position: relative; margin-top: 28px; aspect-ratio: 4 / 5; max-height: 560px; border-radius: 28px; overflow: hidden; }
.printer canvas { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); }
.layer-count {
  position: absolute; inset: auto 0 16px; text-align: center;
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.layer-count b { color: var(--ink); font-weight: 600; }

/* صورة الألوان: كل صورة طبقة، والجديدة تدخل فوق القديمة (js/main.js، createStage).
   كل طبقة عليها خلفية الاستوديو نفسها فتصير مصمتة، فالتلاشي فوق القديمة دمج صافي:
   الجهاز والظل اللي في الصورتين ما يبهتون ولا يغمقون وقت التبديل */
.picker { position: relative; margin-top: 24px; height: 440px; border-radius: 28px; overflow: hidden; }
.pk-stack { position: absolute; inset: 0; }
.pk-layer { position: absolute; inset: 0; }
.pk-win { position: absolute; inset: 0; overflow: hidden; }
/* الصورة وخلفيتها بمقاس الإطار، وتظل ثابتة وهي النافذة تتحرك حولها */
.pk-pic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--studio-panel); }
.pk-pic img { position: absolute; left: 0; top: 4%; width: 100%; height: 92%; object-fit: contain; -webkit-user-select: none; user-select: none; }
.color-name { margin-top: 20px; font-size: 15px; color: var(--muted); }
.color-name strong { color: var(--ink); font-weight: 600; }
.color-name .en { font-size: 13px; }

/* الرف لحاله أو المجموعة: في قسم الألوان وفي لوحة الطلب */
.offer { position: relative; margin-top: 24px; display: flex; gap: 10px; }
.offer .pill { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 10px; font-size: 15px; }
.offer .pill small { font-size: 13px; font-weight: 400; color: var(--muted); transition: color .35s; }
.offer .pill[aria-checked="true"] small { color: var(--ink); }
/* إطار الاختيار ينزلق بين "الرف لحاله" و"المجموعة" بدل ما يقفز */
.offer .pill[aria-checked="true"] { border-color: var(--line); background: var(--card); }
.offer-thumb {
  position: absolute; top: 0; left: 0; z-index: 1; height: 100%; width: 0; border-radius: 14px; pointer-events: none;
  border: 1.5px solid var(--ink); background: rgba(38, 38, 37, .05);
}
.offer.ready .offer-thumb { transition: transform .5s var(--ease), width .5s var(--ease); }
#o-offer { margin-top: 16px; }
#o-offer + .sub { margin-top: 14px; }
/* "اختر المجموعة" ينزل لقسم الألوان، والهيدر ما يغطي عنوانه */
.sec { scroll-margin-top: 56px; }

/* ---------- المجموعة ---------- */
.set-media { position: relative; margin-top: 28px; aspect-ratio: 4 / 5; max-height: 600px; border-radius: 28px; overflow: hidden; }
.set-media canvas, .use-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.set-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.set-still.on { opacity: 1; transition: opacity .5s var(--ease); }
.set-media.studio, .use-media.studio, .set-box-media.studio {
  background: var(--studio-panel);
}
/* كروت القطع: تنسحب بالعرض، والجاي يطل من اليمين مثل قصة المنتج. ltr عشان الكرت الجاي يكون على اليمين */
.uses {
  margin: 44px -24px 0; padding: 0 24px; display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 24px;
  direction: ltr; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.uses::-webkit-scrollbar { display: none; }
.uses:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.use { flex: 0 0 86%; scroll-snap-align: start; scroll-snap-stop: always; direction: rtl; cursor: pointer; }
.use[aria-hidden="false"] { cursor: auto; }
.use-media { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.use-tag {
  position: absolute; top: 14px; right: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(38, 38, 37, .82); color: var(--cream); font-size: 13px; font-weight: 500;
}
.use .cap-n { margin-top: 16px; }
.use h3 { margin-top: 6px; font-size: 22px; font-weight: 700; }
.use p { margin-top: 6px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.use-ctrl { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.set-sec .dots { position: static; }
.use-nav {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--ink); transition: opacity .3s, transform .3s var(--ease);
}
.use-nav:hover { transform: scale(1.06); }
.use-nav[disabled] { opacity: .3; pointer-events: none; }
@media (hover: none) { .use-nav { display: none; } }
.set-box { margin-top: 56px; }
/* بدون حد للارتفاع: الإطار يظل 4:5 مثل الصورة، فأسماء القطع تجي في مكانها */
.set-box-media { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; }
.set-box-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.box-label { position: absolute; transform: translateY(-50%); font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; pointer-events: none; }
.box-label.c { transform: translate(-50%, -50%); }
.set-box h3 { margin-top: 22px; font-size: 24px; font-weight: 700; }
.set-box p { margin-top: 8px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.set-box .btn { margin-top: 20px; }
.swatches { margin-top: 12px; display: flex; justify-content: space-between; gap: 8px; }
#swatches, #o-swatches { justify-content: flex-start; gap: 18px; }
.sw {
  width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: none; border: 1.5px solid transparent;
  transition: border-color .3s, transform .3s var(--ease);
}
.sw:active { transform: scale(.94); }
.sw i { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.sw[aria-checked="true"] { border-color: var(--ink); }
.sw i.wood { background-image: repeating-linear-gradient(100deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px); }
.note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }

.specs { margin-top: 24px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row b { font-weight: 500; color: var(--muted); flex: 0 0 auto; }
.row span { text-align: left; }
.fit {
  margin-top: 20px; padding: 16px 18px; border-radius: 18px;
  background: var(--ink); color: var(--cream); font-size: 15px; line-height: 1.7;
}
.fit strong { display: block; font-size: 17px; }

footer { padding: 56px 24px 140px; text-align: center; border-top: 1px solid var(--line); }
footer .mark { height: 34px; }
footer p { margin-top: 10px; color: var(--muted); font-size: 14px; }
footer .contact { margin-top: 20px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
footer .contact a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 14px;
}
footer .contact a:active { transform: scale(.97); }

/* ---------- شريط الطلب ---------- */
.buy {
  position: fixed; z-index: 25; inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px; padding-inline-start: 18px;
  background: var(--ink); color: var(--cream); border-radius: 20px;
  box-shadow: 0 12px 30px rgba(38, 38, 37, .25);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.buy.show { transform: none; }
.buy small { display: block; font-size: 12px; opacity: .7; }
.buy strong { font-size: 18px; font-weight: 600; }
.buy button {
  border: 0; border-radius: 14px; padding: 13px 26px; cursor: pointer;
  background: var(--orange); color: var(--ink); font-weight: 600; font-size: 16px;
}
.buy button:active { transform: scale(.97); }

.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--cream);
  font-size: 14px; opacity: 0; pointer-events: none; transition: .35s var(--ease); white-space: nowrap;
}
.toast.ok { background: var(--green); color: var(--ink); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- لوحة الطلب ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(38, 38, 37, .45); opacity: 0; transition: opacity .4s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
  height: 100%; height: 100dvh;
  display: grid; grid-template-rows: auto auto 1fr auto;
  background: var(--cream);
  transform: translateY(100%); transition: transform .55s var(--ease-out);
}
.sheet.open .sheet-panel { transform: none; }
@media (min-width: 600px) {
  .sheet-panel { height: 92dvh; border-radius: 24px 24px 0 0; }
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
}
.sheet-title { text-align: center; }
.sheet-title strong { display: block; font-size: 16px; font-weight: 600; }
.sheet-title span { font-size: 12px; color: var(--muted); }
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.round[disabled] { visibility: hidden; }
.progress { height: 3px; margin: 0 16px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 25%; background: var(--ink); transition: width .5s var(--ease-out); }
.sheet-body { overflow-y: auto; padding: 22px 20px 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.step { display: none; }
.step.on { display: block; animation: stepIn .45s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.step h3 { font-size: 26px; font-weight: 700; }
.step .sub { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--cream); }
.btn {
  width: 100%; border: 0; border-radius: 16px; padding: 16px; cursor: pointer;
  background: var(--orange); color: var(--ink); font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .3s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
a.btn { text-decoration: none; }
.btn.green { background: var(--green); }
.btn.ghost { background: transparent; border: 1px solid var(--line); font-weight: 500; }

.o-preview { position: relative; margin-top: 18px; height: min(46vh, 340px); border-radius: 24px; overflow: hidden; }
/* صورة اللون في الطلب: نفس طبقات صورة الألوان (.pk-stack) */
.o-machine { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.o-price { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.o-price strong { font-size: 20px; color: var(--ink); font-weight: 600; }

.opts { margin-top: 18px; display: grid; gap: 12px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 18px; background: var(--card);
  transition: border-color .25s, background .25s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--muted); flex: 0 0 auto; display: grid; place-items: center; }
.opt.checked { border-color: var(--ink); }
.opt.checked .dot { border-color: var(--ink); }
.opt.checked .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.opt .txt { flex: 1; min-width: 0; }
.opt .txt b { display: block; font-weight: 600; font-size: 16px; }
.opt .txt small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.opt .price { font-weight: 600; white-space: nowrap; }
.eta { margin-top: 16px; font-size: 14px; color: var(--muted); }

.field { margin-top: 16px; display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input {
  width: 100%; font-size: 17px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #FFFDF8; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); }
.field input[dir="ltr"] { text-align: left; }
.field.err input { border-color: var(--danger); }
.err-msg { font-size: 13px; color: var(--danger); min-height: 0; }
.addr { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.addr h4 { margin: 0; font-size: 16px; font-weight: 600; }
.addr .sub { font-size: 14px; }
.locate {
  margin-top: 14px; width: 100%; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--ink); background: transparent; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.locate.done { border-style: solid; border-color: var(--green); background: rgba(81, 173, 112, .12); }
.loc-status { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.or { margin: 16px 0 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.addr-err { margin-top: 10px; }

.sum { margin-top: 18px; padding: 6px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sum .r { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.sum .r:last-child { border-bottom: 0; }
.sum .r span:first-child { color: var(--muted); }
.sum .r.total { font-size: 18px; font-weight: 600; }
.sum .r.total span:first-child { color: var(--ink); }
.pay-title { margin-top: 26px; font-size: 18px; font-weight: 600; }
.demo-note { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--danger); color: var(--danger); font-size: 14px; line-height: 1.6; }
.bank { margin-top: 12px; padding: 6px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.bank-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 600; font-size: 16px; }
/* شعارات البنوك وريدبوكس: الملفات الرسمية من مواقعهم، بمقاس صغير جنب الاسم */
.bank-head .brand { height: 22px; width: auto; }
.carrier { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.carrier .brand { height: 16px; width: auto; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.bank-row .k { font-size: 12.5px; color: var(--muted); }
.bank-row .v { display: block; margin-top: 2px; font-size: 15px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.copy { flex: 0 0 auto; min-height: 40px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; }
.copy.done { border-color: var(--green); background: rgba(81, 173, 112, .14); }
.paid-on { margin-top: 20px; font-size: 15px; font-weight: 600; }
.pills { margin-top: 10px; display: flex; gap: 10px; }
.pill { flex: 1; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; }
.pill[aria-checked="true"] { border-color: var(--ink); background: rgba(38, 38, 37, .05); }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--cream); font-size: 14.5px; line-height: 1.7; }

.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 10px auto 0; }
.step[data-step="done"] { text-align: center; }
.step[data-step="done"] h3 { margin-top: 16px; }
.order-no { margin-top: 10px; font-size: 15px; color: var(--muted); }
.order-no b { color: var(--ink); direction: ltr; display: inline-block; }
.next-steps { margin: 22px 0 0; padding: 0; list-style: none; text-align: right; display: grid; gap: 12px; counter-reset: s; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; counter-increment: s; }
.next-steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.resend { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hero-logo .glyphs, .slogan, .hint { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hint svg { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .swipe-hint svg { animation: none; }
  .sheet-panel, .step.on { transition: none; animation: none; }
}
