@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700,900&display=swap');.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(0, 168, 120, 0.14), transparent 34rem),
    linear-gradient(135deg, #f8f2e8 0%, #efe3d1 100%);
  color: #2b2118;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid rgba(43, 33, 24, 0.12);
  border-radius: 28px;
  padding: 30px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 26px 70px rgba(43, 33, 24, 0.12);
}

.auth-card--compact {
  text-align: center;
  font-weight: 800;
}

.auth-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 120, 0.12);
  color: #007f5e;
  font: 800 11px/1 var(--sb-mono, ui-monospace);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 8vw, 44px);
  letter-spacing: -0.05em;
}

.auth-card p {
  margin: 0 0 18px;
  color: rgba(43, 33, 24, 0.68);
  line-height: 1.55;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card input {
  height: 48px;
  border: 1px solid rgba(43, 33, 24, 0.16);
  border-radius: 16px;
  padding: 0 14px;
  background: #fffaf1;
  color: #2b2118;
  font: 700 15px/1.2 inherit;
  outline: none;
}

.auth-card input:focus {
  border-color: #00a878;
  box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}

.auth-card button {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #00a878;
  color: #fffaf1;
  font-weight: 950;
  cursor: pointer;
}

.auth-card button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-error {
  margin-top: 14px !important;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(214, 69, 69, 0.1);
  color: #a92f2f !important;
  font-size: 13px;
  font-weight: 800;
}

.auth-muted {
  font-family: var(--sb-mono, ui-monospace);
  font-size: 12px;
}

/* ============================================================
   Spacebar Storefront UI Kit — Component Styles
   Light Glassmorphism · Warm Ivory · Iridescent Glow
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  min-height: 100vh;
  font-family: var(--sb-body);
  color: var(--sb-fg);
  background: var(--sb-cream);
  position: relative;
  overflow-x: hidden;
}

.sf-tracking-page {
  min-height: 100vh;
}

.sf-tracking-actions {
  margin-top: 4px;
}

.sf-tracking-action {
  justify-content: center;
}

/* The iridescent backdrop is rendered as a fixed layer so glass surfaces always
   have something to refract over, regardless of scroll position. */
.sb-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--sb-iridescent-bg);
  pointer-events: none;
}

/* ---- Page shell ---- */
.sf-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 120px;
  position: relative;
}

/* ============================================================
   1. Header
   ============================================================ */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 12px;
  margin-bottom: 4px;
  overflow: hidden;
}
.sf-header-bg {
  position: absolute;
  inset: 0 -100vw;
  background: rgba(255, 248, 237, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--sb-border);
  z-index: -1;
}
.sf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sb-fg);
}
.sf-brand img { width: 36px; height: auto; }
.sf-brand span {
  font-family: var(--sb-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.sf-vendor-name {
  font-family: var(--sb-heading);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sb-fg);
  padding-left: 16px;
  border-left: 1px solid var(--sb-border-2);
  margin-left: 4px;
}
.sf-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Vendor switcher (demo control) ---- */
.sf-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  box-shadow: var(--sb-shadow-1), var(--sb-shadow-inset-hi);
}
.sf-switch button {
  font-family: var(--sb-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--sb-fg-3);
  cursor: pointer;
  transition: all 220ms var(--sb-ease-out);
}
.sf-switch button.is-active {
  background: var(--sb-black);
  color: var(--sb-cream);
}

/* ============================================================
   2. Maps Bridge breadcrumb
   ============================================================ */
.sf-maps-bridge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 16px 0 0;
  border-radius: 999px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  color: var(--sb-fg-3);
  width: fit-content;
  box-shadow: var(--sb-shadow-1);
}
.sf-maps-bridge .pin {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(91, 124, 250, 0.10);
  color: #5B7CFA;
}
.sf-maps-bridge strong { color: var(--sb-fg); font-weight: 700; }
.sf-maps-bridge .sep { opacity: 0.4; }

/* ============================================================
   3. Hero
   ============================================================ */
.sf-hero {
  margin: 12px 0 16px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--sb-shadow-3), var(--sb-shadow-inset-hi);
  border: 1px solid var(--sb-border);
}
.sf-hero-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.sf-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(30, 33, 29, 0.55));
}
.sf-hero-body {
  position: relative;
  background: rgba(255, 253, 246, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  padding: 14px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--sb-border-glass);
}
.sf-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sf-hero-info h1 {
  font-family: var(--sb-heading);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 2px 0 0;
}
.sf-hero-info p {
  color: var(--sb-fg-3);
  font-size: 13px;
  max-width: 560px;
  margin: 2px 0 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-hero-status {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Hero badge floating on cover */
.sf-hero-vendor-stamp {
  position: absolute;
  top: 18px;
  left: 18px;
  right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--sb-border);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-fg);
  z-index: 1;
  box-shadow: var(--sb-shadow-2);
}
.sf-hero-vendor-stamp .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sb-mint);
  box-shadow: 0 0 0 3px rgba(0, 168, 120, 0.18);
}

/* ============================================================
   4. Category bar + product grid
   ============================================================ */
.sf-category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  position: sticky;
  top: 64px;
  z-index: 24;
  background: rgba(255, 248, 237, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sb-border);
  box-shadow: 0 4px 12px rgba(30, 33, 29, 0.02);
}
.sf-category-bar::-webkit-scrollbar { display: none; }

.sf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 16px;
}
.sf-section-head h2 {
  font-family: var(--sb-heading);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.sf-section-head .count {
  font-family: var(--sb-mono);
  font-size: 12px;
  color: var(--sb-muted);
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ============================================================
   5. Product card
   ============================================================ */
.sf-product {
  display: flex;
  flex-direction: column;
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sb-shadow-1), var(--sb-shadow-inset-hi);
  transition: transform 220ms var(--sb-ease-out), box-shadow 220ms var(--sb-ease-out);
  position: relative;
}
.sf-product:hover {
  transform: translateY(-2px);
  box-shadow: var(--sb-shadow-3), var(--sb-shadow-inset-hi);
}
.sf-product-photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--sb-stone);
  position: relative;
}
.sf-product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30, 33, 29, 0.15));
}
.sf-product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--sb-body);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.92);
  color: var(--sb-fg);
  z-index: 1;
}
.sf-product-tag.is-out {
  background: rgba(30, 33, 29, 0.82);
  color: var(--sb-cream);
}
.sf-product-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sf-product-body h3 {
  font-family: var(--sb-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
}
.sf-product-body .meta {
  font-size: 12px;
  color: var(--sb-fg-3);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 1.45em;
}
.sf-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 6px;
}
.sf-product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.sf-product-price .currency {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--sb-muted);
}
.sf-product-price .amount {
  font-family: var(--sb-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sb-fg);
}

/* The "+" add button */
.sf-add-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sb-mint);
  color: var(--sb-cream);
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 168, 120, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 160ms var(--sb-ease-out);
}
.sf-add-btn span { display: none; }
.sf-add-btn:hover { transform: scale(1.06); }
.sf-add-btn:active { transform: scale(0.96); }

/* Quantity stepper replaces the "+" once added */
.sf-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--sb-mint);
  color: var(--sb-cream);
  border-radius: 999px;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 168, 120, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.sf-stepper button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--sb-cream);
  border: 0;
  cursor: pointer;
}
.sf-stepper button:hover { background: rgba(255, 255, 255, 0.12); }
.sf-stepper .qty {
  min-width: 22px;
  text-align: center;
  font-family: var(--sb-mono);
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
   6. Service card variant (no add button — "book a slot")
   ============================================================ */
.sf-service-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sb-shadow-1), var(--sb-shadow-inset-hi);
  padding: 14px;
  transition: all 220ms var(--sb-ease-out);
}
.sf-service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sb-shadow-3), var(--sb-shadow-inset-hi);
}
.sf-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sb-lavender), var(--sb-sky));
  color: var(--sb-cream);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(46, 46, 53, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.sf-service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sf-service-body h3 {
  font-family: var(--sb-heading);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}
.sf-service-body .meta { font-size: 12px; color: var(--sb-fg-3); margin: 0; }
.sf-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.sf-service-foot .duration {
  font-family: var(--sb-mono);
  font-size: 11px;
  color: var(--sb-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   7. Cart FAB & sheet
   ============================================================ */
.sf-cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--sb-black);
  color: var(--sb-cream);
  font-family: var(--sb-body);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(30, 33, 29, 0.32),
    0 2px 8px rgba(30, 33, 29, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 220ms var(--sb-ease-out);
}
.sf-cart-fab:hover { transform: translateY(-2px); }
.sf-cart-fab[data-empty="true"] { display: none; }
.sf-cart-fab .badge {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sb-mint);
  font-family: var(--sb-mono);
  font-size: 12px;
  color: var(--sb-fg);
}

.sf-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 33, 29, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--sb-ease-out);
}
.sf-sheet-overlay.is-open { opacity: 1; pointer-events: auto; }

.sf-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-left: 1px solid var(--sb-border-glass);
  box-shadow: -30px 0 90px rgba(30, 33, 29, 0.18);
  transform: translateX(100%);
  transition: transform 400ms var(--sb-ease-glide);
}
.sf-sheet.is-open { transform: translateX(0); }
.sf-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--sb-border);
}
.sf-sheet-head h2 {
  font-family: var(--sb-heading);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}
.sf-sheet-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  color: var(--sb-fg);
  cursor: pointer;
  box-shadow: var(--sb-shadow-inset-hi);
}
.sf-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-sheet-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
}
.sf-sheet-row .thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--sb-stone);
  flex-shrink: 0;
}
.sf-sheet-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-sheet-row .info strong { font-family: var(--sb-heading); font-size: 14px; text-transform: uppercase; letter-spacing: -0.01em; font-weight: 600; }
.sf-sheet-row .info span { font-size: 11px; color: var(--sb-fg-3); font-family: var(--sb-mono); }

/* Cart customer fields */
.sf-sheet-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 4px;
  margin-top: 8px;
  border-top: 1px solid var(--sb-border);
  padding-top: 16px;
}
.sf-auth-card {
  border: 1px solid var(--sb-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  padding: 14px;
}
.sf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-field label {
  font-family: var(--sb-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-muted);
}
.sf-field input, .sf-field textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sb-cream);
  border: 1px solid var(--sb-border-2);
  color: var(--sb-fg);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border 160ms var(--sb-ease-out);
}
.sf-field input:focus, .sf-field textarea:focus {
  border-color: var(--sb-mint-2);
  border-width: 1.5px;
  padding: 9.5px 11.5px;
}
.sf-field select {
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sb-cream);
  border: 1px solid var(--sb-border-2);
  color: var(--sb-fg);
  outline: none;
}
.sf-auth-status {
  margin: 0;
  color: var(--sb-fg-3);
  font-size: 12px;
  line-height: 1.45;
}
.sf-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-google-btn,
.sf-secondary-btn {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--sb-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.sf-google-btn {
  border: 1px solid var(--sb-border-2);
  background: rgba(255, 255, 255, 0.88);
  color: var(--sb-fg);
}
.sf-secondary-btn {
  border: 0;
  background: var(--sb-black);
  color: var(--sb-cream);
}
.sf-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--sb-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sf-auth-divider::before,
.sf-auth-divider::after {
  content: "";
  height: 1px;
  background: var(--sb-border);
}
.sf-signed-in-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 168, 120, 0.08);
}
.sf-signed-in-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sb-mint);
  font-size: 12px;
  font-weight: 800;
}
.sf-signed-in-row button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--sb-fg);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sf-address-options {
  display: grid;
  gap: 8px;
}
.sf-address-options button {
  display: grid;
  gap: 4px;
  text-align: left;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--sb-border);
  background: rgba(255, 253, 246, 0.78);
  color: var(--sb-fg);
  cursor: pointer;
}
.sf-address-options button.is-selected {
  border-color: rgba(0, 168, 120, 0.44);
  background: rgba(0, 168, 120, 0.11);
}
.sf-address-options strong {
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}
.sf-address-options span,
.sf-item-details,
.sf-item-meta {
  color: var(--sb-fg-3);
  font-size: 11px;
  line-height: 1.4;
}

.sf-sheet-foot {
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sb-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--sb-surface);
}
.sf-totals { display: flex; flex-direction: column; gap: 6px; }
.sf-totals .row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  color: var(--sb-fg-3);
}
.sf-totals .row.is-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--sb-border);
  font-family: var(--sb-heading);
  font-size: 18px;
  color: var(--sb-fg);
  text-transform: uppercase;
}

.sf-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--sb-mint);
  color: var(--sb-cream);
  font-family: var(--sb-body);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 168, 120, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 220ms var(--sb-ease-out);
}
.sf-send-btn:hover { transform: translateY(-1px); }

.sf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  text-align: center;
}
.sf-empty-state .glyph {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sb-lavender), var(--sb-sky));
  color: var(--sb-cream);
  margin-bottom: 8px;
  box-shadow: 0 6px 14px rgba(46, 46, 53, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.sf-empty-state strong { font-family: var(--sb-heading); text-transform: uppercase; letter-spacing: -0.01em; }
.sf-empty-state span { font-size: 13px; color: var(--sb-fg-3); }

/* ============================================================
   8. Status chips (open/closed, delivery time)
   ============================================================ */
.sf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--sb-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  color: var(--sb-fg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sf-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.sf-status.is-open { color: #009965; }
.sf-status.is-time { color: #FF6B35; }
.sf-status.is-pin  { color: #5B7CFA; }

/* ---- Category chip (in category bar) ---- */
.sf-cat-chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  font-family: var(--sb-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sb-fg-2);
  cursor: pointer;
  transition: all 160ms var(--sb-ease-out);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sf-cat-chip:hover { color: var(--sb-fg); }
.sf-cat-chip.is-active {
  background: var(--sb-black);
  color: var(--sb-cream);
  border-color: var(--sb-black);
}

/* ============================================================
   9. Toast — WhatsApp sent
   ============================================================ */
.sf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 999px;
  background: rgba(30, 33, 29, 0.92);
  color: var(--sb-cream);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 148, 0.32);
  box-shadow:
    0 12px 40px rgba(30, 33, 29, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: transform 500ms var(--sb-ease-glide), opacity 300ms ease;
}
.sf-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.sf-toast .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(0, 212, 148, 0.16);
  color: #00D494;
  border: 1px solid rgba(0, 212, 148, 0.32);
}
.sf-toast .body { display: flex; flex-direction: column; gap: 1px; }
.sf-toast strong { font-size: 13px; font-weight: 800; }
.sf-toast span { font-size: 11px; color: rgba(255, 248, 237, 0.6); }

/* ============================================================
   10. Service-specific (booking strip)
   ============================================================ */
.sf-booking-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 20px;
  padding: 16px 20px;
  margin: 16px 0 8px;
  box-shadow: var(--sb-shadow-2), var(--sb-shadow-inset-hi);
}
.sf-booking-strip .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(91, 124, 250, 0.10);
  color: #5B7CFA;
  font-size: 11px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
}
.sf-booking-strip .info { flex: 1; }
.sf-booking-strip .info strong { font-family: var(--sb-heading); font-size: 14px; text-transform: uppercase; letter-spacing: -0.01em; display: block; }
.sf-booking-strip .info span { font-size: 12px; color: var(--sb-fg-3); }

/* ============================================================
   11. Responsive
   ============================================================ */
@media (max-width: 720px) {
  .sf-page { padding: 0 16px 100px; }
  .sf-vendor-name { display: none; }
  .sf-hero-cover { height: 125px; }
  .sf-hero-body { padding: 8px 12px; flex-direction: column; align-items: flex-start; }
  .sf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sf-sheet { width: 100%; }
}

@media (max-width: 600px) {
  body {
    background: #fffaf2;
  }

  .sb-canvas {
    background:
      linear-gradient(180deg, #fff7e9 0%, #fffdf8 46%, #f7faf4 100%);
  }

  .sf-page {
    max-width: none;
    padding: 0 14px 112px;
  }

  .sf-header {
    min-height: 62px;
    gap: 10px;
    padding: 10px 0;
    overflow: visible;
  }

  .sf-header-bg {
    background: rgba(255, 250, 242, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .sf-brand {
    gap: 8px;
    min-width: 0;
  }

  .sf-brand img {
    width: 32px;
  }

  .sf-brand span {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .sf-header-right {
    gap: 6px;
  }

  .sf-header-right .sf-cat-chip,
  .sf-header-right button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .sf-hero {
    margin: 6px 0 12px;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(32, 35, 31, 0.1);
  }

  .sf-hero-cover {
    height: 118px;
  }

  .sf-hero-vendor-stamp {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .sf-hero-body {
    padding: 12px 14px 14px;
    gap: 8px;
    background: rgba(255, 253, 246, 0.96);
  }

  .sf-hero-info h1 {
    font-size: 25px;
    line-height: 1.03;
    text-transform: none;
  }

  .sf-hero-info p {
    font-size: 13px;
    line-height: 1.4;
  }

  .sf-hero-status {
    gap: 5px;
  }

  .sf-status {
    padding: 6px 9px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .sf-category-bar {
    position: relative;
    top: auto;
    z-index: 1;
    gap: 8px;
    margin: 0 -14px 12px;
    padding: 10px 14px 11px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 8px 18px rgba(32, 35, 31, 0.055);
  }

  .sf-cat-chip {
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #fffdf8;
    font-size: 12px;
    letter-spacing: 0;
    box-shadow: 0 6px 14px rgba(32, 35, 31, 0.045);
  }

  .sf-cat-chip.is-active {
    background: #20231f;
    color: #fff8ed;
  }

  .sf-section-head {
    align-items: center;
    margin: 14px 0 10px;
  }

  .sf-section-head h2 {
    font-size: 22px;
    text-transform: none;
  }

  .sf-section-head .count {
    font-size: 11px;
  }

  .sf-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sf-product {
    min-height: 126px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(32, 35, 31, 0.06);
  }

  .sf-product:hover {
    transform: none;
  }

  .sf-product-photo {
    grid-column: 2;
    grid-row: 1;
    width: 106px;
    height: 106px;
    aspect-ratio: auto;
    align-self: center;
    margin: 10px 10px 10px 0;
    border-radius: 16px;
    overflow: hidden;
  }

  .sf-product-body {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 14px 10px 12px 14px;
    gap: 6px;
  }

  .sf-product-body h3 {
    font-family: var(--sb-body);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: none;
  }

  .sf-product-body .meta {
    min-height: 2.8em;
    height: auto;
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .sf-product-foot {
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
  }

  .sf-product-price .currency {
    font-size: 10px;
  }

  .sf-product-price .amount {
    font-size: 19px;
  }

  .sf-product-tag {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sf-add-btn {
    width: auto;
    min-width: 70px;
    height: 36px;
    display: inline-flex;
    place-items: initial;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 13px;
    border-radius: 999px;
  }

  .sf-add-btn span {
    display: inline;
    font-size: 12px;
    font-weight: 900;
  }

  .sf-stepper {
    min-height: 36px;
    padding: 3px;
  }

  .sf-stepper button {
    width: 30px;
    height: 30px;
  }

  .sf-stepper .qty {
    min-width: 26px;
  }

  .sf-cart-fab {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    height: 58px;
    justify-content: space-between;
    padding: 0 16px;
    border-radius: 18px;
    background: #11845f;
    box-shadow: 0 16px 34px rgba(17, 132, 95, 0.26);
  }

  .sf-cart-fab span:first-of-type {
    font-size: 15px;
  }

  .sf-cart-fab .badge {
    background: rgba(255, 253, 246, 0.18);
    color: #fff8ed;
  }

  .sf-sheet {
    border-left: 0;
    border-radius: 22px 22px 0 0;
    top: auto;
    max-height: 92vh;
    transform: translateY(100%);
    transition: transform 340ms var(--sb-ease-glide);
  }

  .sf-sheet.is-open {
    transform: translateY(0);
  }

  .sf-sheet-row {
    align-items: flex-start;
  }

  .sf-sheet-row .thumb {
    width: 50px;
    height: 50px;
  }

  .sf-sheet-head h2,
  .sf-sheet-row .info strong {
    font-family: var(--sb-body);
    letter-spacing: 0;
    text-transform: none;
  }

  .sf-sheet-head h2 {
    font-size: 21px;
    font-weight: 900;
  }

  .sf-sheet-row .info strong {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
  }

  .sf-toast {
    left: 14px;
    right: 14px;
    bottom: 86px;
    transform: translateY(120px);
    border-radius: 18px;
  }

  .sf-toast.is-visible {
    transform: translateY(0);
  }

  /* Disable the scroll-collapsing hero on mobile. It was causing sticky layers
     to fight each other and made the menu feel jumpy on phones. */
  .sf-page.is-collapsed .sf-hero {
    position: relative;
    top: auto;
    z-index: 1;
    margin: 6px 0 12px;
    border-radius: 20px;
  }

  .sf-page.is-collapsed .sf-hero-cover {
    height: 118px !important;
    opacity: 1;
  }

  .sf-page.is-collapsed .sf-hero-body {
    padding: 12px 14px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    background: rgba(255, 253, 246, 0.96) !important;
  }

  .sf-page.is-collapsed .sf-hero-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-page.is-collapsed .sf-hero-status {
    flex-direction: row;
    align-items: center;
  }

  .sf-page.is-collapsed .sf-hero-info h1 {
    font-size: 25px !important;
    white-space: normal;
  }

  .sf-page.is-collapsed .sf-hero-info p {
    display: -webkit-box !important;
  }

  .sf-page.is-collapsed .sf-hero-info .sb-eyebrow,
  .sf-page.is-collapsed .sf-hero-status .sf-status.is-pin {
    display: inline-flex !important;
  }

  .sf-page.is-collapsed .sf-category-bar {
    position: relative;
    top: auto;
    margin: 0 -14px 12px;
    padding: 10px 14px 11px;
  }
}

/* ============================================================
   Spacebar Customizer & Tracking Overrides (revamped)
   ============================================================ */

.sf-customizer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 18, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  animation: fadeIn 300ms ease;
}

.sf-customizer-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--sb-surface);
  border-top: 1px solid var(--sb-border);
  border-radius: var(--sb-r-xl) var(--sb-r-xl) 0 0;
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: 0 -10px 40px rgba(30, 33, 29, 0.15), var(--sb-shadow-inset-hi);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: slideUp 400ms var(--sb-ease-glide);
}

@media (min-width: 768px) {
  .sf-customizer-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 480px;
    max-height: 90vh;
    transform: translate(-50%, -50%);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-r-xl);
    animation: zoomIn 350ms var(--sb-ease-glide);
  }
}

.sf-customizer-modal .modal-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--sb-border);
}

.sf-customizer-modal .modal-head .title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-customizer-modal .modal-head h2 {
  font-family: var(--sb-heading);
  font-size: var(--sb-fs-h3);
  text-transform: uppercase;
  color: var(--sb-fg);
  margin: 0;
}

.sf-customizer-modal .modal-head .close-btn {
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--sb-fg);
  cursor: pointer;
  box-shadow: var(--sb-shadow-1);
  transition: all 200ms ease;
}

.sf-customizer-modal .modal-head .close-btn:hover {
  transform: scale(1.05);
}

.sf-customizer-modal .modal-head .item-name {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--sb-fg-3);
  font-family: var(--sb-mono);
}

.sf-customizer-modal .modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.customizer-hero-img {
  width: 100%;
  height: 160px;
  border-radius: var(--sb-r-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  border: 1px solid var(--sb-border);
}

.option-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.group-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sb-tan);
}

.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.pill-selector button {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--sb-border);
  background: var(--sb-surface-2);
  color: var(--sb-fg-2);
  font-family: var(--sb-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}

.pill-selector button.active {
  border-color: var(--sb-mint);
  background: var(--sb-mint);
  color: var(--sb-cream);
  box-shadow: 0 4px 12px rgba(0, 168, 120, 0.25);
}

.list-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--sb-r-md);
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  cursor: pointer;
  transition: all 200ms ease;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--sb-mint);
}

.checkbox-row .label-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
}

.checkbox-row .label-info strong {
  color: var(--sb-fg);
}

.checkbox-row .label-info span {
  font-family: var(--sb-mono);
  color: var(--sb-mint);
  font-weight: 700;
}

.customizer-note input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--sb-r-md);
  border: 1px solid var(--sb-border);
  background: var(--sb-surface-2);
  color: var(--sb-fg);
  font-size: 13px;
  margin-top: 6px;
}

.sf-customizer-modal .modal-foot {
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sb-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--sb-surface-2);
}

.sf-customizer-modal .modal-foot .price-row {
  display: flex;
  flex-direction: column;
}

.sf-customizer-modal .modal-foot .price-row span {
  font-size: 11px;
  color: var(--sb-fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sf-customizer-modal .modal-foot .price-row strong {
  font-family: var(--sb-heading);
  font-size: 20px;
  color: var(--sb-fg);
}

.sf-customizer-modal .modal-foot .confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 99px;
  border: 0;
  background: var(--sb-mint);
  color: var(--sb-cream);
  font-family: var(--sb-body);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 168, 120, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 200ms ease;
}

.sf-customizer-modal .modal-foot .confirm-btn:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes zoomIn {
  from { transform: translate(-50%, -40%) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ============================================================
   Spacebar Storefront Collapsible Sticky Hero & Category Bar
   ============================================================ */

/* Gracefully hide maps bridge */
.sf-page.is-collapsed .sf-maps-bridge {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  pointer-events: none;
  transition: all 300ms ease;
}

/* Collapse cover image */
.sf-page.is-collapsed .sf-hero {
  position: sticky;
  top: 66px; /* Sticky below header */
  z-index: 25;
  margin: 0 0 12px;
  border-radius: var(--sb-r-md);
  box-shadow: 0 4px 20px rgba(30, 33, 29, 0.08);
  transition: all 400ms var(--sb-ease-glide);
}

.sf-page.is-collapsed .sf-hero-cover {
  height: 0 !important;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  transition: all 400ms var(--sb-ease-glide);
}

/* Snug header body */
.sf-page.is-collapsed .sf-hero-body {
  padding: 8px 16px !important;
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  background: rgba(255, 253, 246, 0.95) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  border-top: 0;
  transition: all 400ms var(--sb-ease-glide);
}

.sf-page.is-collapsed .sf-hero-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.sf-page.is-collapsed .sf-hero-info .sb-eyebrow {
  display: none !important; /* Hide vertical label in compact mode */
}

.sf-page.is-collapsed .sf-hero-info h1 {
  font-size: 16px !important;
  margin: 0 !important;
  font-weight: 700;
  white-space: nowrap;
}

.sf-page.is-collapsed .sf-hero-info p {
  display: none !important; /* Hide long description */
}

.sf-page.is-collapsed .sf-hero-status {
  margin-top: 0 !important;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.sf-page.is-collapsed .sf-hero-status .sf-status {
  padding: 3px 8px !important;
  font-size: 9px !important;
}

.sf-page.is-collapsed .sf-hero-status .sf-status.is-pin {
  display: none !important; /* Hide full address to fit in small devices */
}

/* Category bar sticks just below the compact sticky hero */
.sf-page.is-collapsed .sf-category-bar {
  position: sticky;
  top: 114px; /* header (66px) + collapsed hero (48px) */
  z-index: 24;
  background: rgba(255, 248, 237, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0 0 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sb-border);
  box-shadow: 0 4px 16px rgba(30, 33, 29, 0.02);
  transition: all 300ms ease;
}

/* Compensate space for product grid head when category sticks */
.sf-page.is-collapsed .sf-section-head {
  margin-top: 16px !important;
}

/* ============================================================
   Mobile Storefront Overrides (< 600px)
   ============================================================ */
@media (max-width: 720px) {
  .sf-page.is-mobile .sf-header {
    position: relative;
    top: auto;
  }

  .sf-page.is-mobile .sf-hero,
  .sf-page.is-mobile.is-collapsed .sf-hero {
    position: relative;
    top: auto;
    transition: none;
  }

  .sf-page.is-mobile .sf-hero-cover,
  .sf-page.is-mobile.is-collapsed .sf-hero-cover,
  .sf-page.is-mobile .sf-hero-body,
  .sf-page.is-mobile.is-collapsed .sf-hero-body,
  .sf-page.is-mobile .sf-category-bar,
  .sf-page.is-mobile.is-collapsed .sf-category-bar {
    transition: none;
  }

  .sf-page.is-mobile .sf-category-bar,
  .sf-page.is-mobile.is-collapsed .sf-category-bar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 600px) {
  .sf-section-head {
    align-items: flex-end;
    margin: 20px 0 14px;
  }

  .sf-section-head h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .sf-section-head .count {
    font-size: 11px;
  }

  .sf-grid {
    display: grid;
    flex-direction: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sf-product {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
  }

  .sf-product-photo {
    order: 0;
    width: 100%;
    aspect-ratio: 1 / 0.96;
    min-height: 0;
    height: auto;
    margin: 0;
    border-radius: 0;
  }

  .sf-product-tag {
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    font-size: 9px;
    letter-spacing: 0.14em;
    border-radius: 999px;
  }

  .sf-product-body {
    order: 0;
    padding: 16px 16px 18px;
    gap: 8px;
    justify-content: flex-start;
  }

  .sf-product-body h3 {
    font-size: 17px;
    line-height: 0.98;
    letter-spacing: -0.03em;
  }

  .sf-product-body .meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 2.8em;
    font-size: 13px;
    line-height: 1.45;
    max-width: none;
  }

  .sf-product-foot {
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
  }

  .sf-product-price {
    gap: 6px;
    align-items: baseline;
  }

  .sf-product-price .currency {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .sf-product-price .amount {
    font-size: 22px;
    line-height: 1;
  }

  .sf-add-btn {
    width: 40px;
    height: 40px;
    box-shadow: 0 10px 22px rgba(0, 168, 120, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .sf-stepper {
    transform: none;
  }

  /* --- Customizer Modal: full bottom-sheet --- */
  .sf-customizer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
  }

  .sf-customizer-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 92vh;
    width: 100% !important;
    background: #FFFDF6;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    animation: slideUp 350ms ease-out;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sf-customizer-modal .modal-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--sb-border);
    flex-shrink: 0;
  }

  .sf-customizer-modal .modal-head h2 {
    font-size: 18px;
  }

  .sf-customizer-modal .modal-body {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
  }

  .customizer-hero-img {
    height: 120px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .option-groups {
    gap: 14px;
  }

  .option-group {
    gap: 6px;
  }

  .group-title {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .pill-selector {
    gap: 6px;
  }

  .pill-selector button {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 99px;
  }

  .list-selector .checkbox-row {
    padding: 8px 10px;
  }

  .customizer-note input {
    font-size: 13px;
    padding: 10px 12px;
  }

  .sf-customizer-modal .modal-foot {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--sb-border);
    background: #FFFDF6;
    flex-shrink: 0;
    gap: 12px;
  }

  .sf-customizer-modal .modal-foot .price-row span {
    font-size: 11px;
  }

  .sf-customizer-modal .modal-foot .price-row strong {
    font-size: 18px;
  }

  .sf-customizer-modal .modal-foot .confirm-btn {
    padding: 12px 20px;
    font-size: 13px;
    min-width: 0;
    flex-shrink: 0;
  }

  /* --- Cart Sheet --- */
  .sf-sheet {
    width: 100% !important;
  }

  .sf-sheet-head {
    padding: 16px 16px 10px;
  }

  .sf-sheet-body {
    padding: 12px 16px;
  }

  .sf-sheet-foot {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* --- Compact Mobile Layout & Alignment Overhauls --- */
  .sf-header {
    padding: 10px 0 8px;
  }
  .sf-brand img {
    width: 28px;
  }
  .sf-brand span {
    font-size: 12px;
  }
  
  .sf-hero {
    margin: 8px 0 12px;
    border-radius: 16px;
  }
  .sf-hero-cover {
    height: 90px !important;
  }
  .sf-hero-vendor-stamp {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .sf-hero-body {
    padding: 10px 12px !important;
    gap: 8px;
  }
  .sf-hero-info h1 {
    font-size: 18px !important;
  }
  .sf-hero-info p {
    font-size: 11px !important;
    line-height: 1.35;
    margin-top: 2px;
    -webkit-line-clamp: 2;
  }
  .sf-hero-status {
    margin-top: 4px !important;
    gap: 4px;
  }
  .sf-status {
    padding: 4px 8px !important;
    font-size: 9px !important;
    gap: 4px;
  }
  .sf-status .dot {
    width: 4px;
    height: 4px;
  }
  
  /* Booking strip */
  .sf-booking-strip {
    padding: 10px 14px;
    margin: 8px 0 10px;
    border-radius: 12px;
    gap: 10px;
  }
  .sf-booking-strip .pill {
    padding: 4px 8px;
    font-size: 9px;
  }
  .sf-booking-strip .info strong {
    font-size: 12px;
  }
  .sf-booking-strip .info span {
    font-size: 10px;
    line-height: 1.3;
  }

  /* Full-bleed edge-to-edge sticky category bar with fading scroll mask */
  .sf-category-bar {
    margin: 6px -16px 12px !important;
    padding: 6px 16px !important;
    width: calc(100% + 32px);
    box-sizing: border-box;
    mask-image: linear-gradient(to right, transparent, white 16px, white calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 16px, white calc(100% - 16px), transparent);
  }
  .sf-cat-chip {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }

  /* Section heads spacing */
  .sf-section-head {
    margin: 20px 0 10px !important;
  }
  .sf-section-head h2 {
    font-size: 16px !important;
    font-weight: 700;
  }
  .sf-section-head .count {
    font-size: 10px !important;
  }

  /* Compact Product Cards & Strict Baseline Alignment */
  .sf-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .sf-product {
    border-radius: 12px;
  }
  .sf-product-photo {
    aspect-ratio: 16 / 10;
  }
  .sf-product-body {
    padding: 8px !important;
    gap: 2px;
  }
  .sf-product-body h3 {
    font-size: 12px !important;
  }
  .sf-product-body .meta {
    font-size: 10px !important;
    height: 1.3em;
    line-height: 1.3;
  }
  .sf-product-foot {
    margin-top: auto !important;
    padding-top: 4px !important;
  }
  .sf-product-price .amount {
    font-size: 14px !important;
  }
  .sf-product-price .currency {
    font-size: 8px !important;
  }
  .sf-add-btn {
    width: 26px;
    height: 26px;
  }
  .sf-add-btn svg {
    width: 12px;
    height: 12px;
  }
  .sf-stepper {
    padding: 1px;
  }
  .sf-stepper button {
    width: 22px;
    height: 22px;
  }
  .sf-stepper button svg {
    width: 10px;
    height: 10px;
  }
  .sf-stepper .qty {
    min-width: 16px;
    font-size: 11px;
  }

  /* Snug Service Cards */
  .sf-service-card {
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }
  .sf-service-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
  }
  .sf-service-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
  .sf-service-body h3 {
    font-size: 13px !important;
  }
  .sf-service-body .meta {
    font-size: 10px !important;
    line-height: 1.35;
  }
  .sf-service-foot {
    margin-top: 4px !important;
  }
  .sf-service-foot .duration {
    font-size: 10px !important;
  }
  .sf-service-foot .duration svg {
    width: 10px !important;
    height: 10px !important;
  }
  .sf-service-foot .sf-product-price .amount {
    font-size: 14px !important;
  }

  /* ============================================================
     Super-Compact Checkout UI & Well-Structured Cart FAB
     ============================================================ */
  .sf-cart-fab {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: calc(100% - 28px) !important;
    height: 56px !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #11845f, #0d6d4e) !important;
    box-shadow: 0 16px 36px rgba(13, 109, 78, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }
  .sf-cart-fab-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sf-cart-fab-icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff8ed;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .sf-cart-fab-icon-wrap .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 900;
    padding: 0 4px;
    background: #FFFDF6 !important;
    color: #11845f !important;
    border-radius: 99px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  .sf-cart-fab span {
    font-size: 14px !important;
    font-weight: 800;
    color: #FFFDF6;
  }
  .sf-cart-fab-right {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.12);
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .sf-cart-fab-right .total-price {
    font-family: var(--sb-mono);
    font-size: 13px;
    font-weight: 900;
    color: #FFFDF6;
  }
  .sf-cart-fab-right svg {
    color: #FFFDF6;
    opacity: 0.8;
  }

  /* Cart List Row & Spacing Compaction */
  .sf-sheet-row {
    padding: 10px 0 !important;
    gap: 12px !important;
    border-bottom: 1px dashed rgba(30, 33, 29, 0.08) !important;
  }
  .sf-sheet-row .thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
  }
  .sf-sheet-row .info strong {
    font-size: 13px !important;
    line-height: 1.3;
  }
  .sf-sheet-row .info .sf-item-details {
    font-size: 10px !important;
    opacity: 0.75;
    margin-top: 1px;
    display: block;
    line-height: 1.3;
  }
  .sf-sheet-row .info .sf-item-meta {
    font-size: 11px !important;
    opacity: 0.6;
    margin-top: 1px;
    display: block;
  }

  /* Section headers in compact cards */
  .sf-section-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(30, 33, 29, 0.06);
    padding-bottom: 6px;
  }
  .sf-section-header-compact .sb-eyebrow {
    margin: 0 !important;
    font-size: 9px !important;
    letter-spacing: 0.06em;
  }
  .sf-compact-toggle-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #11845f;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .sf-compact-toggle-btn:hover {
    opacity: 0.8;
  }

  /* Auth Compact Styles */
  .sf-auth-card {
    padding: 12px !important;
    background: rgba(30, 33, 29, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(30, 33, 29, 0.05) !important;
    margin-bottom: 12px !important;
  }
  .sf-compact-auth-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sf-compact-auth-view .sf-auth-status {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    opacity: 0.7;
  }
  .sf-google-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    height: 36px !important;
    margin-top: 2px !important;
  }
  .sf-expanded-form {
    margin-top: 8px;
    border-top: 1px dashed rgba(30, 33, 29, 0.08);
    padding-top: 10px;
    animation: slideDown 0.25s ease-out;
  }
  .sf-compact-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sf-compact-profile-row .profile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .sf-compact-profile-row .profile-details strong {
    font-size: 13px;
    color: var(--sb-black);
  }
  .sf-compact-profile-row .profile-details span {
    font-size: 11px;
    opacity: 0.6;
  }
  .sf-signout-btn {
    background: none;
    border: 0;
    padding: 4px 8px;
    color: #cf3c3c;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid rgba(207, 60, 60, 0.2);
  }

  /* Address Card & Horizontal Scroll UI */
  .sf-address-card {
    padding: 12px !important;
    background: rgba(30, 33, 29, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(30, 33, 29, 0.05) !important;
    margin-bottom: 12px !important;
  }
  .sf-address-scroll {
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 8px;
    margin: 4px 0;
    -webkit-overflow-scrolling: touch;
  }
  .sf-address-horizontal-grid {
    display: flex;
    gap: 8px;
  }
  .sf-address-pill {
    flex-shrink: 0;
    width: 160px;
    padding: 10px;
    border-radius: 10px;
    background: #FFFDF6;
    border: 1px solid rgba(30, 33, 29, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .sf-address-pill.is-selected {
    border-color: #11845f;
    background: rgba(17, 132, 95, 0.04);
    box-shadow: 0 4px 12px rgba(17, 132, 95, 0.06);
  }
  .sf-address-pill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }
  .sf-address-pill-head .label-badge {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    color: #11845f;
    background: rgba(17, 132, 95, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
  }
  .sf-address-pill.is-selected .sf-address-pill-head .label-badge {
    background: #11845f;
    color: #FFFDF6;
  }
  .sf-address-pill-head .default-indicator {
    font-size: 8px;
    opacity: 0.5;
    font-style: italic;
  }
  .sf-address-pill .address-text {
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
  }
  .sf-address-pill.is-selected .address-text {
    opacity: 0.95;
    color: var(--sb-black);
  }
  .sf-address-empty-msg {
    font-size: 11px;
    opacity: 0.5;
    margin: 4px 0;
  }

  /* Notes Card Compaction */
  .sf-notes-card {
    padding: 12px !important;
    background: rgba(30, 33, 29, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(30, 33, 29, 0.05) !important;
    margin-bottom: 12px !important;
  }
  .sf-notes-card .sb-eyebrow {
    font-size: 9px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(30, 33, 29, 0.06);
    padding-bottom: 4px;
  }
  .sf-notes-card .sf-field {
    margin: 0 !important;
  }

  /* Compact Fields and Inputs */
  .sf-field {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }
  .sf-field label {
    font-size: 10px !important;
    font-weight: 800 !important;
  }
  .sf-field input, .sf-field select {
    height: 38px !important;
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  .sf-secondary-btn {
    height: 36px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
  }

  /* Checkout footer compaction */
  .sf-sheet-foot {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(30, 33, 29, 0.08) !important;
  }
  .sf-totals {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }
  .sf-totals .row {
    font-size: 12px !important;
  }
  .sf-totals .row.is-total {
    font-size: 15px !important;
    border-top: 1px dashed rgba(30, 33, 29, 0.1) !important;
    padding-top: 6px !important;
    margin-top: 2px !important;
  }
  .sf-send-btn {
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .sf-tracking-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 28px !important;
  }

  .sf-tracking-header {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  .sf-tracking-header .sf-brand img {
    width: 28px;
  }

  .sf-tracking-header .sf-brand span {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .sf-tracking-header .sf-vendor-name {
    font-size: 13px;
    padding-left: 10px;
    margin-left: 0;
  }

  .sf-tracking-header .sf-header-right {
    width: 100%;
    margin-left: 0;
  }

  .sf-tracking-header-btn {
    width: 100%;
    justify-content: center;
  }

  .sf-tracking-actions {
    flex-direction: column;
  }

  .sf-tracking-action {
    width: 100%;
  }
}
/* ============================================================
   MapsMenu — compact in-app browser digital menu
   Designed for ~390px wide, Google Maps in-app browser
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ── Root / page shell ─────────────────────────────────────── */

.mm-root {
  --mm-bg:        #FEFAF5;
  --mm-surface:   #FFFFFF;
  --mm-brand:     #2C1A0E;
  --mm-accent:    #B87333;
  --mm-accent-lt: #FFF3E5;
  --mm-text:      #1A1108;
  --mm-muted:     #7A6552;
  --mm-border:    #EDE5D8;
  --mm-open:      #1E7A3C;
  --mm-open-bg:   #EBFBF0;
  --mm-green:     #25D366;
  --mm-radius:    12px;
  --mm-radius-sm: 8px;
  --mm-fab-h:     64px;
  --mm-header-h:  110px;
  --mm-catbar-h:  48px;

  position: relative;
  min-height: 100dvh;
  background: var(--mm-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--mm-text);
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── Store header (≈110px, ~13% of 850px viewport) ─────────── */

.mm-header {
  position: relative;
  height: var(--mm-header-h);
  overflow: hidden;
  flex-shrink: 0;
}

.mm-header-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  will-change: transform;
}

.mm-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 4, 0.45) 0%,
    rgba(20, 10, 4, 0.72) 100%
  );
}

.mm-header-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0 16px 12px;
  gap: 6px;
}

.mm-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.mm-header-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mm-store-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.mm-store-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.1;
}

/* open/closed chip */
.mm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mm-chip--open {
  background: var(--mm-open-bg);
  color: var(--mm-open);
}

.mm-chip--closed {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
}

.mm-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.mm-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.72);
}

.mm-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mm-meta-sep {
  opacity: 0.5;
}

/* ── Category bar (sticky) ─────────────────────────────────── */

.mm-catbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: var(--mm-catbar-h);
  background: var(--mm-bg);
  border-bottom: 1px solid var(--mm-border);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mm-catbar::-webkit-scrollbar { display: none; }

.mm-catpill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--mm-border);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--mm-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.mm-catpill.is-active {
  background: var(--mm-brand);
  border-color: var(--mm-brand);
  color: #FFFFFF;
  font-weight: 600;
}

.mm-catpill:not(.is-active):active {
  background: var(--mm-accent-lt);
  border-color: var(--mm-accent);
}

/* ── Main scrollable content ───────────────────────────────── */

.mm-main {
  padding: 0 0 calc(var(--mm-fab-h) + 24px + env(safe-area-inset-bottom, 0px));
}

.mm-section-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 16px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-section-count {
  font-size: 11px;
  font-weight: 500;
  background: var(--mm-border);
  color: var(--mm-muted);
  border-radius: 10px;
  padding: 1px 7px;
}

/* ── Menu item list ────────────────────────────────────────── */

.mm-list {
  display: flex;
  flex-direction: column;
}

.mm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mm-surface);
  border-bottom: 1px solid var(--mm-border);
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.mm-item:first-child {
  border-top: 1px solid var(--mm-border);
}

.mm-item.in-cart {
  background: #FFFBF5;
}

/* Photo */
.mm-item-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.mm-item-photo {
  width: 68px;
  height: 68px;
  border-radius: var(--mm-radius-sm);
  object-fit: cover;
  display: block;
  background: var(--mm-border);
}

.mm-item-photo--empty {
  background: var(--mm-border);
}

.mm-item-tag {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--mm-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Body text */
.mm-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mm-item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-item-meta {
  margin: 0;
  font-size: 12px;
  color: var(--mm-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-item-price {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--mm-brand);
  letter-spacing: -0.01em;
}

/* Add button */
.mm-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mm-add-btn:active {
  background: var(--mm-brand);
  border-color: var(--mm-brand);
  color: #fff;
  transform: scale(0.92);
}

/* Stepper */
.mm-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--mm-brand);
  border-radius: 20px;
  padding: 2px;
  flex-shrink: 0;
}

.mm-stepper--sm {
  background: transparent;
  gap: 8px;
}

.mm-stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mm-stepper-btn:active { background: rgba(255,255,255,0.3); }
.mm-stepper-btn--add { background: rgba(255,255,255,0.22); }

.mm-stepper--sm .mm-stepper-btn {
  background: var(--mm-border);
  color: var(--mm-brand);
  width: 26px;
  height: 26px;
}

.mm-stepper--sm .mm-stepper-btn--add {
  background: var(--mm-brand);
  color: #fff;
}

.mm-stepper-qty {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mm-stepper--sm .mm-stepper-qty {
  color: var(--mm-text);
}

/* ── Cart FAB ──────────────────────────────────────────────── */

.mm-fab {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 16px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(480px - 32px);
  height: var(--mm-fab-h);
  background: var(--mm-brand);
  color: #fff;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(44, 26, 14, 0.28);
  transition: transform 0.12s, box-shadow 0.12s;
  z-index: 30;
  -webkit-tap-highlight-color: transparent;
}

.mm-fab:active {
  transform: translateX(-50%) scale(0.97);
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.22);
}

.mm-fab-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-fab-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.mm-fab-label {
  font-size: 15px;
  font-weight: 600;
}

.mm-fab-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mm-fab-price {
  font-size: 15px;
  font-weight: 700;
}

/* ── Out of stock ──────────────────────────────────────────── */

.mm-item--oos {
  opacity: 0.5;
}

.mm-item-oos-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  border-radius: var(--mm-radius-sm);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Cart sheet ────────────────────────────────────────────── */

.mm-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 10, 4, 0.45);
  display: flex;
  align-items: flex-end;
  animation: mm-fade-in 0.18s ease;
}

@keyframes mm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mm-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--mm-surface);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  outline: none;
  animation: mm-slide-up 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes mm-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.mm-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--mm-border);
  margin: 12px auto 0;
  flex-shrink: 0;
}

.mm-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 0;
  flex-shrink: 0;
}

.mm-sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mm-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--mm-border);
  color: var(--mm-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mm-sheet-items {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mm-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-cart-row-info {
  flex: 1;
  min-width: 0;
}

.mm-cart-row-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-cart-row-meta {
  display: block;
  font-size: 11px;
  color: var(--mm-muted);
  margin-top: 1px;
}

.mm-cart-row-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--mm-brand);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
}

/* Totals */
.mm-sheet-totals {
  padding: 12px 20px;
  border-top: 1px solid var(--mm-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.mm-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--mm-muted);
}

.mm-total-row--total {
  font-size: 16px;
  font-weight: 700;
  color: var(--mm-text);
  padding-top: 6px;
  border-top: 1px dashed var(--mm-border);
  margin-top: 2px;
}

.mm-free-tag {
  background: var(--mm-open-bg);
  color: var(--mm-open);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.mm-free-nudge {
  font-size: 12px;
  color: var(--mm-accent);
  font-weight: 500;
  background: var(--mm-accent-lt);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

/* Order button */
.mm-order-btn {
  margin: 0 20px 12px;
  height: 52px;
  border-radius: 14px;
  border: none;
  background: var(--mm-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: filter 0.12s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mm-order-btn:active { filter: brightness(0.9); }

.mm-sheet-note {
  margin: 0 20px 16px;
  font-size: 11px;
  color: var(--mm-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── Sheet scroll area ─────────────────────────────────────── */

.mm-sheet-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Sheet footer (sticky CTA) ─────────────────────────────── */

.mm-sheet-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--mm-border);
  flex-shrink: 0;
}

/* ── Status line ───────────────────────────────────────────── */

.mm-status-line {
  margin: 0;
  padding: 8px 20px;
  font-size: 12px;
  color: var(--mm-accent);
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
}

/* ── Checkout sections ─────────────────────────────────────── */

.mm-checkout-section {
  padding: 12px 20px;
  border-top: 1px solid var(--mm-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mm-checkout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

/* Auth block */
.mm-auth-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: var(--mm-radius-sm);
  border: 1.5px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.mm-google-btn:active { background: var(--mm-bg); }

/* Link buttons */
.mm-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mm-link-btn--sm { font-size: 11px; align-self: flex-start; }
.mm-link-btn--danger { color: #c0392b; }

/* Profile row */
.mm-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--mm-bg);
  border-radius: var(--mm-radius-sm);
}

.mm-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mm-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-profile-sub {
  font-size: 11px;
  color: var(--mm-muted);
}

/* Forms */
.mm-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-form--inline {
  margin-top: 4px;
}

.mm-input {
  height: 38px;
  border-radius: var(--mm-radius-sm);
  border: 1.5px solid var(--mm-border);
  background: var(--mm-surface);
  padding: 0 12px;
  font-size: 13px;
  color: var(--mm-text);
  outline: none;
  transition: border-color 0.12s;
  -webkit-appearance: none;
}

.mm-input:focus { border-color: var(--mm-accent); }
.mm-input::placeholder { color: var(--mm-muted); opacity: 0.7; }

select.mm-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A6552' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  appearance: none;
}

.mm-secondary-btn {
  height: 38px;
  border-radius: var(--mm-radius-sm);
  border: 1.5px solid var(--mm-brand);
  background: transparent;
  color: var(--mm-brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.mm-secondary-btn:active { background: var(--mm-brand); color: #fff; }
.mm-secondary-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Address grid */
.mm-addr-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-addr-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--mm-radius-sm);
  border: 1.5px solid var(--mm-border);
  background: var(--mm-surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.mm-addr-pill.is-selected {
  border-color: var(--mm-brand);
  background: var(--mm-accent-lt);
}

.mm-addr-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-addr-pill.is-selected .mm-addr-label { color: var(--mm-brand); }

.mm-addr-text {
  font-size: 13px;
  color: var(--mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-hint {
  margin: 0;
  font-size: 12px;
  color: var(--mm-muted);
}

/* ── Footer ────────────────────────────────────────────────── */

.mm-footer {
  padding: 32px 16px 16px;
  display: flex;
  justify-content: center;
}

.mm-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mm-footer-logo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-muted);
  opacity: 0.6;
}

.mm-footer-tagline {
  font-size: 10px;
  color: var(--mm-muted);
  opacity: 0.5;
  text-align: center;
}

.mm-root.is-desktop {
  max-width: min(1280px, calc(100vw - 32px));
}

.mm-returning {
  margin: 18px 16px 6px;
  padding: 14px 16px;
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,248,238,0.98));
  box-shadow: 0 8px 24px rgba(44, 26, 14, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mm-returning-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mm-returning-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-returning-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.mm-returning-sub {
  font-size: 12px;
  color: var(--mm-muted);
  line-height: 1.35;
}

.mm-track-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--mm-brand);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(44, 26, 14, 0.18);
}

@media (max-width: 639px) {
  .mm-returning {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (min-width: 960px) {
  .mm-root {
    background:
      radial-gradient(circle at top right, rgba(184, 115, 51, 0.08), transparent 26%),
      var(--mm-bg);
  }

  .mm-header {
    height: 220px;
    border-radius: 0 0 24px 24px;
  }

  .mm-header-cover {
    transform: scale(1.01);
    background-position: center 38%;
  }

  .mm-header-overlay {
    background: linear-gradient(
      90deg,
      rgba(20, 10, 4, 0.72) 0%,
      rgba(20, 10, 4, 0.48) 45%,
      rgba(20, 10, 4, 0.2) 100%
    );
  }

  .mm-header-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 22px;
    gap: 8px;
  }

  .mm-store-label {
    font-size: 11px;
  }

  .mm-store-name {
    font-size: 34px;
  }

  .mm-header-meta {
    font-size: 13px;
    gap: 8px;
  }

  .mm-catbar {
    top: 0;
    height: 58px;
    padding: 0 24px;
    justify-content: flex-start;
  }

  .mm-catpill {
    font-size: 13px;
    padding: 8px 14px;
  }

  .mm-main {
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px 24px 72px;
  }

  .mm-returning {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .mm-returning-copy strong {
    font-size: 16px;
  }

  .mm-returning-sub {
    font-size: 12px;
  }

  .mm-section-label {
    padding: 4px 0 10px;
    font-size: 13px;
  }

  .mm-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .mm-item,
  .mm-item:first-child {
    height: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--mm-surface);
    box-shadow: 0 6px 18px rgba(44, 26, 14, 0.05);
  }

  .mm-item.in-cart {
    background: #fffaf3;
    border-color: rgba(184, 115, 51, 0.24);
  }

  .mm-item-photo-wrap {
    width: 100%;
  }

  .mm-item-photo,
  .mm-item-photo--empty {
    width: 100%;
    aspect-ratio: 1.3 / 1;
    height: auto;
    border-radius: 0;
  }

  .mm-item-tag {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    background: rgba(255,255,255,0.9);
    color: var(--mm-brand);
  }

  .mm-item-body {
    flex: 1;
    padding: 12px 12px 8px;
    gap: 4px;
  }

  .mm-item-name,
  .mm-item-meta {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .mm-item-name {
    font-size: 15px;
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .mm-item-meta {
    font-size: 12px;
    line-height: 1.28;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.28em;
  }

  .mm-item-price {
    margin-top: 4px;
    font-size: 17px;
    letter-spacing: -0.02em;
  }

  .mm-item-action {
    padding: 0 12px 12px;
    display: flex;
    justify-content: flex-end;
  }

  .mm-add-btn {
    width: 38px;
    height: 38px;
    border-width: 0;
    background: #00b67a;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 182, 122, 0.16);
  }

  .mm-stepper {
    padding: 3px;
    gap: 4px;
    border-radius: 999px;
  }

  .mm-stepper-btn {
    width: 30px;
    height: 30px;
  }

  .mm-stepper-qty {
    min-width: 18px;
    font-size: 13px;
  }

  .mm-item-oos-badge {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .mm-footer {
    padding: 24px 0 0;
  }

  .mm-fab {
    left: auto;
    right: 24px;
    transform: none;
    width: auto;
    min-width: 280px;
    max-width: none;
  }

  .mm-fab:active {
    transform: scale(0.98);
  }

  .mm-sheet-backdrop {
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
  }

  .mm-sheet {
    margin: 0;
    max-width: 480px;
    width: min(480px, 100%);
    max-height: calc(100dvh - 48px);
    border-radius: 28px;
    animation: none;
  }

  .mm-sheet-handle {
    display: none;
  }
}

@media (min-width: 1200px) {
  .mm-main {
    max-width: 1480px;
  }

  .mm-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .mm-item-photo,
  .mm-item-photo--empty {
    aspect-ratio: 1.18 / 1;
  }
}
/* ============================================================
   Spacebar Vendor Panel — Operator-facing utility CSS
   Data-rich; no iridescent backdrop; clean, dense, productive.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--sb-body);
  color: var(--sb-fg);
  background: #FDFCF8;
  font-size: 13px;
}

/* ============================================================
   1. App shell — fixed sidebar, flexible main
   ============================================================ */
.vp-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.vp-sidebar {
  background: #FFFFFF;
  border-right: 1px solid rgba(46, 46, 53, 0.08);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.vp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(46, 46, 53, 0.08);
  text-decoration: none;
  color: var(--sb-fg);
}
.vp-sidebar-brand img { width: 28px; height: auto; }
.vp-sidebar-brand strong {
  font-family: var(--sb-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.vp-vendor-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  margin: 0 0 4px;
  border-radius: 12px;
  background: #FAF7EE;
  border: 1px solid rgba(46, 46, 53, 0.06);
}
.vp-vendor-pill .avatar {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sb-lavender), var(--sb-sky));
  color: var(--sb-cream);
  display: grid; place-items: center;
  font-family: var(--sb-heading);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.vp-vendor-pill .info { display: flex; flex-direction: column; min-width: 0; }
.vp-vendor-pill .info strong { font-size: 12px; font-weight: 700; color: var(--sb-fg); }
.vp-vendor-pill .info span { font-family: var(--sb-mono); font-size: 10px; color: var(--sb-fg-3); }

.vp-nav { display: flex; flex-direction: column; gap: 1px; }
.vp-nav-section {
  font-family: var(--sb-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-fg-3);
  padding: 12px 10px 6px;
}
.vp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sb-fg-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background 120ms var(--sb-ease-out);
  position: relative;
}
.vp-nav-item:hover { background: rgba(46, 46, 53, 0.04); color: var(--sb-fg); }
.vp-nav-item.is-active {
  background: #2E2E35;
  color: #FFFDF7;
  font-weight: 600;
}
.vp-nav-item .badge {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sb-mint);
  color: var(--sb-cream);
  font-family: var(--sb-mono);
  font-size: 10px;
  font-weight: 700;
}
.vp-nav-item.is-active .badge {
  background: rgba(255, 253, 247, 0.18);
  color: var(--sb-cream);
}
.vp-sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(46, 46, 53, 0.06); }

/* ============================================================
   2. Main content area
   ============================================================ */
.vp-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(46, 46, 53, 0.08);
  background: rgba(253, 252, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.vp-topbar-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vp-topbar-title h1 {
  font-family: var(--sb-heading);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--sb-fg);
}
.vp-topbar-title span {
  font-family: var(--sb-mono);
  font-size: 11px;
  color: var(--sb-fg-3);
}

.vp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vp-btn {
  font-family: var(--sb-body);
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 46, 53, 0.10);
  background: #FFFFFF;
  color: var(--sb-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(46, 46, 53, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 160ms var(--sb-ease-out);
}
.vp-btn:hover { background: #FAF7EE; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(46, 46, 53, 0.06); }
.vp-btn-primary {
  background: var(--sb-mint);
  color: var(--sb-cream);
  border-color: var(--sb-mint);
  box-shadow: 0 4px 10px rgba(0, 168, 120, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.vp-btn-primary:hover { background: #009965; }
.vp-btn-icon {
  width: 34px;
  padding: 0;
  justify-content: center;
}

/* ---- Search input ---- */
.vp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 34px;
  width: 280px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(46, 46, 53, 0.10);
  color: var(--sb-fg-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.vp-search input {
  font: inherit;
  font-size: 12px;
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  color: var(--sb-fg);
}
.vp-search input::placeholder { color: var(--sb-fg-4); }

/* ---- Page body ---- */
.vp-body {
  padding: 24px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* ============================================================
   3. KPI tiles
   ============================================================ */
.vp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.vp-kpi {
  background: #FFFFFF;
  border: 1px solid rgba(46, 46, 53, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(46, 46, 53, 0.04);
  position: relative;
  overflow: hidden;
}
.vp-kpi-label {
  font-family: var(--sb-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-fg-3);
}
.vp-kpi-value {
  font-family: var(--sb-heading);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sb-fg);
  line-height: 1;
  font-feature-settings: "tnum";
}
.vp-kpi-delta {
  font-family: var(--sb-mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vp-kpi-delta.up { color: #009965; }
.vp-kpi-delta.down { color: #D64545; }
.vp-kpi-sparkline {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 110px;
  height: 38px;
  opacity: 0.85;
}

/* ============================================================
   4. Data table — orders / products / customers
   ============================================================ */
.vp-table-card {
  background: #FFFFFF;
  border: 1px solid rgba(46, 46, 53, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(46, 46, 53, 0.04);
}
.vp-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(46, 46, 53, 0.08);
}
.vp-table-head h2 {
  font-family: var(--sb-heading);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}
.vp-table-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #FAF7EE;
}
.vp-table-tabs button {
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--sb-fg-3);
  cursor: pointer;
}
.vp-table-tabs button.is-active {
  background: #FFFFFF;
  color: var(--sb-fg);
  box-shadow: 0 1px 2px rgba(46, 46, 53, 0.08);
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.vp-table th {
  text-align: left;
  font-family: var(--sb-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sb-fg-3);
  padding: 12px 18px;
  background: #FAF7EE;
  border-bottom: 1px solid rgba(46, 46, 53, 0.08);
  font-feature-settings: "tnum";
}
.vp-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(46, 46, 53, 0.06);
  vertical-align: middle;
  font-feature-settings: "tnum";
}
.vp-table tr { transition: background 120ms var(--sb-ease-out); cursor: pointer; }
.vp-table tbody tr:hover { background: #FAF7EE; }
.vp-table tr.is-selected { background: rgba(123, 184, 212, 0.10); }
.vp-table tr:last-child td { border-bottom: 0; }
.vp-table .id { font-family: var(--sb-mono); color: var(--sb-fg-3); }
.vp-table .name { font-weight: 700; color: var(--sb-fg); }
.vp-table .meta { font-family: var(--sb-mono); font-size: 11px; color: var(--sb-fg-3); }
.vp-table .amount { font-family: var(--sb-mono); font-weight: 700; color: var(--sb-fg); text-align: right; }
.vp-table .time { font-family: var(--sb-mono); font-size: 11px; color: var(--sb-fg-3); }

/* ============================================================
   5. Status pills (order states)
   ============================================================ */
.vp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--sb-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vp-status .dot { width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
.vp-status.new        { color: #5B7CFA; background: rgba(91, 124, 250, 0.10); }
.vp-status.confirmed  { color: #C4A0C8; background: rgba(196, 160, 200, 0.18); }
.vp-status.preparing  { color: #FF6B35; background: rgba(255, 107, 53, 0.10); }
.vp-status.dispatched { color: #7BB8D4; background: rgba(123, 184, 212, 0.16); }
.vp-status.delivered  { color: #009965; background: rgba(0, 168, 120, 0.10); }
.vp-status.cancelled  { color: #D64545; background: rgba(214, 69, 69, 0.10); }

/* ============================================================
   6. Order detail right rail
   ============================================================ */
.vp-orders-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}
.vp-detail {
  background: #FFFFFF;
  border: 1px solid rgba(46, 46, 53, 0.08);
  border-radius: 14px;
  padding: 0;
  position: sticky;
  top: 80px;
  box-shadow: 0 1px 2px rgba(46, 46, 53, 0.04);
  overflow: hidden;
}
.vp-detail-head {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(46, 46, 53, 0.08);
}
.vp-detail-head .who {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vp-detail-head .who strong {
  font-family: var(--sb-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.vp-detail-head .who span {
  font-family: var(--sb-mono);
  font-size: 11px;
  color: var(--sb-fg-3);
}
.vp-detail-section {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(46, 46, 53, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vp-detail-section .lab {
  font-family: var(--sb-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-fg-3);
}
.vp-detail-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.vp-detail-line .item { color: var(--sb-fg); font-weight: 500; }
.vp-detail-line .qty {
  font-family: var(--sb-mono);
  color: var(--sb-fg-3);
  font-size: 11px;
}
.vp-detail-line .price { font-family: var(--sb-mono); font-weight: 700; }
.vp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--sb-fg-2);
}
.vp-detail-row.total {
  border-top: 1px solid rgba(46, 46, 53, 0.08);
  padding-top: 10px;
  margin-top: 4px;
  font-family: var(--sb-heading);
  font-size: 16px;
  color: var(--sb-fg);
  text-transform: uppercase;
}

.vp-detail-actions {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vp-detail-actions button { width: 100%; justify-content: center; }
.vp-detail-actions .vp-btn-primary { grid-column: 1 / -1; height: 40px; }

/* ============================================================
   7. Timeline (order events)
   ============================================================ */
.vp-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-timeline-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}
.vp-timeline-step::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -10px;
  width: 1px;
  background: rgba(46, 46, 53, 0.10);
}
.vp-timeline-step:last-child::before { display: none; }
.vp-timeline-step .marker {
  width: 14px; height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(46, 46, 53, 0.16);
  background: #FFFFFF;
  flex-shrink: 0;
  margin-top: 2px;
}
.vp-timeline-step.is-done .marker { border-color: var(--sb-mint); background: var(--sb-mint); }
.vp-timeline-step.is-active .marker { border-color: var(--sb-mint); background: var(--sb-mint); box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.15); }
.vp-timeline-step .info { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.vp-timeline-step .info strong { font-size: 12px; font-weight: 700; color: var(--sb-fg); }
.vp-timeline-step .info span { font-family: var(--sb-mono); font-size: 10px; color: var(--sb-fg-3); }
.vp-timeline-step.is-pending .info strong { color: var(--sb-fg-3); }

/* ============================================================
   8. Analytics — chart card
   ============================================================ */
.vp-chart-card {
  background: #FFFFFF;
  border: 1px solid rgba(46, 46, 53, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(46, 46, 53, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vp-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vp-chart-head h3 {
  font-family: var(--sb-heading);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}
.vp-chart-head .legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--sb-fg-3);
}
.vp-chart-head .legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vp-chart-head .legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sb-fg);
}

.vp-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-channel-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 12px;
}
.vp-channel-row .name { font-size: 12px; font-weight: 700; color: var(--sb-fg); }
.vp-channel-row .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(46, 46, 53, 0.06);
  overflow: hidden;
  position: relative;
}
.vp-channel-row .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.vp-channel-row .value {
  font-family: var(--sb-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-fg);
  text-align: right;
}

/* ============================================================
   9. Product list (small grid)
   ============================================================ */
.vp-product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vp-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(46, 46, 53, 0.08);
}
.vp-product-row .thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--sb-stone);
  flex-shrink: 0;
}
.vp-product-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vp-product-row .info strong { font-size: 12px; font-weight: 700; color: var(--sb-fg); }
.vp-product-row .info span { font-family: var(--sb-mono); font-size: 10px; color: var(--sb-fg-3); }
.vp-product-row .rev { font-family: var(--sb-mono); font-weight: 700; font-size: 12px; color: var(--sb-fg); }

/* ============================================================
   10. Empty + section title
   ============================================================ */
.vp-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vp-section-title h3 {
  font-family: var(--sb-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
  font-weight: 600;
  color: var(--sb-fg);
}
.vp-section-title a {
  font-family: var(--sb-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--sb-mint);
  text-decoration: none;
}

/* ============================================================
   11. Responsive (collapse sidebar on small screens)
   ============================================================ */
@media (max-width: 960px) {
  .vp-app { grid-template-columns: 64px 1fr; }
  .vp-sidebar { padding: 14px 8px; }
  .vp-sidebar-brand strong, .vp-vendor-pill .info, .vp-nav-section, .vp-nav-item span:not(.badge) { display: none; }
  .vp-vendor-pill { justify-content: center; padding: 6px; }
  .vp-nav-item { justify-content: center; padding: 11px 0; }
  .vp-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .vp-orders-layout { grid-template-columns: 1fr; }
  .vp-detail { position: static; }
  .vp-product-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .vp-app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
  .vp-main { flex: 1; overflow-y: auto; overflow-x: hidden; }
  .vp-sidebar { 
    flex-direction: row; 
    height: 70px; 
    padding: 0 8px; 
    border-right: none; 
    border-top: 1px solid var(--sb-border); 
    overflow-x: auto; 
    order: 2;
    width: 100%;
    position: sticky;
    bottom: 0;
    background: var(--sb-surface-2);
    z-index: 100;
  }
  .vp-vendor-selector-container { display: none; /* Hide on mobile to save space */ }
  .vp-sidebar-nav { flex-direction: row; align-items: center; justify-content: space-around; width: 100%; gap: 0; margin-top: 0; }
  .vp-nav-item { flex-direction: column; gap: 4px; padding: 10px 0; width: 100%; align-items: center; }
  .vp-nav-item svg { width: 22px; height: 22px; margin: 0; }
  .vp-topbar { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .vp-search { width: 100%; order: 3; }
  .vp-body { padding: 16px 16px 80px; }
  .vp-kpi-row { grid-template-columns: 1fr 1fr; }
  .vp-table-card { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
  .vp-table { white-space: nowrap; }
}

/* ============================================================
   Spacebar Vendor Dashboard Extensions & Dark Cyberpunk Mode
   ============================================================ */

.vp-vendor-selector-container {
  padding: 0 16px;
  margin-bottom: 20px;
}

.vp-selector-label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sb-muted-warm);
  margin-bottom: 6px;
}

.vp-vendor-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-r-md);
}

.vp-vendor-select-dropdown {
  background: transparent;
  border: 0;
  color: var(--sb-fg);
  font-family: var(--sb-heading);
  font-weight: 700;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  outline: none;
}

.vp-vendor-select-dropdown option {
  background: var(--sb-paper);
  color: var(--sb-fg);
  font-family: var(--sb-body);
}

.vp-product-edit-card {
  transition: all 200ms ease;
}

.vp-product-edit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sb-shadow-2);
}

/* Modal styles for catalog editor */
.vp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 18, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  animation: fadeIn 250ms ease;
}

.vp-product-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  max-width: 95vw;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-r-lg);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: var(--sb-shadow-4), var(--sb-shadow-inset-hi);
  z-index: 2001;
  animation: zoomIn 300ms var(--sb-ease-glide);
}

.vp-product-form-modal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sb-border);
}

.vp-product-form-modal .modal-head h2 {
  font-family: var(--sb-heading);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--sb-fg);
  margin: 0;
}

.vp-product-form-modal .modal-head .close-btn {
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.vp-product-form-modal .modal-body {
  padding: 24px;
}

.vp-form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sb-fg-2);
}

.vp-product-form-modal input, .vp-product-form-modal select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--sb-border);
  background: var(--sb-surface-2);
  color: var(--sb-fg);
  font-size: 13px;
  outline: none;
}

/* WhatsApp broadcast pulse */
.vp-broadcast-pulse {
  position: relative;
}

.vp-broadcast-pulse::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  border: 2px solid var(--sb-mint);
  opacity: 0.8;
  animation: pulseBroadcast 1.6s infinite ease-out;
}

@keyframes pulseBroadcast {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.vp-app.dark-mode {
  --sb-bg: #1A1A1E;
  --sb-paper: #121215;
  --sb-cream: #1A1A1E;
  --sb-surface: rgba(26, 26, 30, 0.75);
  --sb-surface-2: rgba(36, 36, 42, 0.85);
  --sb-surface-deep: rgba(0, 0, 0, 0.2);
  --sb-border: rgba(255, 255, 255, 0.08);
  --sb-border-2: rgba(255, 255, 255, 0.14);
  --sb-border-glass: rgba(255, 255, 255, 0.04);
  --sb-fg: #FFF8ED;
  --sb-fg-2: rgba(255, 248, 237, 0.78);
  --sb-fg-3: rgba(255, 248, 237, 0.45);
  --sb-fg-4: rgba(255, 248, 237, 0.22);
  background: var(--sb-paper);
}

.vp-app.dark-mode .vp-sidebar {
  border-right-color: var(--sb-border);
}

.vp-app.dark-mode .vp-topbar {
  border-bottom-color: var(--sb-border);
}

.vp-app.dark-mode .vp-table tr:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

.vp-app.dark-mode .vp-table tr.is-selected {
  background: rgba(0, 168, 120, 0.12) !important;
}

.vp-app.dark-mode .vp-detail {
  border-left-color: var(--sb-border);
}

.vp-app.dark-mode .vp-vendor-select-dropdown option {
  background: #1A1A1E;
  color: #FFF8ED;
}
/* ============================================================
   Spacebar Super-Admin Panel CSS — Foundations
   ============================================================ */

.adm-container {
  min-height: 100vh;
  background: var(--sb-iridescent-bg);
  color: var(--sb-fg);
  font-family: var(--sb-body);
  display: flex;
  flex-direction: column;
}

.adm-navbar {
  height: 64px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--sb-border);
  background: var(--sb-surface);
  backdrop-filter: var(--sb-blur-glass);
  -webkit-backdrop-filter: var(--sb-blur-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.adm-brand img {
  width: 22px;
  height: 22px;
}

.adm-brand strong {
  font-family: var(--sb-heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--sb-fg);
}

.adm-badge {
  font-family: var(--sb-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sb-surface-deep);
  border: 1px solid var(--sb-border);
  color: var(--sb-muted-warm);
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 180ms ease;
}

.adm-btn-secondary {
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  color: var(--sb-fg-2);
  box-shadow: var(--sb-shadow-1), var(--sb-shadow-inset-hi);
}

.adm-btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--sb-border-2);
  color: var(--sb-fg);
}

.adm-btn-primary {
  background: var(--sb-mint);
  border: 0;
  color: var(--sb-cream);
  box-shadow: 0 4px 12px rgba(0, 168, 120, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.adm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 168, 120, 0.35);
}

.adm-btn-block {
  width: 100%;
  justify-content: center;
  height: 38px;
}

.adm-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

.adm-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.adm-header-row h1 {
  font-family: var(--sb-heading);
  font-size: 26px;
  text-transform: uppercase;
  color: var(--sb-fg);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.adm-header-row span {
  font-size: 13px;
  color: var(--sb-fg-3);
}

.adm-gateway-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0, 168, 120, 0.08);
  border: 1px solid rgba(0, 168, 120, 0.15);
  color: var(--sb-mint);
  font-size: 11px;
}

.adm-gateway-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sb-mint);
}

.adm-gateway-pill .dot.pulse {
  animation: gatewayPulse 1.8s infinite ease-in-out;
}

@keyframes gatewayPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Metrics Dashboard grid */
.adm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.adm-metric-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-r-md);
  padding: 20px;
  backdrop-filter: var(--sb-blur-glass);
  -webkit-backdrop-filter: var(--sb-blur-glass);
  box-shadow: var(--sb-shadow-1), var(--sb-shadow-inset-hi);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-metric-card span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sb-fg-3);
}

.adm-metric-card strong {
  font-family: var(--sb-heading);
  font-size: 24px;
  color: var(--sb-fg);
  font-weight: 600;
}

.adm-metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}

.adm-metric-delta.up { color: var(--sb-mint); }
.adm-metric-delta.down { color: var(--sb-danger); }
.adm-metric-delta.info { color: var(--sb-fg-3); font-weight: normal; }

/* Double Column Layout */
.adm-columns-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .adm-columns-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .adm-main { padding: 20px 16px; }
  .adm-header-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .adm-header-row .adm-btn { width: 100%; justify-content: center; }
  .adm-metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .adm-card { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  .adm-table { white-space: nowrap; }
  .adm-navbar { padding: 0 16px; }
  .adm-deploying-box { padding: 32px 16px; }
}

.adm-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-r-lg);
  backdrop-filter: var(--sb-blur-glass);
  -webkit-backdrop-filter: var(--sb-blur-glass);
  box-shadow: var(--sb-shadow-2), var(--sb-shadow-inset-hi);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adm-card-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--sb-border);
}

.adm-card-head h2 {
  font-family: var(--sb-heading);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--sb-fg);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.adm-card-head span {
  font-size: 12px;
  color: var(--sb-fg-3);
}

/* Administrative Table */
.adm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.adm-table th {
  padding: 14px 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-fg-3);
  border-bottom: 1px solid var(--sb-border);
  background: var(--sb-surface-deep);
}

.adm-table td {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--sb-fg-2);
  border-bottom: 1px solid var(--sb-border);
  vertical-align: middle;
}

.adm-table tr:last-child td {
  border-bottom: 0;
}

.adm-table tr:hover td {
  background: rgba(30, 33, 29, 0.01);
}

.adm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sb-lavender), var(--sb-sky));
  color: var(--sb-cream);
  font-family: var(--sb-heading);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid var(--sb-border-glass);
}

.adm-merchant-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sb-fg);
}

.adm-merchant-handle {
  display: block;
  font-size: 11px;
  color: var(--sb-fg-3);
  margin-top: 1px;
}

.adm-vertical-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--sb-surface-deep);
  border: 1px solid var(--sb-border);
  color: var(--sb-fg-2);
}

.adm-plan-selector {
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  color: var(--sb-fg-2);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: var(--sb-body);
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.adm-action-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.adm-action-link.view {
  color: var(--sb-mint);
}

/* Forms onboarding and deploy spin */
.adm-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sb-muted-warm);
}

.adm-form-group input, .adm-form-group select {
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--sb-border);
  background: var(--sb-surface-2);
  color: var(--sb-fg);
  font-family: var(--sb-body);
  font-size: 13px;
  outline: none;
}

.adm-deploying-box {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 340px;
}

.adm-deploying-box strong {
  font-family: var(--sb-heading);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--sb-fg);
  margin-top: 18px;
}

.adm-deploying-box p {
  font-size: 12px;
  color: var(--sb-fg-3);
  margin: 6px 0 20px;
}

.adm-deploy-progress-bar {
  width: 100%;
  max-width: 240px;
  height: 6px;
  background: var(--sb-border);
  border-radius: 99px;
  overflow: hidden;
}

.adm-deploy-progress-bar .progress-fill {
  height: 100%;
  width: 100%;
  background: var(--sb-mint);
  border-radius: 99px;
  transform: translateX(-100%);
  animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
  0% { transform: translateX(-100%); }
  20% { transform: translateX(-80%); }
  40% { transform: translateX(-65%); }
  60% { transform: translateX(-40%); }
  80% { transform: translateX(-20%); }
  100% { transform: translateX(0); }
}

.adm-deploy-spinner {
  width: 44px;
  height: 44px;
  position: relative;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--sb-mint);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}
.film-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #151515;
}

.film-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.08) contrast(1.03) brightness(0.92);
}

.film-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 248, 237, 0.12), transparent 34%),
    radial-gradient(circle at 78% 54%, rgba(0, 212, 148, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.28) 32%, rgba(8, 8, 8, 0.1) 58%, rgba(8, 8, 8, 0.58)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.32), rgba(8, 8, 8, 0.08) 42%, rgba(8, 8, 8, 0.8));
  pointer-events: none;
}

.is-android-device .film-canvas {
  filter: none;
}

.is-android-device .film-grade {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.7), rgba(8, 8, 8, 0.18) 46%, rgba(8, 8, 8, 0.58)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.28), rgba(8, 8, 8, 0.76));
}

.is-android-device .story-card {
  transition: opacity 880ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 880ms cubic-bezier(0.23, 1, 0.32, 1),
              filter 880ms cubic-bezier(0.23, 1, 0.32, 1);
}

.is-android-device .loader,
.is-android-device .nav-right button,
.is-android-device .nav-right a,
.is-android-device .hero-actions a,
.is-android-device .hero-actions button,
.is-android-device .beat-meta span,
.is-android-device .industry-strip span,
.is-android-device .pricing-backdrop,
.is-android-device .close-button {
  backdrop-filter: none;
}

.loader {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(22px, 5vw, 72px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 248, 237, 0.22);
  border-radius: 999px;
  padding: 12px 15px;
  background: rgba(8, 8, 8, 0.34);
  color: #fff8ed;
  backdrop-filter: blur(18px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.loader.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.loader span,
.loader strong {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 58px);
  pointer-events: none;
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.72), transparent);
  pointer-events: none;
}

.brand,
.nav-right {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff8ed;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.5);
}

.brand img {
  width: 42px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
}

.brand span {
  display: inline-block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.is-arabic {
  direction: rtl;
  font-family: var(--body);
}

.is-arabic .brand {
  direction: ltr;
}

.is-arabic .nav-right,
.is-arabic .hero-actions,
.is-arabic .beat-meta,
.is-arabic .plan-head,
.is-arabic .plan-title-row,
.is-arabic .addon-row {
  flex-direction: row-reverse;
}

.is-arabic .plan-price {
  align-items: flex-start;
}

.is-arabic .plan-price strong,
.is-arabic .plan-price small {
  text-align: left;
}

.is-arabic .intro-panel,
.is-arabic .story-card,
.is-arabic .closing-panel,
.is-arabic .pricing-window {
  text-align: right;
}

.is-arabic .closing-panel {
  text-align: center;
}

.is-arabic .intro-panel h1,
.is-arabic .closing-panel h2 {
  max-width: 1060px;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 1.02;
}

.is-arabic .story-card h2 {
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.08;
}

.is-arabic .story-card:nth-child(odd) {
  justify-self: start;
}

.is-arabic .story-card:nth-child(even) {
  justify-self: end;
}

.is-arabic .plan-card li {
  padding-right: 17px;
  padding-left: 0;
}

.is-arabic .plan-card li::before {
  right: 0;
  left: auto;
}

.is-arabic .close-button {
  right: auto;
  left: 22px;
}

.film-label {
  position: absolute;
  top: 50%;
  z-index: 1;
  pointer-events: none;
  color: #00d494;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.film-label--right {
  right: clamp(200px, 22vw, 300px);
  transform: translateY(-50%);
}
.film-label--left {
  left: clamp(130px, 15vw, 210px);
  transform: translateY(-50%);
}
.film-label--center {
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-right button,
.nav-right a,
.hero-actions a,
.hero-actions button,
.closing-panel button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 248, 237, 0.3);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.12);
  color: #fff8ed;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.nav-right button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 248, 237, 0.78);
  transition: all 300ms ease;
}

.nav-right button:hover {
  background: rgba(255, 248, 237, 0.08);
  color: #fff8ed;
}

.language-toggle {
  border: 1px solid rgba(255, 248, 237, 0.15) !important;
  background: rgba(255, 248, 237, 0.05) !important;
  color: #fff8ed !important;
  font-weight: 600;
}

.language-toggle:hover {
  background: rgba(255, 248, 237, 0.12) !important;
  border-color: rgba(255, 248, 237, 0.3) !important;
}

.scroll-stage {
  position: relative;
  z-index: 1;
}

.intro-panel,
.closing-panel {
  height: 100svh;
  padding: clamp(60px, 10vh, 120px) clamp(22px, 7vw, 112px) clamp(40px, 6vh, 80px);
  overflow: hidden;
}

.intro-panel {
  display: grid;
  align-content: center;
  justify-items: start;
  text-align: left;
}

.closing-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.closing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.closing-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.closing-rights {
  color: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.closing-contacts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.contact-icon {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.contact-icon span {
  display: none;
}

.contact-icon:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.contact-icon:hover span {
  display: inline;
}

.contact-icon--whatsapp {
  color: #00d494;
}

.contact-icon--whatsapp:hover {
  border-color: rgba(0, 212, 148, 0.2);
  background: rgba(0, 212, 148, 0.07);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #00d494;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-panel .eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #ff6b35;
  border-radius: 1px;
}

.intro-panel h1,
.closing-panel h2 {
  width: min(860px, 100%);
  margin: 16px 0 18px;
  color: #fff8ed;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.48);
}

.intro-panel h1 {
  font-size: clamp(44px, 6vw, 80px);
}

.closing-panel h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  margin-bottom: 20px;
}

.closing-panel .btn--primary {
  margin-top: 32px;
}

.intro-panel p {
  width: min(640px, 100%);
  margin: 0;
  color: rgba(255, 248, 237, 0.82);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.closing-panel p {
  margin: 0;
  color: rgba(255, 248, 237, 0.82);
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 560px;
  line-height: 1.6;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions a {
  border-color: rgba(0, 212, 148, 0.4);
  background: #00a878;
}

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  width: min(760px, 100%);
  margin-top: 14px;
}

.industry-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 248, 237, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 248, 237, 0.08);
  color: rgba(255, 248, 237, 0.86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.story-rail {
  min-height: 650vh;
  position: relative;
  padding: 0 clamp(20px, 6vw, 96px);
}

.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
}

.story-card {
  grid-area: 1 / 1;
  position: relative;
  width: min(540px, 100%);
  padding: 10vh 0;
  display: grid;
  align-content: center;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(20px);
  letter-spacing: 0.2em;
  transition: opacity 880ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 880ms cubic-bezier(0.23, 1, 0.32, 1),
              filter 880ms cubic-bezier(0.23, 1, 0.32, 1),
              letter-spacing 880ms cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}


.story-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  letter-spacing: -0.015em;
  pointer-events: auto;
}

.story-card.is-before {
  opacity: 0;
  transform: translateY(-30px) scale(1.05);
  filter: blur(20px);
  letter-spacing: 0.3em;
}

.story-card.is-after {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(20px);
}
.story-card::before {
  content: '';
  position: absolute;
  inset: -10vh -10vw;
  background: radial-gradient(circle at center, rgba(8, 8, 8, 0.35) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.story-card:nth-child(odd) {
  justify-self: end;
}

.beat-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.beat-meta span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 212, 148, 0.5);
  border-radius: 50%;
  color: #fff8ed;
  font-family: var(--heading);
  font-weight: 700;
  background: rgba(8, 8, 8, 0.22);
  backdrop-filter: blur(14px);
}

.beat-meta strong {
  color: #00d494;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #fff8ed;
  font-family: var(--heading);
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.story-card p {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0;
  color: rgba(255, 248, 237, 0.84);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-hud {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  top: 50%;
  z-index: 25;
  display: grid;
  gap: 12px;
  justify-items: center;
  transform: translateY(-50%);
  color: #fff8ed;
  pointer-events: none;
}

.progress-hud span {
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 700;
}

.progress-hud div {
  width: 3px;
  height: 180px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.24);
}

.progress-hud i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #00d494;
  transform-origin: top;
}

.pricing-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  animation: fadeBackdrop 300ms ease forwards;
  overscroll-behavior: contain;
  touch-action: none;
}

.is-arabic .pricing-backdrop {
  justify-content: flex-start;
}

@keyframes fadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pricing-window {
  position: relative;
  width: min(900px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 28px 0 0 28px;
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 107, 53, 0.14), transparent 34%),
    radial-gradient(circle at 8% 20%, rgba(0, 212, 148, 0.12), transparent 26%),
    #fff8ed;
  color: #1e211d;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.4);
  animation: slideWindow 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.is-arabic .pricing-window {
  border-right: 1px solid rgba(255, 248, 237, 0.28);
  border-left: 0;
  border-radius: 0 28px 28px 0;
  box-shadow: 30px 0 90px rgba(0, 0, 0, 0.4);
}

.is-arabic .close-button {
  right: auto;
  left: 22px;
}

@keyframes slideWindow {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-head {
  width: min(620px, calc(100% - 58px));
  flex-shrink: 0;
  margin-bottom: 10px;
}

.close-button {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 61;
  margin: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 33, 29, 0.12);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.82);
  color: #1e211d;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 220ms ease, transform 220ms ease;
}

.close-button:hover {
  background: #ffffff;
  transform: scale(1.04);
}

.pricing-window h2 {
  margin: 8px 0 10px;
  font-family: var(--heading);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.96;
  text-transform: uppercase;
}

.pricing-head p {
  margin: 0;
  color: #70675d;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
}

.plan-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 10px;
}

.plan-card {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(30, 33, 29, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 246, 0.78);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 212, 148, 0.28);
}

.plan-card.featured {
  border-color: rgba(0, 168, 120, 0.38);
  background: linear-gradient(180deg, rgba(0, 212, 148, 0.13), rgba(255, 253, 246, 0.76));
  transform: none;
  box-shadow: 0 14px 36px rgba(0, 212, 148, 0.12);
}

.plan-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 212, 148, 0.18);
  border-color: rgba(0, 168, 120, 0.58);
}

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.plan-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.plan-chip {
  border: 1px solid rgba(0, 168, 120, 0.22);
  border-radius: 999px;
  padding: 6px 9px 5px;
  color: #00a878;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  grid-column: 1 / -1;
  width: fit-content;
  margin-bottom: 2px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #00a878;
  color: #fff8ed;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(22px, 2vw, 27px);
}

.plan-price strong {
  display: block;
  font-family: var(--heading);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.plan-price small {
  display: block;
  color: #00a878;
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.plan-card p,
.addon-row span {
  color: #70675d;
  line-height: 1.45;
}

.plan-card p {
  margin: 0 0 4px;
  font-size: 14px;
}

.plan-card ul {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  margin: auto 0 0;
  padding: 8px 0 0;
  list-style: none;
  border-top: 1px solid rgba(30, 33, 29, 0.08);
}

.plan-card li {
  position: relative;
  padding-left: 17px;
  color: rgba(30, 33, 29, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.plan-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a878;
}

.addon-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  border: 1px solid rgba(30, 33, 29, 0.12);
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(255, 253, 246, 0.66);
}

.addon-row div {
  display: grid;
  gap: 8px;
}

.addon-row button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #1e211d;
  color: #fff8ed;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .film-grade {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.54), rgba(8, 8, 8, 0.12) 34%, rgba(8, 8, 8, 0.82)),
      linear-gradient(90deg, rgba(8, 8, 8, 0.54), rgba(8, 8, 8, 0.14));
  }

  .loader {
    left: 20px;
    right: 20px;
    bottom: 22px;
    justify-content: space-between;
  }

  .site-nav {
    padding: 18px 16px;
  }

  .brand {
    font-size: 13px;
    letter-spacing: 0.18em;
    gap: 8px;
  }

  .brand img {
    width: 34px;
  }

  .nav-right span,
  .nav-right button:not(.language-toggle) {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .language-toggle {
    min-height: 40px;
    border-color: rgba(255, 248, 237, 0.22) !important;
    background: rgba(255, 248, 237, 0.1) !important;
    padding: 0 11px !important;
    color: #fff8ed !important;
  }

  .nav-right a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .intro-panel,
  .closing-panel {
    height: 100svh;
    padding: clamp(50px, 8vh, 90px) 20px clamp(30px, 5vh, 60px);
  }

  .intro-panel h1,
  .closing-panel h2 {
    width: min(100%, 520px);
    font-size: clamp(36px, 10.4vw, 52px);
    line-height: 1.05;
    margin: 14px 0 18px;
  }

  .is-arabic .intro-panel h1,
  .is-arabic .closing-panel h2 {
    font-size: clamp(38px, 10.4vw, 54px);
    line-height: 1.08;
  }

  .intro-panel p {
    font-size: 17px;
    line-height: 1.55;
  }

  .closing-panel p {
    font-size: 16px;
    line-height: 1.55;
  }

  .industry-strip {
    gap: 7px;
    margin-top: 18px;
  }

  .industry-strip span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .story-rail {
    min-height: 700vh;
    padding: 0 20px;
  }

  .story-card,
  .story-card:nth-child(even) {
    justify-self: stretch;
    width: 100%;
    padding: 10vh 0 8vh;
  }

  .is-arabic .story-card,
  .is-arabic .story-card:nth-child(even),
  .is-arabic .story-card:nth-child(odd) {
    justify-self: stretch;
  }

  .story-card h2 {
    font-size: clamp(36px, 10.6vw, 52px);
    line-height: 0.96;
  }

  .is-arabic .story-card h2 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.1;
  }

  .story-card p {
    font-size: 17px;
    line-height: 1.55;
  }

  .story-card.is-before {
    filter: blur(16px);
    letter-spacing: 0.08em;
    transform: translateY(-40px) scale(1.1);
  }

  .story-card.is-after {
    filter: blur(16px);
    letter-spacing: 0.08em;
    transform: translateY(40px) scale(0.9);
  }

  .beat-meta {
    gap: 10px;
    margin-bottom: 14px;
  }

  .beat-meta span {
    width: 44px;
    height: 44px;
  }

  .progress-hud {
    right: 12px;
  }

  .progress-hud div {
    height: 120px;
  }

  /* — pricing: full bottom sheet, vertical scroll — */
  .pricing-backdrop {
    align-items: flex-end;
    padding: 0;
    background: rgba(8, 8, 8, 0.72);
  }

  .pricing-window {
    width: 100%;
    height: 94dvh;
    min-height: unset;
    max-height: 94dvh;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-radius: 20px 20px 0 0;
    padding: 0 0 max(14px, env(safe-area-inset-bottom));
    box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.28);
    animation: slideUp 360ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 33, 29, 0.16) transparent;
  }

  /* drag handle */
  .pricing-window::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(30, 33, 29, 0.14);
    margin: 10px auto 0;
  }

  .pricing-head {
    width: 100%;
    margin: 0;
    padding: 8px 52px 9px 20px;
    border-bottom: 1px solid rgba(30, 33, 29, 0.08);
  }

  .is-arabic .pricing-head {
    padding: 8px 20px 9px 52px;
  }

  .pricing-window h2 {
    display: none;
  }

  .pricing-head p {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 12px;
    color: #70675d;
    line-height: 1.3;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .pricing-head .eyebrow {
    font-size: 11px;
    line-height: 1;
  }

  .close-button {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: rgba(255, 253, 246, 0.94);
    box-shadow: 0 2px 10px rgba(30, 33, 29, 0.1);
  }

  .is-arabic .close-button {
    right: auto;
    left: 16px;
  }

  .plan-grid {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 8px;
    padding: 10px 14px 8px;
    grid-template-columns: unset;
    grid-auto-rows: unset;
    align-content: unset;
  }

  /* each plan: full width, all features visible */
  .plan-card {
    flex: none;
    width: 100%;
    gap: 0;
    padding: 12px;
    border-radius: 14px;
    cursor: default;
    transition: none;
  }

  .plan-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(30, 33, 29, 0.12);
  }

  .plan-card.featured {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 168, 120, 0.14);
  }

  .plan-card.featured:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 168, 120, 0.14);
    border-color: rgba(0, 168, 120, 0.38);
  }

  /* plan-head: name left, price right */
  .plan-head {
    margin-bottom: 4px;
    align-items: center;
  }

  .plan-card h3 {
    font-size: 17px;
  }

  .plan-price strong {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .plan-price small {
    font-size: 10px;
  }

  .plan-card p {
    font-size: 12px;
    margin: 0 0 6px;
    color: #70675d;
    line-height: 1.4;
  }

  .badge {
    margin-bottom: 6px;
    padding: 4px 9px;
    font-size: 9px;
  }

  /* features always fully visible */
  .plan-card ul {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin: 0;
    padding: 7px 0 0;
    border-top: 1px solid rgba(30, 33, 29, 0.08);
    transition: none;
    gap: 5px;
  }

  .plan-card li {
    font-size: 12px;
    padding-left: 14px;
  }

  .addon-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0 14px;
    padding: 12px;
    border: 1px solid rgba(30, 33, 29, 0.12);
    border-radius: 14px;
    background: rgba(255, 253, 246, 0.9);
    box-shadow: none;
  }

  .addon-row div {
    gap: 2px;
  }

  .addon-row strong {
    font-size: 14px;
  }

  .addon-row span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
  }

  .addon-row button {
    width: 100%;
    min-height: 40px;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .pricing-window {
    width: min(860px, 100%);
    padding: clamp(16px, 2vw, 22px);
  }

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

  .plan-card {
    min-height: 0;
    padding: 14px;
  }
}

/* Closing panel mobile */
@media (max-width: 760px) {
  .closing-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .closing-contacts {
    flex-wrap: wrap;
    gap: 4px;
  }

  .contact-icon span {
    display: inline;
  }

  .closing-rights {
    font-size: 11px;
  }
}

/* Notification Toast */
.notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.notification.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(13, 18, 22, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 148, 0.3);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.notification-icon {
  color: #00d494;
}

.notification span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .notification {
    bottom: 20px;
    width: calc(100% - 40px);
  }
  
  .notification-content {
    justify-content: center;
    padding: 10px 20px;
  }

  .notification span {
    font-size: 13px;
  }
  
  /* Pricing Modal Mobile Optimizations */
  .plan-grid { 
    grid-template-columns: 1fr !important; 
    padding-bottom: 30px; 
  }
  .pricing-window { 
    padding: 20px 16px 40px !important; 
    width: 100% !important; 
  }
  .close-button {
    top: 14px;
    right: 14px;
  }
}
/* ============================================================
   Spacebar Design System — Foundations
   Light Glassmorphism • Warm Ivory • Iridescent Glow
   ============================================================ */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.ttf") format("truetype-variations"),
       url("/fonts/Satoshi-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-VariableItalic.ttf") format("truetype-variations"),
       url("/fonts/Satoshi-VariableItalic.ttf") format("truetype");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Variable.woff2") format("woff2-variations"),
       url("/fonts/ClashDisplay-Variable.woff2") format("woff2"),
       url("/fonts/ClashDisplay-Variable.woff")  format("woff"),
       url("/fonts/ClashDisplay-Variable.ttf")   format("truetype-variations"),
       url("/fonts/ClashDisplay-Variable.ttf")   format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family: "Clash Display Static"; src: url("/fonts/ClashDisplay-Extralight.woff2") format("woff2"), url("/fonts/ClashDisplay-Extralight.ttf") format("truetype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display Static"; src: url("/fonts/ClashDisplay-Light.woff2") format("woff2"), url("/fonts/ClashDisplay-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display Static"; src: url("/fonts/ClashDisplay-Regular.woff2") format("woff2"), url("/fonts/ClashDisplay-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display Static"; src: url("/fonts/ClashDisplay-Medium.woff2") format("woff2"), url("/fonts/ClashDisplay-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display Static"; src: url("/fonts/ClashDisplay-Semibold.woff2") format("woff2"), url("/fonts/ClashDisplay-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display Static"; src: url("/fonts/ClashDisplay-Bold.woff2") format("woff2"), url("/fonts/ClashDisplay-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ---------- 1. Core palette ---------- */
  --sb-black:   #2E2E35;
  --sb-cream:   #FFF8ED;
  --sb-paper:   #FBF3E6;
  --sb-stone:   #E7DDCE;
  --sb-muted:   #6A9CB8;
  --sb-muted-warm: #72695E;
  --sb-mint:    #00A878;
  --sb-mint-2:  #00D494;
  --sb-orange:  #FF6B35;
  --sb-gold:    #D5861A;

  /* ---------- 2. Brand accent palette ---------- */
  --sb-lavender:    #C4A0C8;
  --sb-sky:         #7BB8D4;
  --sb-teal:        #A8D4DC;
  --sb-tan:         #8B5E3C;
  --sb-bluegrey:    #6A9CB8;
  --sb-pinkish:     #E8D8E0;
  --sb-charcoal:    #2E2E35;

  /* ---------- 3. Iridescent glow tokens ---------- */
  --sb-glow-lavender: rgba(196, 160, 200, 0.55);
  --sb-glow-sky:      rgba(123, 184, 212, 0.45);
  --sb-glow-teal:     rgba(168, 212, 220, 0.42);
  --sb-glow-pinkish:  rgba(232, 216, 224, 0.65);
  --sb-glow-amber:    rgba(255, 228, 176, 0.48);
  --sb-glow-purple: var(--sb-glow-lavender);
  --sb-glow-blush:  var(--sb-glow-pinkish);
  --sb-glow-mint:   var(--sb-glow-teal);

  /* ---------- 4. Semantic surfaces ---------- */
  --sb-bg:           var(--sb-paper);
  --sb-surface:      rgba(255, 248, 237, 0.62);
  --sb-surface-2:    rgba(255, 253, 246, 0.86);
  --sb-surface-deep: rgba(30, 33, 29, 0.04);
  --sb-border:       rgba(30, 33, 29, 0.10);
  --sb-border-2:     rgba(30, 33, 29, 0.18);
  --sb-border-glass: rgba(255, 255, 255, 0.65);

  /* ---------- 5. Text ---------- */
  --sb-fg:    var(--sb-black);
  --sb-fg-2:  rgba(30, 33, 29, 0.78);
  --sb-fg-3:  var(--sb-muted);
  --sb-fg-4:  rgba(30, 33, 29, 0.40);
  --sb-fg-inv: var(--sb-cream);

  /* ---------- 6. Semantic status ---------- */
  --sb-success: var(--sb-mint);
  --sb-warning: #E89B1A;
  --sb-danger:  #D64545;
  --sb-info:    #5B7CFA;

  /* ---------- 7. Type ---------- */
  --sb-heading: "Clash Display", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sb-body:    "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sb-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---------- 8. Type scale ---------- */
  --sb-fs-display: clamp(48px, 6vw, 88px);
  --sb-fs-h1:      clamp(36px, 4vw, 56px);
  --sb-fs-h2:      clamp(28px, 3vw, 40px);
  --sb-fs-h3:      22px;
  --sb-fs-h4:      18px;
  --sb-fs-body:    16px;
  --sb-fs-small:   14px;
  --sb-fs-micro:   12px;
  --sb-fs-eyebrow: 11px;
  --sb-lh-tight:  0.96;
  --sb-lh-snug:   1.15;
  --sb-lh-body:   1.55;
  --sb-lh-loose:  1.7;
  --sb-tracking-tight:  -0.015em;
  --sb-tracking-normal:  0;
  --sb-tracking-wide:    0.04em;
  --sb-tracking-eyebrow: 0.22em;

  /* ---------- 9. Spacing (4px base) ---------- */
  --sb-s-1: 4px;  --sb-s-2: 8px;  --sb-s-3: 12px; --sb-s-4: 16px;
  --sb-s-5: 20px; --sb-s-6: 24px; --sb-s-7: 32px; --sb-s-8: 40px;
  --sb-s-9: 56px; --sb-s-10: 72px; --sb-s-11: 96px;

  /* ---------- 10. Radii ---------- */
  --sb-r-xs:   6px;
  --sb-r-sm:   10px;
  --sb-r-md:   14px;
  --sb-r-lg:   20px;
  --sb-r-xl:   28px;
  --sb-r-2xl:  36px;
  --sb-r-pill: 999px;

  /* ---------- 11. Shadows ---------- */
  --sb-shadow-1:    0 1px 2px rgba(30,33,29,.04), 0 2px 8px rgba(30,33,29,.04);
  --sb-shadow-2:    0 2px 4px rgba(30,33,29,.04), 0 8px 24px rgba(30,33,29,.06);
  --sb-shadow-3:    0 4px 8px rgba(30,33,29,.04), 0 20px 48px rgba(30,33,29,.08);
  --sb-shadow-4:    0 8px 16px rgba(30,33,29,.04), 0 32px 80px rgba(30,33,29,.12);
  --sb-shadow-glow: 0 12px 60px -8px rgba(199,182,255,.45), 0 8px 32px -12px rgba(255,200,216,.4);
  --sb-shadow-inset-hi: inset 0 1px 0 rgba(255,255,255,.8);

  /* ---------- 12. Glass ---------- */
  --sb-blur-glass:   blur(20px) saturate(1.4);
  --sb-blur-modal:   blur(28px) saturate(1.2);
  --sb-blur-overlay: blur(8px) saturate(1.1);

  /* ---------- 13. Motion ---------- */
  --sb-ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --sb-ease-glide: cubic-bezier(0.16, 1, 0.3, 1);
  --sb-ease-quart: cubic-bezier(0.23, 1, 0.32, 1);
  --sb-dur-fast:   160ms;
  --sb-dur-base:   220ms;
  --sb-dur-slow:   400ms;
  --sb-dur-glide:  600ms;

  /* ---------- 14. Iridescent backdrop ---------- */
  --sb-iridescent-bg:
    radial-gradient(60vmax 50vmax at 12% -8%,  rgba(196,160,200,.55), transparent 62%),
    radial-gradient(55vmax 50vmax at 92% 6%,   rgba(123,184,212,.45), transparent 62%),
    radial-gradient(50vmax 45vmax at 88% 104%, rgba(168,212,220,.45), transparent 62%),
    radial-gradient(45vmax 40vmax at 4%  102%, rgba(139,94,60,.20),   transparent 62%),
    radial-gradient(45vmax 40vmax at 50% 60%,  rgba(232,216,224,.45), transparent 62%),
    var(--sb-cream);
}


:root {
  --black: #1E211D;
  --cream: #FFF8ED;
  --paper: #FBF3E6;
  --stone: #E7DDCE;
  --muted: #72695E;
  --mint: #00A878;
  --orange: #FF6B35;
  --heading: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  --body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  color: var(--black);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--paper);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
}

button,
a {
  font: inherit;
}

::selection {
  background: var(--mint);
  color: var(--black);
}
