/* ==========================================================================
   Dukan — Professional Design System & UI Engine
   A high-end retail Point of Sale & shop management system.
   ========================================================================== */

/* ---------- 1. Design Tokens & Theme Palettes ---------- */
:root {
  /* Surface & Base Colors */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --surface-hover: #f8fafc;
  --surface-card: #ffffff;
  
  /* Ink & Typography */
  --ink: #0f172a;
  --ink-rgb: 15, 23, 42;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --soft: #f1f5f9;
  --soft-hover: #e2e8f0;

  /* Brand Accent (Emerald / Teal Luxe) */
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --accent-soft-hover: rgba(15, 118, 110, 0.14);
  --accent-border: rgba(15, 118, 110, 0.25);
  --accent-glow: 0 0 0 3.5px rgba(15, 118, 110, 0.15);

  /* Semantic Feedback */
  --ok: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.1);
  --ok-ink: #065f46;

  --danger: #e11d48;
  --danger-hover: #be123c;
  --danger-soft: rgba(225, 29, 72, 0.08);
  --danger-ink: #9f1239;

  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.1);
  --warn-ink: #92400e;

  --info: #0284c7;
  --info-soft: rgba(2, 132, 199, 0.09);
  --info-ink: #0369a1;

  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.09);

  /* Shadows & Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
  --shadow-drawer: 0 -10px 35px rgba(15, 23, 42, 0.15);

  /* Typography Stacks — Premium, modern, sharp */
  --sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dimensions */
  --nav-h: 62px;
  --top-h: 64px;
  --side-w: 228px;
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.16s;
}

/* ---------- Theme: Cream / Warm Paper ---------- */
html[data-theme="cream"] {
  --bg: #f5efe6;
  --surface: #fffdfa;
  --surface2: #ebe4d8;
  --surface-hover: #f7f1e7;
  --surface-card: #fffdfa;
  --ink: #29231d;
  --ink-rgb: 41, 35, 29;
  --muted: #786f66;
  --faint: #a89f95;
  --line: #ded5c7;
  --line-strong: #c7bcab;
  --soft: #ebe4d8;
  --soft-hover: #ded5c7;
  --shadow-sm: 0 1px 3px rgba(41, 35, 29, 0.07);
  --shadow: 0 4px 6px -1px rgba(41, 35, 29, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(41, 35, 29, 0.12);
}

/* ---------- Theme: Night / Dark Mode ---------- */
html[data-theme="night"] {
  --bg: #090d16;
  --surface: #111726;
  --surface2: #192237;
  --surface-hover: #1a2339;
  --surface-card: #131b2e;
  --ink: #f8fafc;
  --ink-rgb: 248, 250, 252;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: #1e293b;
  --line-strong: #334155;
  --soft: #192237;
  --soft-hover: #222f4c;
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.15);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.15);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.15);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.75);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  --shadow-drawer: 0 -10px 35px rgba(0, 0, 0, 0.7);
}

html[data-theme="night"] .hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}
html[data-theme="night"] .cartbar {
  background: #111726;
  border: 1px solid #1e293b;
  color: #f8fafc;
}
html[data-theme="night"] .cartbar .slot {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- 2. Reset & Base Styling ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

input, select, textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
}
input::placeholder, textarea::placeholder {
  color: var(--faint);
  opacity: 0.9;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

svg { display: block; flex: none; }
[hidden] { display: none !important; }

/* ---------- 3. Typography & Micro-Classes ---------- */
.fig {
  font-family: var(--sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.fig-sm { font-size: 11.5px; font-weight: 600; }
.fig-md { font-size: 14.5px; }
.fig-lg { font-size: 18px; }
.fig-xl { font-size: 22px; }
.fig-2xl { font-size: 30px; line-height: 1.15; }

.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

.meta {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-row {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.name-sm { font-size: 13px; font-weight: 600; line-height: 1.3; }
.lbl, .label { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.danger { color: var(--danger); }
.warn { color: var(--warn); }
.ok { color: var(--ok); }
.accent { color: var(--accent); }

.f11 { font-size: 11px; }
.f12 { font-size: 12px; }
.f13 { font-size: 13px; }
.f14 { font-size: 14px; }
.f15 { font-size: 15px; }
.f17 { font-size: 17px; }
.f20 { font-size: 20px; }
.f24 { font-size: 24px; }
.f28 { font-size: 28px; }

.b5 { font-weight: 500; }
.b6 { font-weight: 600; }
.b7 { font-weight: 700; }

/* ---------- 4. Flex & Grid Layout Utilities ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.row-t { display: flex; align-items: flex-start; gap: 10px; }
.row-b { display: flex; align-items: flex-end; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.gap4 { gap: 4px; }
.gap6 { gap: 6px; }
.gap7 { gap: 7px; }
.gap8 { gap: 8px; }
.gap10 { gap: 10px; }
.gap12 { gap: 12px; }
.gap14 { gap: 14px; }
.gap16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.tar { text-align: right; }
.tac { text-align: center; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pad { padding: 14px 16px 0; }
.pad-b { padding-bottom: 16px; }
.narrow { max-width: 820px; margin: 0 auto; }
.settings-pad {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 16px 40px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .narrow { max-width: 920px; }
  .settings-pad {
    padding: 20px 28px 40px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}
@media (min-width: 1240px) {
  .narrow { max-width: 1080px; }
  .settings-pad {
    max-width: 1200px;
    padding: 24px 32px 48px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
.settings-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tail { height: 60px; }
.tail-pos { display: none; }

/* ---------- 5. Modern Cards, Containers & Badges ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px -3px rgba(0, 0, 0, 0.03);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.card-tight { padding: 10px 12px; }
.card-flush { padding: 0; overflow: hidden; }
.card-tap {
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
}
.card-tap:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px -2px rgba(15, 118, 110, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.rows { display: flex; flex-direction: column; gap: 8px; }
.rows-lg { gap: 10px; }

.row-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 2px 8px -2px rgba(0, 0, 0, 0.02);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), background var(--duration) var(--ease);
}
button.row-card:hover, .row-card.tap:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -2px rgba(15, 118, 110, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}
button.row-card:active, .row-card.tap:active { transform: scale(0.99); background: var(--soft); }

.card-foot {
  border-top: 1px solid var(--line);
  background: var(--surface2);
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-flat {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
button.card-flat { width: 100%; text-align: left; transition: border-color var(--duration) var(--ease); }
button.card-flat:hover { border-color: var(--accent); }

.sect { margin-bottom: 18px; }
.sect-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Luxury High-Contrast Hero Card */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: #f8fafc;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
}
.hero .meta { color: rgba(255, 255, 255, 0.6); letter-spacing: 0.09em; }
.hero .fig { color: inherit; }
.hero .sub { font-size: 12px; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, 0.65); }

/* Dividable Stat Strip / Metric Container */
/* Dividable Stat Strip / Metric Container — Modern Elevated Cards */
.statstrip, .stat-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px -3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}
.statstrip::after, .stat-grid::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at top right, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.65;
}
.statstrip > .s, .stat-grid > .stat {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.statstrip > .s + .s, .stat-grid > .stat + .stat {
  border-left: 1px solid var(--line);
}
.statstrip > .s .fig, .stat-grid .stat .v {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-grid .stat .k {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .statstrip > .s .fig, .stat-grid .stat .v { font-size: 15.5px; }
  .stat-grid .stat .k { font-size: 9px; letter-spacing: 0.04em; }
}

/* Modern Metric Badges (Tags) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--soft);
  color: var(--muted);
  flex: none;
}
.tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-info { background: var(--info-soft); color: var(--info); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- Modern Reference-Style Metric / Stat Cards ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px -3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  border-color: var(--line-strong);
}
.metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 8px 8px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(circle at top right, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at top right, black 25%, transparent 80%);
}

.metric-card > div:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card .main-val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.metric-card .val {
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .metric-card { padding: 10px 10px; border-radius: 12px; gap: 6px; min-height: 82px; }
  .metric-card .main-val { gap: 3px; }
  .metric-card .val { font-size: 14.5px !important; }
  .metric-badge { font-size: 9px; padding: 1.5px 5.5px; }
  .metric-card .lbl { font-size: 11px !important; margin-top: 3px !important; }
}

.metric-card .lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-badge {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 5.5px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.metric-badge.badge-green { background: rgba(16, 185, 129, 0.14); color: #059669; }
.metric-badge.badge-blue { background: rgba(2, 132, 199, 0.14); color: #0284c7; }
.metric-badge.badge-purple { background: rgba(168, 85, 247, 0.14); color: #9333ea; }
.metric-badge.badge-orange { background: rgba(249, 115, 22, 0.14); color: #ea580c; }
.metric-badge.badge-red { background: rgba(239, 68, 68, 0.14); color: #dc2626; }

/* 3D Glowing Circular Icon Badge */
.metric-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
}
.metric-icon-circle svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 600px) {
  .metric-icon-circle { width: 28px; height: 28px; }
  .metric-icon-circle svg { width: 14px; height: 14px; }
}

.metric-icon-blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14), 0 6px 16px rgba(2, 132, 199, 0.35);
}
.metric-icon-purple {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.14), 0 6px 16px rgba(147, 51, 234, 0.35);
}
.metric-icon-orange {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.14), 0 6px 16px rgba(234, 88, 12, 0.35);
}
.metric-icon-green {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14), 0 6px 16px rgba(5, 150, 105, 0.35);
}
.metric-icon-red {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14), 0 6px 16px rgba(220, 38, 38, 0.35);
}

/* Keyboard Hints */
.kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
  flex: none;
}

/* User Avatars */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.avatar-sq {
  border-radius: var(--radius-xs);
  background: var(--soft);
  color: var(--ink);
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 44px; height: 44px; font-size: 16px; }

/* ---------- 6. Interactive Controls & Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: scale(0.975); }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.btn-pri {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}
.btn-pri:hover {
  background: var(--accent-hover);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.btn-ink:hover {
  filter: brightness(1.1);
  border-color: transparent;
}

.btn-soft {
  background: var(--soft);
  border-color: transparent;
  box-shadow: none;
}
.btn-soft:hover {
  background: var(--soft-hover);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--soft);
  color: var(--ink);
  border-color: transparent;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
  box-shadow: none;
}
.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.btn-danger-solid {
  background: var(--danger);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.btn-danger-solid:hover {
  background: #be123c;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.btn-lg {
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 0 20px;
}
.btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: var(--radius-xs);
  gap: 5px;
}
.btn-block { width: 100%; justify-content: center; }

/* Icon Buttons */
.ibtn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.ibtn:hover {
  background: var(--soft-hover);
  border-color: var(--line);
}
.ibtn:active { transform: scale(0.94); }
.ibtn-sm { width: 28px; height: 28px; border-radius: 6px; }
.ibtn-accent { background: var(--accent); color: var(--accent-ink); }
.ibtn-accent:hover { background: var(--accent-hover); }
.ibtn-ink { background: var(--accent); color: #ffffff; box-shadow: var(--shadow-sm); border: none; }
.ibtn-line { background: transparent; border-color: var(--line); }
.ibtn-danger { background: transparent; color: var(--danger); }
.ibtn-danger:hover { background: var(--danger-soft); }

.rbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: all var(--duration) var(--ease);
}
.rbtn:hover { background: var(--soft); color: var(--ink); border-color: var(--line); }
.rbtn:active { transform: scale(0.92); }
.rbtn-soft { background: var(--soft); border-color: transparent; }
.rbtn-soft:hover { background: var(--line); color: var(--ink); }
.rbtn-sm { width: 32px; height: 32px; }

/* ---------- 7. Input Fields & Form Controls ---------- */
.fieldbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
  cursor: text;
  position: relative;
}
.fieldbox:hover {
  border-color: var(--line-strong);
}
.fieldbox:focus-within {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.fieldbox.tall { min-height: 48px; }
.fieldbox.accent {
  border-color: var(--accent);
  border-width: 1.5px;
}
.fieldbox input,
.fieldbox select {
  height: 40px;
  line-height: 40px;
  flex: 1;
  min-width: 0;
  cursor: inherit;
}
.fieldbox textarea {
  padding: 10px 0;
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
  cursor: inherit;
}
.fieldbox .suffix {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex: none;
}
.fieldbox input.fig, .fieldbox input.num {
  font-family: var(--mono);
  font-weight: 700;
}

.fieldbox.has-select {
  cursor: pointer;
  padding-right: 12px;
  background: var(--surface);
  position: relative;
  transition: all 0.2s var(--ease);
}
.fieldbox.has-select:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
.fieldbox.has-select:focus-within,
.fieldbox.has-select.is-open {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

/* Modern Date Input Styling */
.fieldbox.has-date {
  position: relative;
  cursor: pointer;
  padding-left: 12px;
  padding-right: 12px;
  background: var(--surface);
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
}
.fieldbox.has-date:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
.fieldbox.has-date:focus-within {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.fieldbox.has-date .date-cal-icon {
  color: var(--accent);
  flex: none;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.fieldbox.has-date input[type="date"] {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  width: 100%;
  padding: 0;
  min-height: 28px;
}
.fieldbox.has-date input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  filter: invert(var(--dark-invert, 0));
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.fieldbox.has-date input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Custom Modern Dropdown Selector Component */
.custom-select-wrap {
  position: relative;
  width: 100%;
}
.custom-select-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.custom-select-val {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-btn.is-open svg {
  transform: rotate(180deg);
  color: var(--accent);
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 200px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: selectPop 0.16s var(--ease) both;
}
.custom-select-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 6px);
  animation: selectPopUp 0.16s var(--ease) both;
}
@keyframes selectPop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes selectPopUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-select-opt {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s var(--ease);
}
.custom-select-opt:hover {
  background: var(--soft);
  color: var(--ink);
}
.custom-select-opt.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.custom-select-opt .opt-check {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.fieldbox.has-select select.bare {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
}
.fieldbox.has-select select.bare option {
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
}
.fieldbox.has-select svg {
  pointer-events: none;
  flex: none;
  color: var(--muted);
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.fieldbox.has-select:focus-within svg {
  color: var(--accent);
  transform: rotate(180deg);
}

/* Sticky Search Bar Header (Stock, Customers, Suppliers, Udhaar) */
.sticky-search {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-top: 6px;
  padding-bottom: 12px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.04);
}
.pad > .sticky-search:first-child {
  padding-top: 14px;
  margin-top: -14px;
}
@media (min-width: 881px) {
  .sticky-search {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .pad > .sticky-search:first-child {
    padding-top: 16px;
    margin-top: -16px;
  }
}
@media (min-width: 1201px) {
  .sticky-search {
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .pad > .sticky-search:first-child {
    padding-top: 20px;
    margin-top: -20px;
  }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field > .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.field > .hint { font-size: 11px; line-height: 1.5; color: var(--muted); }
select.bare { appearance: none; cursor: pointer; }

/* Chips (Filter & Action Pills) */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-xs);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"], .chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.chip[aria-pressed="true"]:hover, .chip.active:hover {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 0.9;
}

/* Switch (Toggle) */
.switch {
  width: 44px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--line-strong);
  position: relative;
  flex: none;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Quantity Stepper */
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease), transform 0.08s ease;
}
.stepper button.plus {
  background: var(--accent);
  color: var(--accent-ink);
}
.stepper button.plus:hover { background: var(--accent-hover); }
.stepper button:hover { background: var(--soft-hover); }
.stepper button:active { transform: scale(0.88); }
.stepper .qty {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stepper input.qty { width: 36px; text-align: center; }
.stepper.sm button { width: 24px; height: 24px; border-radius: 5px; }
.stepper.sm { gap: 4px; }
.stepper.sm .qty { font-size: 12.5px; min-width: 16px; }

/* Payment Method Tiles */
.paytiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.paytile {
  height: 64px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface2);
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.paytile:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--soft);
}
.paytile[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}
.paytile[aria-pressed="true"] svg {
  stroke: #ffffff;
}
.paytile.compact {
  height: 36px;
  flex-direction: row;
  border-radius: 8px;
  gap: 6px;
}

/* Checkout Multi-Design Switcher Bar */
.checkout-switcher-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface2);
  padding: 3px 6px;
  border-radius: 9px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.checkout-switcher-bar .switcher-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 4px;
  flex: none;
}
.sw-btn {
  flex: 1;
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.sw-btn:hover { color: var(--ink); }
.sw-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Minimalist Segmented Pills for Checkout (Design 1) */
.checkout-segmented-pills {
  display: flex;
  background: var(--surface2);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--line);
  gap: 3px;
}
.seg-pill {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.seg-pill:hover {
  color: var(--ink);
}
.seg-pill.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.32);
}

.checkout-compact-input {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  padding: 3px 12px;
  transition: all 0.15s ease;
}
.checkout-compact-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.checkout-compact-input .pfx {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 6px;
}
.checkout-compact-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  text-align: right;
  color: var(--ink);
  outline: none;
  font-family: var(--sans);
}

.change-compact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--ok-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 10px;
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}
.change-compact-pill strong {
  font-size: 18px;
  font-weight: 850;
}

/* Design 2: Square 2x2 Grid */
.square-grid-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.square-card-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.square-card-btn:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}
.square-card-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}
.square-card-btn .sc-icon {
  font-size: 20px;
  flex: none;
}
.square-card-btn .sc-txt {
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
}
.square-card-btn.active .sc-txt {
  color: var(--accent);
}

/* Design 3: Glass Neo */
.glass-neo-hero {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.glass-neo-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #14B8A6, #0EA5E9, #14B8A6);
}

/* Design 4: On-Screen Touch Numpad */
.checkout-numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.numpad-btn {
  height: 42px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease;
}
.numpad-btn:active {
  background: var(--accent);
  color: #ffffff;
  transform: scale(0.96);
}
.numpad-btn.action {
  background: var(--soft);
  font-size: 14px;
  color: var(--muted);
}

/* Progress & Sliders */
.progress {
  height: 6px;
  border-radius: 3px;
  background: var(--soft);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s var(--ease);
}

/* Swatches */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4.5px var(--ink);
  transform: scale(1.1);
}
.swatch svg { pointer-events: none; }

/* Informational Banners */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.banner.info {
  background: var(--info-soft);
  color: var(--info);
  border-color: rgba(2, 132, 199, 0.2);
}
.banner.bad {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(225, 29, 72, 0.2);
}

/* Empty States */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  color: var(--faint);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.04));
}
.empty .t { font-size: 15px; font-weight: 700; color: var(--ink); }
.empty .s { font-size: 12.5px; max-width: 300px; line-height: 1.55; }

/* ---------- 8. App Shell, Sidebar & Navigation ---------- */
#app-root {
  height: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shell {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Sidebar (Desktop / POS Counter) */
.sidebar {
  width: var(--side-w);
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  min-height: 0;
  box-shadow: var(--shadow-xs);
  z-index: 10;
  overflow: hidden;
  transition: width 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sidebar collapsed state — icon rail only */
html[data-sidebar="collapsed"] .sidebar {
  width: 58px;
  padding: 16px 7px 12px;
  align-items: center;
}
html[data-sidebar="collapsed"] .brand-text,
html[data-sidebar="collapsed"] .side-sep,
html[data-sidebar="collapsed"] .who { display: none; }
html[data-sidebar="collapsed"] .side-link {
  justify-content: center;
  padding: 0;
  width: 40px;
}
html[data-sidebar="collapsed"] .side-link span { display: none; }
html[data-sidebar="collapsed"] .brand { padding: 0 0 16px; justify-content: center; }
html[data-sidebar="collapsed"] .side-user {
  justify-content: center;
  padding: 6px 0;
  border: 0;
  background: transparent;
  width: 40px;
}
html[data-sidebar="collapsed"] .side-nav { align-items: center; }
html[data-sidebar="collapsed"] #app-root .main { width: calc(100% - 58px); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 16px;
  flex: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.28);
}
.brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.side-link {
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  width: 100%;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.side-link:hover {
  background: var(--soft);
  color: var(--ink);
}
.side-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.side-sep {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 12px 4px;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface2);
  flex: none;
  margin-top: 8px;
  width: 100%;
  text-align: left;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.side-user:hover {
  background: var(--soft-hover);
  border-color: var(--line-strong);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

/* Topbar */
.topbar {
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  z-index: 5;
  box-shadow: var(--shadow-xs);
}
.topbar-wide { height: 58px; padding: 0 20px; gap: 14px; }
.topbar-wide .title { font-size: 15.5px; font-weight: 700; }
#sidebar-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  cursor: pointer;
  flex: none;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
#sidebar-toggle:hover {
  background: var(--soft-hover);
  border-color: var(--line-strong);
}
.topsearch {
  width: 300px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.topsearch:focus-within {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Phone Bottom Tab Dock (Disabled in Dashboard-First Command Center Experiment) */
.tabbar {
  display: none !important;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration) var(--ease), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tabbar button:active { transform: scale(0.92); }
.tabbar button i {
  width: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
  display: block;
  margin-bottom: 4px;
  flex: none;
}
.tabbar button[aria-current="page"] { color: var(--accent); font-weight: 700; }
.tabbar button[aria-current="page"] i { background: var(--accent); }

/* Floating Mobile Cart Bar */
/* Mobile floating cart bar — two-button: View + Charge */
.cartbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 20;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: barPop 0.22s var(--ease) both;
}
@keyframes barPop {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cartbar-info {
  flex: 1;
  min-width: 0;
}
.cartbar-count {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
}
.cartbar-total {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.cartbar-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.cartbar-btn {
  height: 38px;
  border-radius: var(--radius-xs);
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), filter var(--duration) var(--ease), background var(--duration) var(--ease);
}
.cartbar-btn:active { transform: scale(0.96); }
.cartbar-view {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.cartbar-view svg {
  stroke: #ffffff;
}
.cartbar-view:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}
.cartbar-charge {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.4);
}
.cartbar-charge:hover { filter: brightness(1.08); }

/* ---------- 9. POS (Point of Sale Counter) — Fixed Header & Modern Cards ---------- */
.pos {
  position: absolute;
  inset: 0;
  display: flex;
  background: var(--surface2);
  overflow: hidden;
}
.pos-catalog {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.pos-tools {
  flex: none;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  z-index: 10;
  position: sticky;
  top: 0;
}
.pos-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 14px;
}
.pos-scroll.has-cartbar {
  padding-bottom: 74px;
}

.prod-list {
  padding: 0 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-grid {
  padding: 0 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  grid-auto-rows: min-content;
}

/* Product Row (List View) — Modern Elevated Item Card */
.prod-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
  position: relative;
}
.prod-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -2px rgba(15, 118, 110, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}
.prod-row:active {
  transform: scale(0.985);
  background: var(--soft);
}
.thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--soft) 0%, var(--surface2) 100%);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Card (Grid View) — Modern Counter Card */
.prod-card.counter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 74px;
  height: auto;
  gap: 6px;
  position: relative;
}
.prod-card.counter-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -2px rgba(15, 118, 110, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.prod-card.counter-card:active { transform: scale(0.98); }
.prod-card.counter-card .n {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.counter-stock {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.counter-stock.stock-ok { color: var(--ok); }
.counter-stock.stock-warn { color: var(--warn); }
.counter-stock.stock-danger { color: var(--danger); }
.prod-card.counter-card .foot, .prod-card.pic-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 0;
}
.prod-card .fig { font-size: 14px; color: var(--ink); }
.prod-out { opacity: 0.55; }

/* Picture Card (Photo View) */
.prod-card.pic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
  gap: 8px;
}
.prod-card.pic-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -2px rgba(15, 118, 110, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.prod-card.pic-card:active { transform: scale(0.98); }
.prod-card.pic-card .shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 110px;
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.prod-card.pic-card .pic-placeholder {
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.prod-card.pic-card .n {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addbtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s var(--ease);
}
.addbtn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.45);
}
.addbtn:active {
  transform: scale(0.92);
}
.addbtn.lg { width: 36px; height: 36px; }
.addbtn.off {
  background: var(--soft);
  color: var(--faint);
  box-shadow: none;
}

/* POS Cart Side Panel (Desktop / Counter Monitor) — Slimmer & Ergonomic */
.cart-panel {
  width: 360px;
  flex: none;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.cart-head {
  flex: none;
  padding: 10px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 8px 14px;
  scrollbar-gutter: stable;
}
.cart-foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 14px;
  background: var(--surface);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.025);
}

/* POS Multi-Cart Tabs (Cart 1, Cart 2, Cart 3) */
.pos-cart-tabs {
  display: flex;
  background: var(--surface2);
  border-radius: 9px;
  padding: 2.5px;
  gap: 3px;
}
.pos-cart-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pos-cart-tab:hover {
  color: var(--ink);
}
.pos-cart-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.pos-cart-tab .tab-badge {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  padding: 1px 4.5px;
  border-radius: 999px;
  font-weight: 800;
}

/* Retail vs Wholesale Segmented Pricing Switch */
.price-mode-switch {
  display: flex;
  background: var(--surface2);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.price-mode-btn {
  flex: 1;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.price-mode-btn:hover {
  color: var(--ink);
}
.price-mode-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Smart Cash Tender Suggestions Pills */
.tender-suggestions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tender-pill {
  flex: 1;
  min-width: 68px;
  padding: 7px 6px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.tender-pill:hover {
  background: var(--soft);
  border-color: var(--line-strong);
}
.tender-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Cart Item Line — Slim Single Row */
.cart-line {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info .name { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.cart-line .info .meta-row { font-size: 10px; margin-top: 1px; color: var(--muted); }
.cart-line .price {
  text-align: right;
  min-width: 54px;
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.cart-line-action {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.cart-line-action:hover { background: var(--soft); color: var(--ink); }
.cart-line-action.danger:hover { background: var(--danger-soft); color: var(--danger); }

.totline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.totline > span:first-child { color: var(--muted); font-weight: 500; }
.totline .v { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.totline.grand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.totline.grand > span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.totline.grand .v {
  font-size: 23px;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- 10. Sheets, Modals, Toasts & Dialogs ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  opacity: 0;
  animation: fadeIn 0.18s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* Mobile Bottom Sheet */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(100%);
  animation: sheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
}
.sheet::before {
  content: '';
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 9px auto 2px;
  flex: none;
  opacity: 0.8;
}
@keyframes sheetSlideUp { to { transform: translateY(0); } }

/* Desktop Centered Modal */
.modal {
  position: fixed;
  z-index: 101;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(500px, calc(100vw - 32px));
  max-height: 88dvh;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid var(--line);
}
@keyframes modalPop {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.modal.compact {
  width: min(390px, calc(100vw - 32px));
  border-radius: 22px;
}
.modal.wide { width: min(860px, calc(100vw - 40px)); }

.sheet-head {
  flex: none;
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.sheet-head .t {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 18px 20px;
}
.sheet-foot {
  flex: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sheet-foot > div[style*="flex-direction:column"] {
  padding-bottom: 2px;
}

/* Toast Alerts */
.toast-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 16px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.2s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.toast.out { animation: toastOut 0.2s forwards; }
.toast.bad {
  background: var(--danger);
  color: #ffffff;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.95); } }

/* ---------- 11. Scanner & Hardware Camera ---------- */
.scanview {
  height: 280px;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scanview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanbox {
  width: 230px;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xs);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}
.scanbox::before, .scanbox::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}
.scanbox::before { width: 22px; height: 2px; }
.scanbox::after { width: 2px; height: 22px; }
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: scanSweep 2s ease-in-out infinite alternate;
}
@keyframes scanSweep { 0% { top: 15%; } 100% { top: 85%; } }
.scanhint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 20px;
}

/* ---------- 12. Security Keypad & Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 32px 16px 40px;
  overflow-y: auto;
}
.gate-card {
  width: min(410px, 100%);
  display: flex;
  flex-direction: column;
  margin: auto;
}
.gate-mark {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.28);
}
.gate-mark:has(img) {
  background: transparent;
  box-shadow: none;
}
.gate h1 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.gate .sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.45;
}

/* Modern Stepper Wizard */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
  padding: 4px 8px;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.wizard-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.wizard-step.active .wizard-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
  transform: scale(1.08);
}
.wizard-step.done .wizard-badge {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.wizard-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wizard-step.active .wizard-label {
  color: var(--accent);
  font-weight: 700;
}
.wizard-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 6px 20px 6px;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease;
}
.wizard-line.active {
  background: var(--accent);
}

.pin-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.pin-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.8px solid var(--line-strong);
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.14s var(--ease);
}
.pin-dot.on {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(15, 118, 110, 0.4);
}
.pin-dots.err .pin-dot {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.pin-dots.err { animation: shake 0.34s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}
.keypad button {
  height: 56px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease), transform 0.08s ease;
}
.keypad button:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
.keypad button:active {
  background: var(--soft);
  transform: scale(0.95);
}
.keypad button.fn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.keypad button.fn:hover {
  background: var(--soft);
  color: var(--ink);
}

/* ---------- 13. Data Tables ---------- */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface);
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.tbl th {
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
  position: sticky;
  top: 0;
  z-index: 1;
}
table.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr {
  transition: background var(--duration) var(--ease);
}
table.tbl tbody tr:hover { background: var(--surface2); }
table.tbl .num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 14. Visual Analytics & Charts ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 24px;
}
.bars .b {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}
.bars .b i {
  width: 100%;
  max-width: 32px;
  background: var(--accent-soft);
  border-radius: 5px 5px 0 0;
  display: block;
  transition: height 0.4s var(--ease), background var(--duration) var(--ease);
}
.bars .b.top i {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}
.bars .b:hover i { filter: brightness(1.1); }
.bars .b s {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
.bar-val {
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-align: center;
  min-height: 12px;
  line-height: 1;
}

/* ---------- 15. Thermal Receipt Formatting ---------- */
.receipt {
  background: #ffffff;
  color: #111111;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.55;
  padding: 22px 20px 18px;
  width: 100%;
  max-width: 320px;
  margin: 6px auto 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.receipt.w80 { max-width: 390px; font-size: 12.5px; }
.receipt hr {
  border: 0;
  border-top: 1px dashed #aaaaaa;
  margin: 11px 0 10px;
}
.receipt .c { text-align: center; }
.receipt .shop {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 3px;
}
.receipt .sub {
  font-size: 10.5px;
  line-height: 1.65;
  color: #444444;
  margin-top: 1px;
  letter-spacing: 0.01em;
}
.receipt .r {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #333333;
}
.receipt .r .g { flex: 1; min-width: 0; }
.receipt .r .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .item-block { margin-bottom: 8px; }
.receipt .item-name {
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.4;
  color: #111111;
  letter-spacing: 0.01em;
}
.receipt .total-line {
  font-size: 14.5px;
  font-weight: 700;
  color: #000000;
  margin: 5px 0;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  padding: 3px 0;
}
.receipt .total-line .n { font-size: 14.5px; font-weight: 800; letter-spacing: 0.01em; }
.receipt .big { font-weight: 700; color: #111111; }
.receipt-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 10px;
}
.receipt-bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 34px;
  justify-content: center;
}
.receipt-code {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #444444;
  margin-top: 5px;
  text-align: center;
}
.receipt .thank-you {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 10px;
  color: #111111;
  text-transform: uppercase;
}
.receipt .footer-msg {
  font-size: 9.5px;
  line-height: 1.6;
  color: #666666;
  margin-top: 3px;
}
.receipt .dev-credit {
  font-size: 9px;
  color: #888888;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.receipt .dev-phone {
  font-size: 9px;
  color: #888888;
  letter-spacing: 0.04em;
}

/* ---------- 16. Authentication & Split Account Gate ---------- */
.auth {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--surface);
  display: flex;
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.auth::-webkit-scrollbar,
.auth-hero::-webkit-scrollbar,
.auth-card-side::-webkit-scrollbar {
  display: none;
}
@media (max-width: 880px) {
  .auth {
    align-items: stretch;
    background: #091e1d;
    background-image: radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.18), transparent 65%);
    overflow-y: auto;
  }
}

.auth-wrap {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
@media (max-width: 880px) {
  .auth-wrap {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
}

.auth-split {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
@media (max-width: 880px) {
  .auth-split {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    height: 100dvh;
    background: linear-gradient(155deg, #091e1d 0%, #064e47 50%, #042f2c 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

/* Left Hero Showcase */
.auth-hero {
  background: linear-gradient(145deg, #091e1d 0%, #064e47 55%, #042f2c 100%);
  color: #f8fafc;
  padding: 44px 54px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  scrollbar-width: none;
}
.auth-hero-top {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1400px) {
  .auth-hero {
    padding: 56px 64px;
  }
}
@media (max-width: 880px) {
  .auth-hero {
    padding: 16px 14px 8px;
    align-items: center;
    text-align: center;
    flex: 1;
    min-height: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .auth-hero-top {
    width: 100%;
    align-items: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.auth-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22) 0%, rgba(45, 212, 191, 0) 70%);
  pointer-events: none;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  margin-bottom: 20px;
  width: fit-content;
}
@media (max-width: 880px) {
  .auth-brand-badge {
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 10.5px;
  }
}
.auth-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
}

.auth-brand-header {
  text-align: left;
}
@media (max-width: 880px) {
  .auth-brand-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.auth-hero-title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}
.auth-hero-title .gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 880px) {
  .auth-hero-title {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 6px;
  }
}

.auth-hero-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.75);
  margin-bottom: 24px;
  max-width: 480px;
}
@media (max-width: 880px) {
  .auth-hero-sub {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 16px;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.75);
  }
}

.auth-hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 880px) {
  .auth-hero-features {
    gap: 8px;
    margin-bottom: 0;
    width: 100%;
  }
}

.auth-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}
@media (max-width: 880px) {
  .auth-feature-card {
    padding: 8px 9px;
    gap: 8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: left;
    min-width: 0;
  }
  .auth-feature-card > div:last-child {
    min-width: 0;
    flex: 1;
  }
}

.auth-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
@media (max-width: 880px) {
  .auth-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .auth-feature-icon svg {
    width: 15px;
    height: 15px;
  }
}

.auth-feature-icon.icon-cyan { background: rgba(45, 212, 191, 0.16); color: #2dd4bf; }
.auth-feature-icon.icon-blue { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }
.auth-feature-icon.icon-purple { background: rgba(192, 132, 252, 0.16); color: #c084fc; }
.auth-feature-icon.icon-green { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
.auth-feature-icon.icon-amber { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.auth-feature-icon.icon-rose { background: rgba(251, 113, 133, 0.16); color: #fb7185; }
.auth-feature-icon.icon-wa { background: rgba(37, 211, 102, 0.15); }

.auth-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .auth-feature-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 1px;
    white-space: nowrap;
    letter-spacing: -0.015em;
  }
}

.auth-feature-desc {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.65);
}
@media (max-width: 880px) {
  .auth-feature-desc {
    font-size: 9px;
    line-height: 1.3;
    color: rgba(248, 250, 252, 0.68);
  }
}

.auth-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .auth-hero-footer {
    display: none;
  }
}
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.8);
}
.auth-trust-item svg {
  color: #2dd4bf;
}

/* Right Login Card */
.auth-card-side {
  background: var(--surface);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
@media (max-width: 880px) {
  .auth-card-side {
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 12px));
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.35);
    flex: none;
    height: auto;
    background: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    overflow-y: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
  }
  .auth-login-box {
    max-width: 360px;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .auth-btn {
    height: 48px;
    font-size: 14.5px;
    border-radius: 12px;
  }
  .auth-security-pill {
    padding: 3px 8px;
    font-size: 10px;
  }
  .auth-trust-row {
    margin: 6px 0 2px;
    gap: 8px;
  }
  .auth-trust-row .auth-trust-item {
    font-size: 10px;
    color: #475569;
  }
  .auth-subtext {
    font-size: 9.5px;
    margin-top: 3px;
  }
}

.auth-login-box {
  width: 100%;
  max-width: 350px;
  text-align: center;
  position: relative;
}
.auth-login-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 90px;
  background: var(--accent);
  filter: blur(50px);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}

.auth-mark-wrap {
  display: inline-flex;
  margin-bottom: 18px;
}
.auth-login-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-login-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-btn {
  height: 52px;
  border-radius: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
}
.auth-btn:hover {
  border-color: #0d9488;
  box-shadow: 0 6px 18px -2px rgba(13, 148, 136, 0.18);
  transform: translateY(-1.5px);
  background: #ffffff;
}
.auth-btn:active {
  transform: scale(0.985);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.auth-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-login-footer {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 880px) {
  .auth-login-footer {
    margin-top: 10px;
    padding-top: 10px;
    gap: 7px;
  }
}
.auth-security-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 880px) {
  .auth-security-pill {
    padding: 5px 8px;
    font-size: 11px;
  }
}
.auth-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}
@media (max-width: 880px) {
  .auth-trust-row {
    gap: 8px;
    font-size: 10.5px;
    margin-top: 0;
  }
}
.auth-trust-row .auth-trust-item {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-trust-row .auth-trust-item svg {
  color: #0d9488;
}
.auth-subtext {
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.45;
}
@media (max-width: 880px) {
  .auth-subtext {
    font-size: 10px;
  }
}

.auth-field { margin-top: 8px; }
.auth-field .lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}
.auth-field .lbl.accent { color: var(--accent); }
.auth-box {
  height: 42px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.auth-box.accent-box {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.auth-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.auth-box input {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.auth-box input::placeholder {
  color: var(--faint);
}
.auth-cta {
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.auth-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,118,110,0.34); }
.auth-cta:disabled { opacity: 0.5; pointer-events: none; }
.auth-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
}
.auth-err {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  text-align: center;
  margin-top: 10px;
  min-height: 14px;
}
.auth-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  margin-top: 10px;
  width: 100%;
}

/* File Protocol Notice Banner */
.fileban {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}
.fileban a { color: inherit; font-weight: 700; text-decoration: underline; }
.fileban code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
}
.fileban button { color: inherit; opacity: 0.75; flex: none; }
.fileban button:hover { opacity: 1; }

/* Segmented Control */
.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.seg button:hover { border-color: var(--line-strong); }
.seg button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* Segmented Control Pill (iOS style) */
.seg-pill {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  background: var(--soft);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}
.seg-pill .seg-btn {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg-pill .seg-btn:hover { color: var(--ink); }
.seg-pill .seg-btn.is-active,
.seg-pill .seg-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* ---------- 17. Responsive Breakpoints & Device Adaptations ---------- */
/* Phone (< 760px) */
@media (max-width: 759px) {
  .sidebar, .cart-panel { display: none; }
  .only-wide { display: none !important; }
  .modal { width: calc(100vw - 24px); }
  .pos { flex-direction: column; }
  .pos .prod-grid { gap: 8px; }
  .pos .prod-card.counter-card { min-height: 68px; }
  * { scrollbar-width: none !important; }
  *::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
}

/* Tablet & Desktop (>= 760px) */
@media (min-width: 760px) {
  .only-phone { display: none !important; }
  .tabbar { display: none; }
  .toast-wrap { bottom: 20px; }
  .pad { padding: 16px 24px 0; }
  .prod-list { padding: 0 24px 24px; }
  .prod-grid {
    padding: 0 24px 24px;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
  .pos-tools { padding: 12px 24px 10px; }
  .pos .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pos .prod-card.counter-card { min-height: 72px; padding: 9px 12px; }
}

/* Widescreen Monitor (>= 1240px) */
@media (min-width: 1240px) {
  .pad { padding: 20px 32px 0; }
  .prod-list { padding: 0 32px 28px; }
  .prod-grid { padding: 0 32px 28px; gap: 12px; }
  .pos-tools { padding: 14px 32px 10px; }
  .pos .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}

/* Tablet Rail (760px - 1239px) */
@media (min-width: 760px) and (max-width: 1239px) {
  .cart-panel { width: 320px; }
  .topsearch { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 17b. Barcode Label Studio & Printable Stickers ---------- */
.bcode-modal-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .bcode-modal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bcode-config-col {
  display: flex;
  flex-direction: column;
}

.bcode-fmt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bcode-fmt-btn {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.bcode-fmt-btn:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.bcode-fmt-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.bcode-fmt-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.bcode-fmt-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.bcode-toggles-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.bcode-toggles-grid::-webkit-scrollbar { display: none; }
.bcode-toggle-card {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--soft);
  border: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.bcode-toggle-card input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}
.bcode-toggle-card span {
  /* Removed to use raw text */
}

.bcode-qty-pills { 
  display: flex; 
  gap: 8px; 
  overflow-x: auto; 
  flex-wrap: nowrap; 
  scrollbar-width: none;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.bcode-qty-pills::-webkit-scrollbar { display: none; }
.qty-pill {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--soft);
  border: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-pill:hover { opacity: 0.8; }

.bcode-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--line);
  height: 36px;
  overflow: hidden;
}
.bcode-qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.bcode-qty-stepper button:hover {
  background: var(--soft);
}
.bcode-qty-stepper input {
  width: 46px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}
.bcode-qty-stepper input::-webkit-inner-spin-button, 
.bcode-qty-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Full Page Studio Layout */
.bcode-page {
  display: flex;
  flex-direction: column;
}
.bcode-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}
.bcode-page-left {
  display: flex;
  flex-direction: column;
}
.bcode-page-right {
  position: relative;
}

@media (min-width: 961px) {
  .bcode-page {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    overflow: hidden;
  }
  .bcode-page-grid {
    height: 100%;
    align-items: stretch;
  }
  .bcode-page-left {
    overflow-y: auto;
    padding-right: 8px; /* Room for scrollbar */
  }
  .bcode-page-left .bcode-studio-card {
    min-height: 100%;
  }
  .bcode-page-left::-webkit-scrollbar { width: 6px; }
  .bcode-page-left::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
  .bcode-page-right {
    height: 100%;
    position: static;
  }
}

@media (max-width: 960px) {
  .bcode-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bcode-studio-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 961px) {
  .bcode-page-right .bcode-studio-card {
    height: 100%;
  }
}
.bcode-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
/* Barcode Studio Live Realistic Preview Display */
.bcode-preview-display {
  flex: 1;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
  background-color: var(--surface2);
  background-image: radial-gradient(var(--line-strong) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] .bcode-preview-display,
[data-theme="midnight"] .bcode-preview-display,
[data-theme="contrast"] .bcode-preview-display {
  background-color: #050811;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}
.bcode-studio-footer {
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.bcode-preview-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.bcode-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 280px;
  max-width: 100%;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bcode-preview-meta .badge {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
}
.bcode-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bcode-sticker {
  position: relative;
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
}
.bcode-sticker.is-preview {
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.03);
  transition: all 0.2s var(--ease);
}
.bcode-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  margin-bottom: 2px;
}
.bcode-lbl-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin: 0;
  flex-grow: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bcode-lbl-price {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  font-family: var(--mono);
  white-space: nowrap;
  text-align: right;
  margin-left: 8px;
}
.bcode-lbl-bars {
  width: 100%;
  margin: 2px 0 0;
  display: block;
  position: relative;
  text-align: center;
}
.bcode-fmt-40x25 .bcode-lbl-price { font-size: 10px; }

/* ---------- 18. Thermal Receipt Printer Rules ---------- */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  body > *:not(#print-area) { display: none !important; }
  #print-area {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #print-area .receipt {
    border: 0;
    border-radius: 0;
    padding: 2mm 1mm;
    margin: 0;
    max-width: none;
    width: 100% !important;
    color: #000000;
    font-size: 11px;
    box-shadow: none;
    page-break-after: avoid;
  }
  #print-area .receipt .shop { font-size: 14px; font-weight: 900; }
  #print-area .receipt .sub { font-size: 10px; }
  #print-area .receipt hr { border-top: 1px dashed #000; }
  #print-area .receipt .big { font-size: 13px; font-weight: 800; }
  #print-area .receipt .receipt-barcode { margin: 6px 0; }
  #print-area .receipt .dev-credit,
  #print-area .receipt .dev-phone { font-size: 9px; }
  /* Default @page — overridden by dynamic <style> in R.print() */
  @page { size: 58mm auto; margin: 0; }
}
#print-area { display: none; }
html[data-print="58"] #print-area .receipt { width: 48mm; }
html[data-print="80"] #print-area .receipt { width: 72mm; }

/* Dashboard Action Command Hub Styling */
.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .dash-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.dash-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 14px -3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  box-sizing: border-box;
}
.dash-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px -4px rgba(15, 118, 110, 0.14);
}
.dash-action-card:active {
  transform: scale(0.98);
}
.dash-action-card.primary-pos {
  border: 1.5px solid var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}

/* Metric Cards Horizontal Carousel */
.metric-carousel-wrap {
  margin-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.metric-carousel-wrap::-webkit-scrollbar {
  display: none;
}
.metric-carousel {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.metric-carousel .metric-card {
  flex: 0 0 80%;
  max-width: 300px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
@media (min-width: 768px) {
  .metric-carousel .metric-card {
    flex: 1;
    max-width: none;
  }
}

/* Dashboard Layout Demo Switcher Bar */
.dash-demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-demo-bar::-webkit-scrollbar { display: none; }
.dash-demo-btn {
  flex: 1;
  min-width: 100px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.dash-demo-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

/* Big Hero Card Carousel (Matching User Reference Image media_1788071113279) */
.hero-carousel-container {
  margin-bottom: 20px;
}
.hero-carousel-track-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 20px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.22);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
  perspective: 1000px;
}
.hero-carousel-track-wrap.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
}
.hero-carousel-track-wrap::-webkit-scrollbar { display: none; }
.hero-carousel-track {
  display: flex;
  width: 100%;
}
.hero-card-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  border-radius: 20px;
  padding: 22px 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Decorative Background Bubbles as in media_1788071113279 */
.hero-card-slide::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.hero-card-slide::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-metric-val {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-metric-lbl {
  font-size: 13px;
  font-weight: 750;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
}

.hero-metric-sub {
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
}

/* Lock Login Screen to Permanent Clean Light Theme */
#screen-auth {
  background: #f8fafc !important;
  color: #0f172a !important;
}
#screen-auth .auth-card-side {
  background: #ffffff !important;
  color: #0f172a !important;
}
#screen-auth .auth-login-title {
  color: #0f172a !important;
}
#screen-auth .auth-login-sub,
#screen-auth .auth-subtext,
#screen-auth .auth-trust-item {
  color: #64748b !important;
}
#screen-auth .auth-security-pill {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

/* Pagination Dots Indicator (Smooth Pill Expansion) */
.hero-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
  opacity: 0.6;
}
.hero-dot.active {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.4);
}

/* DEMO 2: Segmented Executive Workflow Styling */
.demo2-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.demo2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.demo2-section-title {
  font-size: 13.5px;
  font-weight: 850;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.demo2-action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .demo2-action-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.demo2-action-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.demo2-action-pill:hover {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
}

/* DEMO 3: Minimalist Floating Circular Dock Grid */
.demo3-circular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  margin-bottom: 24px;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
@media (min-width: 640px) {
  .demo3-circular-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.demo3-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}
.demo3-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.demo3-item:hover .demo3-icon-circle {
  transform: translateY(-3px) scale(1.05);
}
.demo3-label {
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
}

/* DEMO 4: Minimalist Streamlined List Hub Styling */
.demo4-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.demo4-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.demo4-list-row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}
.demo4-list-row.primary-row {
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1.5px solid var(--accent);
}
.demo4-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* DEMO 5: Bento Box Asymmetric Grid Styling */
.demo5-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .demo5-bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bento-hero-tile {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--accent) 0%, #042f2e 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(15, 118, 110, 0.25);
  position: relative;
  overflow: hidden;
}
.bento-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.bento-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px -4px rgba(15, 118, 110, 0.14);
}
