:root {
  --bg: #070B14;
  --bg-mid: #0F172A;
  --card: rgba(30, 41, 59, 0.92);
  --ink: #F1F5F9;
  --muted: #94A3B8;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #38BDF8;
  --cyan-deep: #0EA5E9;
  --indigo: #6366F1;
  --sky: #E0F2FE;
  --radius: 1rem;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, 
/* Prevent mobile zoom / layout corruption */
html {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  overflow-x: clip;
  overflow-y: scroll; /* single scrollport — html, not body */
  max-width: 100%;
}
body {
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  overscroll-behavior-x: none;
}
input, select, textarea, button {
  font-size: 16px; /* iOS: avoid auto-zoom on focus when font < 16px */
}
body { background-color: #0B1220; min-height: 100%; }
body {
  background-color: #070B14;
}
body {
  font-family: var(--font);
  background-color: #0B1220;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body[data-lang="zh-CN"] {
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body[data-lang="zh-HK"] {
  --font: "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  transform: none !important;
  background-color: #0B1220;
  background-image:
    radial-gradient(ellipse 100% 80% at 20% -10%, rgba(14, 165, 233, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 10%, rgba(99, 102, 241, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(180deg, #0B1220 0%, #0B1220 100%);
}
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  transform: none !important;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.wrap {
  position: relative; z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transform: translateZ(0);
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.brand img {
  width: 40px; height: 40px; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}
.brand span { letter-spacing: -0.02em; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem;
  font-size: 0.9rem;
}
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--sky); }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.15rem; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 4.5rem 0 3rem;
  }
}
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--sky);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1rem;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.15;
  margin-bottom: 1rem; color: #F8FAFC;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin-bottom: 1.75rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.25rem; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.hero-card h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cyan); margin-bottom: 0.85rem;
}
.stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.stat {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
}
.stat .n {
  font-size: 1.35rem; font-weight: 700; color: #F8FAFC; letter-spacing: -0.02em;
}
.stat .l { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.pill-list { list-style: none; margin-top: 1rem; display: grid; gap: 0.45rem; }
.pill-list li {
  font-size: 0.88rem; color: #CBD5E1;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.pill-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-top: 0.45rem; flex-shrink: 0;
  box-shadow: 0 0 6px var(--cyan);
}

/* Sections */
section { padding: 3.25rem 0; }
.section-head { margin-bottom: 1.75rem; max-width: 36rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.025em; margin-bottom: 0.5rem; color: #F8FAFC;
}
.section-head p { color: var(--muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.15rem;
  transition: border-color 0.15s, transform 0.15s;
}
.feature:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}
.feature .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 165, 233, 0.15);
  color: var(--cyan); font-size: 1.1rem; margin-bottom: 0.85rem;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 0.4rem; color: #F8FAFC; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* Pricing */
.pricing-wrap {
  display: grid; gap: 1.25rem;
  max-width: 520px; margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.price-card .plan {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--cyan); margin-bottom: 0.75rem;
}
.price-card .amount {
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.25rem;
}
.price-card .amount .amount-main {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: -0.03em;
}
.price-card .amount .amount-main .count-up {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.price-card .amount .amount-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 0.15rem;
}
.price-card .per {
  color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 1.25rem;
}
.price-card ul {
  list-style: none; text-align: left; margin: 0 auto 1.5rem; max-width: 280px;
}
.price-card li {
  font-size: 0.92rem; color: #CBD5E1; padding: 0.35rem 0;
  padding-left: 1.35rem; position: relative;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700;
}
.price-note {
  text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 1rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 2rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.cta-band h2 { font-size: 1.55rem; margin-bottom: 0.5rem; color: #F8FAFC; }
.cta-band p { color: var(--muted); margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted); font-size: 0.85rem;
}
.site-footer .inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.site-footer a { color: var(--cyan); text-decoration: none; }

/* Modal */
.modal-root {
  display: none; position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-root.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal-card h2 { font-size: 1.2rem; margin-bottom: 0.4rem; color: #F8FAFC; }
.modal-card .lead { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.65); color: #F8FAFC;
  padding: 0.75rem 0.85rem; font-size: 0.95rem; font-family: inherit;
  outline: none; margin-bottom: 0.85rem;
}
.form-input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.form-input::placeholder { color: #64748B; }
.slug-row {
  display: flex; align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px; overflow: hidden;
  background: rgba(2, 6, 23, 0.65); margin-bottom: 0.5rem;
}
.slug-row:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.slug-row input {
  flex: 1; border: none; background: transparent; color: #F8FAFC;
  padding: 0.75rem 0.85rem; font-size: 0.95rem; font-family: inherit;
  outline: none; min-width: 0;
}
.slug-suffix { padding-right: 0.85rem; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.modal-error { color: #FCA5A5; font-size: 0.82rem; margin-bottom: 0.5rem; display: none; }
.modal-error.show { display: block; }
.modal-ok { color: #6EE7B7; font-size: 0.9rem; margin-bottom: 0.75rem; display: none; }
.modal-ok.show { display: block; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap;
}
.form-hint { font-size: 0.8rem; color: var(--muted); margin: -0.4rem 0 0.85rem; }

/* Photo gallery */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .gallery-card img { height: 300px; }
}
.gallery-card .caption {
  padding: 0.9rem 1.05rem 1.05rem;
}
.gallery-card .caption h3 {
  font-size: 1rem;
  color: #F8FAFC;
  margin-bottom: 0.25rem;
}
.gallery-card .caption p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Platform / tech strip */
.tech-section {
  padding: 2.75rem 0 1rem;
}
.tech-panel {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
}
.tech-panel h2 {
  font-size: 1.25rem;
  color: #F8FAFC;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.tech-panel .intro {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
  max-width: 40rem;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.tech-item {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.tech-item .k {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}
.tech-item .v {
  font-size: 0.86rem;
  color: #CBD5E1;
  line-height: 1.45;
}
.tech-api {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.tech-api code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  color: #E0F2FE;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  background: var(--card);
}
.hero-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .hero-photo img { height: 200px; }
}
.hero-photo .cap {
  padding: 0.65rem 0.9rem 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* POS product mock section */
.pos-mock-section { padding-top: 2.5rem; }
.pos-mock-frame {
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: #0B1220;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.pos-mock-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  padding: 0.7rem 1rem;
  background: rgba(2, 6, 23, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.pos-mock-topbar .shop {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; color: #F8FAFC; font-size: 0.95rem;
}
.pos-mock-topbar .shop .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34D399; box-shadow: 0 0 8px #34D399;
}
.pos-mock-topbar .tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.pos-mock-topbar .tabs span {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  color: #94A3B8; border: 1px solid rgba(148, 163, 184, 0.2);
}
.pos-mock-topbar .tabs span.on {
  color: #E0F2FE; border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.12);
}
.pos-mock-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 320px;
}
@media (min-width: 800px) {
  .pos-mock-body { grid-template-columns: 1.4fr 0.9fr; }
}
.pos-mock-catalog { padding: 0.85rem; }
.pos-mock-cats {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem;
}
.pos-mock-cats span {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.6rem; border-radius: 8px;
  background: rgba(30, 41, 59, 0.9); color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.pos-mock-cats span.on {
  color: #E0F2FE; border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.15);
}
.pos-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
@media (min-width: 520px) {
  .pos-mock-grid { grid-template-columns: repeat(3, 1fr); }
}
.pos-mock-item {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.65rem 0.55rem;
  text-align: center;
}
.pos-mock-item .emoji {
  font-size: 1.45rem; line-height: 1; margin-bottom: 0.35rem;
}
.pos-mock-item .name {
  font-size: 0.75rem; font-weight: 600; color: #F1F5F9;
  margin-bottom: 0.15rem;
}
.pos-mock-item .meta {
  font-size: 0.68rem; color: #94A3B8;
}
.pos-mock-item .tag {
  display: inline-block; margin-top: 0.3rem;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.12rem 0.4rem; border-radius: 6px;
}
.pos-mock-item .tag.trt { background: rgba(99, 102, 241, 0.25); color: #C7D2FE; }
.pos-mock-item .tag.rdm { background: rgba(52, 211, 153, 0.2); color: #A7F3D0; }
.pos-mock-item .tag.rtl { background: rgba(56, 189, 248, 0.15); color: #BAE6FD; }
.pos-mock-cart {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.65);
  padding: 0.85rem 1rem 1rem;
}
@media (min-width: 800px) {
  .pos-mock-cart {
    border-top: none;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
  }
}
.pos-mock-cart h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: #38BDF8; margin-bottom: 0.65rem;
}
.pos-mock-cart .line {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.82rem; color: #E2E8F0;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.pos-mock-cart .line .sub { color: #94A3B8; font-size: 0.75rem; }
.pos-mock-cart .total {
  display: flex; justify-content: space-between;
  margin-top: 0.75rem; font-weight: 700; color: #F8FAFC; font-size: 0.95rem;
}
.pos-mock-cart .btn-fake {
  margin-top: 0.85rem; width: 100%;
  text-align: center; padding: 0.65rem;
  border-radius: 10px; font-weight: 700; font-size: 0.88rem;
  background: linear-gradient(135deg, #0EA5E9, #6366F1); color: #fff;
}

/* Inventory explainer */
.inv-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .inv-grid { grid-template-columns: 1fr 1fr; }
}
.inv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.15rem;
}
.inv-card h3 {
  font-size: 1.05rem; color: #F8FAFC; margin-bottom: 0.45rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.inv-card h3 i { color: #38BDF8; }
.inv-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.inv-steps { list-style: none; display: grid; gap: 0.55rem; }
.inv-steps li {
  font-size: 0.88rem; color: #CBD5E1;
  padding-left: 1.6rem; position: relative;
}
.inv-steps li::before {
  position: absolute; left: 0; top: 0;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(14, 165, 233, 0.15); color: #7DD3FC;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  content: attr(data-n);
  line-height: 1.25rem; text-align: center;
}
.flag-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem;
}
.flag-pill {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.35rem 0.65rem; border-radius: 999px;
  border: 1px solid transparent;
}
.flag-pill.f1 { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; border-color: rgba(248, 113, 113, 0.35); }
.flag-pill.f2 { background: rgba(251, 146, 60, 0.15); color: #FDBA74; border-color: rgba(251, 146, 60, 0.35); }
.flag-pill.f3 { background: rgba(239, 68, 68, 0.2); color: #FECACA; border-color: rgba(239, 68, 68, 0.45); }
.flag-pill.warn { background: rgba(250, 204, 21, 0.12); color: #FDE68A; border-color: rgba(250, 204, 21, 0.35); }
.inv-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 1.25rem 1.15rem;
}
.inv-wide h3 { color: #F8FAFC; margin-bottom: 0.4rem; font-size: 1.05rem; }
.inv-wide p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 600;
}
.flow .box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px; padding: 0.45rem 0.7rem; color: #E2E8F0;
}
.flow .arrow { color: #38BDF8; }

/* ===== Cinematic scroll motion (Rockstar-inspired, lighter) ===== */
html { scroll-behavior: auto; } /* JS smooth takes over when enabled */

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, #0EA5E9, #6366F1, #38BDF8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  pointer-events: none;
  transform-origin: left center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 901px) {
  .reveal {
    /* no blur / will-change — first desktop wheel was promoting huge layers */
    filter: none;
  }
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.is-in { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.is-in { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.is-in { opacity: 1; transform: scale(1); }

/* Parallax layers */
.bg-layer { will-change: auto; }
.bg-grid { will-change: auto; opacity: 0.9; }

.pos-mock-frame {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.pos-mock-frame.is-pinned-feel {
  box-shadow: 0 32px 80px rgba(14, 165, 233, 0.12), 0 28px 60px rgba(0, 0, 0, 0.45);
}

.feature {
  transition:
    border-color 0.15s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    box-shadow 0.5s ease;
}
.feature.is-in:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  transition: opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .feature {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Product thumbs in POS mock */
.pos-mock-item .thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.45rem;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.pos-mock-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 6px;
}
.pos-mock-item .emoji { display: none; }
.pos-mock-cart .line-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.pos-mock-cart .cart-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  padding: 2px;
}
.pos-mock-cart .line {
  align-items: center;
}

/* Dynamic moving background */
.bg-aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: none !important;
}
.bg-aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.62;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.orb-a {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: driftA 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.26) 0%, transparent 70%);
  top: 40%;
  right: -12%;
  animation: driftB 28s ease-in-out infinite alternate;
}
.orb-c {
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  bottom: -20%;
  left: 20%;
  animation: driftC 32s ease-in-out infinite alternate;
}

@keyframes driftA {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50%  { transform: translate(12%, 18%) scale(1.15); opacity: 0.65; }
  100% { transform: translate(22%, -8%) scale(0.95); opacity: 0.4; }
}
@keyframes driftB {
  0%   { transform: translate(0, 0) scale(1.05); opacity: 0.4; }
  50%  { transform: translate(-18%, 12%) scale(1.2); opacity: 0.6; }
  100% { transform: translate(-8%, 28%) scale(1); opacity: 0.45; }
}
@keyframes driftC {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.35; }
  33%  { transform: translate(-15%, -12%) scale(1.18); opacity: 0.55; }
  66%  { transform: translate(10%, -20%) scale(1.08); opacity: 0.42; }
  100% { transform: translate(5%, 10%) scale(0.92); opacity: 0.5; }
}

/* Slow hue shift on base layer */
.bg-layer { animation: none; }
@keyframes hueShift {
  0%   { filter: hue-rotate(0deg) saturate(1); }
  50%  { filter: hue-rotate(18deg) saturate(1.15); }
  100% { filter: hue-rotate(-12deg) saturate(1.05); }
}

.tech-api a {
  color: inherit;
  text-decoration: none;
}
.tech-api a:hover code {
  color: #7DD3FC;
  border-color: rgba(56, 189, 248, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .orb-a, .orb-b, .orb-c, .bg-layer { animation: none; }
}

main { position: relative; z-index: 1; }
/* Solid page base so scroll never flashes empty black gaps */
.site-header, .site-footer {
  background-color: rgba(7, 11, 20, 0.88);
}

.bg-midfill {
  display: none; /* removed — was contributing to double-tone bands */
}


/* === SILISCIA MOTION SYSTEM === */

/* 11 — film grain */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* 6 — cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
  mix-blend-mode: screen;
}
.cursor-glow.on { opacity: 1; }
@media (max-width: 900px), (pointer: coarse) {
  .cursor-glow { display: none !important; }
}

/* 5 — nav underline grow + active */
.nav a {
  position: relative;
  padding-bottom: 0.2rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0EA5E9, #6366F1);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
  left: 0;
}
.brand-mark img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, filter 0.45s ease;
}
.brand-mark:hover img,
.site-header.scrolled-up .brand-mark img {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 0 18px rgba(14, 165, 233, 0.35);
  filter: brightness(1.08);
}

/* 1 — magnetic buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, opacity 0.15s;
  will-change: transform;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleOut 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: scale(2.6); opacity: 0; }
}
.btn.is-press { transform: scale(0.96) !important; }

/* 2 — card tilt */
.feature, .inv-card, .price-card, .hero-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
  position: relative;
}
.feature::before, .inv-card::before, .price-card::before, .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.feature.is-tilting::before,
.inv-card.is-tilting::before,
.price-card.is-tilting::before,
.hero-card.is-tilting::before {
  opacity: 1;
}

/* 3 — staggered POS catalog */
.pos-mock-item {
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pos-mock-frame.is-in .pos-mock-item,
.pos-mock-section.is-in .pos-mock-item {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.pos-mock-item:nth-child(1) { transition-delay: 0.05s; }
.pos-mock-item:nth-child(2) { transition-delay: 0.12s; }
.pos-mock-item:nth-child(3) { transition-delay: 0.19s; }
.pos-mock-item:nth-child(4) { transition-delay: 0.26s; }
.pos-mock-item:nth-child(5) { transition-delay: 0.33s; }
.pos-mock-item:nth-child(6) { transition-delay: 0.4s; }

/* 8 — sync pulse */
.pos-mock-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sync-pulse {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #86EFAC;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: syncPulse 2.4s ease-out infinite;
}
@keyframes syncPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.sync-label { white-space: nowrap; }

/* 9 — typewriter */
.lead.typewriter.typing {
  border-right: 2px solid rgba(56, 189, 248, 0.7);
  animation: caretBlink 0.85s step-end infinite;
}
@keyframes caretBlink {
  50% { border-color: transparent; }
}

/* 10 — product depth inside POS only */
.pos-mock-item .thumb img {
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.pos-mock-frame.is-depth .pos-mock-item .thumb img {
  transform: translate(var(--px, 0), var(--py, 0)) scale(1.04);
}

/* 7 — inventory flow horizontal story (light pin feel) */
.inv-wide {
  position: relative;
}
.inv-flow-track {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.inv-flow-track .chip {
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.inv-flow-track .chip.is-on {
  transform: scale(1.06);
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
  color: #E0F2FE;
}

/* 14 — modal entrance */
.modal-root {
  align-items: center;
  justify-content: center;
}
.modal-root .modal-backdrop {
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.modal-root.open .modal-backdrop {
  opacity: 1;
  backdrop-filter: blur(10px);
}
.modal-card.modal-anim {
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.modal-root.open .modal-card.modal-anim {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 13 — footer CTA aurora sweep */
.footer-cta-section,
#contact.cta-band,
.cta-band {
  position: relative;
  overflow: hidden;
}
.footer-cta-section::after,
#contact::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.2), transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
  animation: none;
}
.footer-cta-section.is-in::after,
#contact.is-in::after {
  opacity: 1;
  animation: auroraSweep 8s ease-in-out infinite alternate;
}
@keyframes auroraSweep {
  from { transform: translateX(-6%) rotate(0deg); }
  to { transform: translateX(6%) rotate(2deg); }
}
#contact > * { position: relative; z-index: 1; }

/* 12 — orb hue driven by scroll (JS sets --orb-hue) */
.bg-aurora {
  filter: hue-rotate(var(--orb-hue, 0deg));
  transition: filter 0.4s linear;
}

/* Count-up polish */
.count-up {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .noise-overlay, .cursor-glow { display: none !important; }
  .pos-mock-item, .btn, .feature, .inv-card, .modal-card.modal-anim {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .sync-dot { animation: none !important; }
}

.flow .box {
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.flow .box.is-on {
  transform: scale(1.06);
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
  color: #E0F2FE;
}


/* === MOBILE PACK === */

/* Hamburger — stays in header */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #E2E8F0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer + backdrop live outside header (viewport-fixed) */
.nav-backdrop {
  display: none;
}
.nav-drawer {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-header .inner {
    flex-wrap: nowrap;
    padding: 0.65rem 0;
  }

  /* Desktop-style nav hidden on mobile; drawer used instead */
  .nav-desktop {
    display: none !important;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: rgba(11, 18, 32, 0.98);
    border-left: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
    z-index: 100;
    overflow: hidden;
  }
  .nav-drawer.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.85rem 1rem;
    padding-top: max(0.85rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 11, 20, 0.95);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .nav-drawer-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #E2E8F0;
    letter-spacing: -0.02em;
  }
  .nav-drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.9);
    color: #E2E8F0;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-drawer-close:hover {
    border-color: rgba(56, 189, 248, 0.45);
    color: #7DD3FC;
  }
  .nav-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    font-size: 1.05rem;
    border-radius: 12px;
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
  }
  .nav-drawer a:hover,
  .nav-drawer a.is-active {
    background: rgba(14, 165, 233, 0.12);
    color: #7DD3FC;
  }
  .nav-drawer a::after { display: none; }
  .nav-drawer .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }
  .nav-drawer .nav-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Lock page scroll while drawer is open; drawer scrolls independently */
  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
  }
  body.nav-open .site-header {
    /* keep header visible but below drawer */
    z-index: 80;
  }

  /* Compact brand on small phones */
  .brand span { font-size: 1.05rem; }
  .brand img { width: 36px; height: 36px; }

  /* Larger primary CTAs */
  .hero-cta .btn,
  .btn-lg {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }

  /* Safer POS mock */
  .pos-mock-frame {
    border-radius: 14px;
    overflow: hidden;
  }
  .pos-mock-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
  }
  .pos-mock-topbar .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .pos-mock-topbar .tabs::-webkit-scrollbar { display: none; }
  .pos-mock-topbar .tabs span {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
  .sync-pulse {
    margin-left: 0;
    align-self: flex-start;
  }
  .pos-mock-body {
    grid-template-columns: 1fr !important;
  }
  .pos-mock-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
  .pos-mock-item {
    padding: 0.5rem;
  }
  .pos-mock-item .name { font-size: 0.78rem; }
  .pos-mock-item .meta { font-size: 0.7rem; }
  .pos-mock-item .thumb {
    aspect-ratio: 1;
    max-height: 96px;
  }
  .pos-mock-item .thumb img {
    object-fit: contain;
    max-height: 96px;
  }
  .pos-mock-cart {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    max-height: none;
  }
  .pos-mock-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pos-mock-cats::-webkit-scrollbar { display: none; }
  .pos-mock-cats span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Touch-friendlier feature cards */
  .feature, .inv-card {
    padding: 1.1rem;
  }
  .feature h3, .inv-card h3 {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 2.75rem 0 1.5rem;
  }
  .hero .badge {
    margin-top: 0.5rem;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.15;
  }
  .hero .lead {
    font-size: 0.98rem;
  }

  /* Flow chips wrap cleanly */
  .flow {
    justify-content: flex-start;
  }
  .flow .box {
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
  }

  /* Modal full-width comfort */
  .modal-card {
    max-width: calc(100vw - 1.5rem);
    margin: 0.75rem;
  }
  .modal-actions .btn {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(1120px, calc(100% - 1.25rem));
  }
  .pos-mock-item .thumb {
    max-height: 80px;
  }
  .hero-card .stat-row {
    grid-template-columns: 1fr;
  }
  .nav-actions .btn-ghost {
    order: 2;
  }
}

/* Disable hover transforms that fight touch */
@media (hover: none), (pointer: coarse) {
  .btn:hover { transform: none; }
  .feature:hover, .inv-card:hover, .price-card:hover, .hero-card:hover {
    transform: none !important;
  }
  .feature.is-tilting, .inv-card.is-tilting, .price-card.is-tilting, .hero-card.is-tilting {
    transform: none !important;
  }
}


/* === CHECKOUT SECTION === */
.checkout-section { padding-top: 2.5rem; padding-bottom: 1rem; }
.checkout-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}
.checkout-mock {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.co-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.55);
}
.co-title { font-weight: 700; color: #F8FAFC; font-size: 0.95rem; }
.co-shop {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7DD3FC;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.co-body { padding: 1rem 1.1rem 1.15rem; }
.co-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 0.9rem;
}
.co-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
  background: linear-gradient(135deg, #0EA5E9, #6366F1);
  color: #fff;
  flex-shrink: 0;
}
.co-name { font-weight: 600; color: #F1F5F9; font-size: 0.92rem; }
.co-phone { font-size: 0.78rem; color: var(--muted); }
.co-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #86EFAC;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.co-lines { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.co-line {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.88rem; color: #E2E8F0;
}
.co-line.muted { color: var(--muted); }
.co-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 0.9rem;
  font-size: 0.9rem; color: var(--muted);
}
.co-total strong { font-size: 1.25rem; color: #F8FAFC; font-weight: 700; }
.co-block { margin-bottom: 0.95rem; }
.co-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.45rem;
}
.co-pay { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pay-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E0F2FE;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.co-staff { display: flex; flex-direction: column; gap: 0.55rem; }
.co-staff-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.1fr) 1.4fr auto;
  gap: 0.5rem;
  align-items: center;
}
.co-staff-info {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: #E2E8F0;
}
.co-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.co-bar-wrap {
  height: 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.8);
  overflow: hidden;
}
.co-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.checkout-mock.is-in .co-bar,
.co-split-block.is-animated .co-bar {
  width: var(--pct, 0%);
}
.co-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F8FAFC;
  min-width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.co-split-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.co-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem;
}
.co-btn {
  flex: 1;
  text-align: center;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 120px;
}
.co-btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #CBD5E1;
}
.co-btn.primary {
  background: linear-gradient(135deg, #0EA5E9, #6366F1);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.28);
}
.checkout-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.co-point {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.co-point .icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(14, 165, 233, 0.12);
  color: #38BDF8;
  margin-bottom: 0.55rem;
}
.co-point h3 {
  font-size: 1rem;
  color: #F8FAFC;
  margin: 0 0 0.35rem;
}
.co-point p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .co-staff-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info pct"
      "bar bar";
  }
  .co-staff-info { grid-area: info; }
  .co-pct { grid-area: pct; }
  .co-bar-wrap { grid-area: bar; }
}

/* ===== Language switcher ===== */
.lang-slot {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 40;
}
.lang-switch {
  position: relative;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.lang-switch-btn:hover,
.lang-switch-btn[aria-expanded="true"] {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}
.lang-switch-btn .fa-globe {
  color: #38BDF8;
  font-size: 0.85rem;
}
.lang-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.lang-switch-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 80;
}
.lang-menu[hidden] { display: none !important; }
.lang-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0.1rem;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #E2E8F0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
}
.lang-option:hover {
  background: rgba(56, 189, 248, 0.12);
}
.lang-option.is-active {
  background: rgba(56, 189, 248, 0.18);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.lang-native {
  font-size: 0.88rem;
  font-weight: 600;
}
.lang-en {
  font-size: 0.72rem;
  color: #94A3B8;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.footer-links {
  text-align: right;
}
.footer-right .lang-menu,
#lang-slot-footer .lang-menu,
.lang-switch--dropup .lang-menu {
  top: auto;
  bottom: calc(100% + 0.45rem);
  right: 0;
  left: auto;
}
.lang-switch--dropup .lang-chevron {
  transform: rotate(180deg);
}
.lang-switch--dropup .lang-switch-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(0deg);
}
.site-footer,
.site-footer .inner,
.footer-grid,
.footer-right,
#lang-slot-footer {
  overflow: visible;
}
#lang-slot-footer {
  z-index: 80;
}

/* Mobile: menu was clipped off the left edge (html overflow-x: clip) */
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-right {
    align-items: stretch;
    width: 100%;
  }
  .footer-links {
    text-align: left;
  }
  #lang-slot-footer,
  #lang-slot-footer .lang-switch {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  #lang-slot-footer .lang-switch-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-right .lang-menu,
  #lang-slot-footer .lang-menu,
  .lang-switch--dropup .lang-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  html[dir="rtl"] .footer-right .lang-menu,
  html[dir="rtl"] #lang-slot-footer .lang-menu,
  body.lang-rtl .footer-right .lang-menu,
  body.lang-rtl #lang-slot-footer .lang-menu {
    left: 0;
    right: 0;
  }
}

/* RTL layout */
html[dir="rtl"] body,
body.lang-rtl {
  direction: rtl;
}
html[dir="rtl"] .nav a::after,
body.lang-rtl .nav a::after {
  transform-origin: center;
}
html[dir="rtl"] .hero,
body.lang-rtl .hero {
  direction: rtl;
}
html[dir="rtl"] .lang-option,
body.lang-rtl .lang-option {
  align-items: flex-end;
  text-align: right;
}
html[dir="rtl"] .footer-right,
body.lang-rtl .footer-right {
  align-items: flex-start;
}
html[dir="rtl"] .footer-links,
body.lang-rtl .footer-links {
  text-align: left;
}
html[dir="rtl"] .lang-menu,
body.lang-rtl .lang-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .co-staff-row,
html[dir="rtl"] .co-line,
html[dir="rtl"] .line,
body.lang-rtl .co-staff-row,
body.lang-rtl .co-line,
body.lang-rtl .line {
  direction: rtl;
}

@media (max-width: 900px) {
  .nav-actions .lang-slot {
    width: 100%;
    margin-bottom: 0.35rem;
  }
  .nav-actions .lang-switch-btn {
    width: 100%;
    justify-content: center;
  }
  .nav-actions .lang-menu {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }
  .footer-right {
    align-items: flex-start;
    width: 100%;
  }
  .footer-links {
    text-align: left;
  }
}

.app-points { margin: 1.25rem 0 0; padding-left: 1.1rem; color: #94A3B8; line-height: 1.55; }
.app-points li { margin: 0.35rem 0; }
.bk-cal {
  display: grid;
  grid-template-columns: 3.2rem repeat(3, 1fr);
  min-height: 260px;
  background: #0B1220;
  position: relative;
}
.bk-rail { display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem 0.4rem 0.6rem; font-size: 10px; color: #64748B; }
.bk-col { position: relative; border-left: 1px solid #1E293B; min-height: 260px; }
.bk-col-h { font-size: 11px; color: #93C5FD; text-align: center; padding: 0.4rem 0; border-bottom: 1px solid #1E293B; }
.bk-apt {
  position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 6px 8px;
  font-size: 11px; line-height: 1.25; border: 1px solid transparent;
}
.bk-apt { overflow: hidden; }
.bk-apt .bk-who { padding-right: 4.6rem; }
.bk-apt .chip { position: absolute; top: 4px; right: 4px; margin: 0; font-size: 9px; font-weight: 700; background: #FCD34D; color: #0F172A; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.bk-apt.sale { background: #14532D; border-color: #22C55E; color: #ECFDF5; }
.bk-apt.service { background: #1E3A5F; border-color: #38BDF8; color: #E0F2FE; }
.bk-apt.due { background: #7F1D1D; border-color: #F87171; color: #FEE2E2; }
.bk-apt.redeemed { background: #FACC15; border-color: #CA8A04; color: #111827; }
.crm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; background: #0B1220; }
.crm-kpis div { background: #111827; border: 1px solid #1E293B; border-radius: 10px; padding: 8px 10px; }
.crm-kpis small { display: block; color: #64748B; font-size: 10px; }
.crm-kpis b { color: #E2E8F0; font-size: 14px; }
.crm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px 16px; background: #0B1220; }
.crm-col { background: #0F172A; border: 1px solid #1E293B; border-radius: 12px; padding: 8px; min-height: 140px; }
.crm-col h4 { margin: 0 0 8px; font-size: 12px; color: #93C5FD; font-weight: 600; }
.crm-card { background: #111827; border: 1px solid #334155; border-radius: 10px; padding: 8px; margin-bottom: 8px; font-size: 12px; color: #E2E8F0; }
.crm-card small { color: #94A3B8; }
@media (max-width: 720px) {
  .bk-cal { grid-template-columns: 2.4rem 1fr 1fr; }
  .bk-col:last-child { display: none; }
  .crm-cols { grid-template-columns: 1fr 1fr; }
  .crm-kpis { grid-template-columns: 1fr; }
}
.form-hint:empty{display:none}

/* Full-page snap + enter motion */
html {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 4.55rem;
  scroll-behavior: auto;
}
@media (max-width: 899px) {
  html { scroll-snap-type: none !important; }
  main > section.page,
  footer.site-footer.page {
    min-height: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
  .scene-stage,
  main > section.page:not(.is-on) .scene-stage,
  main > section.page.is-on .scene-stage,
  section.hero.page .scene-stage {
    min-height: 0;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .feature p, .section-head p { color: #CBD5E1; }
  .feature h3, .section-head h2 { color: #F8FAFC; }
  section.hero.page,
  section.hero {
    padding-top: 1.25rem;
  }
  section.hero.page .scene-stage {
    padding-top: 0.85rem;
    justify-content: flex-start;
    align-content: start;
  }
  .hero .badge {
    margin-top: 0.35rem;
    margin-bottom: 1.15rem;
  }
}
.page-veil { display: none !important; }
main > section.page,
footer.site-footer.page {
  position: relative;
  min-height: calc(100svh - 4.55rem);
  height: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
footer.site-footer.page {
  min-height: 0;
  scroll-snap-stop: normal;
}
.scene-stage {
  position: relative;
  top: auto;
  min-height: calc(100svh - 6.2rem);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
main > section.page:not(.is-on) .scene-stage {
  opacity: 0.28;
  transform: translate3d(0, 36px, 0) scale(0.985);
}
main > section.page.is-on .scene-stage {
  opacity: 1;
  transform: none;
}
main > section.page.page-fill .scene-stage {
  justify-content: flex-start;
  min-height: 0;
  padding-top: 0.5rem;
}
section.hero.page {
  padding-top: 0;
  padding-bottom: 0;
  display: block;
}
section.hero.page .scene-stage {
  min-height: calc(100svh - 4.55rem);
  display: grid;
  align-items: center;
  align-content: center;
}
@media (min-width: 900px) {
  section.hero.page .scene-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  main > section.page .scene-stage {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Interactive till demo */
.pos-mock-frame.mock-till { position: relative; overflow: hidden; }
.pos-mock-item.mock-add {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148,163,184,.16);
}
.pos-mock-item.mock-add:hover { border-color: rgba(56,189,248,.45); transform: translateY(-1px); }
.pos-mock-cats .mock-cat {
  font: inherit; color: #94A3B8; background: transparent; border: 0; cursor: pointer;
  padding: 0.25rem 0.55rem; border-radius: 999px;
}
.pos-mock-cats .mock-cat.on { background: rgba(56,189,248,.18); color: #E0F2FE; }
.mock-tab-off { opacity: .45; pointer-events: none; }
.mock-client-lock {
  display: flex; gap: 0.6rem; align-items: center;
  background: rgba(2,6,23,.45); border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px; padding: 0.45rem 0.55rem; margin-bottom: 0.65rem;
}
.mock-client-lock .co-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #0ea5e9; color: #fff; font-size: 0.72rem; font-weight: 700;
}
.mock-client-lock .co-name { font-size: 0.82rem; color: #F8FAFC; font-weight: 600; }
.mock-client-lock .co-phone { font-size: 0.7rem; color: #94A3B8; }
.mock-empty { font-size: 0.8rem; color: #94A3B8; margin: 0.4rem 0 0.7rem; }
.mock-qty { display: flex; align-items: center; gap: 0.3rem; }
.mock-qty button {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(148,163,184,.3);
  background: transparent; color: #E2E8F0; cursor: pointer;
}
.mock-disc-row { margin: 0.7rem 0 0.35rem; }
.mock-disc-row label { display: block; font-size: 0.72rem; color: #94A3B8; margin-bottom: 0.3rem; }
.mock-disc-controls { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.mock-disc-controls button, .mock-disc-controls input {
  font: inherit; font-size: 0.75rem; border-radius: 8px;
  border: 1px solid rgba(148,163,184,.25); background: rgba(2,6,23,.4); color: #E2E8F0;
  padding: 0.25rem 0.45rem; cursor: pointer;
}
.mock-disc-controls button.on { border-color: #38BDF8; color: #7DD3FC; }
.mock-disc-controls input { width: 3.2rem; cursor: text; }
.mock-disc-total { font-weight: 500; color: #7DD3FC; font-size: 0.82rem; }
.pos-mock-cart .btn-fake { border: 0; cursor: pointer; }
.pos-mock-cart .btn-fake:disabled { opacity: .4; cursor: not-allowed; }
.mock-overlay {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(2,6,23,.72); display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.mock-overlay.hidden { display: none; }
.mock-sheet {
  width: min(420px, 100%);
  background: #0f172a; border: 1px solid rgba(148,163,184,.25);
  border-radius: 16px; padding: 1rem 1.05rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.mock-sheet h3 { margin: 0 0 0.75rem; font-size: 1.05rem; color: #F8FAFC; }
.mock-pay-total { font-size: 1.15rem; color: #E2E8F0; margin: 0.6rem 0 0.75rem; }
.mock-pay-methods { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; }
.mock-pay-methods button {
  flex: 1; font: inherit; font-size: 0.8rem; padding: 0.45rem;
  border-radius: 10px; border: 1px solid rgba(148,163,184,.25);
  background: transparent; color: #CBD5E1; cursor: pointer;
}
.mock-pay-methods button.on { border-color: #38BDF8; background: rgba(14,165,233,.15); color: #E0F2FE; }
.mock-sheet-actions { display: flex; gap: 0.5rem; }
.mock-sheet-actions button {
  flex: 1; font: inherit; font-weight: 600; font-size: 0.85rem;
  padding: 0.6rem; border-radius: 10px; cursor: pointer; border: 0;
}
.mock-sheet-actions .ghost { background: transparent; color: #7DD3FC; border: 1px solid rgba(56,189,248,.35); }
.mock-sheet-actions .primary { background: linear-gradient(135deg,#0EA5E9,#6366F1); color: #fff; }
.mock-done-p { color: #94A3B8; font-size: 0.88rem; }
.mock-done-amt { font-size: 1.4rem; font-weight: 700; color: #F8FAFC; margin: 0.4rem 0 0.9rem; }
.mock-split { margin: 0 0 0.85rem; }
.mock-split-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.4rem; font-size:0.78rem; color:#94A3B8; }
.mock-split-head button { font:inherit; font-size:0.75rem; color:#7DD3FC; background:transparent; border:1px solid rgba(56,189,248,.35); border-radius:8px; padding:0.2rem 0.45rem; cursor:pointer; }
.mock-staff-row { display:flex; align-items:center; gap:0.4rem; padding:0.28rem 0; font-size:0.8rem; color:#E2E8F0; }
.mock-staff-name { flex:1; }
.mock-staff-row input[type="number"] { width:3.2rem; font:inherit; font-size:0.8rem; background:rgba(2,6,23,.5); color:#F8FAFC; border:1px solid rgba(148,163,184,.25); border-radius:8px; padding:0.2rem 0.3rem; }
.mock-pct-mark { color:#94A3B8; font-size:0.75rem; }
.mock-split-sum { font-size:0.75rem; color:#7DD3FC; margin:0.25rem 0 0; }
.mock-split-sum.bad { color:#FCA5A5; }
.mock-sheet { max-height: min(86vh, 560px); overflow:auto; }

.to-top {
  position: fixed;
  left: max(0.85rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: #7DD3FC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.to-top:hover { color: #E0F2FE; border-color: #38BDF8; }
.to-top i { font-size: 0.95rem; }
@media (max-width: 899px) {
  .to-top { width: 46px; height: 46px; }
}
