/* Home page "live demo" block — a 3D tablet running a miniature of the real RAWA POS. */
.dh {
  --dh-stage: #e9edf5; --dh-grid: rgba(47, 107, 255, 0.18);
  /* miniature POS palette = the real POS tokens (light) */
  --m-bg: #f5f6f8; --m-surface: #ffffff; --m-alt: #eceef2; --m-ink: #16181c; --m-muted: #888e99; --m-line: rgba(16, 18, 22, 0.09);
  position: relative; display: block; margin: 0.6rem auto 2.6rem; max-width: 1060px; border-radius: 28px;
  background: var(--dh-stage); border: 1px solid var(--rawa-border, rgba(16, 18, 22, 0.09));
  overflow: hidden; isolation: isolate; text-decoration: none; color: var(--rawa-text, #16181c); cursor: pointer;
}
:root[data-theme="dark"] .dh { --dh-stage: #12161d; --dh-grid: rgba(76, 130, 255, 0.22); }
.dh:focus-visible { outline: 3px solid var(--rawa-accent, #2f6bff); outline-offset: 4px; }
.dh-floor {
  position: absolute; inset: auto -40% -38% -40%; height: 90%; z-index: -1;
  transform: perspective(700px) rotateX(72deg); transform-origin: 50% 0;
  background-image: linear-gradient(var(--dh-grid) 1px, transparent 1px), linear-gradient(90deg, var(--dh-grid) 1px, transparent 1px);
  background-size: 56px 56px; animation: dh-floor 6s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
@keyframes dh-floor { to { background-position: 0 56px, 0 0; } }
.dh-halo {
  position: absolute; width: 560px; height: 560px; border-radius: 50%; left: 50%; top: 46%; z-index: -1;
  transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(47, 107, 255, 0.28), transparent 62%);
  animation: dh-breathe 5s ease-in-out infinite;
}
@keyframes dh-breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.75; } }
.dh-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr); align-items: center; gap: 8px; padding: 34px 34px 30px; }
.dh-copy { position: relative; z-index: 3; text-align: start; }
.dh-live {
  display: inline-flex; align-items: center; gap: 8px; background: var(--rawa-card, #fff); border: 1px solid var(--rawa-border, rgba(16, 18, 22, 0.09));
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--rawa-accent, #2f6bff);
}
.dh-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4d; animation: dh-ping 1.6s infinite; }
@keyframes dh-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 77, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(255, 59, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 77, 0); }
}
.dh-fast { display: flex; align-items: center; gap: 8px; margin: 0.85rem 0 0; font-weight: 700; font-size: 0.95rem; color: var(--rawa-text, #16181c); }
.dh-fast svg { width: 18px; height: 18px; color: #fff; background: var(--rawa-accent, #2f6bff); border-radius: 6px; padding: 3px; flex: 0 0 auto; }
.dh-copy h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.35; margin: 0.7rem 0 0.5rem; text-wrap: balance; color: var(--rawa-text, #16181c); }
.dh-copy h2 em { font-style: normal; color: var(--rawa-accent, #2f6bff); }
.dh-copy p { color: var(--rawa-text-secondary, #565c66); margin: 0 0 1.1rem; line-height: 1.8; font-size: 0.97rem; }
.dh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.3rem; }
.dh-chip {
  font-size: 0.78rem; font-weight: 600; color: var(--rawa-text-secondary, #565c66); background: var(--rawa-card, #fff);
  border: 1px solid var(--rawa-border, rgba(16, 18, 22, 0.09)); padding: 0.35rem 0.75rem; border-radius: 999px;
  display: inline-flex; gap: 6px; align-items: center;
}
.dh-chip svg { width: 14px; height: 14px; color: var(--rawa-accent, #2f6bff); }
.dh-go {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; background: var(--rawa-accent, #2f6bff); color: #fff;
  font-weight: 700; font-size: 1.02rem; padding: 0 1.4rem; min-height: 54px; border-radius: 14px;
  box-shadow: 0 14px 34px -12px rgba(47, 107, 255, 0.7); transition: transform 0.2s;
}
.dh:hover .dh-go { transform: translateY(-2px); }
.dh-go::after {
  content: ""; position: absolute; inset: 0; transform: translateX(120%); animation: dh-shine 3.2s ease-in-out infinite;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
}
@keyframes dh-shine { 0%, 55% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.dh-go svg { width: 20px; height: 20px; }
[dir="rtl"] .dh-go svg, .dh[dir="rtl"] .dh-go svg { transform: none; }
.dh[dir="ltr"] .dh-go svg { transform: scaleX(-1); }
.dh-note { display: block; margin-top: 0.7rem; font-size: 0.78rem; color: var(--rawa-text-3, #888e99); }

/* ---------- 3D scene ---------- */
.dh-scene { position: relative; height: 450px; perspective: 1300px; z-index: 2; }
.dh-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: scale(var(--dh-s, 0.94)); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (max-width: 1180px) { .dh { --dh-s: 0.88; } }
@media (max-width: 1040px) { .dh { --dh-s: 0.8; } }
.dh-float { position: absolute; inset: 0; transform-style: preserve-3d; animation: dh-bob 6s ease-in-out infinite; }
@keyframes dh-bob { 50% { transform: translateY(-10px) rotateZ(-0.6deg); } }
.dh-tab {
  position: absolute; left: 50%; top: 50%; width: 580px; height: 370px; margin: -185px 0 0 -290px; border-radius: 26px;
  background: #0d0f13; padding: 11px; transform: rotateY(-16deg) rotateX(8deg); transform-style: preserve-3d;
  box-shadow: 0 50px 80px -30px rgba(10, 20, 50, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.dh[dir="ltr"] .dh-tab { transform: rotateY(16deg) rotateX(8deg); }
.dh-tab::before { content: ""; position: absolute; inset: -1px; border-radius: 27px; transform: translateZ(-14px); background: #05070a; }

/* ---------- the miniature RAWA POS (mirrors the real screen) ---------- */
.m {
  position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--m-bg); color: var(--m-ink); font-family: Inter, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  transition: background 0.6s, color 0.6s;
}
.m.dark { --m-bg: #0e1013; --m-surface: #16191e; --m-alt: #1d2128; --m-ink: #eef0f3; --m-muted: #8a909b; --m-line: rgba(255, 255, 255, 0.08); }
.m-top { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--m-surface); border-bottom: 1px solid var(--m-line); transition: background 0.6s; }
.m-title { font-weight: 800; font-size: 10px; white-space: nowrap; }
.m-seg { display: flex; gap: 2px; padding: 2px; background: var(--m-alt); border-radius: 7px; }
.m-seg span { font-size: 8.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; color: var(--m-muted); white-space: nowrap; }
.m-seg span.on { background: var(--m-surface); color: var(--m-ink); }
.m-sp { margin-inline-start: auto; }
.m-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 800; color: #2f6bff; background: rgba(47, 107, 255, 0.14); padding: 3px 7px; border-radius: 999px; }
.m-pill i { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; }
.m-lang { font: 700 8px Inter, sans-serif; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--m-line); color: var(--m-ink); min-width: 22px; text-align: center; }
.m-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 150px; min-height: 0; }
.m-prod { padding: 7px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-search { height: 18px; border-radius: 6px; border: 1px solid var(--m-line); background: var(--m-surface); font-size: 7.5px; color: var(--m-muted); display: flex; align-items: center; padding: 0 6px; }
.m-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.m-cat { height: 30px; border-radius: 7px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; line-height: 1.15; transition: outline-color 0.3s; outline: 1.5px solid transparent; outline-offset: 1px; }
.m-cat small { font-size: 7px; font-weight: 700; opacity: 0.9; }
.m-cat.all { background: var(--m-surface); color: var(--m-ink); border: 1px solid var(--m-line); }
.m-cat.on { outline-color: #2f6bff; }
.m-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; flex: 1; min-height: 0; }
.m-item { border-radius: 8px; overflow: hidden; background: var(--m-surface); border: 1px solid var(--m-line); display: flex; flex-direction: column; transition: transform 0.2s, background 0.6s; }
.m-item img { width: 100%; height: 50px; object-fit: cover; display: block; }
.m-item .nm { font-size: 8px; font-weight: 700; padding: 3px 5px 0; line-height: 1.25; height: 22px; overflow: hidden; transition: opacity 0.3s; }
.m-item .pr { font: 700 8px Inter, sans-serif; color: #2f6bff; padding: 0 5px 4px; }
.m-item.tap { transform: scale(0.93); }
.m-cart { border-inline-start: 1px solid var(--m-line); background: var(--m-surface); display: flex; flex-direction: column; min-height: 0; transition: background 0.6s; }
.m-cart-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 7px 4px; font-size: 9px; font-weight: 800; }
.m-cart-h b { font: 800 7.5px Inter, sans-serif; background: rgba(47, 107, 255, 0.14); color: #2f6bff; padding: 1px 5px; border-radius: 999px; }
.m-tabs { display: flex; gap: 8px; padding: 0 7px 4px; font-size: 7.5px; font-weight: 700; color: var(--m-muted); border-bottom: 1px solid var(--m-line); }
.m-tabs span.on { color: var(--m-ink); border-bottom: 1.5px solid #2f6bff; padding-bottom: 2px; }
.m-lines { flex: 1; padding: 5px 6px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.m-line { display: flex; flex-direction: column; gap: 2px; padding: 4px 5px; border-radius: 6px; background: var(--m-bg); animation: m-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.m-line .n { font-size: 7.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-line .r { display: flex; justify-content: space-between; align-items: center; font: 700 7.5px Inter, sans-serif; }
.m-line .q { display: inline-flex; gap: 3px; align-items: center; color: var(--m-muted); }
.m-line .q i { font-style: normal; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--m-line); display: inline-flex; align-items: center; justify-content: center; font-size: 7px; }
@keyframes m-in { from { transform: translateY(-8px) scale(0.85); opacity: 0; } }
.m-foot { padding: 5px 7px 7px; border-top: 1px solid var(--m-line); display: flex; flex-direction: column; gap: 3px; }
.m-row { display: flex; justify-content: space-between; font-size: 7.5px; color: var(--m-muted); }
.m-row.g { font-size: 9px; font-weight: 800; color: var(--m-ink); }
.m-row.g b { font: 800 10px Inter, sans-serif; }
.m-acts { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 3px; margin-top: 2px; }
.m-acts span { font-size: 7px; font-weight: 800; border-radius: 6px; padding: 5px 2px; text-align: center; background: var(--m-alt); color: var(--m-ink); white-space: nowrap; overflow: hidden; }
.m-acts .pay { background: #2f6bff; color: #fff; transition: transform 0.2s, background 0.3s; }
.m-acts .pay.press { transform: scale(0.92); }
.m-nav { display: flex; justify-content: space-around; padding: 4px 0 5px; background: var(--m-surface); border-top: 1px solid var(--m-line); transition: background 0.6s; }
.m-nav span { width: 16px; height: 3px; border-radius: 3px; background: var(--m-line); }
.m-nav span.on { background: #2f6bff; width: 26px; }
.m-pay { position: absolute; inset: 0; background: rgba(5, 8, 14, 0.45); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.m-pay.show { opacity: 1; }
.m-pay-card { width: 170px; background: var(--m-surface); color: var(--m-ink); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 5px; transform: scale(0.9); transition: transform 0.25s; }
.m-pay.show .m-pay-card { transform: none; }
.m-pay-t { display: flex; justify-content: space-between; font-size: 8.5px; font-weight: 800; }
.m-pay-tot { display: flex; justify-content: space-between; align-items: center; background: var(--m-bg); border-radius: 7px; padding: 5px 7px; font-size: 8px; font-weight: 700; }
.m-pay-tot b { font: 800 12px Inter, sans-serif; }
.m-meth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.m-meth span { font: 700 7.5px Inter, sans-serif; text-align: center; padding: 4px 0; border-radius: 6px; border: 1px solid var(--m-line); }
.m-meth span.on { background: #2f6bff; color: #fff; border-color: #2f6bff; }
.m-done { font-size: 8.5px; font-weight: 800; text-align: center; padding: 6px; border-radius: 7px; background: #2f6bff; color: #fff; transition: background 0.3s; }
.m-done.ok { background: #1f9e5b; }
.m-banner { display: none; font-size: 8px; font-weight: 800; color: #1f9e5b; background: rgba(31, 158, 91, 0.12); border-radius: 6px; padding: 4px 6px; }
.m-banner.show { display: block; animation: m-in 0.4s; }
.dh-cursor { position: absolute; width: 22px; height: 22px; left: 0; top: 0; z-index: 8; pointer-events: none; transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1); transform: translate(280px, 210px); }
.dh-cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: 2px solid #2f6bff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.dh-cursor.click::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #2f6bff; animation: dh-ripple 0.5s ease-out; }
@keyframes dh-ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.dh-fly { position: absolute; z-index: 9; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; pointer-events: none; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); transition: transform 0.65s cubic-bezier(0.5, -0.3, 0.4, 1), opacity 0.65s; }
.dh-fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- floating satellites ---------- */
.dh-sat {
  position: absolute; transform-style: preserve-3d; background: var(--rawa-card, #fff); color: var(--rawa-text, #16181c);
  border: 1px solid var(--rawa-border, rgba(16, 18, 22, 0.09)); border-radius: 14px; box-shadow: 0 22px 40px -18px rgba(10, 20, 50, 0.45);
  font-size: 0.78rem; font-weight: 700; padding: 9px 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.dh-sat svg { width: 18px; height: 18px; color: var(--rawa-accent, #2f6bff); flex: 0 0 auto; }
.dh-sat small { display: block; font-size: 0.68rem; color: var(--rawa-text-3, #888e99); font-weight: 500; }
.dh-s1 { top: 14px; inset-inline-start: 6px; transform: translateZ(120px); animation: dh-o1 7s ease-in-out infinite; }
.dh-s2 { bottom: 26px; inset-inline-start: -6px; transform: translateZ(150px); animation: dh-o2 8s ease-in-out infinite; }
.dh-s3 { top: 22px; inset-inline-end: 10px; transform: translateZ(90px); animation: dh-o3 6.5s ease-in-out infinite; }
.dh-s4 { bottom: 18px; inset-inline-end: 24px; transform: translateZ(170px); animation: dh-o1 9s ease-in-out infinite reverse; }
@keyframes dh-o1 { 50% { translate: 0 -12px; } }
@keyframes dh-o2 { 50% { translate: -8px 10px; } }
@keyframes dh-o3 { 50% { translate: 6px 9px; } }
.dh-roll { display: inline-block; min-width: 2.4em; text-align: center; font: 800 0.95rem Inter, sans-serif; color: var(--rawa-accent, #2f6bff); }
.dh-tog { width: 34px; height: 19px; border-radius: 999px; background: #d7dce5; position: relative; transition: background 0.4s; flex: 0 0 auto; }
.dh-tog::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.dh-tog.on { background: #1b2130; }
.dh-tog.on::after { transform: translateX(15px); }
[dir="rtl"] .dh-tog.on::after, .dh[dir="rtl"] .dh-tog.on::after { transform: translateX(-15px); }
.dh-printer { position: absolute; top: 96px; inset-inline-end: -30px; width: 116px; transform: translateZ(110px) rotateY(10deg); z-index: 4; display: none; }
.dh-printer.on { display: block; }
.dh-pbody { height: 32px; border-radius: 10px 10px 6px 6px; background: #1c2028; position: relative; }
.dh-pbody::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; border-radius: 3px; background: #05070a; }
.dh-paper { margin: -6px auto 0; width: 86px; background: #fff; border-radius: 0 0 6px 6px; overflow: hidden; height: 0; transition: height 1.1s steps(18); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.4); }
.dh-paper.out { height: 96px; }
.dh-paper div { padding: 7px 7px 0; font-size: 7px; font-weight: 600; color: #333; line-height: 1.7; }
.dh-paper hr { border: 0; border-top: 1px dashed #bbb; margin: 3px 0; }
.dh-orb { position: absolute; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid var(--rawa-card, #fff); box-shadow: 0 16px 30px -12px rgba(10, 20, 50, 0.5); }
.dh-orb img { width: 100%; height: 100%; object-fit: cover; }
.dh-b1 { top: -8px; left: 44%; transform: translateZ(60px); animation: dh-o2 7.5s ease-in-out infinite; }
.dh-b2 { bottom: -10px; left: 58%; width: 50px; height: 50px; transform: translateZ(200px); animation: dh-o3 8.5s ease-in-out infinite; }
.dh-b3 { top: 40%; inset-inline-end: -26px; width: 44px; height: 44px; transform: translateZ(40px); animation: dh-o1 6s ease-in-out infinite; }

@media (max-width: 900px) {
  .dh-grid { grid-template-columns: 1fr; padding: 22px 16px 20px; text-align: center; }
  .dh-copy { text-align: center; }
  .dh-fast, .dh-chips { justify-content: center; }
  .dh-scene { height: 300px; order: -1; margin: 0 -16px; }
  .dh { --dh-s: 0.58; }
  .dh-sat, .dh-b3, .dh-printer { display: none !important; }
}
@media (max-width: 420px) { .dh { --dh-s: 0.52; } .dh-scene { height: 270px; } }
@media (prefers-reduced-motion: reduce) {
  .dh *, .dh *::before, .dh *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Second block: QR-menu demo — a 3D phone running a miniature of the real
   guest menu. Tokens mirror www/menu (light warm / dark lavender) 1:1 and the
   markup mirrors its classes: app-header, chips, section-head, card, order-bar,
   cart sheet, tracking (track steps with dot-col / tline / tinfo).
   ===================================================================== */
.dh--menu { margin-top: 0; }
.dh--menu .dh-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.dh--menu .dh-scene { height: 520px; }
.dh-phone {
  position: absolute; left: 50%; top: 50%; width: 268px; height: 540px; margin: -270px 0 0 -134px; border-radius: 42px;
  background: #0b0c10; padding: 11px; transform: rotateY(16deg) rotateX(7deg); transform-style: preserve-3d;
  box-shadow: 0 50px 80px -30px rgba(10, 20, 50, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.dh[dir="ltr"].dh--menu .dh-phone { transform: rotateY(-16deg) rotateX(7deg); }
.dh-phone::before { content: ""; position: absolute; inset: -1px; border-radius: 43px; transform: translateZ(-12px); background: #05070a; }
.dh-phone::after { content: ""; position: absolute; top: 17px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #000; z-index: 9; }
.mm {
  --surface: #fff8f5; --lowest: #ffffff; --low: #fff1ea; --high: #f4e5de; --ink: #211a16; --ink2: #5a4138;
  --outline: #8f7066; --outline-v: #e3bfb2; --pri: #a43700; --on-pri: #ffffff; --tert: #b26a00;
  --disc: #e65100; --on-disc: #ffffff; --hair: rgba(33, 26, 22, 0.1);
  position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--surface); color: var(--ink);
  font-family: Geist, "Noto Kufi Arabic", system-ui, sans-serif; transition: background 0.6s, color 0.6s;
}
.mm.dark { --surface: #121318; --lowest: #0d0e13; --low: #1a1b21; --high: #292a2f; --ink: #e3e1e9; --ink2: #c7c4d7;
  --outline: #908fa0; --outline-v: #464554; --pri: #c0c1ff; --on-pri: #1000a9; --tert: #4edea3;
  --disc: #ff7a3c; --on-disc: #1a1006; --hair: rgba(255, 255, 255, 0.07); }
.mm[dir="rtl"] { font-family: "Noto Kufi Arabic", Geist, system-ui, sans-serif; }
.mm .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
/* scan intro */
.mm-scan { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #0b0c10; color: #fff; transition: opacity 0.5s; }
.mm-scan.off { opacity: 0; pointer-events: none; }
.mm-qr { position: relative; width: 120px; height: 120px; border-radius: 14px; background: #fff; padding: 10px; overflow: hidden; }
.mm-qr svg { width: 100%; height: 100%; display: block; }
.mm-qr::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; top: 10px; background: #2f6bff; box-shadow: 0 0 10px #2f6bff;
  animation: mm-scanline 1.4s ease-in-out infinite alternate; }
@keyframes mm-scanline { to { top: 108px; } }
.mm-scan span { font-size: 10px; font-weight: 700; opacity: 0.85; }
/* app-header */
.mm-head { background: var(--lowest); border-bottom: 1px solid var(--hair); padding: 30px 8px 6px; transition: background 0.6s; }
.mm-row { display: flex; align-items: center; gap: 5px; }
.mm-logo { height: 15px; padding: 0 5px; display: inline-flex; align-items: center; border-radius: 3px; background: #111; color: #fff;
  font: 900 7px "Archivo Black", Geist, sans-serif; letter-spacing: 0.06em; direction: ltr; flex: none; }
.mm-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mm-name b { font-size: 8px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-name .sub { font: 500 5.5px "JetBrains Mono", monospace; letter-spacing: 0.04em; color: var(--pri); text-transform: uppercase; margin-top: 2px; }
.mm-tools { display: flex; gap: 3px; flex: none; }
.mm-lang { height: 18px; display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; border-radius: 4px; background: var(--low);
  border: 1px solid var(--hair); font: 500 6px "JetBrains Mono", monospace; color: var(--ink); }
.mm-ib { width: 18px; height: 18px; border-radius: 4px; background: var(--low); border: 1px solid var(--hair); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.mm-ib svg { width: 10px; height: 10px; }
/* chips */
.mm-chips { display: flex; gap: 4px; padding: 6px 8px; overflow: hidden; background: var(--lowest); border-bottom: 1px solid var(--hair); transition: background 0.6s; }
.mm-chip { flex: 0 0 auto; height: 16px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 6.5px; font-weight: 600;
  background: var(--low); color: var(--ink2); border: 1px solid var(--hair); white-space: nowrap; transition: all 0.3s; }
.mm-chip.on { background: var(--pri); color: var(--on-pri); border-color: var(--pri); }
/* list */
.mm-scroll { overflow: hidden; height: calc(100% - 86px); }
.mm-list { padding: 0 8px 70px; display: flex; flex-direction: column; gap: 7px; transition: transform 0.7s cubic-bezier(0.3, 0.8, 0.3, 1); }
.mm-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 1px 1px; }
.mm-sec b { font-size: 10px; font-weight: 600; letter-spacing: -0.02em; }
.mm-sec small { font: 500 6px "JetBrains Mono", monospace; color: var(--ink2); letter-spacing: 0.04em; }
.mm-card { position: relative; border-radius: 6px; overflow: hidden; background: var(--low); border: 1px solid var(--hair); transition: transform 0.2s, background 0.6s; }
.mm-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mm-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-card .bd { position: absolute; top: 5px; inset-inline-start: 5px; font: 700 6px "JetBrains Mono", monospace; padding: 2px 4px; border-radius: 2px; background: var(--disc); color: var(--on-disc); }
.mm-card .in { padding: 6px 7px 7px; display: flex; flex-direction: column; gap: 4px; }
.mm-card .nm { font-size: 8px; font-weight: 600; letter-spacing: -0.01em; transition: opacity 0.3s; }
.mm-card .rw { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.mm-card .pr { display: flex; align-items: baseline; gap: 3px; }
.mm-card .pr .now { font: 700 8px "JetBrains Mono", monospace; }
.mm-card .pr .was { font: 500 6px "JetBrains Mono", monospace; color: var(--ink2); text-decoration: line-through; }
.mm-card .pr .u { font: 500 5.5px "JetBrains Mono", monospace; color: var(--ink2); }
.mm-card .ad { height: 15px; padding: 0 7px; border-radius: 999px; background: var(--pri); color: var(--on-pri); font-size: 6.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.mm-card.tap { transform: scale(0.97); }
/* order bar */
.mm-bar { position: absolute; left: 8px; right: 8px; bottom: 9px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 6px 7px; border-radius: 8px;
  background: var(--pri); color: var(--on-pri); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pri) 60%, transparent);
  transform: translateY(80px); transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
.mm-bar.show { transform: none; }
.mm-bar .c { display: flex; flex-direction: column; line-height: 1.2; }
.mm-bar .c b { font-size: 6.5px; font-weight: 600; }
.mm-bar .c span { font: 700 7.5px "JetBrains Mono", monospace; }
.mm-bar .go { margin-inline-start: auto; font-size: 7px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--on-pri) 14%, transparent); }
/* cart sheet */
.mm-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-radius: 14px 14px 0 0; padding: 10px 10px 12px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3); transform: translateY(105%); transition: transform 0.45s cubic-bezier(0.3, 0.9, 0.3, 1), background 0.6s; }
.mm-sheet.show { transform: none; }
.mm-sheet .gr { width: 26px; height: 3px; border-radius: 3px; background: var(--outline-v); margin: -4px auto 7px; }
.mm-sheet h5 { margin: 0 0 6px; font-size: 9.5px; font-weight: 600; }
.mm-line { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 7.5px; padding: 5px 0; border-bottom: 1px solid var(--hair); }
.mm-line .q { font: 600 6.5px "JetBrains Mono", monospace; color: var(--ink2); }
.mm-line b { font: 700 7px "JetBrains Mono", monospace; }
.mm-tot { display: flex; justify-content: space-between; align-items: baseline; margin: 7px 0; font-size: 8.5px; font-weight: 600; }
.mm-tot b { font: 700 10px "JetBrains Mono", monospace; color: var(--pri); }
.mm-place { text-align: center; font-size: 8px; font-weight: 700; padding: 8px; border-radius: 8px; background: var(--pri); color: var(--on-pri); transition: transform 0.2s; }
.mm-place.press { transform: scale(0.95); }
/* tracking */
.mm-track { position: absolute; inset: 0; z-index: 6; background: var(--surface); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.4s, background 0.6s; }
.mm-track.show { opacity: 1; }
.mm-track .mm-head .mm-name b { font-size: 8.5px; }
.mm-track .mm-head .mm-name .sub { color: var(--ink2); }
.mm-tw { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.mm-stat { background: var(--low); border: 1px solid var(--hair); border-radius: 6px; padding: 8px; display: flex; justify-content: space-between; align-items: center; transition: background 0.6s; }
.mm-stat b { display: block; font-size: 9px; font-weight: 600; }
.mm-stat span { display: block; font-size: 6.5px; color: var(--ink2); margin-top: 2px; }
.mm-stat .g { font: 700 10px "JetBrains Mono", monospace; color: var(--pri); }
.mm-steps { display: flex; flex-direction: column; }
.mm-step { display: flex; gap: 7px; padding: 5px 0; }
.mm-step .dc { display: flex; flex-direction: column; align-items: center; }
.mm-step .dt { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--outline-v); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: all 0.3s; }
.mm-step .dt svg { width: 8px; height: 8px; color: var(--outline); }
.mm-step .ln { flex: 1; width: 1.5px; min-height: 10px; margin: 3px 0; background: var(--outline-v); transition: background 0.3s; }
.mm-step .ti b { display: block; font-size: 7.5px; font-weight: 600; }
.mm-step .ti span { font-size: 6.5px; color: var(--ink2); }
.mm-step.pending { opacity: 0.5; }
.mm-step.done .dt { border-color: var(--tert); background: var(--tert); }
.mm-step.done .dt svg { color: var(--on-pri); }
.mm-step.done .ln { background: var(--tert); }
.mm-step.cur .dt { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 20%, transparent); }
.mm-step.cur .dt svg { color: var(--pri); }
/* floating QR card */
.dh-qrcard { position: absolute; top: 34px; inset-inline-start: 12px; transform: translateZ(140px); animation: dh-o3 7s ease-in-out infinite;
  background: var(--rawa-card, #fff); border: 1px solid var(--rawa-border, rgba(16, 18, 22, 0.09)); border-radius: 16px; padding: 10px;
  box-shadow: 0 22px 40px -18px rgba(10, 20, 50, 0.45); display: flex; align-items: center; gap: 10px; color: var(--rawa-text, #16181c); }
.dh-qrcard .q { width: 54px; height: 54px; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid rgba(0, 0, 0, 0.08); }
.dh-qrcard .q svg { width: 100%; height: 100%; display: block; }
.dh-qrcard b { display: block; font-size: 0.8rem; }
.dh-qrcard small { display: block; font-size: 0.68rem; color: var(--rawa-text-3, #888e99); font-weight: 500; }
@media (max-width: 900px) {
  .dh--menu .dh-grid { grid-template-columns: 1fr; }
  .dh--menu .dh-scene { height: 360px; }
  .dh-qrcard { display: none !important; }
}
@media (max-width: 420px) { .dh--menu .dh-scene { height: 330px; } }
