/* ==========================================================================
   بن المنصور — ALMANSOUR COFFEE
    Clean, Modular Stylesheet Architecture
   --------------------------------------------------------------------------
   01. Design Tokens & Theme Palette (Light & Dark Mode)
   02. Base Reset, Typography & Layout Primitives
   03. Preloader & High-DPI 3D Procedural Bean Stage
   04. Sticky Navigation, Progress Bar & Marquee Ticker
   05. Hero & Signature Blends Sections
   06. Arabic Coffee (Dallah Pour) & 4-Step Bean-to-Cup Process
   07. Coffee by the Gram (Order Builder & Scale) & 3D Journey Map
   08. Founder Persona, Café Menu, Payment Cards, Footer & Cart Drawer
   09. Keyframe Animations & Reduced-Motion Accessibility
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & THEME PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Safe Area Insets */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  /* Brand Wordmark Mask */
  --wm-mask: url("assets/wordmark.webp");

  /* Surface & Background Tokens */
  --bg: #EDE0D4;
  --bg-2: #E5D5C6;
  --surface: #F7F0E9;
  --surface-2: #EFE4D9;

  /* Typography Ink Tokens */
  --ink: #283D3B;
  --ink-2: #5B6A67;
  --ink-3: #86908D;

  /* Brand Accent Tokens */
  --bean: #7F5539;
  --bean-2: #9A6A48;
  --bean-ink: #F7F0E9;
  --teal: #197278;
  --teal-ink: #F2F7F6;
  --gold: #D9A676;

  /* Border & Pattern Tokens */
  --line: rgba(40, 61, 59, 0.16);
  --line-2: rgba(40, 61, 59, 0.28);
  --pat1: #7F5539;
  --pat2: #283D3B;

  /* Dark Feature Panels (Journey, Arabic Coffee, Process, Footer) */
  --panel: #283D3B;
  --panel-2: #20312F;
  --on-panel: #EDE0D4;
  --on-panel-2: #B8C2BF;
  --aw-bg: #2B1D15;
  --aw-bg-2: #3A281D;
  --mg-bd: #E5D5C6;

  /* Elevation & Shadows */
  --shadow: 0 18px 40px -22px rgba(40, 61, 59, 0.45);
  --shadow-lg: 0 24px 52px -20px rgba(25, 38, 36, 0.55);

  /* Font Stacks */
  --display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --latin: "Marcellus", "Optima", "Candara", Georgia, serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #152220;
    --bg-2: #1B2B28;
    --surface: #1F302D;
    --surface-2: #263935;
    --ink: #EDE0D4;
    --ink-2: #BCAE9F;
    --ink-3: #8C8278;
    --bean: #C9925F;
    --bean-2: #D9A676;
    --bean-ink: #1B1410;
    --teal: #46A7AC;
    --teal-ink: #0F1C1B;
    --line: rgba(237, 224, 212, 0.13);
    --line-2: rgba(237, 224, 212, 0.24);
    --pat1: #B9814F;
    --pat2: #3F8F93;
    --panel: #0E1817;
    --panel-2: #0A1211;
    --on-panel: #EDE0D4;
    --on-panel-2: #A9B3B0;
    --aw-bg: #1D140F;
    --aw-bg-2: #2A1D15;
    --mg-bd: #2A3E3A;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 26px 56px -20px rgba(0, 0, 0, 0.88);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #152220;
  --bg-2: #1B2B28;
  --surface: #1F302D;
  --surface-2: #263935;
  --ink: #EDE0D4;
  --ink-2: #BCAE9F;
  --ink-3: #8C8278;
  --bean: #C9925F;
  --bean-2: #D9A676;
  --bean-ink: #1B1410;
  --teal: #46A7AC;
  --teal-ink: #0F1C1B;
  --line: rgba(237, 224, 212, 0.13);
  --line-2: rgba(237, 224, 212, 0.24);
  --pat1: #B9814F;
  --pat2: #3F8F93;
  --panel: #0E1817;
  --panel-2: #0A1211;
  --on-panel: #EDE0D4;
  --on-panel-2: #A9B3B0;
  --aw-bg: #1D140F;
  --aw-bg-2: #2A1D15;
  --mg-bd: #2A3E3A;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 26px 56px -20px rgba(0, 0, 0, 0.88);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   02. BASE RESET, TYPOGRAPHY & LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

html[lang="en"] body {
  line-height: 1.6;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  text-wrap: balance;
  margin: 0;
  line-height: 1.25;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  font-family: var(--latin);
  font-weight: 400;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--bean);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

html[lang="en"] .eyebrow {
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.num {
  font-variant-numeric: tabular-nums;
}

.sadu {
  display: block;
  width: 100%;
  height: 28px;
}

.sadu.thin {
  height: 20px;
}

section {
  scroll-margin-top: 72px;
}

.sec {
  padding-block: 88px;
}

.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 680px;
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.sec-head p {
  color: var(--ink-2);
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .sec {
    padding-block: 60px;
  }
}

/* Shared Buttons */
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--bean);
  color: var(--bean-ink);
}

.btn.ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--bean);
}

.btn.teal {
  background: var(--teal);
  color: var(--teal-ink);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

html[dir="rtl"] .btn .arr {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   03. PRELOADER & HIGH-DPI 3D PROCEDURAL BEAN STAGE
   -------------------------------------------------------------------------- */
html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #3D2A1D 0%, #20150E 55%, #110A06 100%);
  color: #EDE0D4;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  animation: ldFailsafe 0.5s ease 4.2s forwards;
  padding-inline: 16px;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.ld-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(560px, 100%);
}

.ld-bean {
  perspective: 900px;
  display: grid;
  place-items: center;
}

.ld-bean canvas {
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 34px 26px rgba(0, 0, 0, 0.65));
  transform-origin: 50% 55%;
  animation: ldFloat 5s ease-in-out infinite;
}

.loader.done .ld-bean canvas {
  transform: scale(1.08);
  transition: transform 0.7s ease;
}

.ld-cap {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #CDB8A2;
}

.ld-bar {
  width: 170px;
  height: 2px;
  background: rgba(237, 224, 212, 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.ld-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

html[dir="ltr"] .ld-bar i {
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   04. STICKY NAVIGATION, PROGRESS BAR & MARQUEE TICKER
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-prog {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
}

html[dir="ltr"] .nav-prog {
  transform-origin: left;
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 39px;
  height: 52px;
  aspect-ratio: 720 / 968;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(40, 61, 59, 0.14));
}

.brand b {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.brand small {
  display: block;
  font-family: var(--latin);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--bean);
  margin-top: 3px;
}

.links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  align-items: center;
}

.links a {
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.iconbtn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.iconbtn:hover {
  border-color: var(--bean);
}

.iconbtn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.langbtn {
  font-family: var(--latin);
  font-weight: 600;
  letter-spacing: 0.05em;
}

html[lang="en"] .langbtn {
  font-family: var(--display);
  font-size: 1.05rem;
}

.cartbtn .count {
  background: var(--bean);
  color: var(--bean-ink);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}

.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

@media (max-width: 1120px) {
  .links a {
    padding: 8px 8px;
    font-size: 0.86rem;
  }
}

@media (max-width: 980px) {
  .links {
    display: none;
  }
  .tools {
    margin-inline-start: auto;
  }
}

@media (max-width: 420px) {
  .brand small {
    font-size: 0.5rem;
    letter-spacing: 0.18em;
    margin-top: 2px;
  }
  .cartbtn .lbl {
    display: none;
  }
}

/* Marquee Ticker */
.ticker {
  background: var(--panel);
  color: var(--on-panel);
  overflow: hidden;
  padding-block: 14px;
  direction: ltr;
  border-block: 1px solid rgba(217, 166, 118, 0.25);
}

.tk-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tkR 60s linear infinite;
}

html[lang="en"] .tk-track {
  animation-name: tkL;
}

.tk-track span {
  font-family: var(--display);
  font-size: 1.4rem;
  white-space: nowrap;
  padding-inline: 22px;
  color: var(--on-panel);
}

html[lang="en"] .tk-track span {
  font-family: var(--latin);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.tk-track i {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ticker:hover .tk-track {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   05. HERO & SIGNATURE BLENDS SECTIONS
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 28px;
  padding-block: 44px 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.wordmark {
  width: min(420px, 88%);
  aspect-ratio: 900 / 415;
  background: var(--bean);
  -webkit-mask: var(--wm-mask) center / contain no-repeat;
  mask: var(--wm-mask) center / contain no-repeat;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  color: var(--ink);
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 36ch;
}

.stage3d {
  position: relative;
  height: clamp(390px, 48vw, 590px);
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 62%, color-mix(in srgb, var(--surface) 75%, transparent) 0%, transparent 72%);
}

.stage3d canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.stage3d canvas:active {
  cursor: grabbing;
}

.stage3d .hint {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 14px;
  font-size: 0.78rem;
  color: var(--ink-3);
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.stage3d .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.stage3d .fallback img {
  width: 55%;
}

.hero-glow {
  position: absolute;
  inset: auto -10% -30% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bean) 22%, transparent), transparent 65%);
  pointer-events: none;
  transition: opacity 1.2s ease;
}

html[dir="rtl"] .hero-glow {
  inset: auto auto -30% -10%;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-block: 24px 16px;
  }
  .stage3d {
    height: 390px;
    order: -1;
  }
  .hero .lede {
    max-width: none;
  }
}

/* Hero Intro Transitions */
html.intro-wait .hero-copy > * {
  opacity: 0;
  transform: translateY(28px);
}

html.intro-wait .hero-copy > .wordmark {
  transform: scale(0.86);
  filter: blur(6px);
}

html.intro-wait .stage3d .hint,
html.intro-wait .hero-glow {
  opacity: 0;
}

html.intro-go .hero-copy > * {
  animation: heroIn 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

html.intro-go .hero-copy > .wordmark {
  animation: heroMark 1.1s cubic-bezier(0.16, 0.84, 0.24, 1) 0.55s both;
}

html.intro-go .hero-copy > h1 {
  animation-delay: 0.85s;
}

html.intro-go .hero-copy > .lede {
  animation-delay: 1.0s;
}

html.intro-go .hero-copy > .ctas {
  animation-delay: 1.15s;
}

html.intro-go .stage3d .hint {
  animation: heroIn 0.8s ease 2.4s both;
}

/* Signature Blends Section */
.sig-stage {
  height: clamp(330px, 35vw, 430px);
  margin-top: -20px;
  position: relative;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 70%, var(--surface) 0%, transparent 72%);
  overflow: hidden;
}

.sig-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: -18px;
  position: relative;
}

.sig-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.sig-card--sada {
  --c: #7F5539;
}

.sig-card--mahwaj {
  --c: #197278;
}

.sig-card[aria-pressed="true"] {
  border-color: var(--c);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.sig-card .tag {
  align-self: flex-start;
  background: var(--c);
  color: #F7F0E9;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sig-card h3 {
  font-size: 1.9rem;
}

.sig-card p {
  color: var(--ink-2);
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notes span {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.sig-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line-2);
  padding-top: 14px;
  margin-top: auto;
}

.sig-foot .p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.sig-foot .p small {
  font-size: 0.85rem;
  color: var(--ink-2);
  font-weight: 400;
}

.sig-foot .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sig-foot .btn {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.sig-card .btn.c {
  background: var(--c);
  color: #F7F0E9;
}

@media (max-width: 760px) {
  .sig-grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}

/* --------------------------------------------------------------------------
   06. ARABIC COFFEE (DALLAH POUR) & 4-STEP BEAN-TO-CUP PROCESS
   -------------------------------------------------------------------------- */
.aw {
  background: radial-gradient(ellipse at 70% 80%, var(--aw-bg-2), var(--aw-bg) 60%);
  color: #EDE0D4;
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-top: 64px;
}

.aw-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: end;
}

html[dir="rtl"] .aw-grid {
  grid-template-columns: 1.25fr 1fr;
}

.aw-copy {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
  align-self: end;
}

html[dir="rtl"] .aw-copy {
  grid-column: 2;
  grid-row: 1;
}

html[dir="rtl"] .aw-stage {
  grid-column: 1;
  grid-row: 1;
}

.aw .eyebrow {
  color: var(--gold);
}

.aw h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #F4E9DE;
}

.aw-copy > p {
  color: #CDBBA8;
  font-size: 1.07rem;
  max-width: 44ch;
}

.aw-d1 { --d: 0.1; }
.aw-d2 { --d: 0.3; }
.aw-d3 { --d: 0.6; }
.aw-d4 { --d: 0.9; }

.aw-facts {
  display: grid;
  margin: 0;
}

.aw-facts div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding-block: 7px;
  border-top: 1px solid rgba(237, 224, 212, 0.14);
}

.aw-facts dt {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.aw-facts dd {
  margin: 0;
  color: #E6DBCF;
  font-size: 0.95rem;
}

.aw-announce {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(217, 166, 118, 0.45);
  background: linear-gradient(135deg, rgba(217, 166, 118, 0.14), rgba(217, 166, 118, 0.03));
  border-radius: 22px;
  padding: 20px;
}

.aw-announce .star {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #2B1D15;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.aw-announce b.big {
  font-family: var(--display);
  font-size: 1.6rem;
  color: #F4E9DE;
  line-height: 1.3;
  display: block;
}

html[lang="en"] .aw-announce b.big {
  font-family: var(--latin);
  font-weight: 400;
}

.aw-announce p {
  color: #CDBBA8;
  font-size: 0.95rem;
  margin-top: 4px;
}

.aw-prices {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-block: 12px;
  font-size: 0.9rem;
  color: #CDBBA8;
}

.aw-prices b {
  color: #F4E9DE;
  font-variant-numeric: tabular-nums;
}

.aw .btn.gold {
  background: var(--gold);
  color: #2B1D15;
}

.aw .btn.ghost {
  border-color: rgba(237, 224, 212, 0.3);
  color: #EDE0D4;
}

.aw-stage {
  position: relative;
  aspect-ratio: 770 / 518;
  margin-bottom: -6px;
  max-width: none;
  margin-right: calc(-1 * max(20px, (100vw - 1200px) / 2 + 20px));
}

.aw-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.aw-stamp {
  position: absolute;
  left: 4%;
  top: 50%;
  width: clamp(84px, 11vw, 118px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  color: #2B1D15;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  line-height: 1.3;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(43, 29, 21, 0.35);
  outline: 6px solid rgba(217, 166, 118, 0.25);
  transform: rotate(-10deg);
}

.aw-stamp-star {
  display: block;
  font-size: 1.4em;
}

.aw-stamp-label {
  display: block;
  font-size: 1em;
}

.aw-replay {
  position: absolute;
  left: 16px;
  top: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(237, 224, 212, 0.3);
  background: rgba(20, 13, 9, 0.55);
  color: #EDE0D4;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}

.aw-replay svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#awTilt {
  transform-box: view-box;
  transform-origin: 612px 295px;
}

#awStream {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}

#awLiquid {
  transform-box: fill-box;
  transform-origin: center;
}

#awSteam path {
  opacity: 0.45;
}

.aw-runner {
  background: #4A2F20;
  padding-bottom: 44px;
  position: relative;
  z-index: 1;
}

.aw-runner .sadu {
  background: #EDE0D4;
}

.aw.armed .aw-t,
.aw.armed .aw-announce {
  opacity: 0;
  transform: translateY(16px);
}

.aw.armed .aw-stamp {
  opacity: 0;
  transform: scale(0.4) rotate(-40deg);
}

.aw.armed #awArm {
  transform: translateX(900px);
}

.aw.armed #awLiquid {
  transform: scale(0);
}

.aw.armed #awSteam path {
  opacity: 0;
}

.aw.play .aw-t {
  animation: awUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--d, 0) * 1s);
}

.aw.play #awArm {
  animation: awArmIn 1.6s cubic-bezier(0.16, 0.84, 0.24, 1) 0.4s both;
}

.aw.play #awTilt {
  animation: awTilt 3.6s ease-in-out 1.9s both;
}

.aw.play #awStream {
  animation: awPourOn 0.3s linear 2.45s both, awPourOff 0.35s ease-in 4.45s forwards;
}

.aw.play #awLiquid {
  animation: awFill 2s ease-out 2.6s both;
}

.aw.play #awSteam path {
  animation: awSteam 3.2s ease-in-out infinite both;
}

.aw.play #awSteam path:nth-child(1) { animation-delay: 4.9s; }
.aw.play #awSteam path:nth-child(2) { animation-delay: 5.5s; }
.aw.play #awSteam path:nth-child(3) { animation-delay: 6.1s; }

.aw.play .aw-stamp {
  animation: awStamp 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) 5.1s both;
}

.aw.play .aw-announce {
  animation: awUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 5.3s both;
}

@media (max-width: 900px) {
  .aw-grid,
  html[dir="rtl"] .aw-grid {
    grid-template-columns: 1fr;
  }
  html[dir="rtl"] .aw-copy,
  html[dir="rtl"] .aw-stage {
    grid-column: 1;
    grid-row: auto;
  }
  .aw-copy {
    padding-bottom: 40px;
  }
  .aw-stage {
    margin-inline: -20px;
    margin-right: -20px;
    order: -1;
    margin-bottom: 24px;
    border-bottom: 10px solid #4A2F20;
  }
  .aw {
    padding-top: 56px;
  }
  .aw-stamp {
    top: 6%;
    left: auto;
    right: 6%;
    width: 78px;
  }
  html[dir="ltr"] .aw-stamp {
    left: auto;
    right: 4%;
  }
}

/* 4-Step Bean-to-Cup Process Section */
.mg {
  background: var(--bg-2);
}

.mg-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

@media (max-width: 980px) {
  .mg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .mg-grid {
    gap: 10px;
  }
}

.mg-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px -18px rgba(40, 61, 59, 0.28);
}

.mg-art {
  aspect-ratio: 240 / 200;
  padding: 10px 10px 0;
}

.mg-art svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.mg-bd {
  fill: var(--mg-bd);
}

.mg-cap {
  padding: 12px 18px 18px;
  display: grid;
  gap: 4px;
}

.mg-n {
  font-family: var(--latin);
  font-size: 0.78rem;
  color: var(--bean);
  letter-spacing: 0.12em;
}

.mg-cap h3 {
  font-size: 1.35rem;
}

.mg-cap p {
  font-size: 0.9rem;
  color: var(--ink-2);
}

@media (max-width: 420px) {
  .mg-cap {
    padding: 10px 12px 14px;
  }
  .mg-cap h3 {
    font-size: 1.1rem;
  }
  .mg-cap p {
    font-size: 0.8rem;
  }
}

.mg-track {
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
  margin-bottom: 18px;
  position: relative;
}

.mg-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--gold);
  transform: rotate(45deg);
  inset-inline-start: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent);
  animation: mgDot 8s linear infinite;
}

@media (max-width: 980px) {
  .mg-track {
    display: none;
  }
}

.mg * {
  animation-play-state: paused;
}

.mg.run * {
  animation-play-state: running;
}

.mg-cherry {
  fill: #6F9A3F;
  animation: mgRipen 8s ease-in-out infinite;
}

.mg-drop {
  animation: mgDrop 8s infinite;
}

.mg-split > g {
  transform-box: fill-box;
}

.mg-split {
  animation: mgPop 8s infinite;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.mg-green {
  fill: #A9B77A;
}

.mg-darkbean {
  fill: #4A2C1C;
}

.mg-dust {
  opacity: 0;
  animation: mgDust 8s infinite;
}

.mg-tumble {
  transform-box: view-box;
  transform-origin: 120px 95px;
  animation: mgSpin 2.6s linear infinite;
}

.mg-roastbean {
  animation: mgRoast 8s linear infinite;
}

.mg-needle {
  transform-box: view-box;
  transform-origin: 58px 38px;
  animation: mgNeedle 8s ease-in-out infinite;
}

.mg-flames path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mgFlick 0.45s ease-in-out infinite alternate;
}

.mg-flames .f2 { animation-duration: 0.55s; }
.mg-flames .f3 { animation-duration: 0.38s; }

.mg-smoke {
  opacity: 0;
  animation: mgSmoke 2.4s ease-out infinite;
}

.mg-smoke.s2 {
  animation-delay: 1.2s;
}

.mg-burr {
  transform-box: view-box;
  transform-origin: 120px 76px;
  animation: mgSpin 1.1s linear infinite;
}

.mg-gr {
  animation: mgFall 0.72s linear infinite;
  animation-delay: var(--d, 0s);
}

.mg-gr-1 { --d: 0.00s; }
.mg-gr-2 { --d: 0.12s; }
.mg-gr-3 { --d: 0.24s; }
.mg-gr-4 { --d: 0.36s; }
.mg-gr-5 { --d: 0.48s; }
.mg-gr-6 { --d: 0.60s; }

.mg-pile {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mgPile 8s ease-out infinite;
}

.mg-pot {
  transform-box: view-box;
  transform-origin: 142px 152px;
  animation: mgPour 8s ease-in-out infinite;
}

.mg-foam {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mgFoam 8s ease-out infinite;
}

.mg-stream {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: mgStream 8s linear infinite;
}

.mg-fill {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mgFill 8s ease-out infinite;
}

.mg-steam path {
  opacity: 0;
  animation: mgSteam 8s ease-out infinite;
}

.mg-steam path:nth-child(2) {
  animation-delay: 0.5s;
}

/* --------------------------------------------------------------------------
   07. COFFEE BY THE GRAM (ORDER BUILDER & SCALE) & 3D JOURNEY MAP
   -------------------------------------------------------------------------- */
.order .grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .order .grid {
    grid-template-columns: 1fr;
  }
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.item {
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.item:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.item[aria-pressed="true"] {
  border-color: var(--bean);
  background: color-mix(in srgb, var(--bean) 9%, var(--surface));
}

.item .nm {
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.item .star {
  color: var(--bean);
  font-size: 0.9rem;
}

.item .pr {
  font-size: 0.84rem;
  color: var(--ink-2);
}

.item .pr b {
  color: var(--ink);
  font-weight: 600;
}

.item .pr-mah {
  color: var(--teal);
}

.item .origin {
  font-size: 0.75rem;
  color: var(--teal);
}

.order-fine {
  margin-top: 14px;
}

.scale {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .scale {
    position: static;
  }
}

.scale-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.scale-top h3 {
  font-size: 1.45rem;
}

.scale-top .sub {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.dial {
  width: 156px;
  height: 94px;
}

.svg-defs-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#needle {
  transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
  transform-origin: 75px 82px;
}

.dial text {
  font-size: 9px;
  fill: var(--ink-3);
  font-family: var(--body);
  font-weight: 600;
}

.readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
  background: var(--bg-2);
  border-radius: 14px;
  padding: 12px 16px;
}

.readout .g {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.readout .g small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-2);
  margin-inline-start: 4px;
}

.readout .frac {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.field {
  display: grid;
  gap: 8px;
}

.field > label,
.field > .lbl {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.seg button {
  border: 0;
  border-radius: 999px;
  padding: 8px;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.seg button[aria-pressed="true"].s {
  color: var(--bean);
}

.seg button[aria-pressed="true"].m {
  color: var(--teal);
}

.seg button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#weightField {
  border-radius: 14px;
  transition: box-shadow 0.3s ease;
}

#weightField.flash {
  animation: wFlash 1.4s ease;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.chip[aria-pressed="true"] {
  border-color: var(--bean);
  background: var(--bean);
  color: var(--bean-ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--bean);
}

select,
input[type="text"],
input[type="tel"],
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  width: 100%;
}

.adds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.addi {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.addi.on {
  flex-basis: 100%;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  border-radius: 14px;
  padding: 4px 6px 4px 4px;
  background: color-mix(in srgb, var(--teal) 6%, transparent);
}

.addi.on label {
  border-color: transparent;
}

.adds .u {
  color: var(--ink-3);
  font-size: 0.76rem;
}

.stp {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stp button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.stp button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stp .q {
  min-width: 52px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
}

.stp b {
  min-width: 58px;
  text-align: end;
  font-size: 0.86rem;
  color: var(--teal);
}

.adds label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.84rem;
  cursor: pointer;
}

.adds input {
  accent-color: var(--teal);
}

.adds label:has(input:checked) {
  border-color: var(--teal);
  color: var(--teal);
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px dashed var(--line-2);
  padding-top: 16px;
}

.total .v {
  font-size: 1.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.total .v small {
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 400;
}

.total .d {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.fine {
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* 3D Yemen-to-Suez Journey Map Section */
.journey {
  background: var(--panel);
  color: var(--on-panel);
  position: relative;
}

.journey .sec-head p {
  color: var(--on-panel-2);
}

.journey .eyebrow {
  color: var(--gold);
}

.map3d {
  position: relative;
  height: clamp(460px, 64vh, 660px);
  border-radius: 26px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid rgba(237, 224, 212, 0.12);
  box-shadow: var(--shadow-lg);
}

.map3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.maplabels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.maplabels span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #EDE0D4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  will-change: transform;
  transition: opacity 0.3s ease;
}

.maplabels span.country {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: rgba(237, 224, 212, 0.78);
}

.maplabels span.sea {
  font-family: var(--display);
  font-style: italic;
  color: rgba(190, 230, 228, 0.85);
  font-size: 1rem;
}

.maplabels span.pin {
  background: rgba(20, 30, 29, 0.82);
  border: 1px solid rgba(217, 166, 118, 0.7);
  padding: 2px 10px;
  border-radius: 999px;
  color: #F2E4D4;
  font-weight: 500;
}

.stagecard {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  width: min(380px, calc(100% - 36px));
  background: rgba(15, 24, 23, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(237, 224, 212, 0.16);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.stagecard .k {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.stagecard h3 {
  font-size: 1.5rem;
  color: #F4E9DE;
}

.stagecard p {
  color: #C9CFCC;
  font-size: 0.95rem;
}

.stagecard .meta {
  font-size: 0.8rem;
  color: #9FB0AD;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mapctrl {
  position: absolute;
  inset-inline-end: 16px;
  top: 16px;
  display: flex;
  gap: 8px;
}

.mapctrl button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(237, 224, 212, 0.25);
  background: rgba(15, 24, 23, 0.72);
  color: #EDE0D4;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mapctrl button:hover {
  border-color: var(--gold);
}

.mapctrl svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

html[dir="rtl"] .mapctrl .flip {
  transform: scaleX(-1);
}

.rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.rail button {
  background: transparent;
  border: 0;
  border-top: 2px solid rgba(237, 224, 212, 0.16);
  padding: 10px 2px 0;
  text-align: start;
  cursor: pointer;
  color: var(--on-panel-2);
  font-size: 0.85rem;
  display: grid;
  gap: 2px;
  position: relative;
}

.rail button .n {
  font-family: var(--latin);
  font-size: 0.75rem;
  color: rgba(237, 224, 212, 0.45);
}

.rail button .bar {
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  height: 2px;
  background: var(--gold);
  width: 0;
}

.rail button[aria-current="true"] {
  color: #F4E9DE;
}

.rail button[aria-current="true"] .n {
  color: var(--gold);
}

@media (max-width: 700px) {
  .rail {
    grid-template-columns: repeat(3, 1fr);
  }
  .map3d {
    height: auto;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .map3d canvas {
    height: 440px;
    border-radius: 22px;
    background: var(--panel-2);
  }
  .maplabels {
    bottom: auto;
    height: 440px;
    border-radius: 22px;
  }
  .stagecard {
    position: static;
    width: auto;
    margin-top: 12px;
    padding: 16px 18px;
  }
  .stagecard h3 {
    font-size: 1.25rem;
  }
  .stagecard p {
    font-size: 0.92rem;
  }
}

/* --------------------------------------------------------------------------
   08. FOUNDER PERSONA, CAFÉ MENU, PAYMENT CARDS, FOOTER & CART DRAWER
   -------------------------------------------------------------------------- */
.persona .grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .persona .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.persona-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.arch {
  position: relative;
  perspective: 1000px;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.arch .frame {
  border-radius: 220px 220px 26px 26px;
  overflow: hidden;
  aspect-ratio: 760 / 1100;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  box-shadow: var(--shadow);
  background: #6C757E;
  border: 6px solid var(--surface);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

.arch .badge {
  position: absolute;
  bottom: -18px;
  inset-inline-end: -10px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bean);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.arch .badge svg {
  width: 96px;
  height: 96px;
}

.arch .badge text {
  fill: var(--bean-ink);
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 3px;
}

.arch .badge img {
  position: absolute;
  width: 44px;
  height: auto;
  aspect-ratio: 720 / 968;
  object-fit: contain;
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 12px 22px;
}

.traits span {
  font-family: var(--display);
  font-size: 1.15rem;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

html[lang="en"] .traits span {
  font-family: var(--body);
  font-size: 0.95rem;
}

.likes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.likes div {
  border-top: 1px solid var(--line-2);
  padding-top: 12px;
  display: grid;
  gap: 4px;
}

.likes b {
  font-size: 0.82rem;
  color: var(--bean);
  font-weight: 600;
}

.likes p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.quote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--ink);
  margin-top: 26px;
  line-height: 1.6;
}

html[lang="en"] .quote {
  font-family: var(--latin);
}

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  border-block: 1px solid var(--line);
}

.values div {
  padding: 20px 16px;
  display: grid;
  gap: 4px;
  border-inline-start: 1px solid var(--line);
}

.values div:first-child {
  border-inline-start: 0;
}

.values b {
  font-family: var(--display);
  font-size: 1.3rem;
}

html[lang="en"] .values b {
  font-family: var(--latin);
  font-weight: 400;
}

.values p {
  font-size: 0.85rem;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
  .values div {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}

/* Café Menu Section */
.menu {
  background: var(--bg-2);
}

.menu-photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  height: 220px;
  margin-bottom: 34px;
}

.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
  filter: saturate(0.92);
}

.menu-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 61, 59, 0.72), rgba(40, 61, 59, 0.15));
}

html[dir="rtl"] .menu-photo::after {
  background: linear-gradient(270deg, rgba(40, 61, 59, 0.72), rgba(40, 61, 59, 0.15));
}

.menu-photo .t {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 1;
  color: #F4E9DE;
  max-width: 420px;
}

.menu-photo .t h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.menu-photo .t p {
  color: #DFD2C4;
}

.menu-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

@media (max-width: 380px) {
  .menu-cols {
    grid-template-columns: 1fr;
  }
}

.mcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  display: grid;
  gap: 12px;
}

.mcard h3 {
  font-size: 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mcard h3 .ic {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--bean);
}

.mcard h3 .ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.mrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.96rem;
}

.mrow .nm {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mrow .lead {
  flex: 1;
  border-bottom: 1.5px dotted var(--line-2);
  transform: translateY(-4px);
  min-width: 16px;
}

.mrow .pr {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.mrow .pr small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.78rem;
}

.mrow .st {
  color: var(--bean);
  font-size: 0.8rem;
}

.mrow .ice {
  font-size: 0.7rem;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 50%, transparent);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 1.6;
}

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-top: 24px;
}

.legend .st {
  color: var(--bean);
}

.legend .ice {
  color: var(--teal);
}

/* Payment & Contact Section */
.pay {
  background: var(--bg);
}

.pay-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pcard h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pcard h3 .ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--bean);
  flex-shrink: 0;
}

.pcard h3 .ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.pcard p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.pcard .qrrow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 420px) {
  .pcard .qrrow {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.qr {
  width: 150px;
  border-radius: 14px;
  background: #FFF;
  padding: 6px;
  border: 1px solid var(--line);
  display: block;
}

.handle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 8px 10px;
}

.handle code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
  user-select: all;
  overflow-wrap: anywhere;
}

.handle .big {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.copybtn {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  cursor: pointer;
}

.copybtn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.pcard .btn {
  align-self: flex-start;
  margin-top: auto;
}

.btn svg.wa {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.btn.wa-btn {
  background: #1F8A5B;
  color: #FFF;
}

.btn.insta {
  background: var(--ink);
  color: var(--bg);
}

.pfine {
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* Footer */
body > footer {
  background: var(--panel);
  color: var(--on-panel);
  padding-block: 56px 36px;
}

body > footer .wrap {
  display: grid;
  gap: 26px;
}

body > footer .wm {
  width: min(280px, 70%);
  aspect-ratio: 900 / 415;
  background: var(--gold);
  -webkit-mask: var(--wm-mask) center / contain no-repeat;
  mask: var(--wm-mask) center / contain no-repeat;
}

body > footer .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.footer-brand-col {
  display: grid;
  gap: 14px;
}

.footer-meta-col {
  display: grid;
  gap: 6px;
  text-align: end;
}

body > footer p {
  color: var(--on-panel-2);
  font-size: 0.92rem;
}

body > footer .line {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--on-panel);
}

html[lang="en"] body > footer .line {
  font-family: var(--latin);
}

.foot-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.foot-contact a {
  color: var(--gold);
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Slide-Over Cart Drawer & Toast */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 17, 0.45);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scrim.on {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(440px, 100%);
  background: var(--surface);
  z-index: 61;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

html[dir="rtl"] .drawer {
  transform: translateX(-100%);
}

.drawer.on {
  transform: none !important;
}

.drawer header {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer header h3 {
  font-size: 1.4rem;
}

.drawer .body {
  flex: none;
  overflow: visible;
  padding: 16px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--bg);
}

.line-item .t {
  font-weight: 600;
}

.line-item .d {
  font-size: 0.82rem;
  color: var(--ink-2);
  grid-column: 1 / -1;
}

.line-item .p {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.qty .ctl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}

.qty .rm {
  width: auto;
  border: 0;
  color: var(--ink-3);
  font-size: 0.82rem;
  padding: 0 4px;
  text-decoration: underline;
}

.empty {
  color: var(--ink-2);
  text-align: center;
  padding: 40px 10px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.empty img {
  width: 90px;
  opacity: 0.88;
}

.drawer footer {
  background: transparent;
  color: var(--ink);
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.drawer .sum {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
}

.drawer .sum span:last-child {
  font-variant-numeric: tabular-nums;
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.formgrid .full {
  grid-column: 1 / -1;
}

.paypick {
  display: grid;
  gap: 8px;
}

.paypick .lbl {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
}

.paydetail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.paydetail .qr {
  width: 92px;
  padding: 3px;
  border-radius: 10px;
}

.paydetail .col {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.paydetail .handle {
  padding: 6px 8px;
}

.paydetail a {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.paydetail.wallet {
  grid-template-columns: 1fr;
}

.drawer details {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.drawer details summary {
  cursor: pointer;
  padding-block: 2px;
}

.drawer textarea {
  min-height: 84px;
  max-height: 30vh;
  font-size: 0.82rem;
  resize: vertical;
}

.drawer .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(76px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -160px);
  visibility: hidden;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 70;
  font-size: 0.92rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.on {
  transform: translate(-50%, 0);
  visibility: visible;
}

/* Scroll Reveal Classes */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.eyebrow.rv::before {
  width: 0;
  transition: width 0.7s ease 0.3s;
}

.eyebrow.rv.in::before {
  width: 22px;
}

/* --------------------------------------------------------------------------
   09. KEYFRAME ANIMATIONS & REDUCED-MOTION ACCESSIBILITY
   -------------------------------------------------------------------------- */
@keyframes ldFailsafe {
  to { opacity: 0; visibility: hidden; }
}

@keyframes ldFloat {
  0%, 100% { transform: rotateX(10deg) rotateY(-7deg) translateY(0); }
  50% { transform: rotateX(5deg) rotateY(7deg) translateY(-8px); }
}

@keyframes tkR {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes tkL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroMark {
  0% { opacity: 0; transform: scale(0.86); filter: blur(6px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

@keyframes wFlash {
  0% { box-shadow: 0 0 0 0 rgba(217, 166, 118, 0); }
  20% { box-shadow: 0 0 0 6px rgba(217, 166, 118, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(217, 166, 118, 0); }
}

@keyframes awUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes awArmIn {
  from { transform: translateX(900px); }
  to { transform: translateX(0); }
}

@keyframes awTilt {
  0% { transform: rotate(0); }
  15% { transform: rotate(-32deg); }
  78% { transform: rotate(-32deg); }
  100% { transform: rotate(-5deg); }
}

@keyframes awPourOn {
  from { stroke-dashoffset: 90; }
  to { stroke-dashoffset: 0; }
}

@keyframes awPourOff {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -90; }
}

@keyframes awFill {
  from { transform: scale(0.05); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes awSteam {
  0% { opacity: 0; transform: translateY(8px); }
  40% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-18px); }
}

@keyframes awStamp {
  from { opacity: 0; transform: scale(0.4) rotate(-40deg); }
  to { opacity: 1; transform: rotate(-10deg); }
}

@keyframes mgDot {
  0% { inset-inline-start: 0; }
  100% { inset-inline-start: calc(100% - 12px); }
}

@keyframes mgRipen {
  0% { fill: #6F9A3F; }
  30% { fill: #B8322A; }
  92% { fill: #B8322A; }
  100% { fill: #6F9A3F; }
}

@keyframes mgDrop {
  0%, 32% { transform: translateY(0); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  40% { transform: translateY(98px); opacity: 1; }
  43% { transform: translateY(98px); opacity: 0; }
  96% { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

@keyframes mgPop {
  0%, 40% { opacity: 0; transform: scale(0.2); }
  47% { opacity: 1; transform: scale(1.1); }
  50% { transform: scale(1); }
  92% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes mgDust {
  0%, 40% { opacity: 0; }
  43% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes mgSpin {
  to { transform: rotate(360deg); }
}

@keyframes mgRoast {
  0% { fill: #A9B77A; }
  30% { fill: #C9A35C; }
  55% { fill: #8A5A34; }
  80% { fill: #4A2C1C; }
  94% { fill: #4A2C1C; }
  100% { fill: #A9B77A; }
}

@keyframes mgNeedle {
  0% { transform: rotate(-62deg); }
  80% { transform: rotate(62deg); }
  94% { transform: rotate(62deg); }
  100% { transform: rotate(-62deg); }
}

@keyframes mgFlick {
  from { transform: scaleY(0.82) scaleX(1.05); }
  to { transform: scaleY(1.12) scaleX(0.94); }
}

@keyframes mgSmoke {
  0% { opacity: 0; transform: translateY(8px); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes mgFall {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0.9; }
}

@keyframes mgPile {
  0% { transform: scaleY(0.05); }
  70% { transform: scaleY(1); }
  94% { transform: scaleY(1); }
  100% { transform: scaleY(0.05); }
}

@keyframes mgPour {
  0%, 48% { transform: none; }
  58% { transform: translate(-50px, -34px) rotate(-44deg); }
  82% { transform: translate(-50px, -34px) rotate(-44deg); }
  92%, 100% { transform: none; }
}

@keyframes mgFoam {
  0%, 6% { transform: scaleY(0); }
  44% { transform: scaleY(1.15); }
  48% { transform: scaleY(1); }
  82% { transform: scaleY(0.4); }
  92%, 100% { transform: scaleY(0); }
}

@keyframes mgStream {
  0%, 58% { stroke-dashoffset: 60; }
  62% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; }
  84%, 100% { stroke-dashoffset: -60; }
}

@keyframes mgFill {
  0%, 60% { transform: translateY(30px); }
  82%, 96% { transform: translateY(2px); }
  100% { transform: translateY(30px); }
}

@keyframes mgSteam {
  0%, 80% { opacity: 0; transform: translateY(6px); }
  88% { opacity: 0.85; }
  98%, 100% { opacity: 0; transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld-bean canvas { animation: none; transform: none; }
  .tk-track { animation: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  #weightField.flash { animation: none; box-shadow: 0 0 0 3px rgba(217, 166, 118, 0.6); }
  .drawer, .toast, .scrim { transition: none; }
  .aw.play * { animation: none !important; }
  .aw.play #awTilt { transform: rotate(-5deg); }
  .aw.play .aw-t, .aw.play .aw-announce { opacity: 1; transform: none; }
  .aw.play .aw-stamp { opacity: 1; transform: rotate(-10deg); }
  .aw.play #awArm, .aw.play #awLiquid { transform: none; }
  .mg * { animation: none !important; }
  .mg-cherry { fill: #B8322A; }
  .mg-drop { opacity: 0; }
  .mg-split { opacity: 1; }
  .mg-roastbean { fill: #4A2C1C; }
  .mg-fill { transform: translateY(2px); }
  .mg-stream { stroke-dashoffset: 60; }
}

/* --------------------------------------------------------------------------
   10. GPU COMPOSITING & LAYOUT CONTAINMENT FOR 60FPS SMOOTHNESS
   -------------------------------------------------------------------------- */
.stage3d,
.sig-stage,
.map3d,
.aw-stage {
  contain: layout style paint;
  transform: translateZ(0);
}

.ticker,
.mg-step {
  contain: layout paint;
}

.tk-track,
.nav-prog,
#needle {
  will-change: transform;
}

/* Mobile Navigation Menu & Full-Stack Cart Controls */
.menubtn {
  display: none;
}

@media (max-width: 980px) {
  .menubtn {
    display: inline-flex;
  }
  .links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px;
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    padding: 14px 20px;
    box-shadow: var(--shadow);
    z-index: 45;
    align-items: stretch;
    gap: 4px;
  }
  .links.open a {
    padding: 10px 14px;
    font-size: 0.98rem;
  }
}

.item[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

.item .oos {
  font-size: 0.72rem;
  color: #B8322A;
  border: 1px solid rgba(184, 50, 42, 0.4);
  border-radius: 999px;
  padding: 1px 8px;
}

.restore-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  justify-content: center;
}

/* v6 Enterprise Checkout UX: PIN Eye Toggle & Last Verified Order Card */
.pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pin-wrap input {
  width: 100%;
  padding-inline-end: 42px !important;
}

.pin-eye {
  position: absolute;
  inset-inline-end: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--ink-2);
  opacity: 0.78;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.pin-eye:hover {
  opacity: 1;
  background: var(--bg-2);
}

.last-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--teal) 38%, var(--line));
  font-size: 0.82rem;
}

.last-order-card code {
  font-weight: 700;
  color: var(--bean);
  font-family: ui-monospace, monospace;
}

/* --------------------------------------------------------------------------
   11. ADMIN & CASHIER POS DASHBOARD ARCHITECTURE (admin.html)
   -------------------------------------------------------------------------- */
.adm-wrap {
  max-width: 1240px;
  margin: 28px auto;
  padding: 0 20px 60px;
  display: grid;
  gap: 22px;
}

.adm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 18px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.adm-head .brand img {
  width: 42px;
  height: 56px;
  aspect-ratio: 720 / 968;
  object-fit: contain;
}

.adm-head h1 {
  font-size: 1.6rem;
}

.adm-subrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.adm-subrow small {
  color: var(--ink-2);
}

.adm-auth {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.adm-auth input {
  width: 220px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--bean);
  border: 1px solid var(--line-2);
}

.sse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
}

.sse-dot.live {
  background: #1F8A5B;
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.25);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}

.kpi small {
  color: var(--ink-2);
  font-size: 0.84rem;
}

.kpi b {
  font-size: 1.75rem;
  color: var(--bean);
  font-variant-numeric: tabular-nums;
}

.kpi .kpi-sub {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 2px;
}

.adm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.adm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  display: grid;
  gap: 16px;
  overflow-x: auto;
}

.adm-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.adm-filters .f-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.adm-filters input,
.adm-filters select {
  width: auto;
  min-width: 170px;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.adm-table th,
.adm-table td {
  padding: 11px 10px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.adm-table th {
  color: var(--bean);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.badge-sig {
  display: inline-block;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
}

.price-in {
  width: 88px !important;
  padding: 6px 8px !important;
  text-align: center;
}

.act-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-btn {
  padding: 5px 11px;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  cursor: pointer;
  white-space: nowrap;
}

.sm-btn:hover {
  border-color: var(--bean);
  background: var(--surface-2);
}

.sm-btn.danger {
  color: #B42318;
  border-color: rgba(180, 35, 24, 0.35);
}

.sm-btn.danger:hover {
  background: rgba(180, 35, 24, 0.08);
}

.new-item-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  background: var(--bg-2);
  padding: 16px;
  border-radius: 16px;
  align-items: end;
  margin-top: 10px;
}

.new-item-form label {
  font-size: 0.78rem;
  color: var(--ink-2);
  display: grid;
  gap: 4px;
}

.adm-gate {
  max-width: 520px;
  margin: 36px auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.adm-gate h2 {
  font-size: 1.35rem;
  color: var(--bean);
}

.adm-gate p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.adm-gate small {
  color: var(--ink-3);
}

.adm-workspace {
  display: grid;
  gap: 22px;
}

.adm-sec-mt {
  margin-top: 18px;
}

.adm-add-btn {
  padding: 9px 18px;
}

#printArea {
  display: none;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #printArea,
  #printArea * {
    visibility: visible !important;
  }
  #printArea {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 78mm;
    padding: 4mm;
    background: #FFF !important;
    color: #000 !important;
    font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
    font-size: 11pt;
    line-height: 1.45;
  }
  .pr-center {
    text-align: center;
  }
  .pr-hr {
    border-top: 1px dashed #000;
    margin: 6px 0;
  }
  .pr-row {
    display: flex;
    justify-content: space-between;
    font-size: 10pt;
  }
  .pr-sticker {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8mm;
    page-break-inside: avoid;
  }
}

/* v7.0 Ultimate POS & Live Order Tracker Extensions */
.loc-main {
  display: grid;
  gap: 3px;
}

.loc-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
}

.loc-acts {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pos-quick-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
}

.pos-quick-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bean);
  font-size: 0.94rem;
}

.st-col {
  display: grid;
  gap: 6px;
}

.del-tag {
  color: var(--teal);
  font-weight: 600;
}

.stk-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sm-save-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
}

@media print {
  .pr-title {
    margin: 0;
    font-size: 15pt;
  }
  .pr-meta {
    font-size: 9pt;
  }
  .pr-line {
    margin-bottom: 4px;
  }
  .pr-total {
    font-size: 12pt;
  }
  .pr-stk-head {
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    margin-bottom: 4px;
    font-size: 13pt;
  }
  .pr-stk-name {
    font-size: 12pt;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
  }
}

/* ==========================================================================
   12. UNIVERSAL MOBILE FULL-SCREEN / FILL-SCREEN & CENTERING ENGINE
   ========================================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main,
header.hero,
section.sec,
section.aw,
footer,
.ticker {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  box-sizing: border-box;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero .wrap {
    flex: 1;
    width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }

  .hero-copy {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wordmark {
    margin-inline: auto;
    width: min(300px, 82vw);
  }

  .hero .lede {
    margin-inline: auto;
    text-align: center;
  }

  .ctas {
    justify-content: center;
    width: 100%;
  }

  .stage3d {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    height: clamp(290px, 44dvh, 420px);
  }

  .sig-stage {
    width: 100%;
    margin-inline: auto;
  }

  .sec-head {
    text-align: center;
    margin-inline: auto;
  }

  .sec-head p {
    margin-inline: auto;
  }

  .eyebrow {
    justify-content: center;
  }

  .order .grid,
  .sig-grid,
  .aw-grid,
  .persona .grid,
  .pay-grid,
  .menu-cols {
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .nav .wrap {
    height: 60px;
    gap: 8px;
  }

  .brand img {
    width: auto;
    height: 38px;
    aspect-ratio: 720 / 968;
    object-fit: contain;
  }

  .brand b {
    font-size: 1.05rem;
  }

  .tools {
    gap: 6px;
  }

  .iconbtn {
    width: 38px;
    height: 38px;
  }

  .cartbtn {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
  }

  .ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .stage3d {
    height: clamp(260px, 40dvh, 350px);
  }

  .scale {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .adm-wrap {
    padding: 14px 12px 48px;
  }

  .adm-head {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .adm-head .brand {
    justify-content: center;
  }

  .adm-auth {
    width: 100%;
    justify-content: center;
  }

  .adm-auth input {
    width: 100%;
    min-width: 0;
  }
}
