@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700,900&display=swap');/* ============================================================
   Spacebar Auth — iridescent glass gateway
   Matches the Light Glassmorphism / Warm Ivory design system
   ============================================================ */

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: var(--sb-iridescent-bg, linear-gradient(135deg, #f8f2e8 0%, #efe3d1 100%));
  color: var(--sb-fg, #2b2118);
}

/* — Slow-drifting iridescent blobs behind the card — */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.auth-page::before {
  top: -18vmax;
  left: -12vmax;
  background: radial-gradient(circle, var(--sb-glow-lavender, rgba(196, 160, 200, 0.5)), transparent 65%);
  animation: authDrift 16s ease-in-out infinite alternate;
}

.auth-page::after {
  bottom: -20vmax;
  right: -14vmax;
  background: radial-gradient(circle, var(--sb-glow-sky, rgba(123, 184, 212, 0.45)), transparent 65%);
  animation: authDrift 19s ease-in-out infinite alternate-reverse;
}

@keyframes authDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, 4vmax) scale(1.12); }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border: 1px solid var(--sb-border-glass, rgba(255, 255, 255, 0.65));
  border-radius: 28px;
  padding: 34px 30px;
  background: var(--sb-surface-2, rgba(255, 252, 246, 0.92));
  backdrop-filter: var(--sb-blur-glass, blur(20px) saturate(1.4));
  -webkit-backdrop-filter: var(--sb-blur-glass, blur(20px) saturate(1.4));
  box-shadow: var(--sb-shadow-4, 0 26px 70px rgba(43, 33, 24, 0.12)),
              var(--sb-shadow-inset-hi, inset 0 1px 0 rgba(255, 255, 255, 0.8));
  animation: authCardIn 640ms var(--sb-ease-glide, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.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);
  border: 1px solid rgba(0, 168, 120, 0.16);
  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-family: var(--sb-heading, inherit);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--sb-fg-2, 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: rgba(255, 250, 241, 0.85);
  color: var(--sb-fg, #2b2118);
  font: 700 15px/1.2 inherit;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

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

.auth-card button {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sb-mint, #00a878);
  color: #fffaf1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 168, 120, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 240ms var(--sb-ease-glide, ease), box-shadow 240ms ease, background 200ms ease;
}

.auth-card button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #00b384;
  box-shadow: 0 16px 36px rgba(0, 168, 120, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-card button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.auth-card button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 650ms ease;
  pointer-events: none;
}

.auth-card button:hover:not(:disabled)::after {
  transform: translateX(130%);
}

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

.auth-card .auth-google {
  margin: 6px 0 14px;
  border: 1px solid rgba(24, 30, 28, 0.14);
  background: #ffffff;
  color: #1c2522;
  box-shadow: 0 6px 18px rgba(24, 30, 28, 0.08);
}

.auth-card .auth-google:hover:not(:disabled) {
  background: #f8fbfa;
  box-shadow: 0 10px 24px rgba(24, 30, 28, 0.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: rgba(28, 37, 34, 0.5);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(24, 30, 28, 0.12);
}

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

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

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

@media (prefers-reduced-motion: reduce) {
  .auth-page::before,
  .auth-page::after,
  .auth-card,
  .auth-error {
    animation: none;
  }
}
/* ============================================================
   OrderTracking — clean, structured post-order screen
   Shares the Spacebar palette with MapsMenu
   ============================================================ */

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

body.mm-body-white { background: #FFFFFF; }

.ot-root {
  --ot-white:   #FFFFFF;
  --ot-ink:     #00171F;
  --ot-navy:    #003459;
  --ot-yellow:  #F8F32B;
  --ot-plum:    #6D326D;

  --ot-bg:      #FFFFFF;
  --ot-surface: #FFFFFF;
  --ot-text:    var(--ot-ink);
  --ot-muted:   rgba(0, 23, 31, 0.56);
  --ot-border:  rgba(0, 23, 31, 0.10);
  --ot-tint:    #EAF1F5;
  --ot-danger:  #C0392B;
  --ot-radius:  16px;
  --ot-radius-sm: 10px;

  position: relative;
  min-height: 100dvh;
  background: var(--ot-bg);
  color: var(--ot-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header ─────────────────────────────────────────────────── */

.ot-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--ot-border);
}

.ot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ot-ink);
  min-width: 0;
}

.ot-brand img { width: 22px; height: 22px; flex-shrink: 0; }

.ot-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.ot-brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ot-brand-vendor {
  font-size: 11px;
  color: var(--ot-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.ot-header-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ot-tint);
  color: var(--ot-navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── Page shell ─────────────────────────────────────────────── */

.ot-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ot-card {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  padding: 18px;
}

.ot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ot-border);
}

.ot-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ot-ink);
}

/* ── Status hero ───────────────────────────────────────────── */

.ot-hero {
  text-align: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

.ot-hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.16;
  pointer-events: none;
}

.ot-hero-inner { position: relative; z-index: 1; }

.ot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ot-hero-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ot-ink);
}

.ot-hero-desc {
  margin: 0 auto;
  max-width: 420px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ot-muted);
}

.ot-progress-track {
  width: 100%;
  height: 6px;
  background: var(--ot-border);
  border-radius: 999px;
  margin-top: 20px;
  overflow: hidden;
}

.ot-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ot-navy);
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ot-progress-fill.is-cancelled { background: var(--ot-danger); }

/* ── Dispatch banner ───────────────────────────────────────── */

.ot-dispatch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ot-dispatch-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ot-dispatch-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ot-ink);
  margin-bottom: 3px;
}

.ot-dispatch-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ot-muted);
}

.ot-dispatch-meta {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
}

.ot-dispatch-error {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ot-muted);
}

/* ── Order id chip ─────────────────────────────────────────── */

.ot-id-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ot-tint);
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ot-navy);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ot-id-copied {
  font-weight: 500;
  color: var(--ot-muted);
  margin-left: 4px;
}

/* ── Timeline ──────────────────────────────────────────────── */

.ot-timeline {
  display: flex;
  flex-direction: column;
}

.ot-timeline-step {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.ot-timeline-step:last-child { padding-bottom: 0; }

.ot-timeline-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  flex-shrink: 0;
}

.ot-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ot-border);
  background: transparent;
  flex-shrink: 0;
  z-index: 1;
}

.ot-timeline-step.is-done .ot-timeline-dot {
  background: var(--ot-navy);
  border-color: var(--ot-navy);
}

.ot-timeline-step.is-active .ot-timeline-dot {
  background: var(--ot-yellow);
  border-color: var(--ot-yellow);
  box-shadow: 0 0 0 4px rgba(248, 243, 43, 0.28);
}

.ot-timeline-line {
  position: absolute;
  top: 12px;
  bottom: -20px;
  width: 2px;
  background: var(--ot-border);
}

.ot-timeline-step.is-done .ot-timeline-line { background: var(--ot-navy); }
.ot-timeline-step:last-child .ot-timeline-line { display: none; }

.ot-timeline-info { min-width: 0; padding-top: 1px; }

.ot-timeline-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ot-ink);
}

.ot-timeline-step.is-pending .ot-timeline-label { color: var(--ot-muted); font-weight: 600; }

.ot-timeline-at {
  display: block;
  font-size: 11.5px;
  color: var(--ot-muted);
  margin-top: 2px;
}

/* ── Receipt ───────────────────────────────────────────────── */

.ot-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ot-border);
  font-size: 13.5px;
}

.ot-receipt-row:last-child { border-bottom: none; }

.ot-receipt-name { font-weight: 700; color: var(--ot-ink); }

.ot-receipt-custom {
  display: block;
  font-size: 11.5px;
  color: var(--ot-muted);
  margin-top: 2px;
  font-weight: 400;
}

.ot-receipt-qty {
  color: var(--ot-muted);
  margin-right: 10px;
  white-space: nowrap;
}

.ot-receipt-price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ot-ink);
  font-weight: 600;
}

.ot-totals {
  background: var(--ot-tint);
  border-radius: var(--ot-radius-sm);
  padding: 12px 14px;
  margin: 14px 0 18px;
}

.ot-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ot-muted);
  margin-bottom: 6px;
}

.ot-totals-row:last-child { margin-bottom: 0; }

.ot-totals-row.is-grand {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ot-ink);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 23, 31, 0.12);
}

.ot-free-tag { color: var(--ot-navy); font-weight: 700; }

.ot-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ot-muted);
  margin-bottom: 8px;
}

.ot-address {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ot-ink);
}

.ot-notes {
  margin: 0;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ot-muted);
  line-height: 1.5;
}

/* ── Actions ───────────────────────────────────────────────── */

.ot-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 4px;
}

.ot-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

.ot-action--primary {
  background: var(--ot-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 52, 89, 0.28);
}

.ot-action--secondary {
  background: var(--ot-white);
  color: var(--ot-ink);
  border: 1.5px solid var(--ot-border);
}

/* ── Empty state ───────────────────────────────────────────── */

.ot-empty {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ot-bg);
}

.ot-empty-card {
  max-width: 360px;
  text-align: center;
  padding: 32px 24px;
}

.ot-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.1);
  color: var(--ot-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ot-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ot-ink);
  margin: 0 0 8px;
}

.ot-empty-desc {
  font-size: 13px;
  color: var(--ot-muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ── Simulator (dev only) ──────────────────────────────────── */

.ot-simulator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--ot-radius-sm);
  border: 1px dashed var(--ot-border);
  background: var(--ot-tint);
  margin-top: 8px;
}

.ot-simulator-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ot-ink);
}

.ot-simulator-sub {
  display: block;
  font-size: 10.5px;
  color: var(--ot-muted);
  margin-top: 2px;
}

.ot-sim-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--ot-border);
  background: var(--ot-white);
  color: var(--ot-ink);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.ot-sim-btn--next {
  border: none;
  background: var(--ot-navy);
  color: #fff;
}

.ot-sim-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Desktop ───────────────────────────────────────────────── */

@media (min-width: 760px) {
  .ot-main {
    max-width: 720px;
    padding: 24px 24px 48px;
    gap: 16px;
  }

  .ot-hero { padding: 36px 32px; }
  .ot-hero-title { font-size: 26px; }

  .ot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .ot-card { padding: 22px; }
}
/* ============================================================
   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 { justify-content: center; padding-inline: 0; }
  .vp-sidebar-brand strong, .vp-sidebar-brand .platform-tag, .vp-vendor-pill .info,
  .vp-selector-label, .vp-nav-section, .vp-nav-item span:not(.badge) { display: none; }
  .vp-vendor-selector-container { padding: 0; margin-bottom: 8px; }
  .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; }
  .vp-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  .vp-topbar-title { flex: 1 1 240px; min-width: 0; }
  .vp-topbar-title span { max-width: 58ch; line-height: 1.4; }
  .vp-topbar-actions { flex: 1 1 100%; min-width: 0; }
  .vp-search { flex: 1 1 220px; width: auto; }
  .vp-table th:nth-child(3), .vp-table td:nth-child(3),
  .vp-table th:nth-child(8), .vp-table td:nth-child(8),
  .vp-table th:nth-child(9), .vp-table td:nth-child(9) { display: none; }
}

@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; 
    align-items: stretch;
    gap: 0;
    height: 68px;
    padding: 0;
    border-right: none; 
    border-top: 1px solid var(--sb-border); 
    order: 2;
    width: 100%;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 100;
  }
  .vp-sidebar-brand { display: none; }
  .vp-vendor-selector-container { display: none; /* Hide on mobile to save space */ }
  .vp-nav {
    flex: 1;
    min-width: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .vp-nav::-webkit-scrollbar { display: none; }
  .vp-nav-section { display: none; }
  .vp-sidebar-foot {
    display: flex;
    flex: 0 0 58px;
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 1px solid var(--sb-border);
  }
  .vp-nav-item {
    flex: 0 0 62px;
    min-width: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border-radius: 0;
    text-align: center;
  }
  .vp-nav-item span:not(.badge) {
    display: block;
    max-width: 58px;
    overflow: hidden;
    color: currentColor;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .vp-nav-item .badge {
    position: absolute;
    top: 5px;
    right: 7px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 8px;
  }
  .vp-nav-item svg { width: 19px; height: 19px; margin: 0; }
  .vp-topbar {
    position: static;
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .vp-topbar-title { flex-basis: 100%; }
  .vp-topbar-title h1 { font-size: 18px; }
  .vp-topbar-title span { font-size: 9px; }
  .vp-topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
    width: 100%;
  }
  .vp-search { width: 100%; order: 3; }
  .vp-topbar-actions .vp-search { grid-column: 1 / -1; grid-row: 2; }
  .vp-topbar-actions .vp-btn { min-width: 34px; padding-inline: 10px; }
  .vp-body { padding: 14px 14px 28px; }
  .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; }
  .vp-table-head { align-items: flex-start; flex-direction: column; padding: 12px; }
  .vp-table-tabs { width: 100%; overflow-x: auto; }
  .vp-table-tabs button { flex: 0 0 auto; padding-inline: 10px; }
  .vp-table th, .vp-table td { padding: 10px 12px; }
  .vp-table th:nth-child(4), .vp-table td:nth-child(4) { display: none; }
  .vp-detail { border-radius: 8px; }
  .vp-detail-actions { grid-template-columns: 1fr; }
  .vp-detail-actions .vp-btn-primary { grid-column: 1; }
}

/* ============================================================
   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;
}

/* ============================================================
   Aesthetic pass — dashboard motion + micro-interactions
   ============================================================ */

/* Keyframes previously borrowed from storefront.css — now local */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

/* — Page content cascades in — */
.vp-kpi,
.vp-table-card,
.vp-chart-card,
.vp-detail {
  animation: vpRiseIn 460ms var(--sb-ease-glide) both;
}

.vp-kpi-row .vp-kpi:nth-child(1) { animation-delay: 40ms; }
.vp-kpi-row .vp-kpi:nth-child(2) { animation-delay: 100ms; }
.vp-kpi-row .vp-kpi:nth-child(3) { animation-delay: 160ms; }
.vp-kpi-row .vp-kpi:nth-child(4) { animation-delay: 220ms; }
.vp-table-card { animation-delay: 180ms; }
.vp-chart-card { animation-delay: 240ms; }

/* — KPI tiles: iridescent accent bar + hover lift — */
.vp-kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sb-mint), var(--sb-sky));
  opacity: 0;
  transition: opacity 220ms ease;
}

.vp-kpi {
  transition: transform 260ms var(--sb-ease-glide), box-shadow 260ms ease, border-color 260ms ease;
}

.vp-kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--sb-shadow-2);
  border-color: rgba(0, 168, 120, 0.22);
}

.vp-kpi:hover::before {
  opacity: 1;
}

/* — Sidebar: mint rail marks the active page, items glide — */
.vp-nav-item {
  transition: background 140ms var(--sb-ease-out), color 140ms var(--sb-ease-out),
              transform 200ms var(--sb-ease-glide);
}

.vp-nav-item:hover {
  transform: translateX(2px);
}

.vp-nav-item.is-active {
  transform: none;
}

.vp-nav-item.is-active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sb-mint);
}

/* — Primary button: light sweep on hover — */
.vp-btn-primary {
  position: relative;
  overflow: hidden;
}

.vp-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 600ms ease;
  pointer-events: none;
}

.vp-btn-primary:hover::after {
  transform: translateX(130%);
}

/* — New orders pulse for attention — */
.vp-status.new .dot {
  animation: vpNewPulse 1.6s ease-in-out infinite;
}

@keyframes vpNewPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 124, 250, 0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.12); }
}

/* — Table rows glide on hover — */
.vp-table tbody tr {
  transition: background 160ms var(--sb-ease-out);
}

/* — Sparkline breathes slightly on tile hover — */
.vp-kpi:hover .vp-kpi-sparkline {
  opacity: 1;
}

/* — Bottom-bar layout (mobile): no rail, no slide — */
@media (max-width: 720px) {
  .vp-nav-item.is-active::before {
    display: none;
  }

  .vp-nav-item:hover {
    transform: none;
  }
}

/* — Respect reduced motion — */
@media (prefers-reduced-motion: reduce) {
  .vp-kpi,
  .vp-table-card,
  .vp-chart-card,
  .vp-detail,
  .vp-status.new .dot {
    animation: none;
  }
}

/* Production merchant workspace */
.vp-production .vp-topbar-title span { display: block; }
.vp-notice, .vp-loading {
  display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px;
  margin-bottom: 14px; border: 1px solid var(--sb-border); border-radius: 6px;
  background: var(--sb-surface); color: var(--sb-fg-2); font-size: 11px;
}
.vp-notice.success { border-color: rgba(0,168,120,.24); background: rgba(0,168,120,.06); color: #087252; }
.vp-notice.error { border-color: rgba(214,69,69,.24); background: rgba(214,69,69,.06); color: #a23737; }
.vp-loading { color: var(--sb-fg-3); }
.vp-kpi-detail { display: block; margin-top: 5px; color: var(--sb-fg-3); font-size: 9px; }
.vp-production-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vp-data-panel {
  border: 1px solid var(--sb-border); border-radius: 8px; background: var(--sb-surface);
  box-shadow: var(--sb-shadow-1); overflow: hidden;
}
.vp-data-panel > header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 17px; border-bottom: 1px solid var(--sb-border);
}
.vp-data-panel > header h2 { margin: 0; color: var(--sb-fg); font: 600 15px/1.2 var(--sb-heading); }
.vp-data-panel > header span { color: var(--sb-fg-3); font-size: 9px; }
.vp-span-two { grid-column: 1 / -1; }
.vp-health-list { padding: 5px 17px; }
.vp-health-list > div {
  display: flex; align-items: center; justify-content: space-between; min-height: 42px;
  border-bottom: 1px solid var(--sb-border); font-size: 11px;
}
.vp-health-list > div:last-child { border-bottom: 0; }
.vp-health-list strong { font-family: var(--sb-mono); font-size: 12px; }
.vp-readiness-list { padding: 10px 17px; }
.vp-readiness-list > div {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center;
  min-height: 44px; border-bottom: 1px solid var(--sb-border);
}
.vp-readiness-list > div:last-child { border-bottom: 0; }
.vp-readiness-list > div > span { width: 8px; height: 8px; border-radius: 50%; background: #c98a20; }
.vp-readiness-list > div > span.ready { background: var(--sb-mint); }
.vp-readiness-list strong { font-size: 11px; }
.vp-readiness-list small { color: var(--sb-fg-3); font-size: 9px; text-transform: capitalize; }
.vp-empty-state {
  display: flex !important; min-height: 180px !important; flex-direction: column;
  justify-content: center !important; gap: 7px; text-align: center; color: var(--sb-fg-3); border: 0 !important;
}
.vp-empty-state strong { color: var(--sb-fg); font-family: var(--sb-heading); }
.vp-empty-state p { max-width: 320px; margin: 0 auto; font-size: 10px; line-height: 1.5; }
.vp-live-products {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: 10px; padding: 14px;
}
.vp-live-products article {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 9px 12px; align-items: center;
  padding: 10px; border: 1px solid var(--sb-border); border-radius: 7px; background: var(--sb-surface-2);
}
.vp-live-products article.sold-out { opacity: .65; }
.vp-product-thumb {
  grid-row: 1 / 3; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 6px; background: var(--sb-surface-deep); background-size: cover;
  background-position: center; color: var(--sb-fg-3); font-family: var(--sb-heading);
}
.vp-live-products article > div:nth-child(2) strong,
.vp-live-products article > div:nth-child(2) span,
.vp-live-products article > div:nth-child(2) small { display: block; }
.vp-live-products article > div:nth-child(2) strong { font-size: 12px; }
.vp-live-products article > div:nth-child(2) span { margin-top: 2px; color: var(--sb-fg-3); font-size: 9px; }
.vp-live-products article > div:nth-child(2) small { margin-top: 3px; color: var(--sb-sky); font-size: 8px; text-transform: uppercase; }
.vp-live-products article > b { font: 700 11px var(--sb-mono); color: var(--sb-mint); }
.vp-live-products article > button {
  min-height: 28px; padding: 0 9px; border: 1px solid var(--sb-border); border-radius: 5px;
  background: var(--sb-surface); color: var(--sb-fg-2); font-size: 9px; font-weight: 800; cursor: pointer;
}
.vp-live-products article > button:nth-of-type(1) { grid-column: 2; }
.vp-live-products article > button:nth-of-type(2) { grid-column: 3; }
.vp-table-scroll { overflow-x: auto; }
.vp-real-table { width: 100%; border-collapse: collapse; }
.vp-real-table th { padding: 10px 14px; background: var(--sb-surface-deep); color: var(--sb-fg-3); font-size: 8px; text-transform: uppercase; text-align: left; }
.vp-real-table td { padding: 12px 14px; border-top: 1px solid var(--sb-border); color: var(--sb-fg-2); font-size: 10px; }
.vp-real-table td strong, .vp-real-table td small { display: block; }
.vp-real-table td strong { color: var(--sb-fg); }
.vp-real-table td small { margin-top: 2px; color: var(--sb-fg-3); font-size: 8px; text-transform: capitalize; }
.vp-big-stats, .vp-fee-model { display: grid; grid-template-columns: repeat(2,1fr); padding: 14px; gap: 10px; }
.vp-big-stats > div, .vp-fee-model > div { padding: 16px; border: 1px solid var(--sb-border); border-radius: 6px; }
.vp-big-stats strong, .vp-big-stats span, .vp-fee-model strong, .vp-fee-model span { display: block; }
.vp-big-stats strong, .vp-fee-model strong { font: 600 22px var(--sb-heading); }
.vp-big-stats span, .vp-fee-model span { margin-top: 3px; color: var(--sb-fg-3); font-size: 9px; }
.vp-fee-model { grid-template-columns: repeat(3,1fr); }
.vp-top-offerings { padding: 6px 17px; }
.vp-top-offerings > div {
  display: grid; grid-template-columns: 1fr 120px 120px; gap: 12px; min-height: 42px;
  align-items: center; border-bottom: 1px solid var(--sb-border); font-size: 10px;
}
.vp-top-offerings > div:last-child { border-bottom: 0; }
.vp-top-offerings span { color: var(--sb-fg-3); }
.vp-top-offerings b { text-align: right; font-family: var(--sb-mono); }
.vp-unbilled { color: var(--sb-mint); font: 700 11px var(--sb-mono); }
.vp-profile-form { padding-bottom: 16px; }
.vp-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.vp-profile-grid label, .vp-product-form-modal.production label { color: var(--sb-muted-warm); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.vp-profile-grid input, .vp-profile-grid select, .vp-profile-grid textarea,
.vp-product-form-modal.production input, .vp-product-form-modal.production textarea {
  width: 100%; min-height: 36px; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--sb-border); border-radius: 5px; background: var(--sb-surface-2);
  color: var(--sb-fg); font: 11px var(--sb-body);
}
.vp-profile-grid textarea, .vp-product-form-modal.production textarea { min-height: 74px; resize: vertical; }
.vp-profile-grid .vp-toggle { display: flex; align-items: center; gap: 8px; }
.vp-profile-grid .vp-toggle input { width: auto; min-height: auto; margin: 0; }
.vp-profile-form > .vp-btn { margin-left: 16px; }
.vp-modal-shell { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; }
.vp-modal-shell .vp-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15,16,14,.48); }
.vp-product-form-modal.production {
  position: relative; inset: auto; transform: none; width: min(500px,100%);
  max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column;
  gap: 12px; padding: 18px; border-radius: 8px;
}
.vp-product-form-modal.production > header { display: flex; justify-content: space-between; gap: 12px; }
.vp-product-form-modal.production h2 { margin: 0; font: 600 17px var(--sb-heading); }
.vp-product-form-modal.production p { margin: 3px 0 0; color: var(--sb-fg-3); font-size: 9px; }
.vp-product-form-modal.production > header button { border: 0; background: transparent; color: var(--sb-fg-3); font-size: 10px; cursor: pointer; }
.vp-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 900px) {
  .vp-production-grid { grid-template-columns: 1fr; }
  .vp-span-two { grid-column: 1; }
}
@media (max-width: 720px) {
  .vp-live-products { grid-template-columns: 1fr; padding: 10px; }
  .vp-profile-grid { grid-template-columns: 1fr; }
  .vp-profile-grid .vp-span-two { grid-column: 1; }
  .vp-fee-model { grid-template-columns: 1fr; }
  .vp-top-offerings > div { grid-template-columns: 1fr auto; }
  .vp-top-offerings span { grid-row: 2; }
  .vp-top-offerings b { grid-row: 1 / 3; grid-column: 2; }
}
.vp-statement-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.vp-statement-strip > div {
  min-width: 150px;
  padding: 10px;
  border: 1px solid var(--vp-border);
  border-radius: 6px;
  background: var(--vp-surface);
}

.vp-statement-strip span,
.vp-statement-strip strong,
.vp-statement-strip small {
  display: block;
}

/* Keep late extension rules from reopening the collapsed navigation rail. */
@media (min-width: 721px) and (max-width: 960px) {
  .vp-sidebar .vp-selector-label,
  .vp-sidebar .vp-vendor-pill .info {
    display: none;
  }

  .vp-sidebar .vp-vendor-selector-container {
    padding: 0;
    margin-bottom: 8px;
  }
}

/* Mobile merchant operations: full Spacebar palette and touch-first hierarchy. */
.vp-mobile-masthead { display: none; }

@media (max-width: 720px) {
  .vp-app { --mobile-navy: #213448; --mobile-blue: #547792; --mobile-lilac: #b49fcc; --mobile-yellow: #f9e8a2; background: #f4f6f8; }
  .vp-main { background: #f4f6f8; padding-bottom: 86px; }
  .vp-mobile-masthead { display: block; position: relative; min-height: 128px; padding: max(18px, env(safe-area-inset-top)) 18px 16px; overflow: hidden; color: #fff; background: var(--mobile-navy); }
  .vp-mobile-masthead::before, .vp-mobile-masthead::after { content: ''; position: absolute; border-radius: 999px; pointer-events: none; }
  .vp-mobile-masthead::before { width: 118px; height: 118px; right: -42px; top: -58px; background: var(--mobile-blue); }
  .vp-mobile-masthead::after { width: 86px; height: 86px; left: -34px; bottom: -54px; background: var(--mobile-lilac); }
  .vp-mobile-merchant, .vp-mobile-page-title { position: relative; z-index: 1; display: flex; align-items: center; }
  .vp-mobile-merchant { gap: 10px; }
  .vp-mobile-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #fff; color: var(--mobile-navy); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
  .vp-mobile-store-copy { display: grid; min-width: 0; gap: 2px; }
  .vp-mobile-store-copy small { color: var(--mobile-lilac); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .vp-mobile-store-copy strong { max-width: 210px; overflow: hidden; color: #fff; font-size: 15px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .vp-mobile-merchant button { margin-left: auto; padding: 7px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; background: transparent; color: #fff; font: 750 10px/1 var(--sb-body); }
  .vp-mobile-page-title { justify-content: space-between; margin-top: 22px; }
  .vp-mobile-page-title > span { color: #fff; font-size: 22px; font-weight: 780; letter-spacing: -.045em; }
  .vp-mobile-page-title i { display: inline-flex; align-items: center; gap: 5px; color: #d9e5ed; font-size: 10px; font-style: normal; font-weight: 750; }
  .vp-mobile-page-title i b { width: 7px; height: 7px; border-radius: 50%; background: var(--mobile-yellow); box-shadow: 0 0 0 3px rgba(249,232,162,.17); }
  .vp-topbar { min-height: 0; padding: 12px 14px 2px; gap: 8px; background: #f4f6f8; }
  .vp-topbar-title { display: none; }
  .vp-search { height: 44px; border: 2px solid var(--mobile-blue); border-radius: 12px; background: #fff; }
  .vp-body { padding: 14px 14px 26px; background: #f4f6f8; }
  .vp-sidebar { height: calc(70px + env(safe-area-inset-bottom)); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--mobile-navy); box-shadow: 0 -6px 20px rgba(33,52,72,.14); }
  .vp-nav { justify-content: space-evenly; gap: 0; }
  .vp-nav-item, .vp-nav-item:hover { width: 54px; min-width: 54px; height: 54px; min-height: 54px; border-radius: 12px; color: var(--mobile-blue); font-size: 9px; }
  .vp-nav-item[data-nav="analytics"], .vp-nav-item[data-nav="billing"] { display: none; }
  .vp-nav-item.is-active { background: var(--mobile-lilac); color: var(--mobile-navy); box-shadow: none; }
  .vp-nav-item .badge, .vp-nav-item.is-active .badge { top: 2px; right: 3px; min-width: 17px; height: 17px; background: var(--mobile-yellow); color: var(--mobile-navy); }
  .vp-kpi { border: 0; border-radius: 15px; box-shadow: none; }
  .vp-kpi:nth-child(1) { background: var(--mobile-navy); } .vp-kpi:nth-child(2) { background: var(--mobile-blue); }
  .vp-kpi:nth-child(3) { background: #fff; border: 2px solid var(--mobile-navy); } .vp-kpi:nth-child(4) { background: var(--mobile-lilac); }
  .vp-kpi:nth-child(1) *, .vp-kpi:nth-child(2) * { color: #fff; }
  .vp-kpi:nth-child(1) .vp-kpi-detail, .vp-kpi:nth-child(2) .vp-kpi-detail { color: var(--mobile-yellow); }
}

/* Compact fulfillment workspace. The order list is the primary operator surface. */
.vp-production .vp-orders-layout { display: block; }
.vp-order-workspace { display: grid; gap: 12px; min-width: 0; }
.vp-stage-board { display: grid; grid-template-columns: 176px minmax(0, 1fr); border: 1px solid #c8d5df; border-radius: 14px; overflow: hidden; background: #fff; }
.vp-queue-total { display: grid; align-content: center; gap: 3px; min-height: 104px; padding: 16px 20px; border: 0; border-right: 1px solid #c8d5df; background: #e5f0f6; color: #213448; text-align: left; cursor: pointer; font-family: var(--sb-body); }
.vp-queue-total span, .vp-stage-card span, .vp-order-list-head > div > span { color: #547792; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.vp-queue-total strong { font: 760 38px/.95 var(--sb-heading); letter-spacing: -.06em; }
.vp-queue-total small { color: #547792; font-size: 11px; }
.vp-stage-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.vp-stage-card { display: grid; align-content: center; gap: 6px; min-width: 0; min-height: 104px; padding: 15px 18px; border: 0; border-left: 1px solid #e1e8ed; background: #fff; color: #213448; text-align: left; cursor: pointer; font-family: var(--sb-body); transition: background .16s ease, box-shadow .16s ease; }
.vp-stage-card:first-child { border-left: 0; }
.vp-stage-card:hover { background: #f6fafc; }
.vp-stage-card.is-active { background: #547792; color: #fff; box-shadow: inset 0 -4px #213448; }
.vp-stage-card.is-active span, .vp-stage-card.is-active small { color: #fff; }
.vp-stage-card strong { font: 750 29px/.92 var(--sb-heading); letter-spacing: -.05em; }
.vp-stage-card small { overflow: hidden; color: #71869a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vp-order-list-card { overflow: hidden; border: 1px solid #c8d5df; border-radius: 14px; background: #fff; }
.vp-order-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 15px 18px; border-bottom: 1px solid #dce5eb; }
.vp-order-list-head h2 { margin: 4px 0 0; color: #213448; font: 700 21px/1 var(--sb-heading); letter-spacing: -.04em; }
.vp-order-secondary { display: flex; align-items: center; gap: 5px; }
.vp-order-secondary button { padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #547792; cursor: pointer; font: 750 10px/1 var(--sb-body); }
.vp-order-secondary button:hover, .vp-order-secondary button.is-active { border-color: #b8ccd9; background: #eef5f8; color: #213448; }
.vp-order-secondary b { display: inline-grid; min-width: 16px; height: 16px; place-items: center; margin-left: 3px; border-radius: 99px; background: #dceaf1; color: #213448; font-size: 9px; }
.vp-order-column-head, .vp-order-row { display: grid; grid-template-columns: minmax(150px,1.25fr) minmax(125px,1fr) minmax(115px,.95fr) 108px 130px; gap: 12px; align-items: center; }
.vp-order-column-head { padding: 10px 18px; border-bottom: 1px solid #dce5eb; background: #f5f8fa; color: #71869a; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.vp-order-row { width: 100%; min-height: 74px; padding: 12px 18px; border: 0; border-bottom: 1px solid #e1e8ed; background: #fff; color: #213448; cursor: pointer; font-family: var(--sb-body); text-align: left; }
.vp-order-row:last-child { border-bottom: 0; }
.vp-order-row:hover { background: #f6fafc; }
.vp-order-row.is-selected { background: #e8f2f7; box-shadow: inset 4px 0 #547792; }
.vp-order-customer, .vp-order-id, .vp-order-meta { display: grid; min-width: 0; gap: 3px; }
.vp-order-customer strong, .vp-order-id strong, .vp-order-meta strong { overflow: hidden; color: #213448; font-size: 12px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.vp-order-customer small, .vp-order-id small, .vp-order-meta small { overflow: hidden; color: #71869a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vp-order-total { justify-self: end; color: #213448; font: 750 13px var(--sb-mono); }
.vp-order-status { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.vp-order-status i { color: #547792; font-size: 22px; font-style: normal; line-height: 1; }
.vp-order-empty { display: grid; place-items: center; gap: 7px; min-height: 246px; padding: 28px; color: #71869a; text-align: center; }
.vp-order-empty strong { color: #213448; font-size: 14px; }.vp-order-empty span { max-width: 280px; font-size: 11px; line-height: 1.5; }
.vp-orders-layout.is-detail-open { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.56fr); gap: 12px; align-items: start; }
.vp-order-drawer { position: sticky; top: 12px; max-height: calc(100vh - 108px); overflow-y: auto; border: 1px solid #b8ccd9; border-radius: 14px; background: #fff; box-shadow: 0 15px 38px rgba(33,52,72,.16); }
.vp-order-drawer-backdrop { display: none; }
.vp-production .vp-detail { position: static; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
.vp-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: #213448; }
.vp-detail-head .who { display: grid; gap: 5px; }.vp-detail-head .who > strong { font-size: 24px; }.vp-detail-head .who > span { color: #d7e6ed; }.vp-detail-head .vp-status { width: max-content; margin-top: 3px; }
.vp-detail-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 9px; background: transparent; color: #fff; cursor: pointer; }
.vp-detail-line .item small { display: block; margin-top: 3px; color: #71869a; font-size: 10px; font-weight: 400; }.vp-detail-address { color: #213448; font-size: 13px; font-weight: 650; line-height: 1.4; }.vp-detail-note { margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: #eef5f8; color: #547792; font-size: 11px; font-style: italic; line-height: 1.45; }
.vp-detail-actions { display: grid; gap: 8px; }.vp-detail-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.vp-detail-actions .vp-btn { justify-content: center; }.vp-detail-cancel { padding: 5px; border: 0; background: transparent; color: #b24d42; cursor: pointer; font: 700 10px var(--sb-body); }

@media (max-width: 960px) {
  .vp-orders-layout.is-detail-open { grid-template-columns: 1fr minmax(290px,.7fr); }
  .vp-order-column-head, .vp-order-row { grid-template-columns: minmax(130px,1.2fr) minmax(105px,.9fr) minmax(94px,.8fr) 98px; }.vp-order-column-head > :last-child, .vp-order-row > .vp-order-status { display: none; }
}

@media (max-width: 720px) {
  .vp-topbar-signout { display: none; }
  .vp-production .vp-topbar { padding: 10px 12px 2px; }.vp-production .vp-topbar-actions { grid-template-columns: minmax(0,1fr) auto auto; }.vp-production .vp-topbar-actions .vp-search { grid-column: 1 / -1; grid-row: 2; }
  .vp-production .vp-sidebar { height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }.vp-production .vp-nav { overflow: hidden; }.vp-production .vp-nav-item { flex: 1 1 0; min-width: 0; }.vp-production .vp-nav-item[data-nav="analytics"], .vp-production .vp-nav-item[data-nav="billing"] { display: none; }.vp-production .vp-sidebar-foot { flex: 0 0 56px; }
  .vp-stage-board { grid-template-columns: 1fr; overflow: visible; border: 0; border-radius: 0; background: transparent; }.vp-queue-total { min-height: 86px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 15px 16px; border: 0; border-radius: 14px 14px 0 0; background: #213448; color: #fff; }.vp-queue-total span { color: #b49fcc; }.vp-queue-total strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #fff; font-size: 38px; }.vp-queue-total small { color: #d7e6ed; }
  .vp-stage-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding-top: 8px; }.vp-stage-card { min-height: 80px; padding: 12px; border: 2px solid #c8d5df; border-radius: 12px; }.vp-stage-card:first-child { border-left: 2px solid #c8d5df; }.vp-stage-card.is-active { border-color: #213448; box-shadow: inset 0 -3px #213448; }.vp-stage-card strong { font-size: 25px; }.vp-stage-card small { font-size: 9px; }
  .vp-order-list-card { border-radius: 13px; }.vp-order-list-head { min-height: 68px; padding: 13px 14px; }.vp-order-list-head h2 { font-size: 19px; }.vp-order-secondary { gap: 1px; }.vp-order-secondary button { padding: 6px 7px; font-size: 9px; }
  .vp-order-column-head { display: none; }.vp-order-row { grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; min-height: 0; padding: 14px; }.vp-order-customer { grid-column: 1; }.vp-order-id { grid-column: 1; grid-row: 2; display: block; }.vp-order-id small { display: none; }.vp-order-meta { grid-column: 2; grid-row: 1; align-items: end; text-align: right; }.vp-order-total { grid-column: 2; grid-row: 2; }.vp-order-status { display: flex !important; grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }.vp-order-status i { display: none; }
  .vp-orders-layout.is-detail-open { display: block; }.vp-order-drawer-backdrop { display: block; position: fixed; z-index: 120; inset: 0; border: 0; background: rgba(20,34,46,.4); }.vp-order-drawer { position: fixed; z-index: 121; right: 0; bottom: 0; left: 0; top: max(66px, env(safe-area-inset-top)); max-height: none; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgba(20,34,46,.24); }.vp-order-drawer::before { content: ''; display: block; width: 38px; height: 4px; margin: 10px auto -2px; border-radius: 99px; background: #c8d5df; }.vp-detail-head { position: sticky; top: 0; z-index: 1; }.vp-detail-actions { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .vp-production .vp-kpi-row { gap: 9px; }.vp-production .vp-kpi { min-height: 78px; padding: 13px; }.vp-production .vp-kpi-value { font-size: 22px; }.vp-production .vp-kpi-detail { margin-top: 3px; font-size: 8px; }
}
/* Merchant workspace redesign. Loaded after the legacy panel stylesheet. */
.vp-production {
  --mw-ink: #19231f;
  --mw-muted: #6f7b75;
  --mw-line: #dfe5df;
  --mw-paper: #ffffff;
  --mw-canvas: #f4f6f2;
  --mw-green: #087b5a;
  --mw-green-soft: #e3f2eb;
  --mw-blue: #3178a6;
  --mw-blue-soft: #e9f2f8;
  --mw-coral: #c9694e;
  --mw-coral-soft: #f8ece6;
  grid-template-columns: 224px minmax(0, 1fr);
  background: var(--mw-canvas);
  color: var(--mw-ink);
}

.vp-production .vp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  gap: 8px;
  padding: 18px 14px;
  border-right: 1px solid var(--mw-line);
  background: #fbfcfa;
}

.vp-production .vp-sidebar-brand {
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 14px;
  border-color: var(--mw-line);
}

.mw-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--mw-ink);
}

.vp-production .mw-brand-mark img {
  width: 18px;
  filter: brightness(0) invert(1);
}

.mw-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.vp-production .mw-brand-copy strong {
  color: var(--mw-ink);
  font-size: 12px;
  letter-spacing: .12em;
}

.mw-brand-copy small {
  color: var(--mw-muted);
  font-size: 9px;
}

.vp-production .vp-vendor-selector-container {
  margin: 8px 0 12px;
  padding: 0;
}

.vp-production .vp-selector-label {
  margin: 0 8px 6px;
  color: #87918c;
  font-size: 8px;
  letter-spacing: .14em;
}

.vp-production .vp-vendor-pill {
  min-height: 58px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  background: var(--mw-paper);
  box-shadow: 0 2px 8px rgba(25, 35, 31, .04);
}

.vp-production .vp-vendor-pill .avatar {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--mw-coral-soft);
  color: var(--mw-coral);
}

.vp-production .vp-vendor-pill .info strong {
  overflow: hidden;
  color: var(--mw-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mw-store-state {
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: var(--mw-green) !important;
  font-family: var(--sb-body) !important;
  font-size: 8px !important;
  font-weight: 700;
}

.mw-store-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23a474;
  box-shadow: 0 0 0 3px var(--mw-green-soft);
}

.vp-production .vp-nav {
  gap: 3px;
}

.vp-production .vp-nav-section {
  padding: 13px 9px 5px;
  color: #929c97;
  font-size: 8px;
  letter-spacing: .15em;
}

.vp-production .vp-nav-item {
  min-height: 38px;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #5f6b65;
  font-size: 11px;
  font-weight: 650;
}

.vp-production .vp-nav-item svg {
  width: 16px;
  height: 16px;
}

.vp-production .vp-nav-item:hover {
  background: #edf1ed;
  color: var(--mw-ink);
}

.vp-production .vp-nav-item.is-active {
  background: var(--mw-ink);
  color: #fff;
  box-shadow: 0 5px 14px rgba(25, 35, 31, .14);
}

.vp-production .vp-nav-item .badge {
  background: var(--mw-coral);
  color: #fff;
}

.vp-production .vp-main {
  min-width: 0;
}

.vp-production .vp-topbar {
  position: relative;
  min-height: 76px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--mw-line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.vp-production .vp-topbar-title h1 {
  color: var(--mw-ink);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.vp-production .vp-topbar-title span {
  color: var(--mw-muted);
  font-family: var(--sb-body);
  font-size: 10px;
}

.vp-production .vp-btn {
  height: 34px;
  padding: 0 12px;
  border-color: var(--mw-line);
  border-radius: 7px;
  box-shadow: none;
  color: var(--mw-ink);
  font-size: 10px;
}

.vp-production .vp-btn:hover {
  border-color: #c8d0c9;
  background: #f6f8f5;
  box-shadow: none;
  transform: none;
}

.vp-production .vp-btn-primary {
  border-color: var(--mw-green);
  background: var(--mw-green);
  color: #fff;
}

.vp-production .vp-search {
  height: 34px;
  border-color: var(--mw-line);
  border-radius: 7px;
  box-shadow: none;
}

.vp-production .vp-body {
  gap: 16px;
  padding: 22px 24px 48px;
}

.mw-overview-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--mw-line);
  border-radius: 10px;
  background: var(--mw-paper);
}

.mw-overview-intro h2 {
  margin: 0;
  color: var(--mw-ink);
  font: 600 21px/1.2 var(--sb-heading);
}

.mw-overview-intro p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--mw-muted);
  font-size: 10px;
  line-height: 1.5;
}

.mw-overview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.vp-production .vp-kpi-row {
  gap: 10px;
}

.vp-production .vp-kpi {
  min-height: 104px;
  justify-content: space-between;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--mw-line);
  border-radius: 9px;
  box-shadow: none;
}

.vp-production .vp-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--mw-green);
}

.vp-production .vp-kpi:nth-child(2)::before { background: var(--mw-blue); }
.vp-production .vp-kpi:nth-child(3)::before { background: var(--mw-coral); }
.vp-production .vp-kpi:nth-child(4)::before { background: #8b72a7; }

.vp-production .vp-kpi-label {
  color: var(--mw-muted);
  font-size: 8px;
}

.vp-production .vp-kpi-value {
  color: var(--mw-ink);
  font-size: 25px;
}

.vp-production .vp-kpi-detail {
  color: #87918c;
  font-size: 8px;
}

.vp-production .vp-production-grid {
  gap: 12px;
}

.vp-production .vp-data-panel,
.vp-production .vp-table-card,
.vp-production .vp-detail {
  border: 1px solid var(--mw-line);
  border-radius: 9px;
  background: var(--mw-paper);
  box-shadow: 0 2px 10px rgba(25, 35, 31, .035);
}

.vp-production .vp-data-panel > header,
.vp-production .vp-table-head {
  min-height: 52px;
  padding: 13px 16px;
  border-color: var(--mw-line);
}

.vp-production .vp-data-panel > header h2,
.vp-production .vp-table-head h2 {
  color: var(--mw-ink);
  font: 600 13px/1.2 var(--sb-heading);
  text-transform: none;
}

.vp-production .vp-data-panel > header span {
  color: var(--mw-muted);
}

.mw-recent-orders {
  grid-column: 1 / -1;
}

.mw-recent-list {
  display: grid;
}

.mw-recent-row {
  display: grid;
  grid-template-columns: 90px minmax(140px, 1fr) 110px 90px auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 16px;
  border-top: 1px solid var(--mw-line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--sb-body);
  font-size: 10px;
  text-align: left;
}

.mw-recent-row:first-child { border-top: 0; }
.mw-recent-row:hover { background: #f7f9f6; }
.mw-recent-row strong { color: var(--mw-ink); }
.mw-recent-row span { overflow: hidden; color: var(--mw-muted); text-overflow: ellipsis; white-space: nowrap; }
.mw-recent-row b { text-align: right; color: var(--mw-ink); font-family: var(--sb-mono); }

.vp-production .vp-orders-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr);
  gap: 12px;
  align-items: start;
}

.vp-production .vp-table-tabs {
  padding: 3px;
  border-radius: 7px;
  background: #f0f3ef;
}

.vp-production .vp-table-tabs button {
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--mw-muted);
  font-size: 8px;
}

.vp-production .vp-table-tabs button.is-active {
  background: #fff;
  color: var(--mw-ink);
  box-shadow: 0 1px 4px rgba(25, 35, 31, .08);
}

.vp-production .vp-table th,
.vp-production .vp-real-table th {
  background: #f7f9f6;
  color: #82908a;
  font-size: 8px;
}

.vp-production .vp-table td {
  padding: 11px 13px;
  border-color: var(--mw-line);
  color: var(--mw-ink);
  font-size: 10px;
}

.vp-production .vp-table tr.is-selected {
  background: var(--mw-blue-soft);
  box-shadow: inset 3px 0 var(--mw-blue);
}

.vp-production .vp-detail {
  top: 12px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.vp-production .vp-live-products {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.vp-production .vp-live-products article {
  border-color: var(--mw-line);
  background: #fbfcfa;
}

.mw-plan-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 9px 9px 0 0;
  background: var(--mw-ink);
  color: #fff;
}

.mw-plan-hero small,
.mw-plan-hero strong,
.mw-plan-hero span {
  display: block;
}

.mw-plan-hero small {
  margin-bottom: 6px;
  color: #b9c8c0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mw-plan-hero strong {
  font: 600 22px var(--sb-heading);
}

.mw-plan-hero span {
  margin-top: 5px;
  color: #d8e2dc;
  font-size: 10px;
}

.mw-plan-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 9px;
  font-weight: 800;
}

.mw-plan-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-top: 1px solid var(--mw-line);
}

.mw-plan-note strong,
.mw-plan-note span { display: block; }
.mw-plan-note strong { font-size: 11px; }
.mw-plan-note span { margin-top: 3px; color: var(--mw-muted); font-size: 9px; }

.vp-production .vp-profile-grid {
  gap: 14px;
}

.vp-production .vp-profile-grid label,
.vp-production .vp-product-form-modal.production label {
  color: #69756f;
  font-size: 8px;
}

.vp-production .vp-profile-grid input,
.vp-production .vp-profile-grid select,
.vp-production .vp-profile-grid textarea,
.vp-production .vp-product-form-modal.production input,
.vp-production .vp-product-form-modal.production textarea {
  border-color: var(--mw-line);
  border-radius: 6px;
  background: #fbfcfa;
}

@media (max-width: 960px) {
  .vp-production { grid-template-columns: 68px minmax(0, 1fr); }
  .vp-production .mw-brand-copy,
  .vp-production .vp-selector-label,
  .vp-production .vp-vendor-pill .info,
  .vp-production .vp-nav-section,
  .vp-production .vp-nav-item span:not(.badge) { display: none; }
  .vp-production .vp-sidebar-brand,
  .vp-production .vp-vendor-pill,
  .vp-production .vp-nav-item { justify-content: center; }
  .vp-production .vp-sidebar-brand { padding-inline: 0; }
  .vp-production .vp-vendor-selector-container { margin: 7px 0 10px; }
  .vp-production .vp-orders-layout { grid-template-columns: 1fr; }
  .vp-production .vp-detail { position: static; max-height: none; }
}

@media (max-width: 720px) {
  .vp-production {
    display: flex;
    height: 100vh;
  }
  .vp-production .vp-main {
    padding-bottom: 68px;
  }
  .vp-production .vp-sidebar {
    height: 64px;
    background: #fff;
  }
  .vp-production .vp-body {
    padding: 14px 12px 34px;
  }
  .vp-production .vp-topbar {
    min-height: auto;
    padding: 12px;
  }
  .vp-production .vp-topbar-title h1 { font-size: 18px; }
  .mw-overview-intro {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
  .mw-overview-intro h2 { font-size: 18px; }
  .mw-overview-actions { width: 100%; }
  .mw-overview-actions .vp-btn { flex: 1; justify-content: center; }
  .vp-production .vp-kpi-row { grid-template-columns: 1fr 1fr; }
  .vp-production .vp-kpi { min-height: 96px; }
  .vp-production .vp-kpi-value { font-size: 21px; }
  .mw-recent-row {
    grid-template-columns: 78px minmax(0, 1fr) auto;
  }
  .mw-recent-row span:nth-child(3),
  .mw-recent-row span:nth-child(4) { display: none; }
  .mw-plan-hero { grid-template-columns: 1fr; }
  .mw-plan-note { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .vp-production .vp-kpi-row { grid-template-columns: 1fr; }
  .vp-production .vp-topbar-actions .vp-btn:not(.vp-btn-primary) span { display: none; }
}
/* ============================================================
   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); }
}

/* ============================================================
   Aesthetic pass — glass motion + micro-interactions
   ============================================================ */

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

/* — Header, metrics and cards cascade in — */
.adm-header-row {
  animation: admRiseIn 480ms var(--sb-ease-glide) both;
}

.adm-metric-card,
.adm-card {
  animation: admRiseIn 480ms var(--sb-ease-glide) both;
}

.adm-metrics-grid .adm-metric-card:nth-child(1) { animation-delay: 60ms; }
.adm-metrics-grid .adm-metric-card:nth-child(2) { animation-delay: 120ms; }
.adm-metrics-grid .adm-metric-card:nth-child(3) { animation-delay: 180ms; }
.adm-metrics-grid .adm-metric-card:nth-child(4) { animation-delay: 240ms; }
.adm-metrics-grid .adm-metric-card:nth-child(n+5) { animation-delay: 300ms; }
.adm-card { animation-delay: 200ms; }

/* — Metric cards: hover lift with iridescent edge — */
.adm-metric-card {
  position: relative;
  transition: transform 260ms var(--sb-ease-glide), box-shadow 260ms ease, border-color 260ms ease;
}

.adm-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sb-shadow-2), var(--sb-shadow-inset-hi);
  border-color: rgba(0, 168, 120, 0.24);
}

/* — Buttons press with confidence — */
.adm-btn:active {
  transform: translateY(0) scale(0.97);
}

.adm-btn-primary {
  position: relative;
  overflow: hidden;
}

.adm-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 600ms ease;
  pointer-events: none;
}

.adm-btn-primary:hover::after {
  transform: translateX(130%);
}

/* — Table rows glide — */
.adm-table td {
  transition: background 160ms var(--sb-ease-out);
}

.adm-table tr:hover td {
  background: rgba(0, 168, 120, 0.035);
}

/* — Action links get a sliding underline — */
.adm-action-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 240ms var(--sb-ease-out);
  padding-bottom: 2px;
}

.adm-action-link:hover {
  background-size: 100% 1.5px;
}

/* — Respect reduced motion — */
@media (prefers-reduced-motion: reduce) {
  .adm-header-row,
  .adm-metric-card,
  .adm-card {
    animation: none;
  }
}

/* Production field onboarding */
.adm-production-main {
  max-width: 1440px;
}

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

.adm-eyebrow {
  display: block;
  color: var(--sb-mint);
  font-family: var(--sb-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adm-nav-actions {
  display: flex;
  gap: 8px;
}

.adm-health {
  min-width: 210px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: var(--sb-surface);
  color: var(--sb-fg);
  text-align: left;
  cursor: pointer;
}

.adm-health .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c98a20;
}

.adm-health.ready .dot { background: var(--sb-mint); }
.adm-health small, .adm-health strong { display: block; }
.adm-health small { color: var(--sb-fg-3); font-size: 9px; text-transform: uppercase; }
.adm-health strong { font-size: 12px; margin-top: 2px; }

.adm-real-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: var(--sb-surface);
  margin-bottom: 20px;
}

.adm-real-metrics > div {
  padding: 16px 18px;
  border-right: 1px solid var(--sb-border);
}

.adm-real-metrics > div:last-child { border-right: 0; }
.adm-real-metrics span, .adm-real-metrics small { display: block; }
.adm-real-metrics span { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--sb-fg-3); }
.adm-real-metrics strong { display: block; margin: 5px 0 2px; font: 600 22px/1 var(--sb-heading); }
.adm-real-metrics small { color: var(--sb-fg-3); font-size: 10px; }

.adm-preflight {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(201, 138, 32, 0.28);
  border-radius: 8px;
  background: rgba(201, 138, 32, 0.06);
}

.adm-preflight > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.adm-preflight strong, .adm-preflight span { display: block; }
.adm-preflight strong { font-size: 13px; }
.adm-preflight span { margin-top: 2px; color: var(--sb-fg-3); font-size: 11px; }
.adm-preflight ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; justify-content: flex-end; }
.adm-preflight li { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 5px; font-size: 10px; border: 1px solid var(--sb-border); background: var(--sb-surface); }
.adm-preflight li.ok { color: var(--sb-mint); }
.adm-preflight li.fail { color: #9d6411; }
.adm-preflight li.fail > span { display: grid; place-items: center; width: 13px; height: 13px; margin: 0; border-radius: 50%; background: #9d6411; color: white; font-size: 9px; }
.adm-preflight-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.adm-notice {
  padding: 11px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  border: 1px solid var(--sb-border);
  background: var(--sb-surface);
}

.adm-notice.success { color: #087252; border-color: rgba(0, 168, 120, 0.25); background: rgba(0, 168, 120, 0.07); }
.adm-notice.error { color: #a23737; border-color: rgba(214, 69, 69, 0.25); background: rgba(214, 69, 69, 0.06); }

.adm-onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.adm-onboarding {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: var(--sb-surface);
  overflow: hidden;
}

.adm-step-number {
  display: grid;
  place-items: start center;
  padding-top: 19px;
  background: var(--sb-surface-deep);
  border-right: 1px solid var(--sb-border);
  color: var(--sb-mint);
  font-family: var(--sb-mono);
  font-size: 11px;
  font-weight: 900;
}

.adm-step-content { padding: 18px; min-width: 0; }
.adm-step-content > header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.adm-step-content h2 { margin: 0; font: 600 17px/1.2 var(--sb-heading); }
.adm-step-content p { margin: 3px 0 0; font-size: 11px; color: var(--sb-fg-3); }

.adm-business-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.adm-business-types button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--sb-border);
  border-radius: 7px;
  background: var(--sb-surface-2);
  color: var(--sb-fg);
  text-align: left;
  cursor: pointer;
}

.adm-business-types button.selected { border-color: var(--sb-mint); box-shadow: inset 0 0 0 1px var(--sb-mint); background: rgba(0, 168, 120, 0.05); }
.adm-business-types svg { grid-row: 1 / 3; color: var(--sb-mint); }
.adm-business-types strong { font-size: 12px; }
.adm-business-types span { color: var(--sb-fg-3); font-size: 10px; }

.adm-fields {
  display: grid;
  gap: 10px;
}

.adm-fields.two { grid-template-columns: 1fr 1fr; }
.adm-fields label { color: var(--sb-muted-warm); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.adm-fields input,
.adm-product-row input,
.adm-inline-settings input[type="number"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--sb-border);
  border-radius: 5px;
  background: var(--sb-surface-2);
  color: var(--sb-fg);
  font: 12px var(--sb-body);
  outline: none;
}

.adm-fields input:focus, .adm-product-row input:focus { border-color: var(--sb-mint); box-shadow: 0 0 0 2px rgba(0, 168, 120, 0.1); }
.adm-fields label small { display: block; margin-top: 3px; color: var(--sb-fg-3); font: 9px var(--sb-mono); text-transform: none; }

.adm-inline-settings {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--sb-border);
}

.adm-inline-settings label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--sb-fg-2); }
.adm-inline-settings label:last-child { margin-left: auto; }
.adm-inline-settings input[type="number"] { width: 72px; height: 30px; }

.adm-text-button, .adm-add-product {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--sb-mint);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.adm-importers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-import-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px dashed var(--sb-border-2);
  border-radius: 7px;
  color: var(--sb-fg);
  cursor: pointer;
}

.adm-import-button:hover { border-color: var(--sb-mint); background: rgba(0, 168, 120, 0.035); }
.adm-import-button svg { color: var(--sb-mint); }
.adm-import-button span, .adm-import-button strong, .adm-import-button small { display: block; }
.adm-import-button strong { font-size: 11px; }
.adm-import-button small { color: var(--sb-fg-3); font-size: 9px; margin-top: 2px; }
.adm-import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.adm-product-editor { display: flex; flex-direction: column; gap: 6px; }
.adm-product-row {
  display: grid;
  grid-template-columns: 24px minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(80px, .6fr) minmax(120px, 1fr) 105px 30px;
  gap: 6px;
  align-items: center;
}

.adm-product-index { font: 10px var(--sb-mono); color: var(--sb-fg-3); text-align: center; }
.adm-price-input { display: grid; grid-template-columns: auto 1fr; align-items: center; height: 36px; border: 1px solid var(--sb-border); border-radius: 5px; background: var(--sb-surface-2); overflow: hidden; }
.adm-price-input span { padding-left: 7px; font-size: 8px; font-weight: 900; color: var(--sb-fg-3); }
.adm-price-input input { border: 0; padding-left: 5px; }
.adm-product-row > button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: var(--sb-fg-3); cursor: pointer; }
.adm-product-row > button:hover { color: var(--sb-danger); }
.adm-product-row > button:disabled { opacity: .3; cursor: default; }
.adm-add-product { margin: 10px 0 0 30px; }

.adm-commercial { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sb-border); border-radius: 7px; overflow: hidden; }
.adm-commercial > div { padding: 13px; border-right: 1px solid var(--sb-border); }
.adm-commercial > div:last-child { border-right: 0; }
.adm-commercial strong, .adm-commercial span { display: block; }
.adm-commercial strong { font: 600 18px var(--sb-heading); }
.adm-commercial span { margin-top: 2px; color: var(--sb-fg-3); font-size: 9px; }
.adm-terms { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 11px; color: var(--sb-fg-2); }

.adm-launch-button {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--sb-fg);
  color: var(--sb-cream);
  font-weight: 800;
  cursor: pointer;
}

.adm-launch-button svg:last-child { margin-left: auto; margin-right: 12px; }
.adm-launch-button:disabled { opacity: .55; cursor: wait; }
.spin { animation: admSpin .8s linear infinite; }
@keyframes admSpin { to { transform: rotate(360deg); } }

.adm-field-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-rail-card {
  padding: 16px;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: var(--sb-surface);
  box-shadow: var(--sb-shadow-1);
}

.adm-rail-card > div:not(.adm-preview-icon) { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sb-border); color: var(--sb-fg-3); font-size: 10px; }
.adm-rail-card > div:last-child { border-bottom: 0; }
.adm-rail-card > div > span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--sb-border); }
.adm-rail-card > div.done { color: var(--sb-fg); }
.adm-rail-card > div.done > span { border-color: var(--sb-mint); background: var(--sb-mint); color: white; }
.adm-rail-card h3 { margin: 10px 0 5px; font: 600 18px var(--sb-heading); }
.adm-rail-card p { color: var(--sb-fg-3); font-size: 10px; line-height: 1.5; }
.adm-rail-card code { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--sb-mint); font-size: 9px; }
.adm-preview-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-top: 14px; border-radius: 7px; background: rgba(0, 168, 120, .09); color: var(--sb-mint); }

.adm-result { text-align: center; }
.adm-qr { width: 150px; height: 150px; margin: 10px auto; border: 8px solid white; }
.adm-result button, .adm-result a {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
  border: 1px solid var(--sb-border);
  border-radius: 5px;
  background: var(--sb-surface-2);
  color: var(--sb-fg);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.adm-result button.primary { background: var(--sb-mint); border-color: var(--sb-mint); color: white; }

.adm-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--sb-surface-deep);
  color: var(--sb-fg-3);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.adm-status-live { background: rgba(0, 168, 120, .1); color: #087252; }
.adm-status-testing, .adm-status-submitted, .adm-status-under_review { background: rgba(201, 138, 32, .1); color: #8c5b0f; }
.adm-status-failed { background: rgba(214, 69, 69, .1); color: #a23737; }

.adm-merchants {
  margin-top: 20px;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: var(--sb-surface);
  overflow: hidden;
}

.adm-merchants > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--sb-border); }
.adm-merchants h2 { margin: 3px 0 0; font: 600 17px var(--sb-heading); }
.adm-merchants > header > span { color: var(--sb-fg-3); font-size: 10px; }
.adm-merchant-table-wrap { overflow-x: auto; }
.adm-merchants table { width: 100%; border-collapse: collapse; }
.adm-merchants th { padding: 10px 14px; background: var(--sb-surface-deep); color: var(--sb-fg-3); font-size: 9px; text-align: left; text-transform: uppercase; }
.adm-merchants td { padding: 12px 14px; border-top: 1px solid var(--sb-border); color: var(--sb-fg-2); font-size: 11px; }
.adm-merchants td strong, .adm-merchants td small { display: block; }
.adm-merchants td strong { color: var(--sb-fg); }
.adm-merchants td small { margin-top: 2px; color: var(--sb-fg-3); font: 8px var(--sb-mono); }
.adm-merchants td a { color: var(--sb-mint); }

@media (max-width: 1080px) {
  .adm-onboarding-layout { grid-template-columns: 1fr; }
  .adm-field-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .adm-navbar { height: auto; min-height: 60px; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .adm-nav-actions .adm-btn:first-child { display: none; }
  .adm-real-metrics { grid-template-columns: 1fr 1fr; }
  .adm-real-metrics > div:nth-child(2) { border-right: 0; }
  .adm-real-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--sb-border); }
  .adm-preflight { flex-direction: column; }
  .adm-preflight ul { justify-content: flex-start; }
  .adm-fields.two, .adm-business-types, .adm-importers, .adm-field-rail { grid-template-columns: 1fr; }
  .adm-product-row { grid-template-columns: 20px 1fr 92px 30px; padding: 8px 0; border-bottom: 1px solid var(--sb-border); }
  .adm-product-row > input:nth-of-type(2) { grid-column: 2 / 5; grid-row: 2; }
  .adm-product-row > input:nth-of-type(3) { grid-column: 2 / 3; grid-row: 3; }
  .adm-product-row > input:nth-of-type(4) { grid-column: 2 / 5; grid-row: 4; }
  .adm-price-input { grid-column: 3 / 4; grid-row: 3; }
  .adm-product-row > button { grid-column: 4; grid-row: 1; }
  .adm-commercial { grid-template-columns: 1fr; }
  .adm-commercial > div { border-right: 0; border-bottom: 1px solid var(--sb-border); }
  .adm-commercial > div:last-child { border-bottom: 0; }
  .adm-inline-settings { flex-wrap: wrap; }
  .adm-inline-settings label:last-child { margin-left: 0; width: 100%; }
}
.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;
  }

  /* Center film label collides with the brand on narrow screens */
  .film-label--center {
    display: none;
  }

  .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;
}

/* ============================================================
   Cinematic art-direction pass
   Grain, hero choreography, tactile buttons, glowing progress
   ============================================================ */

/* — Film grain: analog texture over the scroll film — */
.film-grade::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grainShift 9s steps(6) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -5%); }
  60%  { transform: translate(-5%, -2%); }
  80%  { transform: translate(4%, 4%); }
  100% { transform: translate(0, 0); }
}

.is-android-device .film-grade::after {
  animation: none;
}

/* — Hero entrance choreography: rise + settle, staggered — */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.intro-panel .eyebrow,
.intro-panel h1,
.intro-panel p,
.intro-panel .hero-actions,
.intro-panel .industry-strip {
  animation: heroRise 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-panel .eyebrow        { animation-delay: 250ms; }
.intro-panel h1              { animation-delay: 380ms; }
.intro-panel p               { animation-delay: 540ms; }
.intro-panel .hero-actions   { animation-delay: 680ms; }
.intro-panel .industry-strip { animation-delay: 820ms; }

/* — Eyebrow dash draws itself in — */
.intro-panel .eyebrow::before {
  transform-origin: left center;
  animation: dashDraw 700ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both;
}

.is-arabic .intro-panel .eyebrow::before {
  transform-origin: right center;
}

@keyframes dashDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* — "Begin scroll" arrow gently nudges downward — */
.hero-actions a svg {
  animation: nudgeDown 2.2s ease-in-out 2s infinite;
}

@keyframes nudgeDown {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(4px); }
  70% { transform: translateY(0); }
}

/* — Tactile buttons: lift, glow, and a light sweep on primary — */
.nav-right .btn--primary,
.hero-actions a,
.hero-actions button,
.closing-panel .btn--primary {
  position: relative;
  overflow: hidden;
  transition: transform 300ms var(--sb-ease-glide, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 300ms ease,
              border-color 300ms ease,
              background 300ms ease;
}

.nav-right .btn--primary:hover,
.hero-actions a:hover,
.hero-actions button:hover,
.closing-panel .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.nav-right .btn--primary:active,
.hero-actions a:active,
.hero-actions button:active,
.closing-panel .btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.hero-actions a:hover {
  background: #00b884;
  border-color: rgba(0, 212, 148, 0.7);
  box-shadow: 0 18px 48px rgba(0, 168, 120, 0.38);
}

.hero-actions a::after,
.closing-panel .btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
  transition: transform 700ms ease;
}

.hero-actions a:hover::after,
.closing-panel .btn--primary:hover::after {
  transform: translateX(130%);
}

/* — Industry chips wake up on hover — */
.industry-strip span {
  transition: transform 260ms var(--sb-ease-out, ease),
              border-color 260ms ease,
              background 260ms ease,
              color 260ms ease;
}

.industry-strip span:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 148, 0.55);
  background: rgba(0, 212, 148, 0.12);
  color: #fff8ed;
}

/* — Active story beat: number ring breathes with mint light — */
.story-card.is-active .beat-meta span {
  animation: beatGlow 3s ease-in-out infinite;
}

@keyframes beatGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 148, 0.0); border-color: rgba(0, 212, 148, 0.5); }
  50% { box-shadow: 0 0 26px 2px rgba(0, 212, 148, 0.34); border-color: rgba(0, 212, 148, 0.9); }
}

/* — Progress rail: gradient light instead of flat fill — */
.progress-hud i {
  background: linear-gradient(180deg, #00d494, #7bb8d4);
  box-shadow: 0 0 14px rgba(0, 212, 148, 0.55);
}

/* — Closing eyebrow rendered as a glowing keycap — */
.closing-panel .eyebrow {
  border: 1px solid rgba(0, 212, 148, 0.36);
  border-radius: 10px;
  padding: 9px 16px 8px;
  background: rgba(8, 8, 8, 0.3);
  box-shadow: 0 4px 0 rgba(0, 212, 148, 0.24), 0 12px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

/* — Language + pricing nav buttons ease in on load — */
.site-nav .brand,
.site-nav .nav-right {
  animation: heroRise 900ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both;
}

@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(--cream);
}

/* ── Global aesthetic polish ─────────────────────────────── */

/* Branded scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(30, 33, 29, 0.28);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 168, 120, 0.55);
  background-clip: padding-box;
}

/* Visible, branded keyboard focus without polluting mouse clicks */
:focus {
  outline: none;
}

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

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
