:root {
  --bg: #0a0e16;
  --bg-alt: #0d1420;
  --surface: #121a29;
  --surface-2: #161f30;
  --border: #23304a;
  --white: #f5f7fb;
  --muted: #9aa7c2;
  --blue: #5eb1ff;
  --blue-light: #8fd0ff;
  --blue-dim: rgba(94, 177, 255, 0.12);
  --radius: 14px;
  --max: 1140px;

  /* Theme-dependent one-offs that can't just be a CSS variable swap — glow
     intensity, scrim/header backdrops, and the handful of status accent colors
     that need a darker shade to stay readable once the background turns light. */
  --header-backdrop: rgba(10, 14, 22, 0.85);
  --mobile-nav-backdrop: rgba(10, 14, 22, 0.98);
  --glow-a: rgba(94, 177, 255, 0.18);
  --glow-b: rgba(94, 177, 255, 0.11);
  --status-orange: #ffb066;
  --status-orange-dot: #ff9f43;
  --status-green: #7be3a8;
  --status-red: #ff9a9a;
  --status-red-strong: #ff6b6b;
  --status-red-soft: #ff8f8f;
}

/* Light theme: same layout/structure everywhere, only the palette changes.
   Applied via data-theme="light" on <html> (set by js/theme.js, persisted in
   localStorage, and read synchronously in <head> before first paint so there's
   no flash of the wrong theme). Absence of the attribute = dark (unchanged
   default), so every page that doesn't wire up the toggle still renders exactly
   as before. */
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --border: #dde3ee;
  --white: #10192b;
  --muted: #55627a;
  --blue: #2f7fd6;
  --blue-light: #1f6fc4;
  --blue-dim: rgba(47, 127, 214, 0.09);

  --header-backdrop: rgba(255, 255, 255, 0.85);
  --mobile-nav-backdrop: rgba(255, 255, 255, 0.98);
  --glow-a: rgba(47, 127, 214, 0.22);
  --glow-b: rgba(47, 127, 214, 0.14);

  /* Pastel status colors read fine on dark navy but fail contrast on white —
     swapped for deeper, more saturated versions of the same hues. */
  --status-orange: #a15b12;
  --status-orange-dot: #c96f16;
  --status-green: #157a45;
  --status-red: #c53d3d;
  --status-red-strong: #c53d3d;
  --status-red-soft: #c53d3d;
}

/* A few tinted chip backgrounds/borders were tuned for a dark backdrop (12%
   opacity orange over navy reads as a warm badge; the same 12% over white is
   nearly invisible) — nudged up for light theme so they stay legible. */
:root[data-theme="light"] .eyebrow.eyebrow-alert { background: rgba(201, 111, 22, 0.10); border-color: rgba(201, 111, 22, 0.35); }
:root[data-theme="light"] .auth-error { background: rgba(197, 61, 61, 0.08); border-color: rgba(197, 61, 61, 0.3); }
:root[data-theme="light"] .status-select.st-contacted { border-color: rgba(161, 91, 18, 0.35); }
:root[data-theme="light"] .status-select.st-won,
:root[data-theme="light"] .status-select.st-good { border-color: rgba(21, 122, 69, 0.35); }
:root[data-theme="light"] .status-select.st-lost,
:root[data-theme="light"] .status-select.st-bad { border-color: rgba(197, 61, 61, 0.35); }
:root[data-theme="light"] .week-delta.up { background: rgba(21, 122, 69, 0.10); }
:root[data-theme="light"] .week-delta.down { background: rgba(197, 61, 61, 0.10); }

/* The "problem vs. solution" comparison cards use a translucent color wash that
   reads fine over dark navy but nearly disappears over white at the same opacity
   — richened up so the red/blue tint is still visible without looking heavy. */
:root[data-theme="light"] .compare .bad { background: linear-gradient(180deg, rgba(197,61,61,0.10), rgba(197,61,61,0.01)); }
:root[data-theme="light"] .compare .good { background: linear-gradient(180deg, rgba(47,127,214,0.14), rgba(47,127,214,0.02)); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
body::before {
  width: 900px;
  height: 900px;
  top: -320px;
  left: -220px;
  background: radial-gradient(circle, var(--glow-a), transparent 65%);
  animation: auroraDriftA 28s ease-in-out infinite alternate;
}
body::after {
  width: 720px;
  height: 720px;
  top: 4%;
  right: -260px;
  background: radial-gradient(circle, var(--glow-b), transparent 65%);
  animation: auroraDriftB 34s ease-in-out infinite alternate;
}

@keyframes auroraDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(70px, 50px) scale(1.1); }
  100% { transform: translate(-40px, 90px) scale(0.94); }
}
@keyframes auroraDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, -35px) scale(1.06); }
  100% { transform: translate(25px, 60px) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-backdrop);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Vertical only: the element is also .wrap, and a shorthand "0" here used to wipe out its side
     padding, pushing the logo and menu button against the screen edges on phones and tablets. */
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav-toggle-input { display: none; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-input:checked ~ .nav-right .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-right .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-right .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; display: block; }

.client-login-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.client-login-link:hover { color: var(--blue-light); }

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

/* Groups the language switch + theme toggle so they read as one control
   instead of two separate floating widgets — see the desktop-only merge
   below. Unstyled by default so mobile is untouched (same gap the two used
   to have as plain .nav-right children). */
.nav-utility { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--surface);
}
.lang-switch a,
.lang-switch span {
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a:first-child,
.lang-switch span:first-child {
  border-right: 1px solid var(--border);
}
.lang-switch a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
:root[data-theme="light"] .lang-switch a:hover { background: rgba(16,25,43,0.05); }
.lang-switch .lang-active {
  background: var(--blue-dim);
  color: var(--blue-light);
}

.logo-text .sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
nav.links a:hover, nav.links a.active { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #3d8fe0);
  color: #06101d;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(94,177,255,0.35); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-light); }

/* Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid rgba(94,177,255,0.3);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.eyebrow.eyebrow-alert {
  background: rgba(255, 159, 67, 0.12);
  border-color: rgba(255, 159, 67, 0.35);
  color: var(--status-orange);
}
.eyebrow.eyebrow-alert .dot {
  background: var(--status-orange);
  box-shadow: 0 0 8px var(--status-orange-dot);
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 .accent { color: var(--blue-light); }
.lede {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  padding: 26px 16px;
  text-align: center;
}
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--blue-light); }
.stat .label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

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

.card {
  min-width: 0; /* lets a grid item shrink below its content's intrinsic width instead of forcing the track wider */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(94,177,255,0.4); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--blue-dim);
  border: 1px solid rgba(94,177,255,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-light);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Problem/solution */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare .box {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.compare .bad {
  background: linear-gradient(180deg, rgba(255,90,90,0.08), rgba(255,255,255,0.01));
  border-color: rgba(255,90,90,0.28);
}
.compare .bad:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -14px rgba(255,90,90,0.35);
}
.compare .good {
  background: linear-gradient(180deg, rgba(94,177,255,0.16), rgba(94,177,255,0.02));
  border-color: rgba(94,177,255,0.45);
  box-shadow: 0 0 40px -16px rgba(94,177,255,0.4);
}
.compare .good:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -14px rgba(94,177,255,0.5);
}
.compare h3 { margin-top: 0; font-size: 1.05rem; }
.compare .bad h3 { color: var(--status-red-soft); }
.compare .good h3 { color: var(--blue-light); }
.compare ul { margin: 0; padding-left: 0; list-style: none; color: var(--muted); }
.compare .good ul { color: var(--white); }
.compare li { margin-bottom: 12px; padding-left: 28px; position: relative; }
.compare .bad li::before {
  content: "✕";
  position: absolute; left: 0; top: 0;
  color: var(--status-red-strong);
  font-weight: 700;
}
.compare .good li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue-light);
  font-weight: 700;
}

/* Steps / werkwijze */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--blue-light);
}
.step .num::before { content: counter(step); }
.step h3 { margin: 4px 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* Pricing snippet */
.price-card {
  background: var(--surface);
  border: 1px solid rgba(94,177,255,0.35);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.price-card .amount { font-size: 2.6rem; font-weight: 800; color: var(--blue-light); }
.price-card .amount span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0; text-align: left; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.94rem; display: flex; gap: 10px; }
.price-card li:first-child { border-top: none; }
.price-card li::before { content: "✓"; color: var(--blue-light); font-weight: 700; }

.table-scroll { overflow-x: auto; }
table.fee-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.fee-table th, table.fee-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.94rem;
}
table.fee-table th { color: var(--blue-light); font-weight: 700; }
table.fee-table td { color: var(--muted); }
table.fee-table tr:last-child td { border-bottom: none; }
table.fee-table.is-wide th, table.fee-table.is-wide td { white-space: nowrap; }
table.fee-table.is-wide { min-width: 760px; }

/* Proof band (homepage case study teaser) */
.proof-band {
  background: linear-gradient(135deg, rgba(94,177,255,0.12), rgba(94,177,255,0.02));
  border: 1px solid rgba(94,177,255,0.3);
  border-radius: 20px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.proof-band .proof-stat { font-size: 2.4rem; font-weight: 800; color: var(--blue-light); white-space: nowrap; }
.proof-band .proof-stat span { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.proof-band-text { flex: 1; min-width: 240px; }
.proof-band-text h3 { margin: 0 0 8px; font-size: 1.3rem; }
.proof-band-text p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .proof-band { flex-direction: column; text-align: center; padding: 32px 24px; }
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(94,177,255,0.12), rgba(94,177,255,0.02));
  border: 1px solid rgba(94,177,255,0.3);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

/* Team */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2f7fd6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #06101d; font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(94,177,255,0.35);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.team-card .role { color: var(--blue-light); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.team-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Values */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-item { display: flex; gap: 16px; }
.value-item .mark { color: var(--blue-light); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.value-item h4 { margin: 0 0 6px; font-size: 1.02rem; }
.value-item p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Contact page */
.contact-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.calendly-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  overflow: hidden;
}
.calendly-embed {
  min-height: 620px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(94,177,255,0.03) 0 2px, transparent 2px 14px),
    var(--bg-alt);
  color: var(--muted);
  text-align: center;
  padding: 40px;
}
.calendly-embed .placeholder-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-dim); border: 1px solid rgba(94,177,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
}
.calendly-embed .placeholder-icon svg { width: 28px; height: 28px; }
.calendly-embed strong { color: var(--white); font-size: 1.05rem; }
.calendly-embed code {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 6px; color: var(--blue-light); font-size: 0.85rem;
}

.contact-alt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }

/* FAQ-ish */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item h4 { margin: 0 0 8px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.footer-note {
  color: var(--muted); font-size: 0.82rem; max-width: 320px;
}

.badge-soon {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--blue-light); background: var(--blue-dim);
  border: 1px solid rgba(94,177,255,0.3); padding: 2px 8px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle;
}

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

/* Marquee — infinite sliding strip */
.marquee-section {
  padding: 28px 0 60px;
  border-bottom: 1px solid var(--border);
}
.marquee-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-chip .flag { font-size: 1.05rem; }
.marquee-chip.is-hub { color: var(--blue-light); border-color: rgba(94,177,255,0.35); background: var(--blue-dim); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.grid-3 > .reveal:nth-child(2), .grid-2 > .reveal:nth-child(2), .value-list > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .contact-alt > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid-3 > .reveal:nth-child(3), .grid-2 > .reveal:nth-child(3), .value-list > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .contact-alt > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid-3 > .reveal:nth-child(4), .value-list > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid-3 > .reveal:nth-child(5), .steps > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: 0.4s; }
.cs-stat-hero-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.cs-stat-hero-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.cs-stat-hero-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.cs-stat-hero-grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.cs-stat-hero-grid > .reveal:nth-child(6) { transition-delay: 0.4s; }
.cs-timeline > .reveal:nth-child(3) { transition-delay: 0.1s; }
.cs-timeline > .reveal:nth-child(4) { transition-delay: 0.2s; }

/* Case study */
.cs-confidential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 20px;
}

.cs-relevance {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--blue-dim);
  border: 1px solid rgba(94,177,255,0.3);
  color: var(--white);
  font-size: 0.96rem;
}
.cs-relevance strong { color: var(--blue-light); }

.cs-quote {
  border-left: 3px solid var(--blue);
  padding: 22px 30px;
  margin: 40px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--white);
}
.cs-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Results showcase */
.cs-stat-hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-stat-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(94,177,255,0.25);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.cs-stat-hero::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(94,177,255,0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.cs-stat-hero .value { font-size: 2.15rem; font-weight: 800; color: var(--blue-light); letter-spacing: -0.01em; position: relative; }
.cs-stat-hero .value small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.cs-stat-hero .label { color: var(--muted); font-size: 0.88rem; margin-top: 10px; position: relative; }

/* Timeline */
.cs-timeline { position: relative; }
.cs-timeline-track {
  position: absolute;
  left: 23px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(94,177,255,0.55), rgba(94,177,255,0.05));
}
.cs-timeline-item { position: relative; padding: 0 0 52px 66px; }
.cs-timeline-item:last-child { padding-bottom: 0; }
.cs-timeline-dot {
  position: absolute; left: 0; top: 0;
  min-width: 48px; height: 48px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--blue-light); font-size: 0.85rem;
  box-shadow: 0 0 0 6px var(--blue-dim);
}
.cs-timeline-label {
  display: block;
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.cs-timeline-item h3 { margin: 0 0 12px; font-size: 1.35rem; }
.cs-timeline-item p { color: var(--muted); margin: 0 0 16px; max-width: 680px; }
.cs-timeline-item ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.cs-timeline-item li { margin-bottom: 8px; }
.cs-timeline-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-dim);
  border: 1px solid rgba(94,177,255,0.3);
  color: var(--blue-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 10px 10px 0;
}

/* Chart */
.cs-chart-wrap { margin-top: 8px; }
.cs-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cs-chart-line {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.6s ease 0.15s;
}
.cs-chart-wrap.is-visible .cs-chart-line { stroke-dashoffset: 0; }
.cs-chart-area { opacity: 0; transition: opacity 1.2s ease 0.6s; }
.cs-chart-wrap.is-visible .cs-chart-area { opacity: 1; }
.cs-chart-dot {
  opacity: 0;
  transform: scale(0.3);
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cs-chart-wrap.is-visible .cs-chart-dot { opacity: 1; transform: scale(1); }
.cs-chart-value {
  opacity: 0;
  transition: opacity 0.5s ease;
  font-weight: 700;
}
.cs-chart-wrap.is-visible .cs-chart-value { opacity: 1; }
.cs-chart-axis { fill: var(--muted); font-size: 12px; }

/* Methodology disclosure */
.cs-disclosure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--surface);
}
.cs-disclosure summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-light);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
}
.cs-disclosure summary::-webkit-details-marker { display: none; }
.cs-disclosure summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--muted);
}
.cs-disclosure[open] summary::before { transform: rotate(90deg); }
.cs-disclosure .cs-disclosure-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cs-disclosure ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.88rem; }
.cs-disclosure li { margin-bottom: 10px; }
.cs-disclosure li:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav-right > .btn-primary { display: none; }
  nav.links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--mobile-nav-backdrop);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-toggle-input:checked ~ nav.links { max-height: 420px; }
  nav.links a { padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  nav.links a:last-child { border-bottom: none; }
  .grid-3, .grid-2, .compare, .contact-alt, .value-list, .cs-stat-hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .cta-band { padding: 36px 24px; }
  .team-card { flex-direction: column; }
  .cs-timeline-item { padding-left: 58px; }
}

/* Book a call modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 13, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(94, 177, 255, 0.25);
  border-radius: 22px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(94, 177, 255, 0.25);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}
.modal-close:hover { color: var(--white); border-color: var(--blue); }

.modal-card h2 { margin: 0 0 8px; font-size: 1.5rem; padding-right: 30px; }
.modal-sub { color: var(--muted); font-size: 0.94rem; margin: 0 0 28px; }

.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-field { margin-bottom: 18px; }
.modal-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.modal-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}
.modal-field input::placeholder { color: rgba(154, 167, 194, 0.55); }
:root[data-theme="light"] .modal-field input::placeholder { color: rgba(85, 98, 122, 0.55); }
.modal-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }

/* Browsers render the "choose file" control as native OS chrome regardless of the
   input's own background/border — ::file-selector-button is the one part that can
   still be restyled, so the button itself matches the dark theme too. */
.modal-field input[type="file"] { padding: 9px 12px; color: var(--muted); font-size: 0.88rem; }
.modal-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.modal-field input[type="file"]::file-selector-button:hover { border-color: var(--blue); color: var(--blue-light); }

.modal-submit { width: 100%; justify-content: center; margin-top: 6px; }

.modal-success { display: none; text-align: center; padding: 12px 0; }
.modal-success.is-visible { display: block; }
.modal-success .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid rgba(94, 177, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue-light);
  font-size: 1.6rem;
}
.modal-form.is-hidden { display: none; }

@media (max-width: 560px) {
  .modal-card { padding: 30px 22px; }
  .modal-row { grid-template-columns: 1fr; }
}

.nav-links-login-mobile { display: none; }

/* FAQ page */
.faq-group { margin-bottom: 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-group-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue);
  flex-shrink: 0;
}
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-accordion .cs-disclosure summary { font-size: 1rem; }
.faq-accordion .cs-disclosure p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Auth / dashboard */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(94, 177, 255, 0.25);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.auth-card .logo { justify-content: center; margin-bottom: 28px; }
.auth-card h1 { font-size: 1.4rem; margin: 0 0 6px; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 0 0 28px; }
.auth-error {
  display: none;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.3);
  color: var(--status-red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.auth-error.is-visible { display: block; }

.dash-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.dash-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.dash-main { padding: 40px 0 80px; }
.dash-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-title-row h1 { margin: 0; font-size: 1.6rem; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dash-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--blue-light); }
.dash-stat .label { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

.dash-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto; /* wide tables scroll sideways inside the card instead of being clipped */
  overflow-y: hidden;
}
/* Tables with many columns (returns, leads): keep columns readable and let the wrapper scroll. */
table.dash-table.dash-table-wide { min-width: 1080px; }
table.dash-table.dash-table-wide th, table.dash-table.dash-table-wide td { padding-left: 12px; padding-right: 12px; }
table.dash-table.dash-table-wide td { white-space: nowrap; }
table.dash-table.dash-table-wide td.wrap-cell { white-space: normal; min-width: 150px; }
table.dash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.dash-table th {
  text-align: left; padding: 14px 16px; color: var(--blue-light);
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.dash-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--white); vertical-align: top; }
table.dash-table tr:last-child td { border-bottom: none; }
table.dash-table tr:hover td { background: rgba(94, 177, 255, 0.04); }
.dash-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

.status-select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: inherit;
}
.status-select.st-new { border-color: rgba(94,177,255,0.4); color: var(--blue-light); }
.status-select.st-contacted { border-color: rgba(255,159,67,0.4); color: var(--status-orange); }
.status-select.st-won { border-color: rgba(80,220,140,0.4); color: var(--status-green); }
.status-select.st-lost { border-color: rgba(255,90,90,0.4); color: var(--status-red); }

/* Reused by the returns/quality-check select fields on the inventory page:
   good = green (like st-won), bad = red (like st-lost), unchecked = neutral muted. */
.status-select.st-good { border-color: rgba(80,220,140,0.4); color: var(--status-green); }
.status-select.st-bad { border-color: rgba(255,90,90,0.4); color: var(--status-red); }
.status-select.st-unchecked { border-color: var(--border); color: var(--muted); }

.dash-loading { text-align: center; padding: 60px 20px; color: var(--muted); }

@media (max-width: 720px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-table-wrap { overflow-x: auto; }
  table.dash-table { min-width: 760px; }
  .dash-header .wrap { flex-wrap: wrap; row-gap: 12px; }
  .dash-header .logo-text .sub { display: none; }
  .dash-header .btn { padding: 9px 16px; font-size: 0.85rem; white-space: nowrap; }
}

/* Dashboard side nav (hamburger, admin + store portal) */
.dash-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 8px;
}
.dash-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.dash-side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 13, 0.6);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dash-side-overlay.is-open { opacity: 1; pointer-events: auto; }

.dash-side-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 100;
  padding: 24px 20px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-side-nav.is-open { transform: translateX(0); }
.dash-side-nav .dash-side-title {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px 4px;
}
.dash-side-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.dash-side-nav a:hover, .dash-side-nav a.active { background: var(--blue-dim); color: var(--blue-light); }

.dash-lang-switch { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 0.82rem; font-weight: 700; background: var(--surface); flex-shrink: 0; }
.dash-lang-switch a { display: flex; align-items: center; padding: 0 14px; color: var(--muted); }
.dash-lang-switch a:first-child { border-right: 1px solid var(--border); }
.dash-lang-switch a.lang-active-opt { background: var(--blue-dim); color: var(--blue-light); }

/* Light/dark theme toggle — same button markup/class reused on every page
   (public site header and the internal dashboard header alike). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--blue-light); border-color: var(--blue); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.dash-welcome { color: var(--muted); font-size: 1rem; margin: -20px 0 28px; }

/* Dashboard analytics */
.dash-section-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 20px; }
.chart-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.chart-card h3 { margin: 0 0 18px; font-size: 1rem; font-weight: 700; }
.chart-card .chart-empty { color: var(--muted); font-size: 0.88rem; padding: 20px 0; text-align: center; }

.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hbar-row:last-child { margin-bottom: 0; }
.hbar-label {
  width: 110px; flex-shrink: 0;
  font-size: 0.85rem; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hbar-track { flex: 1; height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light)); border-radius: 6px; transition: width 0.5s ease; }
.hbar-value { width: 32px; text-align: right; font-size: 0.85rem; font-weight: 700; color: var(--blue-light); flex-shrink: 0; }

.vbar-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-bottom: 10px; }
.vbar { flex: 1; background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-radius: 3px 3px 0 0; min-height: 2px; cursor: default; transition: opacity 0.15s ease; }
.vbar:hover { opacity: 0.75; }
.vbar-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.72rem; }

.week-compare { display: flex; align-items: baseline; gap: 10px; }
.week-compare .num { font-size: 1.6rem; font-weight: 800; color: var(--blue-light); }
.week-delta { font-size: 0.85rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.week-delta.up { color: var(--status-green); background: rgba(80,220,140,0.12); }
.week-delta.down { color: var(--status-red); background: rgba(255,90,90,0.12); }
.week-delta.flat { color: var(--muted); background: var(--surface-2); }

@media (max-width: 860px) {
  .chart-grid-2, .chart-grid-3 { grid-template-columns: 1fr; }
}

/* The theme toggle is one more item in an already-tight mobile header row
   (logo + Client Login + lang-switch + toggle + hamburger) — on narrow phones
   there isn't room for all of it, so Client Login moves into the hamburger
   dropdown instead of sitting in the header row, and the remaining controls
   tighten up a little. Placed at the end of the file so it reliably wins over
   the earlier same-specificity .theme-toggle / .lang-switch base rules. */
@media (max-width: 560px) {
  .nav-right { gap: 8px; }
  .nav-right > .client-login-link { display: none; }
  .nav-utility { gap: 8px; }
  .lang-switch a, .lang-switch span { padding: 0 10px; }
  .theme-toggle { width: 34px; height: 34px; }
  .nav-links-login-mobile { display: block; }
}

/* Desktop only: merge the language switch + theme toggle into a single
   bordered pill so the header reads as logo / nav links / Client Login /
   [one utility control] / Book a call, instead of a row of mismatched shapes
   (text link, pill, circle, button all butted up against each other). Mobile
   keeps its existing two-separate-controls look untouched, per request — it
   isn't cluttered there since the hamburger already collapses everything. */
@media (min-width: 861px) {
  .nav-utility {
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    overflow: hidden;
  }
  .nav-utility .lang-switch {
    border: none;
    border-radius: 0;
    background: transparent;
    border-right: 1px solid var(--border);
    /* Without this, lang-switch keeps its own short content-driven height
       (~13px) instead of nav-utility's full height (~40px, set by the taller
       theme-toggle) — the active-language highlight then only fills that
       short middle slice, so it doesn't reach the pill's rounded corner and
       looks like a stray rectangle rather than part of one shape. Stretching
       it flows down to the EN/NL links via lang-switch's own
       align-items: stretch, so the highlight fills the full pill height. */
    align-self: stretch;
  }
  .nav-utility .theme-toggle {
    border: none;
    border-radius: 0;
    background: transparent;
  }
}

/* =====================================================================
   Dashboard app shell + shared components (sidebar, KPI cards, toolbar,
   badges, toasts, confirm dialog). Patterns borrowed from the 21st.dev
   dashboard examples (fixed grouped sidebar, KPI grid, card-framed tables),
   rebuilt in plain CSS on top of the existing theme variables so light/dark
   keep working. Kept at the end of the file so it wins over earlier rules.
   ===================================================================== */
.btn-danger { background: transparent; border-color: rgba(255, 90, 90, 0.5); color: var(--status-red); }
.btn-danger:hover { background: rgba(255, 90, 90, 0.12); border-color: var(--status-red); }

/* Sidebar contents (used by both the mobile drawer and the desktop rail) */
.dash-side-nav { padding: 0; gap: 0; width: 260px; }
.dash-side-nav .side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1.05rem; border-radius: 0; }
.dash-side-nav .side-brand:hover { background: transparent; color: var(--white); }
.dash-side-nav .side-logo { width: 32px; height: 32px; flex-shrink: 0; }
.dash-side-nav .side-logo img { width: 100%; height: 100%; }
.dash-side-nav .side-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.dash-side-nav .side-brand-text small { font-size: 0.62rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.dash-side-nav .side-scroll { flex: 1; overflow-y: auto; padding: 16px 12px; }
.dash-side-nav .side-group { margin-bottom: 18px; }
.dash-side-nav .side-group-label { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 10px 8px; }
.dash-side-nav .side-scroll a, .dash-side-nav .side-foot > a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.dash-side-nav .side-scroll a:hover, .dash-side-nav .side-foot > a:hover { background: var(--blue-dim); color: var(--white); }
.dash-side-nav .side-scroll a.active, .dash-side-nav .side-foot > a.active { background: var(--blue-dim); color: var(--blue-light); }
.dash-side-nav .nav-ic { width: 18px; height: 18px; flex-shrink: 0; }
.dash-side-nav .side-foot { border-top: 1px solid var(--border); padding: 12px; }
.dash-side-nav .side-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px 4px; }
.dash-side-nav .side-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #7a7cff); color: #06101d; font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-side-nav .side-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dash-side-nav .side-user-text strong { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-side-nav .side-user-text small { color: var(--muted); font-size: 0.72rem; }

/* Desktop: fixed sidebar rail instead of the hamburger drawer */
@media (min-width: 981px) {
  body.has-sidebar { padding-left: 248px; }
  .dash-side-nav { transform: none; width: 248px; z-index: 60; }
  .dash-side-overlay { display: none; }
  .dash-menu-toggle, .dash-header-left { display: none !important; }
  .dash-header { padding: 12px 0; position: sticky; top: 0; z-index: 40; background: var(--header-backdrop); backdrop-filter: blur(10px); }
  .dash-header .wrap { justify-content: flex-end; }
  .dash-main .wrap, .dash-header .wrap { max-width: 1280px; }
  .dash-main { padding-top: 32px; }
}

/* Page title row */
.dash-title-row h1 { font-size: 1.7rem; letter-spacing: -0.01em; }
.dash-welcome { margin-top: -18px; }

/* KPI cards: label on top, big number below (DOM order stays num → label) */
.dash-stats { gap: 14px; }
.dash-stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.dash-stat .num { font-size: 1.9rem; letter-spacing: -0.02em; color: var(--white); line-height: 1.1; }
.dash-stat .label { margin: 0; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dash-stat.is-accent .num { color: var(--blue-light); }
.dash-stat.is-warn .num { color: var(--status-orange); }
.dash-stat.is-bad .num { color: var(--status-red); }

/* Toolbar: search + filter chips + actions */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar-spacer { flex: 1; }
.search-box { position: relative; flex: 1 1 240px; max-width: 360px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; padding: 10px 14px 10px 36px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--white); font-size: 0.9rem; font-family: inherit; box-sizing: border-box; }
.search-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.chip:hover { color: var(--white); border-color: var(--blue); }
.chip.is-active { background: var(--blue-dim); border-color: var(--blue); color: var(--blue-light); }
.chip .count { font-size: 0.72rem; opacity: 0.8; }
.toolbar select.status-select { padding: 9px 12px; min-width: 0; max-width: 100%; flex: 1 1 160px; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* Tables in a card frame with a calmer header row */
.dash-table-wrap { border-radius: 14px; }
table.dash-table th { color: var(--muted); background: var(--surface-2); font-size: 0.72rem; letter-spacing: 0.06em; padding: 12px 16px; }
table.dash-table th.is-sortable { cursor: pointer; user-select: none; }
table.dash-table th.is-sortable:hover { color: var(--white); }
table.dash-table th .sort-ind { margin-left: 4px; opacity: 0.6; }
table.dash-table td { vertical-align: middle; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--blue-light); border-color: var(--blue); }
.icon-btn.is-danger:hover { color: var(--status-red); border-color: var(--status-red); }
a.icon-btn { text-decoration: none; }
.inline-note { width: 100%; min-width: 140px; max-width: 240px; padding: 7px 10px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--white); font-size: 0.82rem; font-family: inherit; resize: vertical; min-height: 34px; box-sizing: border-box; }
.inline-note:focus { outline: none; border-color: var(--blue); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 0.82rem; }
.pager { display: flex; align-items: center; gap: 8px; }

/* Status badges (read-only) */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.75rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.is-good { color: var(--status-green); }
.badge.is-warn { color: var(--status-orange); }
.badge.is-bad { color: var(--status-red); }
.badge.is-info { color: var(--blue-light); }

/* Toasts */
#rv-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.rv-toast { pointer-events: auto; min-width: 220px; max-width: 360px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--status-green); color: var(--white); font-size: 0.88rem; font-weight: 600; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5); animation: rvToastIn 0.22s ease; }
.rv-toast.is-error { border-left-color: var(--status-red); }
.rv-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease; }
@keyframes rvToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Confirm dialog */
.rv-confirm-overlay { position: fixed; inset: 0; z-index: 310; background: rgba(5, 8, 13, 0.65); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.rv-confirm { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.rv-confirm h3 { margin: 0 0 8px; font-size: 1.1rem; }
.rv-confirm p { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; }
.rv-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Leads table: 10 columns — let text columns wrap so it fits without sideways scrolling on typical desktops */
table.dash-table.dash-table-leads th, table.dash-table.dash-table-leads td { padding-left: 12px; padding-right: 12px; }
table.dash-table.dash-table-leads td:first-child, table.dash-table.dash-table-leads td:nth-child(6) { white-space: nowrap; }
table.dash-table.dash-table-leads td:nth-child(5) { word-break: break-all; min-width: 150px; }
table.dash-table.dash-table-leads { min-width: 980px; }
table.dash-table.dash-table-leads .inline-note { min-width: 120px; max-width: 190px; }

.rv-prompt-input { width: 100%; padding: 11px 14px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--white); font-size: 0.95rem; font-family: inherit; box-sizing: border-box; }
.rv-prompt-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.hidden { display: none !important; }
.panel-row { margin-bottom: 24px; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; max-width: none; text-align: left; }
.dash-section-head h2 { margin: 0; font-size: 1.15rem; text-align: left; }

/* Store cards (Stores page) */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.store-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.15s ease, transform 0.15s ease; }
.store-card:hover { border-color: rgba(94,177,255,0.45); transform: translateY(-2px); }
.store-card-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.store-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-dim); color: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-ic svg { width: 20px; height: 20px; }
.store-card-title { flex: 1; min-width: 0; }
.store-card-title h3 { margin: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card-title small { color: var(--muted); font-size: 0.78rem; }
.store-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.store-stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.store-stat strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.store-stat span { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-owners-toggle { display: flex; align-items: center; justify-content: space-between; background: none; border: none; border-top: 1px solid var(--border); padding: 12px 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 700; cursor: pointer; font-family: inherit; width: 100%; }
.store-owners-toggle:hover { color: var(--white); }
.owner-list { display: flex; flex-direction: column; gap: 8px; }
.owner-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.owner-row .who { flex: 1; min-width: 0; line-height: 1.3; }
.owner-row .who strong { display: block; font-size: 0.85rem; }
.owner-row .who small { color: var(--muted); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed var(--border); border-radius: 16px; }

/* Bulk action bar (Inventory) */
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--blue-dim); border: 1px solid var(--blue); }
.bulk-bar strong { color: var(--blue-light); font-size: 0.88rem; }
.col-menu { position: relative; }
.col-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5); }
.col-menu-panel label { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 0.85rem; cursor: pointer; }
input[type=checkbox].cb { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
table.dash-table tr.is-selected td { background: var(--blue-dim); }
table.dash-table td.cb-cell, table.dash-table th.cb-cell { width: 36px; padding-right: 0; }
table.dash-table.hide-quality .col-quality, table.dash-table.hide-seal .col-seal, table.dash-table.hide-items .col-items, table.dash-table.hide-notes .col-notes, table.dash-table.hide-product .col-product, table.dash-table.hide-restock .col-restock { display: none; }
td.is-editable { cursor: text; }
td.is-editable:hover { background: rgba(94,177,255,0.06); }
td.is-editable input { width: 100%; min-width: 110px; padding: 6px 8px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--blue); color: var(--white); font-size: 0.88rem; font-family: inherit; box-sizing: border-box; }

/* Products: product group rows + totals footer */
table.dash-table tr.group-row td { background: var(--surface-2); font-weight: 700; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
table.dash-table tr.group-row .group-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
table.dash-table tr.group-row .group-title small { color: var(--muted); font-weight: 600; }
table.dash-table tr.total-row td { background: var(--surface-2); font-weight: 800; border-top: 1px solid var(--border); border-bottom: none; }
.qty-input { width: 84px; padding: 6px 10px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--white); font-size: 0.85rem; font-family: inherit; }
.qty-input:focus { outline: none; border-color: var(--blue); }

.crumb { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.crumb::before { content: "← "; }
.crumb:hover { color: var(--blue-light); }
.store-card-title h3 a.store-link { color: inherit; }
.store-card-title h3 a.store-link:hover { color: var(--blue-light); }

/* ============================================================
   Lead bento (dashboard.html) — one panel of tiles: trend line,
   win-rate ring, pipeline, recent leads, niches, country, source,
   revenue. Same fonts/colors/theme variables as the rest of the site.
   ============================================================ */
.bento {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; margin-bottom: 36px;
  animation: bento-panel 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
:root[data-theme="light"] .bento { background: var(--surface-2); }
@keyframes bento-panel { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@keyframes bento-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.bento-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 6px 16px; }
.bento-title { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 700; color: var(--white); }
.bento-title small { color: var(--muted); font-size: 0.82rem; font-weight: 500; margin-left: -4px; }
.bento-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.82rem; }
.bento-meta svg { width: 14px; height: 14px; }

.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; flex-shrink: 0; --dot: var(--status-green); }
.live-dot::before, .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); }
.live-dot::before { animation: live-pulse 2.4s ease-out infinite; }
.live-dot.is-sm { width: 6px; height: 6px; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(2.6); opacity: 0; } }

.bento-grid {
  display: grid; gap: 10px;
  grid-template-columns: 1.55fr 1fr 1fr 1.05fr;
  grid-auto-rows: minmax(112px, auto);
  grid-template-areas:
    "traffic traffic ring    pipeline"
    "traffic traffic focus   pipeline"
    "log     niche   niche   pipeline"
    "log     country source  source"
    "revenue revenue revenue revenue";
}
.bn-traffic { grid-area: traffic; } .bn-ring { grid-area: ring; } .bn-focus { grid-area: focus; }
.bn-pipeline { grid-area: pipeline; } .bn-log { grid-area: log; } .bn-niche { grid-area: niche; }
.bn-country { grid-area: country; } .bn-source { grid-area: source; } .bn-revenue { grid-area: revenue; }

.bn-cell {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  animation: bento-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(80ms + var(--i, 0) * 55ms);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}
.bn-cell:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 38%, var(--border)); }

.bn-label { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.bn-label svg { width: 13px; height: 13px; flex-shrink: 0; }
.bn-num { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.bn-num-md { font-size: 2rem; margin-top: 12px; }
.bn-num-sm { font-size: 1.55rem; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-sub { color: var(--muted); font-size: 0.8rem; }
.bn-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8rem; }
.bn-foot-split { justify-content: space-between; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.bn-foot-split b { color: var(--white); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.bento .chart-empty { color: var(--muted); font-size: 0.85rem; padding: 14px 0 4px; }

/* Trend line */
.bn-bignum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; }
.bn-chart { position: relative; flex: 1; min-height: 96px; margin-top: 14px; cursor: crosshair; touch-action: pan-y; }
.bn-chart svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  clip-path: inset(-6px 100% -6px -6px);
  transition: clip-path 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.bento.is-in .bn-chart svg { clip-path: inset(-6px -6px -6px -6px); }
.bn-area { fill: var(--blue); opacity: 0.1; }
.bn-line { fill: none; stroke: var(--blue-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bn-marker {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--blue-light); box-shadow: 0 0 0 3px var(--blue-dim);
  left: 100%; top: 94%; pointer-events: none;
  opacity: 0; transition: left 0.15s ease, top 0.15s ease, opacity 0.4s ease 1.5s;
}
.bento.is-in .bn-marker { opacity: 1; }
.bn-tip {
  position: absolute; pointer-events: none; z-index: 2; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 3px 8px; font-size: 0.75rem; font-weight: 600; color: var(--white);
  transform: translate(-50%, -150%); opacity: 0; transition: opacity 0.12s ease, left 0.15s ease, top 0.15s ease;
}
.bn-tip.is-on { opacity: 1; }
.bn-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 0.72rem; }

/* Win-rate ring */
.ring-wrap { flex: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-arc { fill: none; stroke: var(--status-green); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.25s cubic-bezier(0.22, 1, 0.36, 1); }
.ring-pct { fill: var(--white); font-size: 19px; font-weight: 800; font-family: inherit; }

/* Pipeline */
.pl-list { display: flex; flex-direction: column; justify-content: space-evenly; gap: 16px; margin-top: 14px; flex: 1; }
.pl-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.86rem; margin-bottom: 7px; }
.pl-name { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pl-val { display: flex; align-items: baseline; gap: 7px; }
.pl-val b { color: var(--white); font-variant-numeric: tabular-nums; }
.pl-val em { font-style: normal; color: var(--muted); font-size: 0.75rem; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.pl-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pl-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.pl-row[data-st="new"] { --c: var(--blue); }
.pl-row[data-st="contacted"] { --c: var(--status-orange-dot); }
.pl-row[data-st="won"] { --c: var(--status-green); }
.pl-row[data-st="lost"] { --c: var(--status-red-strong); }

/* Recent leads */
.lg-list { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; overflow: hidden; }
.lg-row { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; min-width: 0; }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--blue); }
.lg-dot.st-contacted { background: var(--status-orange-dot); }
.lg-dot.st-won { background: var(--status-green); }
.lg-dot.st-lost { background: var(--status-red-strong); }
.lg-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-who b { color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-who small { color: var(--muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-time { color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }

/* Top niches: stacked bar in a blue ramp */
.stack-bar { display: flex; height: 8px; margin-top: 16px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.sg { display: block; height: 100%; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
i.sg { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sg0 { background: var(--blue); }
.sg1 { background: color-mix(in srgb, var(--blue) 68%, transparent); }
.sg2 { background: color-mix(in srgb, var(--blue) 46%, transparent); }
.sg3 { background: color-mix(in srgb, var(--blue) 28%, transparent); }
.sg4 { background: color-mix(in srgb, var(--muted) 38%, transparent); }
.stack-legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sl { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.sl span { color: var(--white); max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl em { font-style: normal; font-size: 0.75rem; }

/* Compact bar rows (lead source) */
.mini-bars { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.mb-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.mb-label { width: 78px; flex-shrink: 0; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-track { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mb-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.mb-val { width: 22px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Revenue range: one column per bucket */
.rv-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
.rv-col { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.rv-col b { color: var(--white); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.rv-col small { color: var(--muted); font-size: 0.74rem; white-space: nowrap; }
.rv-bar { width: 100%; height: 54px; display: flex; align-items: flex-end; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.rv-bar span { display: block; width: 100%; height: 0; border-radius: 7px 7px 0 0; background: var(--blue); transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

@media (max-width: 980px) {
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-areas: none; }
  .bn-cell { grid-area: auto; }
  .bn-traffic, .bn-pipeline, .bn-niche, .bn-revenue { grid-column: 1 / -1; }
  .bn-chart { min-height: 120px; }
}
@media (max-width: 560px) {
  .bento { padding: 12px; border-radius: 16px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bn-cell { padding: 14px 16px; }
  .rv-cols { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento, .bn-cell, .live-dot::before { animation: none; }
  .bn-chart svg, .bn-marker, .pl-fill, .mb-fill, .sg, .rv-bar span, .ring-arc { transition: none; }
  .bn-chart svg { clip-path: none; }
  .bn-marker { opacity: 1; }
}

/* ============================================================
   Operations bento (returns + stock) — built by js/ops-bento.js on top of
   the lead-bento tiles above; only the grid layouts and a few extra
   status colors live here.
   ============================================================ */
.ops-ret .bento-grid {
  grid-template-areas:
    "trend  trend ring   pipe"
    "trend  trend wait   pipe"
    "recent prod  prod   pipe"
    "recent rest  extra  extra"
    "week   week  find   find";
}
.ops-ret.is-owner .bento-grid {
  grid-template-areas:
    "trend  trend ring   pipe"
    "trend  trend wait   pipe"
    "recent prod  prod   pipe"
    "recent rest  extra  extra"
    "week   week  find   find";
}
.ops-stock .bento-grid {
  grid-template-areas:
    "units  units ring   health"
    "units  units need   health"
    "low    low   prods  health"
    "low    low   extra  extra"
    "dist   dist  dist   dist";
}
.bento-grid > .o-trend { grid-area: trend; } .bento-grid > .o-ring { grid-area: ring; }
.bento-grid > .o-wait { grid-area: wait; } .bento-grid > .o-pipe { grid-area: pipe; }
.bento-grid > .o-recent { grid-area: recent; } .bento-grid > .o-prod { grid-area: prod; }
.bento-grid > .o-rest { grid-area: rest; } .bento-grid > .o-extra { grid-area: extra; }
.bento-grid > .o-week { grid-area: week; } .bento-grid > .o-find { grid-area: find; }
.bento-grid > .o-units { grid-area: units; } .bento-grid > .o-need { grid-area: need; }
.bento-grid > .o-health { grid-area: health; } .bento-grid > .o-low { grid-area: low; }
.bento-grid > .o-prods { grid-area: prods; } .bento-grid > .o-dist { grid-area: dist; }

.pl-row[data-st="pending"] { --c: var(--status-orange-dot); }
.pl-row[data-st="passed"], .pl-row[data-st="in"] { --c: var(--status-green); }
.pl-row[data-st="failed"], .pl-row[data-st="out"] { --c: var(--status-red-strong); }
.pl-row[data-st="low"] { --c: var(--status-orange-dot); }
.lg-dot.st-pending, .lg-dot.st-low { background: var(--status-orange-dot); }
.lg-dot.st-passed, .lg-dot.st-in { background: var(--status-green); }
.lg-dot.st-failed, .lg-dot.st-out { background: var(--status-red-strong); }
.lg-time b { color: var(--white); font-variant-numeric: tabular-nums; }
.bn-num.is-warn { color: var(--status-orange); }
.rv-cols.cols-7 { grid-template-columns: repeat(7, 1fr); }
.rv-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rv-cols.cols-5 { grid-template-columns: repeat(5, 1fr); }
.rv-bar span.is-bad { background: color-mix(in srgb, var(--status-red-strong) 70%, transparent); }
.o-units .mini-bars .mb-label, .o-extra .mini-bars .mb-label { width: 170px; }

@media (max-width: 980px) {
  .ops .bento-grid { grid-template-areas: none; }
  .bento-grid > .o-trend, .bento-grid > .o-pipe, .bento-grid > .o-recent, .bento-grid > .o-prod,
  .bento-grid > .o-extra, .bento-grid > .o-week, .bento-grid > .o-find, .bento-grid > .o-units,
  .bento-grid > .o-health, .bento-grid > .o-low, .bento-grid > .o-dist { grid-column: 1 / -1; }
  .bento-grid > .bn-cell.o-trend, .bento-grid > .bn-cell.o-ring, .bento-grid > .bn-cell.o-wait, .bento-grid > .bn-cell.o-pipe,
  .bento-grid > .bn-cell.o-recent, .bento-grid > .bn-cell.o-prod, .bento-grid > .bn-cell.o-rest, .bento-grid > .bn-cell.o-extra,
  .bento-grid > .bn-cell.o-week, .bento-grid > .bn-cell.o-find, .bento-grid > .bn-cell.o-units, .bento-grid > .bn-cell.o-need,
  .bento-grid > .bn-cell.o-health, .bento-grid > .bn-cell.o-low, .bento-grid > .bn-cell.o-prods, .bento-grid > .bn-cell.o-dist { grid-area: auto; }
}
@media (max-width: 560px) {
  .ops .bento-grid > .bn-cell { grid-column: 1 / -1; }
  .rv-cols.cols-7 { gap: 6px; }
  .rv-cols.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .rv-cols.cols-7 small, .rv-cols.cols-5 small { font-size: 0.68rem; }
  .o-units .mini-bars .mb-label, .o-extra .mini-bars .mb-label { width: 90px; }
}

/* ============================================================
   Home screen (home.html) — landing page after login: hero with a
   live "needs attention" card, then a compact page switcher.
   ============================================================ */
.home-root[hidden] { display: none; }
.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center;
  padding: 56px 52px; margin-bottom: 40px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 26px;
}
:root[data-theme="light"] .home-hero { background: var(--surface); }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(640px 340px at 6% -12%, var(--glow-a), transparent 70%),
    radial-gradient(560px 320px at 104% 112%, var(--glow-b), transparent 70%);
}
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at 12% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 95% at 12% 0%, #000 0%, transparent 72%);
}
.home-hero-copy > * { animation: bento-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: calc(60ms + var(--i, 0) * 80ms); }
.home-hero .eyebrow { margin-bottom: 18px; }
.home-date { color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; text-transform: capitalize; margin-bottom: 10px; }
.home-hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); margin: 0 0 18px; }
.home-hero .lede { margin: 0 0 30px; max-width: 520px; font-size: 1.06rem; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.home-att {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 20px; padding: 10px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.5);
  animation: bento-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: 0.3s;
}
.home-att-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.home-live { display: inline-flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.att-row {
  position: relative; display: grid; grid-template-columns: 10px 1fr auto 18px; align-items: center; gap: 14px;
  padding: 16px 14px; border-radius: 14px; color: var(--white);
  transition: background 0.18s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  animation: bento-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: calc(60ms + var(--i, 0) * 90ms);
}
.att-row + .att-row::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--border); }
.att-row:hover { background: var(--surface-2); transform: translateX(3px); }
.att-row:hover::before, .att-row:hover + .att-row::before { opacity: 0; }
.att-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-dim); }
.att-row[data-tone="warn"] .att-dot { background: var(--status-orange-dot); box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.14); }
.att-row.is-clear .att-dot { background: var(--status-green); box-shadow: 0 0 0 4px rgba(80, 220, 140, 0.14); }
.att-label { font-size: 0.95rem; font-weight: 600; }
.att-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.att-state { display: none; grid-column: 3; grid-row: 1; font-size: 0.8rem; font-weight: 700; color: var(--status-green); }
.att-row.is-clear .att-num { display: none; }
.att-row.is-clear .att-state { display: inline; }
.att-arrow { color: var(--muted); display: inline-flex; transition: transform 0.25s ease, color 0.2s ease; }
.att-arrow svg { width: 16px; height: 16px; }
.att-row:hover .att-arrow { transform: translateX(3px); color: var(--blue-light); }

.home-jump { margin-bottom: 18px; }
.home-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.home-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-group-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0 4px 2px; }
.home-link {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--white);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.25s ease;
  animation: bento-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: calc(350ms + var(--i, 0) * 60ms);
}
.home-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); box-shadow: 0 14px 34px -22px var(--blue); }
.hl-ic { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-dim); color: var(--blue-light); transition: background 0.2s ease, color 0.2s ease; }
.hl-ic svg { width: 20px; height: 20px; }
.home-link:hover .hl-ic { background: var(--blue); color: #fff; }
.hl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-text strong { font-size: 0.98rem; font-weight: 700; }
.hl-text small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.hl-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--blue-dim); color: var(--blue-light); white-space: nowrap; }
.hl-arrow { flex-shrink: 0; color: var(--muted); display: inline-flex; transition: transform 0.25s ease, color 0.2s ease; }
.hl-arrow svg { width: 16px; height: 16px; }
.home-link:hover .hl-arrow { transform: translateX(3px); color: var(--blue-light); }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .home-nav { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .home-hero { padding: 30px 20px; border-radius: 20px; }
  .home-ctas .btn { flex: 1 1 100%; text-align: center; }
  .att-row { padding: 14px 10px; gap: 12px; }
  .hl-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-copy > *, .home-att, .att-row, .home-link { animation: none; }
}

/* Touch targets on phones/tablets: the language pills were only ~13–21px tall (text height). Give them a
   comfortable tap area; the desktop merged pill (min-width: 981px) keeps its own sizing. */
@media (max-width: 980px) {
  .lang-switch a, .lang-switch span { padding: 10px 13px; }
  .dash-lang-switch a { padding: 10px 14px; }
  nav.links a { min-height: 44px; }
  .store-owners-toggle { min-height: 40px; }
  .rv-col small, .side-group-label, .logo-text .sub { font-size: 0.72rem; }
}

/* Small phones: with the side margin restored, logo + language pill + theme + menu need more room than
   360px offers, so tighten spacing first and, on the very smallest screens, show the icon only
   (it still links home). */
@media (max-width: 400px) {
  .store-grid { grid-template-columns: 1fr; }
  header.site .nav { padding-left: 16px; padding-right: 16px; }
  header.site .lang-switch a, header.site .lang-switch span { padding: 10px 9px; }
  header.site .nav-right, header.site .nav-utility { gap: 6px; }
  header.site .logo-text { font-size: 0.95rem; }
}
@media (max-width: 340px) {
  header.site .logo-text { display: none; }
}
