/* ==========================================================================
   UMI CASH · NAIVE DESIGN PROBE (LEVELS 3 · 6 · 9)
   ========================================================================== */

@font-face {
  font-family: 'Domus';
  src: url('./assets/fonts/Domus-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Domus';
  src: url('./assets/fonts/Domus-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Domus';
  src: url('./assets/fonts/Domus-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Domus';
  src: url('./assets/fonts/Domus-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #ECE7DD;
  color: #142947;
  font-family: 'Plus Jakarta Sans', 'Domus', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.clean-mode {
  background: #EAE4D8;
}
body.clean-mode .studio-drawer,
body.clean-mode .studio-pull-tab,
body.clean-mode .studio-backdrop {
  display: none !important;
}
body.clean-mode .studio-stage {
  padding: 20px;
}

/* ==========================================================================
   COLLAPSIBLE TOPBAR OVERLAY DRAWER (Takes 0px layout space at top)
   ========================================================================== */

.studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(14, 26, 44, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.studio-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.studio-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  transform: translateY(-102%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.studio-drawer.open {
  transform: translateY(0);
  pointer-events: auto;
}

.studio-pull-tab {
  position: fixed;
  top: 0;
  right: 22px;
  z-index: 92;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  background: rgba(16, 30, 52, 0.88);
  backdrop-filter: blur(10px);
  color: #F6F0E4;
  height: 24px;
  padding: 0 11px;
  border-radius: 0 0 10px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14, 28, 48, 0.18);
  opacity: 0.78;
  transition: opacity 0.16s ease, transform 0.2s ease, background 0.16s ease;
}

.studio-pull-tab:hover {
  opacity: 1;
  background: rgba(16, 30, 52, 0.98);
}

.studio-pull-tab.hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.pull-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #E66025;
}

.drawer-close-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #F6F0E4;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.studio-bar {
  background: rgba(16, 30, 52, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #F6F0E4;
  box-shadow: 0 18px 40px rgba(10, 20, 36, 0.28);
}

.studio-bar-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.studio-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #E66025;
  color: #FFFDF8;
}

.studio-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.studio-sub {
  font-size: 12px;
  color: rgba(246, 240, 228, 0.62);
}

.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.ctrl-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(246, 240, 228, 0.52);
}

.seg {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.07);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 2px;
}

.seg button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(246, 240, 228, 0.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.seg button:hover {
  color: #FFFDF8;
  background: rgba(255, 255, 255, 0.08);
}

.seg button.active {
  background: #F6F0E4;
  color: #142947;
}

.studio-spec {
  background: rgba(247, 241, 230, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 41, 71, 0.14);
  box-shadow: 0 14px 32px rgba(14, 28, 48, 0.16);
}

.spec-pill-bar {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
}

.spec-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.spec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #142947;
  color: #F6F0E4;
}

.spec-name {
  font-size: 14px;
  font-weight: 700;
  color: #142947;
}

.spec-desc {
  font-size: 13px;
  color: #4A5B73;
}

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

.spec-trait {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F3ECE0;
  color: #294161;
  border: 1px solid rgba(20, 41, 71, 0.12);
}

.studio-stage {
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px 20px 40px;
}

/* ==========================================================================
   NAIVE DESIGN TOKEN SYSTEM — LEVELS 3 / 6 / 9
   ========================================================================== */

.naive-scope {
  /* Core Umi Naive Reference Palette */
  --umi-navy: #142947;
  --umi-navy-deep: #0E1F37;
  --umi-coral: #E66025;
  --umi-coral-soft: #FDF0E9;
  --umi-sky: #0A93E3;
  --umi-sky-soft: #E5F4FD;
  --umi-cream: #F6F0E4;
  --umi-cream-2: #ECE3D3;
  --umi-paper: #FFFDF8;
  --umi-sage: #2E6F4E;
  --umi-sage-soft: #E8F4ED;
  --umi-amber: #C97A18;
  --umi-amber-soft: #FDF4E3;

  /* Tenant defaults (overridden per selected café) */
  --t-brand: #B5605A;
  --t-brand-dark: #8C443F;
  --t-tint: #F8EDE9;
  --t-ink: #2A1614;

  /* Default (Level 3) tokens */
  --font-display: 'Domus', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Domus', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --n-canvas: #F8F4EC;
  --n-canvas-alt: #F1EADF;
  --n-surface: #FFFFFF;
  --n-surface-tint: #FBF8F2;
  --n-ink: #142947;
  --n-ink-muted: #5A6B82;
  --n-ink-soft: #7E8EA3;

  --n-border-w: 1px;
  --n-border-color: rgba(20, 41, 71, 0.13);
  --n-border-strong: rgba(20, 41, 71, 0.22);
  --n-shadow: 0 2px 10px rgba(20, 41, 71, 0.045);
  --n-shadow-lg: 0 12px 30px rgba(20, 41, 71, 0.08);
  --n-shadow-btn: 0 2px 6px rgba(20, 41, 71, 0.1);
  --n-radius-shell: 22px;
  --n-radius-card: 16px;
  --n-radius-ctl: 12px;
  --n-radius-pill: 999px;
  --n-hero-bg: var(--t-brand);
  --n-hero-ink: #FFFFFF;
  --n-hero-accent: rgba(255, 255, 255, 0.2);
  --n-topbar-bg: rgba(255, 253, 248, 0.92);
  --n-chip-active-bg: #142947;
  --n-chip-active-ink: #FFFDF8;
  --n-grain-opacity: 0.025;
  --n-stamp-tilt: 0deg;

  color: var(--n-ink);
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   LEVEL 3 · MAREA CALMA (Subtle Tactile Editorial — 3/10 Naive)
   -------------------------------------------------------------------------- */
.naive-scope[data-naive="3"] {
  --font-display: 'Domus', 'Plus Jakarta Sans', system-ui, sans-serif;
  --n-canvas: #F8F4EC;
  --n-canvas-alt: #F0E9DC;
  --n-surface: #FFFFFF;
  --n-surface-tint: #FBF8F3;
  --n-border-w: 1px;
  --n-border-color: #E5DDD0;
  --n-border-strong: #D3C8B8;
  --n-shadow: 0 1px 3px rgba(20, 41, 71, 0.04), 0 6px 20px rgba(20, 41, 71, 0.035);
  --n-shadow-lg: 0 16px 36px rgba(20, 41, 71, 0.08);
  --n-shadow-btn: 0 1px 2px rgba(20, 41, 71, 0.08);
  --n-radius-card: 16px;
  --n-radius-ctl: 12px;
  --n-hero-bg: var(--t-brand);
  --n-grain-opacity: 0.022;
}

/* --------------------------------------------------------------------------
   LEVEL 6 · CUADERNO DE BARRA (Risograph Café Stationery — 6/10 Naive)
   -------------------------------------------------------------------------- */
.naive-scope[data-naive="6"] {
  --font-display: 'Bricolage Grotesque', 'Domus', system-ui, sans-serif;
  --n-canvas: #F5EEE0;
  --n-canvas-alt: #EAE0CD;
  --n-surface: #FFFDF8;
  --n-surface-tint: #FAF3E5;
  --n-border-w: 1.75px;
  --n-border-color: #142947;
  --n-border-strong: #142947;
  --n-shadow: 3px 3px 0 rgba(20, 41, 71, 0.14);
  --n-shadow-lg: 5px 5px 0 rgba(20, 41, 71, 0.18);
  --n-shadow-btn: 2.5px 2.5px 0 #142947;
  --n-radius-card: 18px;
  --n-radius-ctl: 13px;
  --n-hero-bg: var(--t-brand);
  --n-topbar-bg: #FFFDF8;
  --n-grain-opacity: 0.04;
}

/* --------------------------------------------------------------------------
   LEVEL 9 · SELLO DE MAR (Full Hand-Cut Coastal Atelier — 9/10 Naive)
   -------------------------------------------------------------------------- */
.naive-scope[data-naive="9"] {
  --font-display: 'Fredoka', 'Bricolage Grotesque', 'Domus', system-ui, sans-serif;
  --n-canvas: #F4EAD6;
  --n-canvas-alt: #E8DAC0;
  --n-surface: #FFFDF7;
  --n-surface-tint: #FBF1DF;
  --n-border-w: 2.5px;
  --n-border-color: #132642;
  --n-border-strong: #132642;
  --n-shadow: 4px 4px 0 #132642;
  --n-shadow-lg: 6px 6px 0 #132642;
  --n-shadow-btn: 3.5px 3.5px 0 #132642;
  --n-radius-card: 24px 19px 25px 18px / 19px 25px 18px 24px;
  --n-radius-ctl: 16px 13px 17px 14px / 14px 17px 13px 16px;
  --n-hero-bg: #132642;
  --n-topbar-bg: #FFFDF7;
  --n-grain-opacity: 0.055;
}

/* Subtle tactile paper texture overlay */
.paper-grain {
  position: relative;
}
.paper-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--n-grain-opacity);
  background-image: radial-gradient(rgba(20, 41, 71, 0.7) 0.65px, transparent 0.65px);
  background-size: 9px 9px;
  z-index: 0;
}
.paper-grain > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   ISOLATED CASH DESKTOP WORKSPACE (Client-Facing)
   ========================================================================== */

.desktop-frame {
  background: var(--n-canvas);
  border: var(--n-border-w) solid var(--n-border-color);
  border-radius: var(--n-radius-shell);
  box-shadow: var(--n-shadow-lg);
  overflow: hidden;
  transition: all 0.22s ease;
}

/* Level 9 gives the outer frame an intentional hand-cut double frame feel */
.naive-scope[data-naive="9"] .desktop-frame {
  border-radius: 28px 22px 28px 24px / 22px 28px 24px 26px;
}

/* Isolated Cash Topbar — ZERO POS sidebar clutter, 100% focused Cash world */
.cash-iso-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 24px;
  background: var(--n-topbar-bg);
  border-bottom: var(--n-border-w) solid var(--n-border-color);
  flex-wrap: wrap;
}

.naive-scope[data-naive="6"] .cash-iso-topbar {
  border-bottom-style: solid;
}

.cash-iso-brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.umi-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--umi-navy);
}

.cash-product-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--umi-coral-soft);
  color: var(--umi-coral);
  border: 1px solid rgba(230, 96, 37, 0.25);
}

.naive-scope[data-naive="6"] .cash-product-tag {
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 1.5px solid #142947;
  box-shadow: 1.5px 1.5px 0 #142947;
}

.naive-scope[data-naive="9"] .cash-product-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.03em;
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 2px solid #132642;
  box-shadow: 2px 2px 0 #132642;
  transform: rotate(-2.5deg);
}

.iso-divider {
  width: 1px;
  height: 22px;
  background: var(--n-border-strong);
  opacity: 0.45;
}

.tenant-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: var(--n-surface-tint);
  border: var(--n-border-w) solid var(--n-border-color);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--n-ink);
}

.tenant-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--t-brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.naive-scope[data-naive="9"] .tenant-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #132642;
  box-shadow: none;
}

.tenant-city {
  font-size: 11px;
  font-weight: 500;
  color: var(--n-ink-muted);
}

/* Focused 5-room Cash Navigation */
.cash-iso-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--n-canvas);
  border: var(--n-border-w) solid var(--n-border-color);
}

.naive-scope[data-naive="6"] .cash-iso-nav {
  background: var(--n-canvas-alt);
  border-radius: 15px;
}

.naive-scope[data-naive="9"] .cash-iso-nav {
  background: var(--n-canvas);
  border: 2px solid #132642;
  border-radius: 18px 15px 19px 14px;
  box-shadow: 2.5px 2.5px 0 #132642;
}

.cash-nav-btn {
  appearance: none;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--n-ink-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cash-nav-btn:hover {
  color: var(--n-ink);
  background: rgba(20, 41, 71, 0.05);
}

.cash-nav-btn.active {
  background: var(--n-surface);
  color: var(--n-ink);
  border-color: var(--n-border-color);
  box-shadow: 0 1px 3px rgba(20, 41, 71, 0.07);
}

.naive-scope[data-naive="3"] .cash-nav-btn.active {
  position: relative;
}
.naive-scope[data-naive="3"] .cash-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--umi-coral);
}

.naive-scope[data-naive="6"] .cash-nav-btn.active {
  background: var(--umi-navy);
  color: #FFFDF8;
  border-color: #142947;
  box-shadow: 2px 2px 0 rgba(230, 96, 37, 0.9);
}

.naive-scope[data-naive="9"] .cash-nav-btn {
  font-family: var(--font-display);
  font-size: 13.5px;
  border-radius: 12px;
}
.naive-scope[data-naive="9"] .cash-nav-btn.active {
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 2px solid #132642;
  box-shadow: 2px 2px 0 #132642;
}

/* Right utility cluster — gentle Umi Dash bridge (NOT a full POS sidebar!) */
.cash-iso-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-bridge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--n-radius-ctl);
  border: var(--n-border-w) solid var(--n-border-color);
  background: var(--n-surface);
  color: var(--n-ink-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-bridge-btn:hover {
  color: var(--n-ink);
  border-color: var(--n-ink);
}

.naive-scope[data-naive="6"] .dash-bridge-btn {
  border-style: dashed;
  background: transparent;
}

.naive-scope[data-naive="9"] .dash-bridge-btn {
  border: 2px solid #132642;
  background: var(--umi-sky-soft);
  color: #132642;
  box-shadow: 2px 2px 0 #132642;
}

.operator-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--umi-navy);
  color: #FFFDF8;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: var(--n-border-w) solid var(--n-border-color);
}

.naive-scope[data-naive="9"] .operator-pill {
  background: var(--umi-sky);
  border: 2px solid #132642;
  box-shadow: 2px 2px 0 #132642;
}

/* Isolated Workspace Body */
.cash-iso-body {
  padding: 24px 28px 30px;
}

.iso-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.iso-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--n-ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2C8A58;
  display: inline-block;
}

.naive-scope[data-naive="9"] .live-dot {
  width: 9px;
  height: 9px;
  border: 1.5px solid #132642;
  background: #36B36F;
}

.iso-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--n-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.naive-scope[data-naive="6"] .iso-h1 {
  font-size: 32px;
  font-weight: 800;
}

.naive-scope[data-naive="9"] .iso-h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.naive-highlight {
  position: relative;
  display: inline-block;
}

.naive-scope[data-naive="6"] .naive-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 1px;
  height: 8px;
  background: rgba(230, 96, 37, 0.24);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-0.8deg);
}

.naive-scope[data-naive="9"] .naive-highlight {
  padding: 1px 10px 3px;
  background: #FFD6BF;
  border-radius: 14px 10px 15px 9px / 11px 14px 10px 13px;
  border: 2.25px solid #132642;
  box-shadow: 2.5px 2.5px 0 #132642;
  transform: rotate(-1.2deg);
}

.iso-context-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
  font-size: 12px;
  color: var(--n-ink-muted);
}

.naive-scope[data-naive="6"] .iso-context-note {
  box-shadow: 2px 2px 0 rgba(20, 41, 71, 0.12);
}

.naive-scope[data-naive="9"] .iso-context-note {
  background: #FFFDF7;
  box-shadow: 2.5px 2.5px 0 #132642;
  color: #132642;
  font-weight: 600;
}

/* 2-Column Cockpit Grid: Left = Familiar legacy umi-cash column, Right = Rich Members/Live Pulse */
.cash-cockpit-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1040px) {
  .cash-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

.cockpit-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cockpit-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Generic Naive Surface */
.n-card {
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
  border-radius: var(--n-radius-card);
  box-shadow: var(--n-shadow);
  padding: 18px 20px;
  position: relative;
}

/* HERO SCAN CTA — The #1 familiar muscle-memory action from legacy umi-cash! */
.scan-hero-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: var(--n-radius-card);
  border: var(--n-border-w) solid transparent;
  background: var(--n-hero-bg);
  color: #FFFFFF;
  box-shadow: var(--n-shadow-lg);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  position: relative;
  overflow: hidden;
}

.scan-hero-btn:hover {
  transform: translateY(-1px);
}
.scan-hero-btn:active {
  transform: translate(1.5px, 1.5px);
}

.naive-scope[data-naive="6"] .scan-hero-btn {
  border: 2px solid #142947;
  box-shadow: 4px 4px 0 #142947;
}
.naive-scope[data-naive="6"] .scan-hero-btn:active {
  box-shadow: 1.5px 1.5px 0 #142947;
}

.naive-scope[data-naive="9"] .scan-hero-btn {
  background: #132642;
  border: 2.5px solid #132642;
  box-shadow: 5px 5px 0 var(--umi-coral);
  padding: 20px 22px;
}
.naive-scope[data-naive="9"] .scan-hero-btn::after {
  content: '';
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(230, 96, 37, 0.16);
  pointer-events: none;
}

.scan-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #FFFDF8;
}

.naive-scope[data-naive="6"] .scan-hero-icon {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.naive-scope[data-naive="9"] .scan-hero-icon {
  background: var(--umi-coral);
  border: 2px solid #FFFDF8;
  border-radius: 17px 13px 16px 14px;
  transform: rotate(-3deg);
}

.scan-hero-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.scan-hero-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2px;
}

.scan-hero-sub {
  font-size: 12px;
  opacity: 0.78;
  margin-top: 2px;
}

/* KPI 3-Up Row (Visitas hoy · Recargado hoy · Por canjear) */
.kpi-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi-box {
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
  border-radius: var(--n-radius-card);
  box-shadow: var(--n-shadow);
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.naive-scope[data-naive="9"] .kpi-box:nth-child(1) {
  background: #FFFDF7;
}
.naive-scope[data-naive="9"] .kpi-box:nth-child(2) {
  background: #E8F5FE;
}
.naive-scope[data-naive="9"] .kpi-box:nth-child(3) {
  background: #FDECE3;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--n-ink);
}

.kpi-num.accent {
  color: var(--umi-coral);
}

.kpi-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--n-ink-muted);
}

.kpi-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--umi-sage);
}

/* Active Reward Ladder Card (Familiar from legacy umi-cash!) */
.reward-anchor-card {
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
  border-radius: var(--n-radius-card);
  box-shadow: var(--n-shadow);
  padding: 16px 18px;
}

.naive-scope[data-naive="6"] .reward-anchor-card {
  background: var(--n-surface-tint);
  border-style: solid;
}

.naive-scope[data-naive="9"] .reward-anchor-card {
  background: #FFFDF7;
}

.reward-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.n-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--n-ink-muted);
}

.reward-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--n-ink);
  margin-top: 3px;
}

.reward-rule {
  font-size: 12.5px;
  color: var(--n-ink-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.mini-link-btn {
  appearance: none;
  border: var(--n-border-w) solid var(--n-border-color);
  background: var(--n-surface);
  color: var(--n-ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.naive-scope[data-naive="6"] .mini-link-btn,
.naive-scope[data-naive="9"] .mini-link-btn {
  box-shadow: 1.5px 1.5px 0 #132642;
}

/* Stamp preview row inside Reward Anchor */
.mini-stamps-bar {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--n-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stamp-dots-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.s-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px dashed rgba(20, 41, 71, 0.3);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: transparent;
}

.s-dot.filled {
  border-style: solid;
  border-color: var(--t-brand);
  background: var(--t-brand);
  color: #FFFDF8;
}

.s-dot.bonus {
  border-color: rgba(10, 147, 227, 0.55);
}
.s-dot.bonus.filled {
  background: var(--umi-sky);
  border-color: var(--umi-sky);
}

.naive-scope[data-naive="6"] .s-dot.filled {
  border-color: #142947;
  transform: rotate(-4deg);
}
.naive-scope[data-naive="6"] .s-dot.filled:nth-child(even) {
  transform: rotate(4deg);
}

.naive-scope[data-naive="9"] .s-dot {
  width: 21px;
  height: 21px;
  border: 2px dashed #132642;
}
.naive-scope[data-naive="9"] .s-dot.filled {
  border-style: solid;
  border-color: #132642;
  box-shadow: 1.5px 1.5px 0 #132642;
  transform: rotate(-6deg);
}
.naive-scope[data-naive="9"] .s-dot.filled:nth-child(even) {
  transform: rotate(5deg);
}

/* Quick Feature Pair (Legacy umi-cash quick tiles) */
.quick-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-tile {
  appearance: none;
  text-align: left;
  cursor: pointer;
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
  border-radius: var(--n-radius-card);
  box-shadow: var(--n-shadow);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.14s ease;
}

.quick-tile:hover {
  transform: translateY(-1px);
}

.quick-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--n-ink);
}

.quick-tile-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--n-ink);
}

.quick-tile-sub {
  font-size: 11.5px;
  color: var(--n-ink-muted);
}

/* Right Column: Members Table + Interactive Drawer */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--n-ink);
  margin: 0;
}

.n-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--n-radius-ctl);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: var(--n-border-w) solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.n-btn:active {
  transform: translate(1.5px, 1.5px);
}

.n-btn-primary {
  background: var(--umi-navy);
  color: #FFFDF8;
  box-shadow: var(--n-shadow-btn);
}

.naive-scope[data-naive="6"] .n-btn-primary {
  background: var(--umi-navy);
  border: 1.75px solid #142947;
  box-shadow: 2.5px 2.5px 0 var(--umi-coral);
}

.naive-scope[data-naive="9"] .n-btn-primary {
  font-family: var(--font-display);
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 2.25px solid #132642;
  box-shadow: 3px 3px 0 #132642;
}

.n-btn-secondary {
  background: var(--n-surface);
  color: var(--n-ink);
  border-color: var(--n-border-strong);
}

.naive-scope[data-naive="6"] .n-btn-secondary,
.naive-scope[data-naive="9"] .n-btn-secondary {
  box-shadow: 2px 2px 0 #132642;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.n-search {
  flex: 1;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: var(--n-radius-ctl);
  border: var(--n-border-w) solid var(--n-border-color);
  background: var(--n-surface-tint);
  color: var(--n-ink-muted);
}

.naive-scope[data-naive="9"] .n-search {
  background: #FFFDF7;
  box-shadow: 2px 2px 0 #132642;
}

.n-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  color: var(--n-ink);
}

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

.n-chip {
  appearance: none;
  padding: 6px 11px;
  border-radius: 999px;
  border: var(--n-border-w) solid var(--n-border-color);
  background: var(--n-surface);
  color: var(--n-ink-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.n-chip.active {
  background: var(--umi-navy);
  color: #FFFDF8;
  border-color: var(--umi-navy);
}

.naive-scope[data-naive="9"] .n-chip.active {
  background: var(--umi-sky);
  color: #FFFDF8;
  border-color: #132642;
  box-shadow: 2px 2px 0 #132642;
}

/* Member rows */
.members-table-wrap {
  border-top: var(--n-border-w) solid var(--n-border-color);
  margin: 0 -20px -18px;
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.members-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-ink-muted);
  padding: 10px 14px;
  background: var(--n-surface-tint);
  border-bottom: var(--n-border-w) solid var(--n-border-color);
}

.members-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(20, 41, 71, 0.08);
  vertical-align: middle;
}

.naive-scope[data-naive="6"] .members-table td,
.naive-scope[data-naive="9"] .members-table td {
  border-bottom: 1.5px dashed rgba(20, 41, 71, 0.16);
}

.members-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.members-table tbody tr:hover {
  background: var(--n-surface-tint);
}

.members-table tbody tr.selected {
  background: var(--umi-coral-soft);
}

.members-table tbody tr:last-child td {
  border-bottom: none;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  border: var(--n-border-w) solid rgba(20, 41, 71, 0.15);
}

.naive-scope[data-naive="9"] .m-avatar {
  border-radius: 12px 9px 13px 10px;
  border: 2px solid #132642;
  box-shadow: 1.5px 1.5px 0 #132642;
}

.m-name {
  font-weight: 700;
  color: var(--n-ink);
  line-height: 1.2;
}

.m-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--n-ink-muted);
}

.m-money {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--n-ink);
  white-space: nowrap;
}

.stamp-meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stamp-pips {
  display: inline-flex;
  gap: 3px;
}

.pip {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 41, 71, 0.14);
}
.pip.on {
  background: var(--t-brand);
}
.pip.bonus.on {
  background: var(--umi-sky);
}

.naive-scope[data-naive="6"] .pip {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(20, 41, 71, 0.35);
  background: transparent;
}
.naive-scope[data-naive="6"] .pip.on {
  background: var(--t-brand);
  border-color: #142947;
}

.naive-scope[data-naive="9"] .pip {
  width: 10px;
  height: 10px;
  border: 1.75px solid #132642;
  background: #FFFDF7;
}
.naive-scope[data-naive="9"] .pip.on {
  background: var(--umi-coral);
  border-color: #132642;
}
.naive-scope[data-naive="9"] .pip.bonus.on {
  background: var(--umi-sky);
}

.stamp-txt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--n-ink-muted);
}

/* Status Stamp Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.ready {
  background: var(--umi-coral-soft);
  color: #B74110;
  border: 1px solid rgba(230, 96, 37, 0.35);
}

.naive-scope[data-naive="6"] .status-pill.ready {
  background: #FFE5D6;
  color: #142947;
  border: 1.5px solid #142947;
  box-shadow: 1.5px 1.5px 0 #142947;
}

.naive-scope[data-naive="9"] .status-pill.ready {
  font-family: var(--font-display);
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 2px solid #132642;
  box-shadow: 2px 2px 0 #132642;
  transform: rotate(-2deg);
}

.status-pill.base {
  background: var(--umi-sky-soft);
  color: #0B5E94;
  border: 1px solid rgba(10, 147, 227, 0.3);
}

.naive-scope[data-naive="6"] .status-pill.base {
  background: #E2F3FE;
  color: #142947;
  border: 1.5px solid #142947;
  box-shadow: 1.5px 1.5px 0 #142947;
}

.naive-scope[data-naive="9"] .status-pill.base {
  font-family: var(--font-display);
  background: var(--umi-sky);
  color: #FFFDF8;
  border: 2px solid #132642;
  box-shadow: 2px 2px 0 #132642;
  transform: rotate(1.5deg);
}

/* Selected Member Quick Action Strip inside Cockpit */
.member-quick-bar {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--n-radius-ctl);
  background: var(--n-surface-tint);
  border: var(--n-border-w) dashed var(--n-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.naive-scope[data-naive="9"] .member-quick-bar {
  background: #E8F5FE;
  border: 2px solid #132642;
  box-shadow: 3px 3px 0 #132642;
}

/* ==========================================================================
   SCAN TAB (Interactive Barista QR + Checklist inside Desktop Workspace)
   ========================================================================== */

.scan-workspace-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

.scan-workspace-grid .n-search {
  flex: 0 0 auto;
  height: 44px;
}

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

.viewfinder {
  aspect-ratio: 4 / 3;
  border-radius: var(--n-radius-ctl);
  background: #132642;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: var(--n-border-w) solid var(--n-border-strong);
}

.vf-box {
  width: 128px;
  height: 128px;
  border-radius: 18px;
  border: 2px dashed rgba(255, 253, 248, 0.55);
  display: grid;
  place-items: center;
  position: relative;
}

.vf-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--umi-coral);
  border-style: solid;
  border-width: 0;
}
.vf-corner.tl { top: -3px; left: -3px; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 10px; }
.vf-corner.tr { top: -3px; right: -3px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 10px; }
.vf-corner.bl { bottom: -3px; left: -3px; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 10px; }
.vf-corner.br { bottom: -3px; right: -3px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 10px; }

.action-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  border-radius: var(--n-radius-ctl);
  border: var(--n-border-w) solid var(--n-border-color);
  background: var(--n-surface);
  cursor: pointer;
  transition: all 0.14s ease;
}

.action-check-item.checked {
  border-color: var(--umi-navy);
  background: var(--umi-coral-soft);
}

.naive-scope[data-naive="6"] .action-check-item.checked {
  box-shadow: 2.5px 2.5px 0 #142947;
}
.naive-scope[data-naive="9"] .action-check-item.checked {
  background: #FFE5D6;
  border: 2.5px solid #132642;
  box-shadow: 3px 3px 0 #132642;
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--n-border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #FFFDF8;
}

.action-check-item.checked .check-box {
  background: var(--umi-coral);
  border-color: #132642;
}

/* ==========================================================================
   MOBILE DEVICE FRAMES (Customer-Facing & Client-Mobile Barista)
   ========================================================================== */

.phones-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A5B73;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone-caption .dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #E66025;
}

.phone-bezel {
  width: 372px;
  border-radius: 44px;
  padding: 11px;
  background: #141E2E;
  box-shadow: 0 24px 56px rgba(14, 28, 48, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-screen {
  width: 100%;
  min-height: 748px;
  border-radius: 34px;
  background: var(--n-canvas);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--n-ink);
}

.phone-statusbar.on-dark {
  color: rgba(255, 253, 248, 0.9);
  background: var(--t-brand);
}

.naive-scope[data-naive="9"] .phone-statusbar.on-dark {
  background: var(--t-brand);
}

.phone-notch {
  width: 74px;
  height: 18px;
  border-radius: 999px;
  background: #141E2E;
}

.phone-body {
  flex: 1;
  padding: 8px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   CUSTOMER-FACING · LANDING (/[slug])
   ========================================================================== */

.cust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.cust-tenant-wordmark {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-brand);
}

.cust-city-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n-ink-muted);
}

.cust-h1 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--n-ink);
}

.naive-scope[data-naive="6"] .cust-h1 {
  font-size: 34px;
  font-weight: 800;
}

.naive-scope[data-naive="9"] .cust-h1 {
  font-size: 35px;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.cust-lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--n-ink-muted);
}

/* Wallet Pass Artifact */
.wallet-pass-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
  position: relative;
}

.wallet-pass {
  width: 294px;
  border-radius: 20px;
  background: var(--t-brand);
  color: #FFFDF8;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 28px rgba(20, 41, 71, 0.18);
  transform: rotate(-1.2deg);
}

.naive-scope[data-naive="3"] .wallet-pass {
  transform: rotate(0deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.naive-scope[data-naive="6"] .wallet-pass {
  border: 2px solid #142947;
  box-shadow: 5px 5px 0 #142947;
  transform: rotate(-1.3deg);
}

.naive-scope[data-naive="9"] .wallet-pass {
  border: 2.5px solid #132642;
  border-radius: 24px 19px 25px 20px;
  box-shadow: 6px 6px 0 #132642;
  transform: rotate(-1.8deg);
}

.pass-top {
  padding: 16px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pass-logo-img {
  height: 24px;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.pass-saldo-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  text-align: right;
}

.pass-saldo-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

/* Stamp grid inside pass */
.pass-stamps-strip {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.14);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  justify-items: center;
}

.pass-stamp-slot {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px dashed rgba(255, 255, 255, 0.38);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pass-stamp-slot.filled {
  background: transparent;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.55);
}

.pass-stamp-slot.bonus {
  border-color: rgba(154, 212, 255, 0.85);
}

.naive-scope[data-naive="6"] .pass-stamp-slot.filled {
  transform: rotate(-5deg);
}
.naive-scope[data-naive="6"] .pass-stamp-slot.filled:nth-child(even) {
  transform: rotate(5deg);
}
.naive-scope[data-naive="9"] .pass-stamp-slot.filled {
  border: 2px solid #FFFDF7;
  transform: rotate(-7deg);
}
.naive-scope[data-naive="9"] .pass-stamp-slot.filled:nth-child(even) {
  transform: rotate(6deg);
}

.pass-stamp-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pass-meta-row {
  padding: 10px 16px 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pass-meta-k {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.pass-meta-v {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* Ticket perforation for Level 6 & 9 */
.pass-perf {
  height: 0;
  margin: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.naive-scope[data-naive="6"] .pass-perf,
.naive-scope[data-naive="9"] .pass-perf {
  border-top: 2px dashed rgba(255, 253, 248, 0.45);
  margin: 0;
  position: relative;
}

.pass-qr-stub {
  padding: 11px 16px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.pass-qr-mini {
  background: #FFFFFF;
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
}

.naive-scope[data-naive="9"] .pass-qr-mini {
  border: 2px solid #132642;
}

/* Floating Rubber Stamp Sticker (Level 6 subtle / Level 9 bold) */
.rubber-stamp {
  display: none;
}
.naive-scope[data-naive="6"] .rubber-stamp {
  display: inline-flex;
  position: absolute;
  top: 0px;
  right: 14px;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: #FFFDF8;
  color: #142947;
  border: 1.5px solid #142947;
  box-shadow: 2px 2px 0 #142947;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(4deg);
  z-index: 4;
}
.naive-scope[data-naive="9"] .rubber-stamp {
  display: inline-flex;
  position: absolute;
  top: -2px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 11px;
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 2px solid #132642;
  box-shadow: 2.5px 2.5px 0 #132642;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(5deg);
  z-index: 4;
}

/* How it works compact steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--n-radius-ctl);
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
}

.naive-scope[data-naive="3"] .step-row {
  background: transparent;
  border-color: transparent;
  padding: 4px 2px;
}

.naive-scope[data-naive="6"] .step-row {
  box-shadow: 2px 2px 0 rgba(20, 41, 71, 0.1);
}

.naive-scope[data-naive="9"] .step-row {
  box-shadow: 2.5px 2.5px 0 #132642;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--t-brand);
  flex-shrink: 0;
}

.naive-scope[data-naive="6"] .step-num {
  background: var(--t-tint);
  border: 1.5px solid #142947;
  color: #142947;
}

.naive-scope[data-naive="9"] .step-num {
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 2px solid #132642;
  border-radius: 11px 8px 12px 9px;
}
.naive-scope[data-naive="9"] .step-row:nth-child(2) .step-num {
  background: var(--umi-sky);
}
.naive-scope[data-naive="9"] .step-row:nth-child(3) .step-num {
  background: var(--umi-navy);
}

.step-t {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--n-ink);
  line-height: 1.2;
}
.step-s {
  font-size: 11px;
  color: var(--n-ink-muted);
  margin-top: 1px;
}

/* Sticky CTA footer in customer landing */
.cust-cta-foot {
  margin-top: auto;
  padding: 12px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, var(--n-canvas) 22%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cust-primary-cta {
  appearance: none;
  width: 100%;
  height: 48px;
  border-radius: var(--n-radius-ctl);
  border: var(--n-border-w) solid transparent;
  background: var(--t-brand);
  color: #FFFDF8;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--n-shadow-btn);
}

.naive-scope[data-naive="6"] .cust-primary-cta {
  border: 2px solid #142947;
  box-shadow: 3px 3px 0 #142947;
}
.naive-scope[data-naive="9"] .cust-primary-cta {
  background: #132642;
  border: 2.5px solid #132642;
  box-shadow: 4px 4px 0 var(--umi-coral);
  font-size: 16px;
}

.powered-by-umi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--n-ink-muted);
}

/* ==========================================================================
   CUSTOMER-FACING · ACTIVE CARD (/[slug]/card)
   ========================================================================== */

.card-hero-band {
  background: var(--t-brand);
  color: #FFFDF8;
  padding: 10px 20px 20px;
  position: relative;
}

.hero-wave-edge {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: -1px;
  flex-shrink: 0;
}

.naive-scope[data-naive="6"] .card-hero-band {
  border-bottom: none;
  padding-bottom: 16px;
}

.naive-scope[data-naive="9"] .card-hero-band {
  border-bottom: none;
  padding-bottom: 16px;
}

.card-stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.naive-scope[data-naive="9"] .card-stat-pair .kpi-box:nth-child(1) {
  background: #FFFDF7;
}
.naive-scope[data-naive="9"] .card-stat-pair .kpi-box:nth-child(2) {
  background: #FDECE3;
}

.card-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-greet {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.reward-ready-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.naive-scope[data-naive="6"] .reward-ready-banner {
  background: #FFFDF8;
  color: #142947;
  border: 1.75px solid #142947;
  box-shadow: 2.5px 2.5px 0 rgba(20, 41, 71, 0.28);
}

.naive-scope[data-naive="9"] .reward-ready-banner {
  background: #FFE5D6;
  color: #132642;
  border: 2px solid #132642;
  box-shadow: 3px 3px 0 #132642;
}

.card-dots-band {
  margin-top: 14px;
}

.card-dots-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.card-dots-row {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.c-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.75px dashed rgba(255, 255, 255, 0.48);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.c-dot.filled {
  background: #FFFDF8;
  border-style: solid;
  border-color: #FFFDF8;
  color: var(--t-brand);
}

.c-dot.bonus {
  border-color: rgba(168, 221, 255, 0.8);
}
.c-dot.bonus.filled {
  background: #8AD0FA;
  border-color: #8AD0FA;
  color: #132642;
}

.naive-scope[data-naive="9"] .c-dot.filled {
  border: 2px solid #132642;
  box-shadow: 1.5px 1.5px 0 #132642;
  transform: rotate(-6deg);
}

/* QR Card inside Active Card */
.qr-card {
  background: var(--n-surface);
  border: var(--n-border-w) solid var(--n-border-color);
  border-radius: var(--n-radius-card);
  box-shadow: var(--n-shadow);
  padding: 15px 16px;
  text-align: center;
}

.qr-frame-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  background: #FFFFFF;
  border: var(--n-border-w) solid var(--n-border-color);
  position: relative;
  margin: 8px 0 6px;
}

.naive-scope[data-naive="6"] .qr-frame-wrap {
  border-style: dashed;
  border-width: 1.75px;
}

.naive-scope[data-naive="9"] .qr-frame-wrap {
  border: 2.5px dashed #132642;
  box-shadow: 3.5px 3.5px 0 var(--umi-sky);
}

.wallet-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wallet-pill {
  height: 40px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: var(--n-border-w) solid var(--n-border-strong);
  cursor: pointer;
}

.wallet-pill.apple {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

.wallet-pill.google {
  background: #FFFFFF;
  color: #142947;
}

.naive-scope[data-naive="9"] .wallet-pill {
  border: 2px solid #132642;
  box-shadow: 2.5px 2.5px 0 #132642;
}

/* ==========================================================================
   MOBILE BARISTA SHELL (Legacy umi-cash familiarity)
   ========================================================================== */

.barista-header {
  padding: 8px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--n-border-w) solid var(--n-border-color);
  background: var(--n-topbar-bg);
}

.barista-bottom-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--n-surface);
  border-top: var(--n-border-w) solid var(--n-border-color);
  padding: 7px 6px 12px;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--n-ink-muted);
}

.bnav-item.active {
  color: var(--umi-coral);
  font-weight: 700;
}

.naive-scope[data-naive="9"] .bnav-item.active {
  color: #132642;
}
.naive-scope[data-naive="9"] .bnav-item.active .bnav-ico {
  background: var(--umi-coral);
  color: #FFFDF8;
  border: 1.75px solid #132642;
  border-radius: 9px;
  padding: 3px 8px;
}

/* ==========================================================================
   3-UP SIDE-BY-SIDE COMPARISON MODE (3 · 6 · 9)
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

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

.compare-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.compare-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(20, 41, 71, 0.12);
}

.compare-col-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #142947;
  color: #F6F0E4;
  white-space: nowrap;
  flex-shrink: 0;
}

.compare-col-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #142947;
}

.compare-col-sub {
  font-size: 11px;
  color: #5A6B82;
}

/* Compact desktop card inside 3-up compare so all 3 fit cleanly side-by-side */
.compare-grid .desktop-frame .cash-iso-topbar {
  padding: 10px 14px;
  gap: 8px;
}
.compare-grid .desktop-frame .cash-iso-brand-cluster {
  flex: 1;
  min-width: 0;
}
.compare-grid .desktop-frame .cash-iso-right {
  order: 2;
}
.compare-grid .desktop-frame .cash-iso-nav {
  order: 3;
  width: 100%;
  justify-content: space-between;
  overflow-x: auto;
}
.compare-grid .desktop-frame .cash-iso-body {
  padding: 14px 15px 18px;
}
.compare-grid .desktop-frame .cash-cockpit-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.compare-grid .desktop-frame .cash-nav-btn {
  padding: 5px 8px;
  font-size: 11px;
  gap: 4px;
}
.compare-grid .desktop-frame .iso-h1 {
  font-size: 22px;
}
.compare-grid .desktop-frame .kpi-num {
  font-size: 21px;
}
.compare-grid .desktop-frame .dash-bridge-btn {
  display: none;
}
.compare-grid .desktop-frame .operator-pill {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.compare-grid .desktop-frame .members-table th,
.compare-grid .desktop-frame .members-table td {
  padding: 9px 10px;
  font-size: 12px;
}
.compare-grid .desktop-frame .m-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.compare-grid .desktop-frame .pip {
  width: 7px;
  height: 7px;
}
.compare-grid .desktop-frame .stamp-pips {
  gap: 2px;
}
.compare-grid .desktop-frame .status-pill {
  padding: 2.5px 7px;
  font-size: 10px;
}

.compare-grid .phone-bezel {
  width: 100%;
  max-width: 372px;
  margin: 0 auto;
}

/* Decorative organic wave divider (scales subtly with level) */
.umi-wave-rule {
  display: block;
  width: 100%;
  height: 10px;
  margin: 2px 0;
  opacity: 0.45;
}
.naive-scope[data-naive="6"] .umi-wave-rule {
  opacity: 0.72;
}
.naive-scope[data-naive="9"] .umi-wave-rule {
  opacity: 0.95;
}

/* Toast feedback inside interactive prototype */
.proto-toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  z-index: 120;
  padding: 11px 16px;
  border-radius: 13px;
  background: #132642;
  color: #FFFDF8;
  border: 2px solid #E66025;
  box-shadow: 0 12px 28px rgba(19, 38, 66, 0.28);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn 0.2s ease;
}

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