/* Ma Yawsal: the gift box. Emerald box, tissue sheets, one ribbon, gold foil, ink. */
:root {
  --emerald: #0E3B2E;
  --emerald-deep: #0A2C22;
  --tissue: #F6F7F4;
  --card: #FDFDFB;
  --photo: #FEFEFD;
  --ribbon: #E6A7B8;
  --ribbon-deep: #9E3F5C;
  --foil: #C9A45C;
  --ink: #10150F;
  --muted: #4C5A52;
  --line: rgb(16 21 15 / .12);
  --on-emerald: #EEF2EC;
  --on-emerald-muted: #A9BFB4;

  --latin: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --arabic: "Alexandria", "Bricolage Grotesque", sans-serif;

  --r-sheet: 28px;
  --r-ctl: 14px;
  --shell: 480px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tissue: #0D1713;
    --card: #14211C;
    --photo: #FEFEFD;
    --ink: #ECEFEA;
    --muted: #A9B6AE;
    --line: rgb(236 239 234 / .13);
    --ribbon-deep: #F0B9C8;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  background: var(--tissue);
  color: var(--ink);
  font: 400 16px/1.5 var(--latin);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
[lang="ar"] { font-family: var(--arabic); }
::selection { background: var(--ribbon); color: #10150F; }
:focus-visible { outline: 2px solid var(--ribbon-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; background: var(--ribbon); color: #10150F; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.noscript { padding: 24px; text-align: center; }

/* ---------- shell ---------- */
.shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--tissue);
}
.desk-note { display: none; }
main { flex: 1; outline: none; }

/* ---------- top bar (the box lid edge) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  min-height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 20px 0;
  background: var(--emerald);
  color: var(--on-emerald);
}
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.mark-icon { width: 36px; height: 38px; flex: none; margin: -4px 0; }
.mark-ar { font-weight: 800; font-size: 24px; line-height: 1; color: var(--foil); }
.mark-en { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--on-emerald-muted); }
.kept { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.15; }
.kept-label { font-size: 12px; color: var(--on-emerald-muted); }
.kept-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kept-value.bump { animation: glint .9s var(--ease); }
@keyframes glint { 30% { transform: translateY(-3px) scale(1.06); } }

/* ---------- tab bar ---------- */
.tabbar {
  position: sticky; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--tissue) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar[hidden] { display: none; }
.tabbar a, .tabbar button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border: 0; background: none; text-decoration: none;
  color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 12px;
  transition: color .2s;
}
.tabbar .active { color: var(--ink); font-weight: 700; }
.tabbar .active::before {
  content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ink);
}
.tabbar a:active, .tabbar button:active { transform: scale(.94); }
.badge {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--tissue); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.badge[hidden] { display: none; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

/* ---------- buttons ---------- */
.ribbon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--ribbon); color: #10150F;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .45);
  transition: transform .15s var(--ease), box-shadow .2s, filter .2s;
}
.ribbon-btn svg { width: 20px; height: 20px; }
.ribbon-btn:hover { filter: brightness(1.04); }
.ribbon-btn:active { transform: scale(.97) translateY(1px); box-shadow: 0 4px 10px -8px rgb(0 0 0 / .35); }
.ribbon-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ribbon-btn.block { width: 100%; }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.ghost-btn:hover { border-color: var(--ink); }
.ghost-btn:active { transform: scale(.97); }
.ghost-btn svg { width: 20px; height: 20px; }
.text-btn { border: 0; background: none; padding: 10px 4px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: inherit; }
.icon-btn:active { transform: scale(.94); }

/* ---------- home: lid ---------- */
.lid {
  background: var(--emerald);
  color: var(--on-emerald);
  padding: 0 20px calc(var(--r-sheet) + 22px);
  position: relative; overflow: hidden;
}
.lid-img { width: min(78%, 330px); margin: 0 -6px -18px auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 26px 22px rgb(0 0 0 / .38)); animation: present 1.1s var(--ease) both; }
@keyframes present { from { opacity: 0; transform: translateY(-26px) scale(.96); } }
.lid-copy { margin-top: 0; position: relative; }
.lid h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.04; letter-spacing: -.035em; font-weight: 380; }
.lid h1 span { display: block; font-weight: 800; }
.lid-sub { margin: 12px 0 20px; max-width: 32ch; color: var(--on-emerald-muted); font-size: 16px; }

/* tissue sheet sliding over the lid */
.tissue {
  position: relative; z-index: 1;
  margin-top: calc(var(--r-sheet) * -1);
  background: var(--tissue);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 18px 0 32px;
}
.tissue::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 16px; }

.search { position: relative; margin: 0 20px 14px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 16px 0 46px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 16px;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: 2px solid var(--ribbon-deep); outline-offset: 1px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 4px; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.chip[aria-pressed="true"] { background: var(--emerald); color: var(--on-emerald); border-color: var(--emerald); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 28px 20px 12px; }
.sec-head h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 700; }
.sec-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* most-wanted rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 12px; overflow-x: auto; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .pcard { scroll-snap-align: start; }
.rail .pcard-img { border-radius: 22px; }
.rail .pcard-name { font-size: 16px; }

/* product grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; padding: 0 20px; }
.pcard { display: flex; flex-direction: column; gap: 3px; text-decoration: none; min-width: 0; }
.pcard-img { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--photo); margin-bottom: 8px; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:active .pcard-img img { transform: scale(.97); }
@media (hover: hover) { .pcard:hover .pcard-img img { transform: scale(1.04); } }
.pcard-brand { font-size: 13px; font-weight: 700; color: var(--emerald); }
.pcard-name { font-size: 14px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pcard-from { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.pcard-from svg { width: 14px; height: 14px; }
.flag { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 8px; background: var(--emerald); color: var(--on-emerald); font-size: 11px; font-weight: 700; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 20px; }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

.how { margin: 36px 20px 0; padding: 22px; border-radius: 22px; background: var(--emerald); color: var(--on-emerald); display: grid; gap: 16px; }
.how h2 { font-size: 20px; letter-spacing: -.02em; }
.how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--on-emerald-muted); }
.how li strong { color: var(--on-emerald); display: block; font-size: 15px; }
.how li svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgb(255 255 255 / .08); color: var(--on-emerald); }
.fineprint { padding: 28px 20px 8px; font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.fineprint p { margin: 0; }

/* ---------- product ---------- */
.pdp-stage { position: relative; background: var(--photo); }
.pdp-stage img { width: 100%; aspect-ratio: 4 / 5; max-height: 60dvh; object-fit: contain; margin: 0 auto; }
.float-btn {
  position: absolute; top: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0;
  display: grid; place-items: center; background: #FDFDFB; color: #10150F; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .3);
}
.float-btn svg { width: 22px; height: 22px; }
.float-btn.left { left: 16px; } .float-btn.right { right: 16px; }
.pdp-sheet { position: relative; margin-top: calc(var(--r-sheet) * -1); background: var(--tissue); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 26px 20px 130px; display: grid; gap: 20px; }
.pdp-brand { font-size: 15px; font-weight: 700; color: var(--emerald); }
.pdp-sheet h1 { font-size: 28px; line-height: 1.08; letter-spacing: -.03em; font-weight: 750; margin-top: 2px; }
.pdp-ref { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.pdp-price { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pdp-price small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.origin { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.origin svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--emerald); color: var(--on-emerald); }
.origin strong { display: block; font-size: 15px; }
.origin span { font-size: 13px; color: var(--muted); }
.opt-label { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.opt-label b { color: var(--ink); font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button {
  min-height: 44px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.opts button small { font-size: 11px; font-weight: 500; color: var(--muted); }
.opts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-desc { margin: 0; font-size: 16px; color: var(--muted); }
.note { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.reviews h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 4px; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; }
.stars { display: flex; gap: 2px; color: var(--ink); }
.stars svg { width: 14px; height: 14px; }
.review h3 { font-size: 15px; margin: 6px 0 2px; }
.review p { margin: 0; font-size: 15px; color: var(--muted); }
.review footer { font-size: 13px; color: var(--muted); margin-top: 6px; }

.actionbar {
  position: fixed; bottom: 0; left: 50%; translate: -50% 0; z-index: 35;
  width: min(var(--shell), 100%);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--tissue) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.ab-price { font-weight: 750; font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ab-price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.actionbar.stack { grid-template-columns: 1fr; gap: 6px; }
.actionbar.stack p { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- bag sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgb(10 44 34 / .45); opacity: 0; transition: opacity .3s; }
.sheet-panel {
  position: absolute; bottom: 0; left: 50%; width: min(var(--shell), 100%);
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--tissue); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  transform: translate(-50%, 100%); transition: transform .4s var(--ease);
  box-shadow: 0 -12px 40px -16px rgb(0 0 0 / .3);
}
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 10px auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 20px; }
.sheet-head h2 { font-size: 22px; letter-spacing: -.02em; }
.sheet-body { flex: 1; overflow: auto; padding: 0 20px; overscroll-behavior: contain; }
.sheet-foot { padding: 14px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sheet-foot:empty { display: none; }

.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 68px; height: 85px; object-fit: cover; border-radius: 12px; background: var(--photo); }
.line-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.line-var { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 44px; height: 40px; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty button svg { width: 18px; height: 18px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum.muted { color: var(--muted); font-size: 14px; }
.sum.total { font-size: 18px; font-weight: 750; }
.sum.zero { font-weight: 700; color: var(--emerald); }
.bag-empty { text-align: center; padding: 20px 8px 36px; color: var(--muted); }
.bag-empty svg { width: 56px; height: 56px; color: var(--emerald); margin: 0 auto 10px; display: block; }
.bag-empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.bag-empty .ribbon-btn { margin-top: 18px; }

/* ---------- page head (checkout) ---------- */
.page-head { display: flex; align-items: center; gap: 4px; padding: 12px 12px 4px 8px; }
.page-head h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 750; }

/* ---------- checkout ---------- */
.checkout { padding: 4px 20px 170px; display: grid; gap: 30px; }
.checkout h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.checkout h2 .text-btn { font-size: 14px; padding: 0; letter-spacing: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card);
  font-size: 16px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: 2px solid var(--ribbon-deep); outline-offset: 1px; }
.field input::placeholder { color: var(--muted); opacity: .75; }
.field .err { display: none; font-size: 13px; font-weight: 600; color: var(--ribbon-deep); }
.field.invalid input, .field.invalid select { border-color: var(--ribbon-deep); box-shadow: inset 0 0 0 1px var(--ribbon-deep); }
.field.invalid .err { display: block; }
.phone { display: grid; grid-template-columns: auto 1fr; }
.phone span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--tissue); font-weight: 600; font-variant-numeric: tabular-nums; }
.phone input { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--ribbon-deep); outline-offset: 2px; }
.choice > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--tissue); color: var(--emerald); }
.choice strong { display: block; font-size: 15px; }
.choice span { font-size: 13px; color: var(--muted); }
.choice .tick { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line); display: grid; place-items: center; }
.choice:has(input:checked) .tick { border-color: var(--ink); background: var(--ink); }
.choice:has(input:checked) .tick::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--tissue); }

.khayal {
  position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 340px; margin-top: 12px;
  border-radius: 18px; padding: 20px; color: var(--on-emerald); background: var(--emerald);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 36px -18px rgb(0 0 0 / .45);
}
.kh-top { display: flex; justify-content: space-between; align-items: flex-start; }
.kh-bank { display: grid; line-height: 1.25; }
.kh-bank [lang="ar"] { font-weight: 700; font-size: 18px; }
.kh-bank span:last-child { font-size: 11px; color: var(--on-emerald-muted); }
.kh-mark { color: var(--foil); font-weight: 800; font-size: 20px; line-height: 1; }
.kh-num { font-size: 19px; letter-spacing: .1em; font-variant-numeric: tabular-nums; font-weight: 600; }
.kh-bot { display: flex; justify-content: space-between; font-size: 13px; }
.kh-bot small { display: block; font-size: 10px; color: var(--on-emerald-muted); }

.summary { display: grid; gap: 10px; }
.summary .line { grid-template-columns: 52px 1fr auto; padding: 10px 0; }
.summary .line img { width: 52px; height: 65px; }

/* ---------- wrapping stage (signature) ---------- */
.wrap-stage {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px;
  background: var(--emerald-deep); color: var(--on-emerald);
}
.wrap-stage[hidden] { display: none; }
.wrap-box { position: relative; width: min(78vw, 340px); aspect-ratio: 1; }
.wrap-box > img:not(.seal) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 24px rgb(0 0 0 / .45)); transition: transform .9s var(--ease), opacity .6s, filter .6s; }
.wb-open { opacity: 0; transform: translateY(24px) scale(.94); }
.wb-closed { opacity: 0; transform: translateY(-90px) scale(1.04); }
.wrap-stage.s1 .wb-open { opacity: 1; transform: none; }
.wrap-stage.s2 .wb-open { opacity: 0; transition-delay: .25s; }
.wrap-stage.s2 .wb-closed { opacity: 1; transform: none; }
.seal { position: absolute; left: 52.5%; top: 38%; width: 21%; aspect-ratio: 1; translate: -50% -50%; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .4)); opacity: 0; transform: scale(2.4) rotate(-20deg); }
.wrap-stage.s3 .seal { animation: stamp .6s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes stamp { to { opacity: 1; transform: scale(1) rotate(-8deg); } }
.wrap-text { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 18px 0 0; min-height: 1.3em; }
.wrap-sub { margin: 0; color: var(--on-emerald-muted); font-size: 15px; min-height: 1.5em; font-variant-numeric: tabular-nums; }


/* ---------- tracking ---------- */
.track-head { background: var(--emerald); color: var(--on-emerald); padding: 10px 20px calc(var(--r-sheet) + 22px); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.track-head .oid { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--on-emerald-muted); font-variant-numeric: tabular-nums; }
.track-head h1 { font-size: 30px; line-height: 1.05; letter-spacing: -.03em; font-weight: 750; }
.eta { text-align: right; }
.eta small { display: block; font-size: 12px; color: var(--on-emerald-muted); }
.eta strong { font-size: 30px; line-height: 1.1; font-weight: 750; color: var(--on-emerald); font-variant-numeric: tabular-nums; white-space: nowrap; }
.track-body { position: relative; margin-top: calc(var(--r-sheet) * -1); background: var(--tissue); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 24px 20px 36px; display: grid; gap: 24px; }

.route { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.route::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(to bottom, var(--muted) 0 5px, transparent 5px 11px); opacity: .45; }
.stops { list-style: none; margin: 0; padding: 0; }
.route-fill { position: absolute; left: 13px; top: 14px; bottom: 14px; width: 6px; border-radius: 6px; background: var(--ribbon); transform-origin: top; transform: scaleY(0); transition: transform .45s linear; }
.stop { position: relative; padding: 4px 0 20px; min-height: 48px; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: -36px; top: 8px; width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--muted); background: var(--tissue); z-index: 1; }
.stop.done::before { background: var(--ink); border-color: var(--ink); }
.stop strong { display: block; font-size: 15px; line-height: 1.3; padding-right: 52px; }
.stop span { font-size: 13px; color: var(--muted); }
.stop:not(.done) strong { color: var(--muted); font-weight: 600; }
.stop.current strong { color: var(--ink); font-weight: 700; }
.stop time { position: absolute; right: 0; top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.courier-pin {
  position: absolute; left: 0; top: 0; z-index: 2; width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ribbon); color: #10150F;
  box-shadow: 0 0 0 4px var(--tissue), 0 6px 12px -6px rgb(0 0 0 / .35);
  transition: transform .45s linear, opacity .6s;
}
.courier-pin svg { width: 18px; height: 18px; }

.courier { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.courier-av { width: 52px; height: 52px; border-radius: 16px; background: var(--emerald); color: var(--on-emerald); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.courier strong { display: block; font-size: 16px; }
.courier span { font-size: 13px; color: var(--muted); }
.courier-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.block-title { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 16px; border: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.demo .ghost-btn { min-height: 40px; font-size: 14px; flex: none; }

.finale { background: var(--emerald-deep); color: var(--on-emerald); padding: 8px 20px calc(var(--r-sheet) + 26px); text-align: center; display: grid; justify-items: center; }
.fin-box { position: relative; width: min(80%, 320px); aspect-ratio: 1; }
.fin-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 24px rgb(0 0 0 / .45)); }
.fin-open { animation: reveal .9s .5s var(--ease) both; }
.fin-lid { animation: liftoff 1.1s .35s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes reveal { from { opacity: 0; transform: scale(.97); } }
@keyframes liftoff { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-120px) rotate(-6deg) scale(1.05); } }
@keyframes lift { from { transform: translateY(26px) scale(.92); opacity: 0; filter: blur(8px); } }
.finale .big-ar { font-size: 56px; line-height: 1.15; font-weight: 800; color: var(--foil); margin: 22px 0 4px; animation: lift 1s .25s var(--ease) both; }
.finale h1 { font-size: 22px; letter-spacing: -.02em; font-weight: 700; margin-top: 2px; animation: lift 1s .35s var(--ease) both; }
.finale .kept-big { margin: 14px 0 20px; animation: lift 1s .45s var(--ease) both; }
.finale .kept-big small { display: block; font-size: 13px; color: var(--on-emerald-muted); }
.finale .kept-big strong { font-size: 40px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.finale-actions { display: grid; gap: 4px; justify-items: center; width: 100%; animation: lift 1s .55s var(--ease) both; }
.finale-actions .ribbon-btn { width: min(100%, 320px); }
.finale .text-btn { color: var(--on-emerald-muted); }

/* ---------- orders ---------- */
.vault { background: var(--emerald); color: var(--on-emerald); padding: 10px 20px calc(var(--r-sheet) + 26px); }
.vault h1 { font-size: 16px; font-weight: 600; color: var(--on-emerald-muted); }
.vault strong { display: block; font-size: clamp(34px, 11vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 750; color: var(--on-emerald); font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.vault p { margin: 0; color: var(--on-emerald-muted); font-size: 15px; }
.orders { position: relative; margin-top: calc(var(--r-sheet) * -1); background: var(--tissue); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 22px 20px 36px; display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.orow img { width: 56px; height: 70px; object-fit: cover; border-radius: 12px; background: var(--photo); }
.orow strong { display: block; font-size: 15px; line-height: 1.25; }
.orow span { font-size: 13px; color: var(--muted); }
.orow .price { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.state { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 700; }
.state svg { width: 14px; height: 14px; }
.state.never { color: var(--emerald); }
.state.moving { color: var(--ribbon-deep); }

/* dark-mode colour swaps for emerald-on-tissue text */
@media (prefers-color-scheme: dark) {
  .pcard-brand, .pdp-brand, .sum.zero, .state.never, .choice > svg, .bag-empty svg { color: var(--on-emerald); }
}

/* ---------- loading states: spinners and skeletons ---------- */
.spin { width: 18px; height: 18px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; flex: none; animation: rot .7s linear infinite; opacity: .8; }
@keyframes rot { to { transform: rotate(360deg); } }
.is-busy { cursor: progress; }
.ribbon-btn.is-busy, .ghost-btn.is-busy, .text-btn.is-busy { gap: 10px; }
.skel .pcard-img, .skel-block, .skel-line, .skel-card {
  background: linear-gradient(100deg, rgb(16 21 15 / .06) 30%, rgb(16 21 15 / .11) 50%, rgb(16 21 15 / .06) 70%);
  background-size: 300% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  .skel .pcard-img, .skel-block, .skel-line, .skel-card { background-image: linear-gradient(100deg, rgb(236 239 234 / .06) 30%, rgb(236 239 234 / .12) 50%, rgb(236 239 234 / .06) 70%); }
}
.skel-line.on-dark { background-image: linear-gradient(100deg, rgb(238 242 236 / .08) 30%, rgb(238 242 236 / .16) 50%, rgb(238 242 236 / .08) 70%); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel-line { display: block; height: 14px; border-radius: 6px; margin: 6px 0; }
.skel-line.h24 { height: 24px; } .skel-line.h28 { height: 28px; } .skel-line.h40 { height: 40px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; }
.skel-card { display: block; height: 72px; border-radius: 18px; margin-top: 10px; }
.pdp-stage.skel-block { aspect-ratio: 4 / 5; max-height: 60dvh; width: 100%; }
.pcard.skel { pointer-events: none; }
.orow.skel { min-height: 96px; }
.orow.skel .skel-block { width: 56px; height: 70px; border-radius: 12px; }

/* ---------- processing card ---------- */
.proc { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 24px; background: rgb(10 44 34 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.proc.show { opacity: 1; }
.proc-card { width: min(340px, 100%); background: var(--tissue); color: var(--ink); border-radius: 24px; padding: 28px 24px; display: grid; justify-items: center; gap: 6px; text-align: center; box-shadow: 0 24px 60px -24px rgb(0 0 0 / .5); transform: translateY(12px) scale(.98); transition: transform .35s var(--ease); }
.proc.show .proc-card { transform: none; }
.proc-spin { width: 44px; height: 44px; border-radius: 999px; border: 3px solid var(--line); border-top-color: var(--emerald); animation: rot .8s linear infinite; margin-bottom: 10px; position: relative; }
@media (prefers-color-scheme: dark) { .proc-spin { border-top-color: var(--ribbon); } }
.proc-spin.ok { animation: none; border-color: var(--emerald); background: var(--emerald); }
.proc-spin.ok::after { content: ""; position: absolute; left: 14px; top: 8px; width: 9px; height: 17px; border: solid var(--on-emerald); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.proc-text { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.proc-sub { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; font-variant-numeric: tabular-nums; }

/* ---------- gift entry points ---------- */
.gift-promo, .gift-row, .loc-card {
  display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); width: 100%; text-align: left;
}
.gift-promo { margin: 22px 20px 0; width: auto; }
.gift-promo > svg:first-child, .gift-row > svg:first-child { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--emerald); color: var(--on-emerald); }
.gift-promo > svg:last-child, .gift-row > svg:last-child, .loc-card > svg:last-child { width: 18px; height: 18px; color: var(--muted); }
.gift-promo strong, .gift-row strong, .loc-card strong { display: block; font-size: 15px; }
.gift-promo span, .gift-row span, .loc-txt span { font-size: 13px; color: var(--muted); display: block; }
.gift-promo:active, .gift-row:active, .loc-card:active { transform: scale(.99); }

/* ---------- location card + picker ---------- */
.loc-card { cursor: pointer; font: inherit; }
.loc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tissue); color: var(--emerald); }
.loc-card.set .loc-ico { background: var(--emerald); color: var(--on-emerald); }
.loc-ico svg { width: 22px; height: 22px; }
.loc-edit { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; }
#loc-field { margin-bottom: 14px; }
#loc-field.invalid .loc-card { border-color: var(--ribbon-deep); box-shadow: inset 0 0 0 1px var(--ribbon-deep); }
.picker { position: fixed; inset: 0; z-index: 75; background: var(--tissue); opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .4s var(--ease); }
.picker.open { opacity: 1; transform: none; }
@media (min-width: 900px) { .picker { left: 50%; width: var(--shell); translate: -50% 0; border-radius: 36px; overflow: hidden; top: 24px; bottom: 24px; } }
.picker > .picker-map { position: absolute; inset: 0 0 170px; }
.picker-pin { position: absolute; left: 50%; top: calc((100% - 170px) / 2); width: 46px; height: 46px; margin: -46px 0 0 -23px; color: var(--emerald); pointer-events: none; transition: transform .2s var(--ease); filter: drop-shadow(0 6px 6px rgb(0 0 0 / .3)); }
.picker-pin svg { width: 46px; height: 46px; }
.picker-dot { position: absolute; left: 50%; bottom: -5px; width: 10px; height: 4px; margin-left: -5px; border-radius: 50%; background: rgb(0 0 0 / .35); }
.picker.moving .picker-pin { transform: translateY(-12px); }
.picker-top { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; }
.picker-top .float-btn { position: static; }
.picker-top h2 { font-size: 16px; font-weight: 700; background: var(--card); color: var(--ink); padding: 11px 16px; border-radius: 999px; box-shadow: var(--shadow); flex: 1; }
.picker-locate { position: absolute; right: 14px; bottom: 214px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.picker.locating .picker-locate svg { animation: rot 1s linear infinite; }
.picker-sheet { position: absolute; left: 0; right: 0; bottom: 0; min-height: 190px; padding: 18px 20px calc(18px + var(--safe-b)); background: var(--tissue); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px -18px rgb(0 0 0 / .4); display: grid; gap: 10px; }
.picker-hint { margin: 0; font-size: 13px; color: var(--muted); }
.picker-addr { min-height: 46px; }
.picker-addr strong { display: block; font-size: 17px; }
.picker-addr span { font-size: 14px; color: var(--muted); }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* ---------- live tracking (map + sheet) ---------- */
.trk { position: relative; }
.trk-map { height: 52dvh; min-height: 300px; background: #EEF1EC; position: relative; }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.map-loading.page { position: static; min-height: 60dvh; }
.trk-sheet { position: relative; z-index: 2; margin-top: -26px; background: var(--tissue); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 22px 20px 36px; display: grid; gap: 22px; box-shadow: 0 -10px 30px -20px rgb(0 0 0 / .35); }
.trk-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.trk-head .oid { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trk-head h1 { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; font-weight: 750; }
.trk-head .eta strong { color: var(--ink); font-size: 26px; }
.trk-head .eta small { color: var(--muted); }
.trk-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: -8px; }
.trk-progress span { display: block; height: 100%; background: var(--emerald); transform-origin: left; transform: scaleX(0); transition: transform .5s linear; }
@media (prefers-color-scheme: dark) { .trk-progress span { background: var(--on-emerald); } }
.addr { margin: 0; color: var(--muted); }
.stops-v { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.stops-v::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.stops-v .stop { position: relative; padding: 2px 0 14px; min-height: 0; }
.stops-v .stop:last-child { padding-bottom: 0; }
.stops-v .stop::before { left: -26px; top: 5px; width: 14px; height: 14px; }
.stops-v .stop strong { padding-right: 0; }
.stops-v .stop.current::before { background: var(--ribbon); border-color: var(--ribbon); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ribbon) 30%, transparent); }
.mk { display: grid; place-items: center; border-radius: 999px; }
.mk svg { width: 20px; height: 20px; }
.mk-origin { width: 34px; height: 34px; background: var(--emerald); color: var(--on-emerald); box-shadow: 0 4px 10px -4px rgb(0 0 0 / .45); border: 2px solid #FDFDFB; }
.mk-dest-in { width: 38px; height: 38px; display: grid; place-items: center; color: #FDFDFB; background: var(--emerald); border-radius: 999px 999px 999px 4px; transform: rotate(-45deg); box-shadow: 0 6px 12px -6px rgb(0 0 0 / .5); border: 2px solid #FDFDFB; }
.mk-dest-in svg { width: 20px; height: 20px; transform: rotate(45deg); }
.mk-dest { padding-bottom: 6px; }
.mk-rider { width: 44px; height: 44px; background: var(--ribbon); color: #10150F; border: 3px solid #FDFDFB; box-shadow: 0 8px 18px -6px rgb(0 0 0 / .45); transition: opacity .6s; }
.mk-rider .mk-rot { display: grid; place-items: center; transition: transform .6s var(--ease); }
.mk-rider svg { width: 22px; height: 22px; }
.sender-bar { margin: 0; padding: 10px 20px; background: var(--emerald-deep); color: var(--on-emerald-muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.sender-bar svg { width: 16px; height: 16px; }

/* ---------- gift form ---------- */
.gift-hero { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.gift-hero img { width: 110px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--photo); }
.gift-hero h2 { font-size: 20px; margin: 0 0 2px; display: block; }
.gift-item-brand { margin: 0; font-size: 13px; font-weight: 700; color: var(--emerald); }
.gift-item-var { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.gift-price { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.gift-price strong { color: var(--ink); font-size: 16px; }
.gift-how { list-style: none; margin: 0; padding: 16px; border-radius: 18px; background: var(--emerald); color: var(--on-emerald-muted); display: grid; gap: 12px; font-size: 14px; }
.gift-how li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.gift-how svg { width: 20px; height: 20px; color: var(--on-emerald); margin-top: 1px; }
.gift-how strong { color: var(--on-emerald); }
.field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); font: inherit; font-size: 16px; resize: vertical; min-height: 84px; }
.field textarea:focus { outline: 2px solid var(--ribbon-deep); outline-offset: 1px; }
.counter { font-size: 12px; color: var(--muted); justify-self: end; font-variant-numeric: tabular-nums; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--emerald); }
.consent-err { display: none; font-size: 13px; font-weight: 600; color: var(--ribbon-deep); margin: 8px 0 0 36px; }
.need-consent .consent-err { display: block; }
#preview { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
#preview svg { width: 18px; height: 18px; }
.pay-sum { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 6px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pay-sum img { width: 56px; height: 70px; object-fit: cover; border-radius: 12px; background: var(--photo); }
.pay-sum strong { display: block; font-size: 15px; }
.pay-sum span { font-size: 13px; color: var(--muted); }
.pay-sum b { font-variant-numeric: tabular-nums; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
.secure-note svg { width: 16px; height: 16px; }
.mail-frame { width: 100%; height: 62dvh; border: 1px solid var(--line); border-radius: 14px; background: #F1F3EF; }
.sum-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.finale.sent { padding-top: 18px; }
.finale.sent h1 { font-size: 26px; margin-top: 8px; }
.fin-box.still img { position: static; width: 100%; height: auto; }
.fin-box.still { width: min(56%, 220px); }
.sent-sub { margin: 8px 0 18px; color: var(--on-emerald-muted); max-width: 34ch; }
.sent-sub strong { color: var(--on-emerald); }
.finale-actions .text-btn { display: inline-flex; align-items: center; gap: 6px; }
.finale-actions .text-btn svg { width: 18px; height: 18px; }
.orow.static { cursor: default; }
.orders .ghost-btn { justify-self: start; }
.hint.center { text-align: center; }

/* ---------- gift recipient (Yawsal) ---------- */
.gift-lid .lid-img { width: min(70%, 290px); }
.gift-lid h1 { font-size: clamp(30px, 9vw, 40px); }
.gift-lid h1 span { font-weight: 400; color: var(--on-emerald-muted); font-size: .7em; margin-top: 6px; letter-spacing: -.02em; }
.gift-sheet { padding: 22px 20px 36px; display: grid; gap: 18px; }
.gift-sheet::before { margin-bottom: 0; }
.gift-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.gift-item img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--photo); }
.gift-item h2 { font-size: 18px; margin: 2px 0 0; }
.gift-item.small { grid-template-columns: 64px 1fr; }
.gift-item.small img { width: 64px; }
.gift-item.small h2 { font-size: 16px; }
.gift-msg { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--ribbon); }
.gift-msg p { margin: 0; font-size: 17px; font-style: italic; line-height: 1.45; }
.gift-msg footer { margin-top: 4px; font-size: 14px; color: var(--muted); }
.gift-msg.on-dark { text-align: left; margin: 0 0 22px; max-width: 34ch; }
.gift-msg.on-dark p { color: var(--on-emerald); }
.gift-msg.on-dark footer { color: var(--on-emerald-muted); }
.gift-cta { position: sticky; bottom: calc(12px + var(--safe-b)); }
.gift-load { padding: 24px 20px; display: grid; gap: 8px; }
.gift-load .skel-block { height: 280px; border-radius: 24px; margin-bottom: 8px; }
.reveal { min-height: calc(100dvh - var(--top-h)); background: var(--emerald-deep); color: var(--on-emerald); padding: 18px 20px 40px; display: grid; justify-items: center; align-content: start; text-align: center; }
.rv-mark { margin: 6px 0 4px; font-size: 64px; line-height: 1.15; font-weight: 800; color: var(--foil); display: flex; flex-direction: row; }
.rv-ma { display: inline-block; overflow: hidden; max-width: 0; opacity: 0; animation: ma 1s .9s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes ma { to { max-width: 2em; opacity: 1; } }
.reveal h1 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin-top: 14px; animation: lift 1s 1.3s var(--ease) both; }
.rv-sub { margin: 8px 0 20px; color: var(--on-emerald-muted); max-width: 34ch; animation: lift 1s 1.45s var(--ease) both; }
.rv-sub strong { color: var(--on-emerald); }
.reveal .gift-msg, .reveal .finale-actions { animation: lift 1s 1.6s var(--ease) both; }
.reveal .finale-actions .text-btn { color: var(--on-emerald-muted); }
body[data-brand="yawsal"] .tabbar { display: none; }

/* ---------- links into the Bahrain price guides ---------- */
.guide-link { display: grid; grid-template-columns: 22px 1fr 18px; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.guide-link svg { width: 20px; height: 20px; color: var(--muted); }
.seo-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 20px 18px; font-size: 13px; }
.seo-links a { color: var(--muted); }
body[data-brand="yawsal"] .seo-links { display: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-b)); z-index: 70;
  max-width: min(420px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 16px;
  background: var(--emerald-deep); color: var(--on-emerald); font-size: 14px; font-weight: 500; text-align: center;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- page transitions ---------- */
.enter { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- desktop: frame the phone ---------- */
@media (min-width: 900px) {
  body { background: var(--emerald-deep); }
  .shell { margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 36px; overflow: clip; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(238 242 236 / .08); }
  .desk-note { display: block; position: fixed; left: max(32px, calc(50% - var(--shell) / 2 - 380px)); top: 50%; translate: 0 -50%; width: 300px; color: var(--on-emerald); }
  .desk-icon { width: 120px; height: auto; margin-bottom: 18px; }
  .desk-mark { font-size: 76px; font-weight: 800; color: var(--foil); margin: 0; line-height: 1.1; }
  .desk-line { font-size: 18px; color: var(--on-emerald-muted); margin: 16px 0 0; }
  .actionbar { bottom: 24px; border-radius: 0 0 36px 36px; }
  .toast { bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
