
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --card-hover: #ffffff;
  --card-border: #e2e8f0;
  --card-border-hover: #0284c7;
  --on-brand: #ffffff;
  --bg-soft: rgba(15, 23, 42, .045);
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand: #0891b2;
  --brand-dark: #0e7490;
  --brand-light: #e0f2fe;
  --brand-text: #0e7490;
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.08);

  --status-qc-pass: #059669;
  --status-qc-bg: #ecfdf5;
  --status-warn: #d97706;
  --status-warn-bg: #fffbeb;
  --status-alert: #dc2626;
  --status-alert-bg: #fef2f2;
  --status-info: #0284c7;
  --status-info-bg: #f0f9ff;

  --grad: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #0284c7 100%);
  --grad-subtle: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-pop: 0 20px 45px rgba(8, 145, 178, 0.14);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --nav-h: 70px;
  --container-max: 1240px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #090e17;
  --bg-alt: #0f172a;
  --card: #131d31;
  --card-hover: #17243d;
  --card-border: #1e2e4a;
  --card-border-hover: #38bdf8;
  --on-brand: #06131f;
  --bg-soft: rgba(148, 163, 184, .1);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #8b9cb3;
  --border: #1e293b;
  --border-strong: #334155;

  --brand: #22d3ee;
  --brand-dark: #0891b2;
  --brand-light: rgba(34, 211, 238, 0.12);
  --brand-text: #38bdf8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);

  --status-qc-pass: #10b981;
  --status-qc-bg: rgba(16, 185, 129, 0.15);
  --status-warn: #f59e0b;
  --status-warn-bg: rgba(245, 158, 11, 0.15);
  --status-alert: #ef4444;
  --status-alert-bg: rgba(239, 68, 68, 0.15);
  --status-info: #38bdf8;
  --status-info-bg: rgba(56, 189, 248, 0.15);

  --grad: linear-gradient(135deg, #0284c7 0%, #0891b2 55%, #22d3ee 100%);
  --grad-subtle: linear-gradient(180deg, #0f172a 0%, #090e17 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 20px 48px rgba(34, 211, 238, 0.12);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.96rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(var(--container-max), 92%);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
  position: relative;
  background: transparent;
}

.section.alt {
  background: color-mix(in srgb, var(--bg-alt) 35%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.section-head p {
  color: #f8fafc !important;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .section-head p {
  color: #f8fafc !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.9);
}

#navbar,
.navbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  height: 72px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
[data-theme="dark"] #navbar,
[data-theme="dark"] .navbar {
  background: rgba(7, 14, 25, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
}

body.nav-menu-open,
body.nav-menu-open #navbar,
body.nav-menu-open .navbar {
  z-index: 9999999 !important;
}
body.nav-menu-open {
  overflow: hidden !important;
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover {
  transform: translateY(-1px);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.brand:hover .brand-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 18px rgba(34, 211, 238, 0.35));
}
[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(34, 211, 238, 0.2));
}

.brand-erp-badge {
  display: none !important;
}

.badge-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.835rem;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  box-shadow: 0 3px 12px rgba(8, 145, 178, 0.32);
  font-weight: 700;
}

[data-theme="dark"] .nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  box-shadow: 0 0 16px rgba(8, 145, 178, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.83rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-nav-cta:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.38);
  transform: translateY(-1px);
}
.btn-nav-cta .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
  background: var(--card);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  overflow: visible;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.menu-toggle:hover {
  background: rgba(8, 145, 178, 0.18);
  border-color: #22d3ee;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.menu-toggle:active {
  transform: scale(0.9);
  transition-duration: 0.1s;
}

.menu-toggle.is-active,
.menu-toggle[aria-expanded="true"] {
  background: rgba(14, 116, 144, 0.3);
  border-color: #22d3ee;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5), inset 0 0 10px rgba(34, 211, 238, 0.25);
  transform: scale(1.02);
}

.menu-icon-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-bar-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.8);
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.dot-1 {
  width: 5px;
  height: 5px;
}

.dot-2 {
  width: 5px;
  height: 5px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.dot-3 {
  width: 5px;
  height: 5px;
}

.menu-toggle:hover .nav-bar-dot {
  background: #22d3ee;
  box-shadow: 0 0 14px #22d3ee, 0 0 22px rgba(34, 211, 238, 0.9);
  transform: scale(1.2);
}

.menu-toggle[aria-expanded="true"] .menu-icon-inner,
.menu-toggle.is-active .menu-icon-inner {
  transform: rotate(90deg);
}

.menu-toggle[aria-expanded="true"] .dot-1,
.menu-toggle.is-active .dot-1 {
  transform: translateY(6.5px) rotate(45deg);
  width: 18px;
  height: 2.5px;
  border-radius: 99px;
  background: #22d3ee;
  box-shadow: 0 0 14px #22d3ee;
}

.menu-toggle[aria-expanded="true"] .dot-2,
.menu-toggle.is-active .dot-2 {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle[aria-expanded="true"] .dot-3,
.menu-toggle.is-active .dot-3 {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 18px;
  height: 2.5px;
  border-radius: 99px;
  background: #22d3ee;
  box-shadow: 0 0 14px #22d3ee;
}

.menu-ripple-burst {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 2px solid #22d3ee;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.7);
}

.menu-toggle.clicked .menu-ripple-burst {
  animation: menuRippleBurst 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes menuRippleBurst {
  0% {
    transform: scale(0.7);
    opacity: 1;
    border-color: #22d3ee;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-color: transparent;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0);
  }
}

@media (max-width: 1180px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .nav-links a {
    padding: 11px 16px;
    font-size: 0.94rem;
    border-radius: 10px;
    display: block;
  }
  [data-theme="dark"] .nav-links {
    background: rgba(10, 20, 34, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 520px) {
  .navbar .nav-inner {
    padding: 0 16px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .btn-nav-cta {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 68px 0 48px;
  background: radial-gradient(1200px 700px at 50% -5%, rgba(15, 44, 74, 0.42) 0%, rgba(8, 23, 38, 0.16) 55%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.18) 0%, rgba(34, 211, 238, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
  width: 100%;
}

.hero-top-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.15);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 14px 0 20px;
  letter-spacing: -0.028em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 3px 10px rgba(0, 0, 0, 0.85);
  filter: none;
}

.hero-copy h1 .grad {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 740px;
  margin: 0 auto 26px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.8);
  filter: none !important;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 26px;
}

.hero-badges .pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.hero-badges .pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
  color: #ffffff;
}
.hero-badges .pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .btn {
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-cta .btn-primary {
  background: #0891b2;
  color: #ffffff;
  border: 1px solid #22d3ee;
}
.hero-cta .btn-primary:hover {
  background: #06b6d4;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.5);
}
.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.hero-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-cta .btn-outline {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.hero-cta .btn-outline:hover {
  background: rgba(14, 165, 233, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.showcase-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 38px;
}

.showcase-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.showcase-tab .tab-icon {
  font-size: 1rem;
}
.showcase-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
}
.showcase-tab.active {
  background: rgba(8, 145, 178, 0.22);
  border-color: #22d3ee;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.browser-mockup {
  background: #0f1d2d;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(8, 145, 178, 0.18);
  overflow: hidden;
  position: relative;
  transition: box-shadow .3s ease;
}
.browser-mockup:hover {
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.9), 0 0 55px rgba(34, 211, 238, 0.25);
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #0b1522;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dots {
  display: flex;
  gap: 7px;
}
.browser-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-actions {
  display: flex;
  gap: 8px;
}
.browser-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
}
.browser-action-btn:hover {
  background: #0891b2;
  color: #ffffff;
  border-color: #22d3ee;
}

.browser-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1918 / 907;
  min-height: 240px;
  background: #06111a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: height;
}

.showcase-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .45s ease, transform .45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(0.995);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #081420;
}
.showcase-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  cursor: zoom-in;
  transition: transform .3s ease;
}
.showcase-slide img:hover {
  transform: scale(1.006);
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 21, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.showcase-arrow:hover {
  background: #0891b2;
  border-color: #22d3ee;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.5);
}
.showcase-prev { left: 16px; }
.showcase-next { right: 16px; }

@media (max-width: 768px) {
  .showcase-arrow {
    width: 36px;
    height: 36px;
  }
  .showcase-prev { left: 8px; }
  .showcase-next { right: 8px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.45);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.stats-bar {
  background: transparent !important;
  border-bottom: none !important;
  border-top: none !important;
  padding: 18px 0 36px !important;
  position: relative;
  z-index: 5;
}

.stats-grid {
  width: 100% !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
  padding: 24px 20px !important;
  gap: 16px;
  background: rgba(11, 20, 36, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-num {
  font-size: clamp(2.2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Mobile Controls & Touch Guard Base (Hidden by default on desktop/laptop) */
.mobile-carousel-top,
.mobile-carousel-bottom,
.mobile-map-touch-guard {
  display: none;
}

/* Mobile Swipe Hint Indicator */
.mobile-swipe-hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  padding: 6px 14px 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-text);
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.24);
  border-radius: 999px;
  letter-spacing: 0.01em;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.08);
  width: fit-content;
}

[data-theme="dark"] .mobile-swipe-hint {
  color: #38bdf8;
  background: rgba(14, 116, 144, 0.22);
  border-color: rgba(56, 189, 248, 0.32);
}

.mobile-swipe-hint .swipe-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  flex-shrink: 0;
  animation: pulse-ring 2s infinite;
}

.mobile-swipe-hint .swipe-arrows {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  animation: swipeArrowNudge 1.6s ease-in-out infinite;
}

@keyframes swipeArrowNudge {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(5px); opacity: 1; }
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.ov-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ov-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.ov-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.ov-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.ov-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.module-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.search-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.search-box {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.search-box:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}

.chip-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.m-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: card-in 0.35s ease both;
  cursor: pointer;
}

.m-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.m-card.hide {
  display: none;
}

.m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.m-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-text);
  display: grid;
  place-items: center;
}

.m-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

.m-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.m-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.m-submodules {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-explore-btn {
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
}

.biz-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 34px;
}

.biz-view-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.segmented-control {
  display: inline-flex;
  background: var(--card);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.seg-btn {
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.seg-btn.active {
  background: var(--brand);
  color: #fff;
}

.biz-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.b-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: card-in 0.35s ease both;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.b-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
}

.b-card.hide {
  display: none;
}

.b-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-text);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

.b-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.b-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.b-core-need {
  background: var(--bg-alt);
  border-left: 3px solid var(--brand);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 18px;
}

.b-points {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.b-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.b-points li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--status-qc-pass);
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.biz-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 780px;
}

.biz-matrix-table th,
.biz-matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.biz-matrix-table th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.biz-matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-check {
  color: var(--status-qc-pass);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.matrix-cross {
  color: var(--text-subtle);
  opacity: 0.5;
}

.matrix-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-text);
}

.workflow-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.wf-selector-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.wf-selector-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.wf-selector-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.flow-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}

.flow-step .fs-num {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.74rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 800;
}

.flow-step:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.flow-step.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
  color: var(--brand-text);
}

.flow-step.active .fs-num {
  background: var(--brand);
  color: #fff;
}

.flow-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  min-height: 220px;
  transition: opacity 0.2s ease;
}

.flow-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.flow-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.fp-role-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-panel .fp-sub {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.flow-panel .fp-what {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 22px;
}

.flow-auto-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.flow-auto-title {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-auto-title svg {
  color: var(--status-qc-pass);
}

.flow-auto-list {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}

.flow-auto-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-auto-list li svg {
  color: var(--status-qc-pass);
  flex-shrink: 0;
}

.tech-architecture-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tech-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tech-domain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.tech-domain-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tech-stack-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
}

.tech-name {
  font-weight: 700;
  color: var(--text);
}

.tech-role {
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.shot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.img-slot {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.img-slot.loaded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-scaffold {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--brand) 7%, var(--bg-alt)), var(--bg-alt));
  border-bottom: 1px solid var(--border);
}

.ph-header {
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}

.ph-dots {
  display: flex;
  gap: 5px;
}

.ph-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.ph-title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.ph-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-light);
  color: var(--brand-text);
}

.ph-body {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.ph-blueprint-grid {
  position: absolute;
  inset: 12px;
  opacity: 0.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.ph-stat-row {
  display: flex;
  gap: 8px;
}

.ph-stat-card {
  flex: 1;
  height: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
}

.ph-chart-block {
  height: 48px;
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  position: relative;
}

.ph-mesh-node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.ph-table-lines {
  display: grid;
  gap: 4px;
}

.ph-row {
  height: 6px;
  background: var(--border);
  border-radius: 2px;
}

.ph-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ph-center-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

.ph-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.ph-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.4;
}

.ph-action-hint {
  font-size: 0.68rem;
  color: var(--brand-text);
  font-weight: 600;
  margin-top: 4px;
}

.shot-caption {
  padding: 16px 18px;
}

.shot-caption h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.shot-caption p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
  position: relative;
  padding: 34px;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: var(--text);
  background: var(--border);
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.modal-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-text);
  margin: 18px 0 10px;
}

.modal-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.modal-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--status-qc-pass);
}

.modal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.contact-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 34px;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

.contact-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 12px 0 14px;
}

.contact-card p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-phones-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto 28px;
  max-width: 720px;
}

.contact-phone-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: rgba(8, 145, 178, 0.05);
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-phone-card {
  background: rgba(14, 116, 144, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.contact-phone-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), rgba(2, 132, 199, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.contact-phone-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.22);
  color: var(--text);
}

.contact-phone-card:hover::after {
  opacity: 1;
}

.contact-phone-card:active {
  transform: translateY(-1px) scale(0.99);
}

.phone-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
  transition: transform 0.25s ease;
}

.contact-phone-card:hover .phone-icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}

.phone-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.phone-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 2px;
}

[data-theme="dark"] .phone-label {
  color: #38bdf8;
}

.phone-val {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.phone-arrow {
  color: var(--text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 4px;
}

.contact-phone-card:hover .phone-arrow {
  transform: translateX(3px);
  color: var(--brand);
}

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer .small {
  font-size: 0.8rem;
  color: var(--text-subtle);
  max-width: 650px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .nav-links {
    position: fixed !important;
    top: var(--nav-h) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - var(--nav-h)) !important;
    max-height: calc(100dvh - var(--nav-h)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #030712 !important;
    border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-bottom: none !important;
    padding: 24px 20px 48px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 9999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-12px) scale(0.99) !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.98) !important;
    box-sizing: border-box !important;
  }
  .nav-links.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }
  .nav-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }
  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(8, 145, 178, 0.35) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
  }
  .nav-links a.active {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.7) 0%, rgba(8, 145, 178, 0.9) 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  }
  .menu-toggle {
    display: grid;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.nav-menu-open {
  overflow: hidden !important;
  touch-action: none !important;
}

@media (max-width: 540px) {
  .section {
    padding: 60px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .flow-panel {
    padding: 24px;
  }
}

:root {

  --lo-grid: rgba(148, 163, 184, 0.18);
  --lo-region: rgba(8, 145, 178, 0.09);
  --lo-region2: rgba(14, 116, 144, 0.07);
  --lo-region3: rgba(2, 132, 199, 0.06);
  --lo-route: #0284c7;
  --lo-route2: #0891b2;
  --lo-route3: #06b6d4;
  --lo-hub: #0e7490;
  --lo-reefer: #0284c7;
  --lo-ambient: #10b981;
  --lo-live: #0891b2;
  --lo-eta: #f59e0b;
  --lo-path-dash: 2 9;
}

[data-theme="dark"] {
  --lo-grid: rgba(148, 163, 184, 0.1);
  --lo-region: rgba(34, 211, 238, 0.1);
  --lo-region2: rgba(56, 189, 248, 0.08);
  --lo-region3: rgba(14, 116, 144, 0.12);
  --lo-route: #38bdf8;
  --lo-route2: #22d3ee;
  --lo-route3: #67e8f9;
  --lo-hub: #38bdf8;
  --lo-reefer: #38bdf8;
  --lo-ambient: #34d399;
  --lo-live: #22d3ee;
  --lo-eta: #fbbf24;
}

.stats-grid {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 1040px !important;
    margin-inline: auto !important;
  }
}
@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
    padding: 16px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    border-radius: 16px;
  }
}

.live-ticker {
  position: relative;
  margin-top: 36px;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px 8px 8px;
  background: rgba(11, 20, 36, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  --ticker-speed: 85s;
  z-index: 5;
}

.live-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: #091322;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2), 8px 0 16px rgba(11, 20, 36, 0.95);
  margin-right: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 8px #ef4444, 0 0 14px rgba(239, 68, 68, 0.8);
  animation: live-dot-pulse 1.6s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65), 0 0 8px #ef4444; }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 0 4px #ef4444; }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 0 #ef4444; }
}

.live-ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 16px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 16px, black calc(100% - 24px), transparent 100%);
}

.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  white-space: nowrap;
  flex-shrink: 0;
  will-change: transform;
}

.live-ticker-track.scrolling .ticker-inner {
  animation: ticker-inner-scroll var(--ticker-speed) linear infinite;
}

.live-ticker:hover .ticker-inner {
  animation-play-state: paused;
}

@keyframes ticker-inner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.ticker-item {
  font-size: 0.85rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-item b { color: #f1f5f9; font-weight: 600; }
.ticker-item em { font-style: normal; color: #38bdf8; font-weight: 700; }
.ticker-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

.lo-panel {
  display: none;
  animation: card-in 0.4s ease both;
}

.lo-panel.active {
  display: block;
}

.lo-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.72fr;
  gap: 20px;
  align-items: start;
}

.lo-map-card,
.lo-side-card,
.chart-card,
.live-kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lo-map-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.lo-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lo-map-title h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.lo-map-title small {
  color: var(--text-subtle);
  font-size: 0.78rem;
}

.fas-truck {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  position: relative;
}

.lo-legend,
.lo-map-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.lo-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lo-legend .lg i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mapsvg-wrap {
  flex: 0 0 532px;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.mapsvg-wrap.territory { flex: 0 0 558px; }
@media (max-width: 860px) {
  .mapsvg-wrap, .mapsvg-wrap.territory { flex: 0 0 320px; }
}

.mapsvg-wrap > svg#fleetMap,
.mapsvg-wrap > svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mapsvg-wrap text {
  fill: var(--text-subtle);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.route {
  stroke-dasharray: var(--lo-path-dash);
  stroke-linecap: round;
}

.veh {
  transition: transform 0.35s linear;
}

.veh circle:last-child {
  stroke: var(--card);
  stroke-width: 2.5;
}

.veh-pulse {
  animation: lo-pulse 2.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes lo-pulse {
  0% { r: 10px; opacity: 0.5; }
  70% { r: 20px; opacity: 0; }
  100% { r: 20px; opacity: 0; }
}

.lo-map-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.fa-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.map-ping {
  animation: lo-ping 1.8s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes lo-ping {
  0% { r: 6px; opacity: 0.8; }
  100% { r: 18px; opacity: 0; }
}

.hub text {
  font-weight: 700;
  fill: var(--text-muted);
}

.lo-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lo-filter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lo-filter[data-active="true"] {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: var(--on-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.lo-filter-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.lo-filter-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.lo-filter[data-active="true"] .lo-filter-kicker { color: var(--brand-text); }
.lo-filter-txt strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-surface);
  overflow-wrap: anywhere;
}
.lo-filter-txt span:last-child {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--on-surface-2);
  overflow-wrap: anywhere;
}
.lo-filter-clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-text);
  border: 1px solid var(--brand-text);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .18s, transform .12s;
}
[data-theme="dark"] .lo-filter-clear {
  color: #06131f;
  background: var(--brand);
  border-color: var(--brand);
}
.lo-filter-clear:hover { filter: brightness(1.1); }
.lo-filter-clear:active { transform: translateY(1px); }
.lo-filter-clear:focus-visible {
  outline: 2px solid var(--on-surface);
  outline-offset: 2px;
}

.leaflet-marker-icon.lo-masked,
.leaflet-tooltip.lo-masked { display: none !important; }

.lo-side-card {
  padding: 18px;
  flex: 1;
}

.lo-side-card h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.veh-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.veh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.82rem;
}

.veh-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  border-radius: 5px;
}

.veh-name {
  flex: 1;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
}

.veh-name small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.veh-temp {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--status-qc-bg);
  color: var(--status-qc-pass);
}

.veh-temp.warn {
  background: var(--status-warn-bg);
  color: var(--status-warn);
}

.veh-temp.crit {
  background: var(--status-alert-bg);
  color: var(--status-alert);
  animation: live-dot-pulse 1.4s ease-out infinite;
}

.veh-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.event-feed {
  list-style: none;
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: hidden;
}

.event-feed li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.82rem;
  animation: card-in 0.35s ease both;
}

.ev-time {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.ev-txt {
  color: var(--text-muted);
}

.mapsvg-wrap.territory .terr text {
  text-anchor: middle;
  font-weight: 700;
  fill: var(--text);
}
.terr-sub { font-weight: 600 !important; fill: var(--text-muted) !important; font-size: 10px !important; }

.terr-hi { fill: rgba(5, 150, 105, 0.16); stroke: #059669; stroke-width: 1.5; stroke-dasharray: 5 4; }
.terr-md { fill: rgba(217, 119, 6, 0.14); stroke: #d97706; stroke-width: 1.5; stroke-dasharray: 5 4; }
.terr-lo { fill: rgba(220, 38, 38, 0.13); stroke: #dc2626; stroke-width: 1.5; stroke-dasharray: 5 4; }
[data-theme="dark"] .terr-hi { fill: rgba(16, 185, 129, 0.16); }
[data-theme="dark"] .terr-md { fill: rgba(245, 158, 11, 0.14); }
[data-theme="dark"] .terr-lo { fill: rgba(239, 68, 68, 0.15); }

.mr-agent text {
  fill: var(--text-muted);
  font-weight: 700;
  font-size: 10px;
}

.terr-bars {
  list-style: none;
  display: grid;
  gap: 12px;
}

.terr-bars li {
  display: grid;
  grid-template-columns: 74px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.terr-bars li span,
.terr-bars li b {
  font-weight: 700;
  color: var(--text);
}

.terr-bars .bar {
  height: 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.terr-bars .bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  animation: bar-grow 1s ease both;
  transform-origin: left;
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lo-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lo-kpi {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lo-kpi .k-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.lo-kpi .k-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-text);
  letter-spacing: -0.02em;
}

.lo-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.live-kpi-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.klabel {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.knum {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.grad-num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kdelta {
  font-size: 0.78rem;
  font-weight: 700;
}

.kdelta.up { color: var(--status-qc-pass); }
.kdelta.down { color: var(--status-warn); }
.kdelta.warn2 { color: var(--text-subtle); }

.lo-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.chart-card {
  padding: 20px;
}

.chart-card.wide {
  grid-column: 1 / 2;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.chart-head h4 {
  font-size: 0.98rem;
}

.chart-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-light);
  padding: 3px 9px;
  border-radius: 999px;
}

.barchart,
.linechart {
  height: 230px;
  position: relative;
  overflow: hidden;
}

.barchart svg,
.linechart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.barchart .bbar {
  animation: bar-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom;
  transform-box: fill-box;
}

.area-path {
  fill: url(#chartArea);
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.sec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sec-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.sec-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.sec-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.sec-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.integrations {
  text-align: center;
  margin-top: 10px;
}

.integrations-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.int-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.int-chip {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.int-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-qc-pass);
}

.int-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .lo-grid {
    grid-template-columns: 1fr;
  }
  .lo-charts {
    grid-template-columns: 1fr;
  }
  .chart-card.wide {
    grid-column: 1 / 2;
  }
  .live-ticker {
    flex-direction: column;
    align-items: flex-start;
  }
  .live-ticker-track {
    width: 100%;
    padding-top: 2px;
  }
}

@media (max-width: 540px) {
  .lo-analytics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .event-feed {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-ticker-track.scrolling .ticker-inner,
  .road-line,
  .veh-pulse,
  .map-ping {
    animation: none !important;
  }
}

.ph-body {
  position: relative;
}

.ph-ui-mode .ph-blueprint-grid {
  display: none;
}

.ph-ui-mode .ph-overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  padding: 26px 14px 12px;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 96%, transparent) 55%, var(--bg) 100%);
}

.ph-ui-mode .ph-center-icon,
.ph-ui-mode .ph-action-hint {
  display: none;
}

.ph-ui-mode .ph-label {
  font-size: 0.98rem;
}

.ph-ui-mode .ph-desc {
  font-size: 0.8rem;
}

.ph-ui {
  position: absolute;
  inset: 34px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: var(--shadow);
}

.phu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phu-dash {
  gap: 10px;
}

.phu-stat {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  font-size: 0.74rem;
}

.phu-stat span {
  color: var(--text-subtle);
  font-weight: 600;
}

.phu-stat b {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phu-stat em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.phu-up { color: var(--status-qc-pass) !important; }
.phu-down { color: var(--status-warn) !important; }

.phu-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 58px;
}

.phu-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: var(--grad);
  opacity: 0.85;
}

.phu-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.phu-row span { color: var(--text); font-weight: 600; }
.phu-row b { color: var(--text); font-weight: 700; }
.phu-row i { font-style: normal; opacity: 0.85; }
.phu-row em { font-style: normal; font-weight: 700; color: var(--text); }

.phu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.phu-title b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  margin-right: 7px;
}

.phu-pill {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-text);
}

.phu-ok { background: var(--status-qc-bg) !important; color: var(--status-qc-pass) !important; }
.phu-warn { background: var(--status-warn-bg) !important; color: var(--status-warn) !important; }
.phu-check { background: var(--status-info-bg) !important; color: var(--status-info) !important; }
.phu-check2 {
  font-style: normal;
  font-weight: 800;
  font-size: 0.66rem;
  color: var(--status-qc-pass);
}

.phu-zone {
  gap: 8px;
}

.phu-rail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.phu-rail i {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-subtle);
}

.phu-rail i.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.phu-batch {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  border-left: 3px solid var(--brand);
  background: var(--brand-light);
  font-size: 0.78rem;
}

.phu-batch span { font-weight: 800; color: var(--brand-text); }
.phu-batch b { font-weight: 700; color: var(--text); }
.phu-batch em { font-style: normal; font-weight: 700; font-size: 0.7rem; color: var(--brand-text); }

.phu-gaugebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
}

.phu-gaugebar label { font-weight: 700; color: var(--text-subtle); }
.phu-gaugebar > i {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: block;
}
.phu-gaugebar > i b { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.phu-gaugebar em { font-style: normal; font-weight: 800; color: var(--brand-text); }

.phu-exp {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: block;
}

.phu-exp b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--status-alert), var(--status-warn), var(--status-qc-pass));
}

.phu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  font-size: 0.72rem;
}

.phu-foot b { color: var(--text); font-weight: 700; }
.phu-foot i { font-style: normal; color: var(--text-muted); }

.phu-tree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.35;
}

.phu-tree span {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-subtle);
}

.phu-tree span b { color: var(--brand-text); }

.phu-arrow { font-style: normal; color: var(--brand); font-weight: 800; }

.phu-minimap {
  width: 100%;
  height: 58px;
  color: var(--brand);
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-alt);
}

.phu-temp {
  font-weight: 800;
  color: var(--status-qc-pass) !important;
  background: var(--status-qc-bg);
  padding: 2px 8px;
  border-radius: 999px;
}

.phu-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
}

.phu-amount span { font-size: 0.74rem; opacity: 0.9; }
.phu-amount b { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }

.phu-chip2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
}

.phu-chip2 span { color: var(--text-muted); font-weight: 600; }
.phu-chip2 i {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: block;
}
.phu-chip2 i b { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.phu-chip2 em { font-style: normal; font-weight: 700; color: var(--text); }

.phu-code {
  font-family: var(--mono, ui-monospace, 'JetBrains Mono', monospace) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.02em;
  background: var(--bg-alt);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.phu-visit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.phu-visit b { color: var(--text); font-weight: 600; }
.phu-visit em { font-style: normal; color: var(--text-subtle); font-size: 0.7rem; }

.phu-geo {
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand);
  display: inline-block;
}

@media (max-width: 540px) {
  .phui {
    inset: 26px 8px 0;
  }
  .phu-stat {
    grid-template-columns: 1fr auto;
  }
}

.lo-map-head-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mapsvg-wrap {
  position: relative;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.feed-badge.live  { color: #052e16; background: #4ade80; border-color: #22c55e; }
.feed-badge.demo  { color: #7c2d12; background: #fdba74; border-color: #f97316; }
.feed-badge.stale { color: #7f1d1d; background: #fca5a5; border-color: #ef4444; }
body.dark .feed-badge.live  { color: #dcfce7; }
body.dark .feed-badge.demo  { color: #ffedd5; }
body.dark .feed-badge.stale { color: #fee2e2; }

.fleet-live-wrap {
  position: absolute;
  inset: 0;
}
.fleet-live-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 320px;
  background: #e8edf2;
}

.feed-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  border-radius: inherit;
}
.feed-overlay-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(2, 6, 23, 0.78);
  padding: 12px 18px;
  border-radius: 12px;
}
.feed-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: #22d3ee;
  animation: lo-fspin 0.8s linear infinite;
}
@keyframes lo-fspin {
  to { transform: rotate(360deg); }
}

.lo-hmark  { width: 18px; height: 18px; position: relative; display: block; }
.lo-hmark .lo-hdot {
  position: absolute; inset: 5px;
  background: #2563eb; border: 2px solid #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(2, 6, 23, 0.5);
}
.lo-hmark.hq .lo-hdot { background: #7c3aed; border-radius: 50%; }
.lo-hmark.cold .lo-hdot { background: #0891b2; }
.lo-hmark.cold::after {
  content: "?"; font-size: 9px; position: absolute;
  right: -6px; top: -6px; color: #0ea5e9; background:#fff;
  border-radius: 50%; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(2,6,23,.4);
}

.lo-dmark { width: 18px; height: 18px; position: relative; display: block; }
.lo-dmark .lo-ddot {
  position: absolute; inset: 6px;
  background: var(--dc); border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(2, 6, 23, 0.45);
}
.lo-dmark::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--dc); opacity: 0.22;
  animation: lo-dpulse 2.2s ease-out infinite;
}
@keyframes lo-dpulse {
  0%   { transform: scale(0.6); opacity: 0.3; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.lo-vmark { width: 14px; height: 14px; position: relative; display: block; }
.lo-vmark .lo-vdot {
  position: absolute; inset: 2px; border-radius: 50%;
  background: #0284c7; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(2, 6, 23, 0.5);
}
.lo-vmark.live { animation: lo-dpulse 2.2s ease-out infinite; }
.lo-vmark.live .lo-vdot { background: #10b981; }
.lo-vmark.stale .lo-vdot { background: #f59e0b; }
.lo-vmark.off   .lo-vdot { background: #94a3b8; }

.leaflet-popup-content-wrapper,
.leaflet-popup-tip { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 8px 28px rgba(2,6,23,.28); }
.leaflet-popup-content { margin: 12px 14px; line-height: 1.35; }
.lo-pop-title { font-weight: 800; font-size: 0.88rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lo-pop-row { font-size: 0.76rem; color: var(--text-subtle); margin-top: 3px; }
.lo-pop-row b { color: var(--text); font-weight: 700; }
.lo-chip {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor;
}
.leaflet-container { font-family: var(--font-sans); z-index: 0; }
.leaflet-container a { color: var(--brand); }
.leaflet-control-attribution { font-size: 9px !important; }

.veh-row.real { cursor: pointer; transition: background 0.15s; }
.veh-row.real:hover { background: rgba(34, 211, 238, 0.08); }
.veh-row.real .veh-name small { display: block; }

#loFleet .lo-grid {
  height: auto;
  min-height: 0;
  grid-template-rows: minmax(0, auto);
}
#loFleet .lo-map-card {
  min-height: 0;
  overflow: hidden;
}
#loFleet .lo-fs-hint { color: var(--text-subtle); font-size: 11px; }
#loFleet .lo-side { min-height: 0; display: flex; flex-direction: column; gap: 20px; }
#loFleet .mapsvg-wrap {
  flex: 0 0 532px;
  min-height: 320px;
}
#loFleet .mapsvg-wrap,
#loFleet .mapsvg-wrap svg,
#loFleet .lo-side-card {
  min-height: 0;
}
#loFleet .lo-side-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#loFleet .lo-side-card:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
#loFleet .veh-list {
  flex: 1 1 auto;
  max-height: 350px;
  overflow-y: auto;
  min-height: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.4) transparent;
}
#loFleet .event-feed {
  flex: 1 1 auto;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.4) transparent;
}
@media (max-width: 960px) {
  #loFleet .lo-grid {
    height: auto;
  }
  #loFleet .veh-list,
  #loFleet .event-feed {
    max-height: 320px;
  }
}

.lo-hmark { width: 34px; height: 36px; line-height: 0; filter: drop-shadow(0 2px 3px rgba(2,6,23,.45)); }
.lo-hmark svg, .lo-vmark svg, .lo-dmark svg { display: block; }

.lo-vmark { width: 40px; height: 26px; line-height: 0; position: relative; filter: drop-shadow(0 2px 3px rgba(2,6,23,.5)); }
.lo-vmark.live::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: #10b981; opacity: 0.25;
  animation: lo-dpulse 2.2s ease-out infinite;
}

.lo-dmark { width: 26px; height: 34px; line-height: 0; position: relative; filter: drop-shadow(0 2px 3px rgba(2,6,23,.4)); }
.lo-dmark::after {
  content: ""; position: absolute; left: 50%; top: 13px;
  width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%; background: var(--dc); opacity: 0.2;
  animation: lo-dpulse 2.4s ease-out infinite;
}

.leaflet-popup-content { margin: 0; width: auto !important; }
.lo-pop { border-radius: 12px; overflow: hidden; }
.lo-pop-head {
  color: var(--ink, var(--text)); font-weight: 800; font-size: 0.82rem;
  padding: 9px 13px; display: flex; align-items: center; gap: 8px;
  justify-content: space-between;
}
.lo-pop-head-chip {
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45);
  padding: 1px 8px; border-radius: 999px; font-size: 0.66rem;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.lo-pop-body { padding: 10px 13px 12px; background: var(--card); }
.lo-pop-row {
  display: flex; gap: 10px; font-size: 0.75rem; color: var(--text-subtle);
  padding: 3px 0; border-bottom: 1px dashed var(--border);
}
.lo-pop-row:last-child { border-bottom: 0; }
.lo-pop-row b { color: var(--text); font-weight: 700; min-width: 92px; flex: 0 0 92px; }
.lo-pop-row span { flex: 1; word-break: break-word; }

.veh-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
  border: 1px solid currentColor; flex: 0 0 auto;
}
.veh-row.real { align-items: center; gap: 8px; }
.veh-row.real .veh-name { display: flex; flex-direction: column; line-height: 1.25; }
.veh-row.real .veh-name small { font-size: 0.66rem; opacity: 0.85; }
.veh-row.real .veh-status { font-size: 0.68rem; font-weight: 700; text-align: right; }

#loTerritory .mapsvg-wrap { min-height: 560px; }
#loTerritory .lo-side .lo-side-card { min-height: 180px; }

.lo-mapfs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lo-mapfs-btn {
  font: 700 12px/1.2 var(--font-sans);
  letter-spacing: .04em;
  color: #f1f5f9;
  background: rgba(11, 20, 36, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  z-index: 1000;
}
.lo-mapfs-btn:hover,
.lo-mapfs-btn:active,
.lo-mapfs-btn.on {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.6);
}
.lo-mapfs-btn svg {
  display: inline-block;
  flex-shrink: 0;
}

body.map-is-fullscreen {
  overflow: hidden !important;
  touch-action: none !important;
}

body.map-is-fullscreen .navbar,
body.map-is-fullscreen .scroll-progress-bar,
body.map-is-fullscreen .btn-scroll-top,
body.map-is-fullscreen #btnBackToTop,
body.map-is-fullscreen .back-to-top,
body.map-is-fullscreen .floating-contact,
body.map-is-fullscreen .cursor-dot,
body.map-is-fullscreen .cursor-ring {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.map-is-fullscreen .lo-panel,
body.map-is-fullscreen #liveops,
body.map-is-fullscreen .section,
body.map-is-fullscreen .container,
body.map-is-fullscreen .lo-grid {
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
  perspective: none !important;
  filter: none !important;
}

.lo-map-card:fullscreen,
.lo-map-card.is-fullscreen-mode {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 9999999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #090e17 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}

.lo-map-card:fullscreen .lo-map-head,
.lo-map-card.is-fullscreen-mode .lo-map-head {
  padding: 10px 16px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  background: var(--card) !important;
  border-bottom: 1px solid var(--border) !important;
  z-index: 10000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.lo-map-card:fullscreen .mapsvg-wrap,
.lo-map-card.is-fullscreen-mode .mapsvg-wrap {
  flex: 1 1 0% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.lo-map-card:fullscreen .fleet-live-wrap,
.lo-map-card.is-fullscreen-mode .fleet-live-wrap,
.lo-map-card:fullscreen .fleet-live-map,
.lo-map-card.is-fullscreen-mode .fleet-live-map,
.lo-map-card:fullscreen #territoryLeaflet,
.lo-map-card.is-fullscreen-mode #territoryLeaflet {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  z-index: 1 !important;
  touch-action: none !important;
}

/* In fullscreen mode, hide touch guard so map is 100% interactive */
.lo-map-card:fullscreen .mobile-map-touch-guard,
.lo-map-card.is-fullscreen-mode .mobile-map-touch-guard {
  display: none !important;
  pointer-events: none !important;
}

.lo-map-card:fullscreen .fleet-detail,
.lo-map-card.is-fullscreen-mode .fleet-detail {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  height: clamp(180px, 28vh, 260px) !important;
  max-height: 280px !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-top: 1px solid var(--border) !important;
  background: var(--card) !important;
  z-index: 10000000 !important;
  overflow: hidden !important;
  transition: height .28s cubic-bezier(.4,0,.2,1), max-height .28s cubic-bezier(.4,0,.2,1) !important;
}

.lo-map-card:fullscreen .fleet-detail.is-collapsed,
.lo-map-card.is-fullscreen-mode .fleet-detail.is-collapsed {
  height: 52px !important;
  max-height: 52px !important;
  min-height: 52px !important;
}

.lo-map-card:fullscreen .fleet-detail .fd-chips,
.lo-map-card.is-fullscreen-mode .fleet-detail .fd-chips {
  flex-shrink: 0 !important;
  display: flex !important;
  padding: 8px 14px !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  background: rgba(15, 23, 42, 0.4) !important;
  border-bottom: 1px solid var(--border) !important;
}

.lo-map-card:fullscreen .fleet-detail .fd-body,
.lo-map-card.is-fullscreen-mode .fleet-detail .fd-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 10px 14px 14px !important;
}

.lo-map-card:fullscreen .lo-map-foot,
.lo-map-card.is-fullscreen-mode .lo-map-foot {
  flex: 0 0 auto !important;
  display: flex !important;
  padding: 8px 16px !important;
  background: var(--card) !important;
  border-top: 1px solid var(--border) !important;
  z-index: 10000000 !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  gap: 16px !important;
}

@media (max-width: 768px) {
  .lo-map-card:fullscreen .lo-map-head,
  .lo-map-card.is-fullscreen-mode .lo-map-head {
    padding: 8px 12px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .lo-map-card:fullscreen .lo-map-title h4,
  .lo-map-card.is-fullscreen-mode .lo-map-title h4 {
    font-size: 0.85rem !important;
    margin: 0 !important;
  }
  .lo-map-card:fullscreen #loFleetSub,
  .lo-map-card.is-fullscreen-mode #loFleetSub {
    display: none !important;
  }
  .lo-map-card:fullscreen .lo-legend,
  .lo-map-card.is-fullscreen-mode .lo-legend {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    font-size: 0.68rem !important;
  }
  .lo-map-card:fullscreen .lo-legend .lg,
  .lo-map-card.is-fullscreen-mode .lo-legend .lg {
    font-size: 0.68rem !important;
  }

  /* Fullscreen mobile fleet detail filters & real-time tracing dossier */
  .lo-map-card:fullscreen .fleet-detail,
  .lo-map-card.is-fullscreen-mode .fleet-detail {
    display: flex !important;
    flex: 0 0 auto !important;
    height: clamp(170px, 34vh, 250px) !important;
    max-height: 250px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid var(--border) !important;
    background: var(--card) !important;
    z-index: 10000000 !important;
    overflow: hidden !important;
    transition: height .26s ease, max-height .26s ease !important;
  }
  .lo-map-card:fullscreen .fleet-detail.is-collapsed,
  .lo-map-card.is-fullscreen-mode .fleet-detail.is-collapsed {
    height: 46px !important;
    max-height: 46px !important;
    min-height: 46px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-head,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-head {
    padding: 6px 10px !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.7) !important;
    flex-shrink: 0 !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-head-text b,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-head-text b {
    font-size: 0.80rem !important;
    padding-left: 6px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-head-text span,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-head-text span {
    font-size: 0.68rem !important;
    padding-left: 8px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-head-actions,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-head-actions {
    gap: 4px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-btn,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-chips,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-chips {
    display: flex !important;
    padding: 6px 10px !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: rgba(11, 20, 36, 0.85) !important;
    border-bottom: 1px solid var(--border) !important;
    flex-shrink: 0 !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-chip,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-chip {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    touch-action: manipulation !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-body,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-body {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 10px 10px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-sec,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-sec {
    padding: 6px 8px !important;
    margin-bottom: 6px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-sec h5,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-sec h5 {
    font-size: 9.5px !important;
    margin-bottom: 4px !important;
  }
  .lo-map-card:fullscreen .fleet-detail .fd-kv,
  .lo-map-card.is-fullscreen-mode .fleet-detail .fd-kv {
    font-size: 0.72rem !important;
    padding: 2px 0 !important;
  }

  /* Fullscreen mobile real-time telemetry stats footer */
  .lo-map-card:fullscreen .lo-map-foot,
  .lo-map-card.is-fullscreen-mode .lo-map-foot {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 10px !important;
    padding: 6px 12px !important;
    background: rgba(6, 11, 20, 0.96) !important;
    border-top: 1px solid var(--border) !important;
    z-index: 10000000 !important;
    font-size: 0.68rem !important;
    flex-shrink: 0 !important;
  }
  .lo-map-card:fullscreen .lo-map-foot .lo-foot-item,
  .lo-map-card.is-fullscreen-mode .lo-map-foot .lo-foot-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

.fleet-detail {
  flex: 0 0 auto;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: clamp(400px, 58vh, 600px);
  max-height: 600px;
  overflow: hidden;
  transition: height .32s cubic-bezier(.4,0,.2,1), max-height .32s cubic-bezier(.4,0,.2,1);
}
.fleet-detail.is-collapsed { height: 62px; max-height: 62px; }
.fd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft, rgba(148, 163, 184, .07));
  flex: 0 0 auto;
}
.fd-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fd-head-text b {
  font-size: .92rem;
  color: var(--text);
  border-left: 3px solid var(--fd-accent, var(--brand));
  padding-left: 9px;
}
.fleet-detail[data-accent] { --fd-accent: var(--brand); }
.fd-head-text span {
  font-size: .74rem;
  color: var(--text-muted);
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fd-head-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.fd-btn {
  font: 600 12px/1 var(--font-sans);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
}
.fd-btn:hover { border-color: var(--brand); color: var(--brand); }
.fd-btn-clear { color: var(--text-muted); }
.fd-btn-fold { padding: 7px 9px; line-height: 1; }
.fd-btn-fold { transition: transform .28s cubic-bezier(.4,0,.2,1), background .16s ease; }
.fleet-detail.is-collapsed .fd-btn-fold { transform: rotate(180deg); }

.fd-chips {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.fd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font: 600 11.5px/1 var(--font-sans);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease,
              transform .16s ease, box-shadow .16s ease;
}
.fd-chip i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.fd-chip em { font-style: normal; font-size: 10px; font-weight: 700; }
.fd-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.fd-chip:active { transform: translateY(0) scale(.97); }
.fd-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.fd-chip.on {
  background: var(--brand-dark, var(--brand)); border-color: var(--brand-dark, var(--brand));
  color: var(--on-brand, #fff);
  box-shadow: 0 2px 10px -2px color-mix(in srgb, var(--brand) 55%, transparent);
}
[data-theme="dark"] .fd-chip.on { background: var(--brand); border-color: var(--brand); --on-brand: #06131f; }
.fd-chip.on em { color: color-mix(in srgb, var(--on-brand, #fff) 76%, transparent) !important; }

.fd-body {
  padding: 12px 14px 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.fd-body > .fd-sec {
  display: block;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft, rgba(148, 163, 184, .06));
  break-inside: avoid;
}
.fd-body:has(> .fd-sec:nth-child(n+5)) {
  display: grid;
  gap: 9px 14px;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  align-content: start;
}
.fd-body:has(> .fd-sec:nth-child(n+5)) > .fd-sec { margin-bottom: 0; }

.fd-body:has(> .fd-sec:nth-child(n+5)) .fd-kv {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 4px 0;
}
.fd-body:has(> .fd-sec:nth-child(n+5)) .fd-kv > span { flex: 0 0 auto; font-size: .66rem; line-height: 1.35; }
.fd-body:has(> .fd-sec:nth-child(n+5)) .fd-kv > b { text-align: left; width: 100%; font-size: .78rem; line-height: 1.35; }
.fd-body:has(> .fd-sec:nth-child(n+5)) .fd-kv-wide > b { text-align: left; }
.fd-body:has(> .fd-sec:nth-child(n+5)) .fd-sec h5 { margin-bottom: 5px; }
@media (min-width: 1280px) {
  .fd-body:has(> .fd-sec:nth-child(n+5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fd-empty { margin: 6px 0; font-size: .8rem; color: var(--text-muted); }
.fd-sec h5 {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-text, var(--brand));
}
.fd-kv {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .78rem;
  transition: background .14s ease;
}
.fd-kv:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.fd-kv:last-child { border-bottom: 0; }
.fd-kv > span { flex: 0 0 42%; color: var(--text-muted); }
.fd-kv > b { flex: 1 1 auto; color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }
.fd-kv > b em { font-style: normal; color: var(--text-muted); font-weight: 500; font-size: .72rem; }
.fd-kv-wide > b { text-align: left; }
.fd-ok { color: #047857; font-weight: 700; }
.fd-bad { color: #b91c1c; font-weight: 700; }
[data-theme="dark"] .fd-ok { color: #34d399; }
[data-theme="dark"] .fd-bad { color: #fca5a5; }
.fd-temp-badge {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 4px;
}
.fd-temp-badge.ok {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.fd-temp-badge.bad {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
[data-theme="dark"] .fd-temp-badge.ok {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
}
[data-theme="dark"] .fd-temp-badge.bad {
  color: #f87171;
  background: rgba(220, 38, 38, 0.22);
}
.fd-bar {
  display: inline-block;
  width: 88px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  margin-right: 7px;
  vertical-align: middle;
  overflow: hidden;
}
.fd-bar > i { display: block; height: 100%; border-radius: 999px; }

#loFleet .veh-list .veh-row.on {
  background: var(--bg-soft, rgba(148, 163, 184, .12));
  box-shadow: inset 3px 0 0 var(--brand);
}
#loFleet .veh-list .veh-row { cursor: pointer; }

.lo-pop-more {
  margin-top: 8px;
  padding: 6px 10px 0;
  border-top: 1px dashed var(--border);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  #loFleet .lo-grid { height: auto; }
  .fleet-detail { height: clamp(260px, 46vh, 380px); max-height: 380px; }
  .fd-kv > span { flex: 0 0 40%; }
  .fd-body:has(> .fd-sec:nth-child(n+5)) .fd-kv { flex-direction: row; align-items: baseline; gap: 10px; }
  .fd-body:has(> .fd-sec:nth-child(n+5)) .fd-kv > b { text-align: right; }
}

@keyframes fdIn {
  from { opacity: 0; transform: translate3d(0, 7px, 0); }
  to   { opacity: 1; transform: none; }
}
.fd-body > .fd-sec { animation: fdIn .26s cubic-bezier(.22, 1, .36, 1) backwards; }
.fd-body > .fd-sec:nth-child(1) { animation-delay: .00s; }
.fd-body > .fd-sec:nth-child(2) { animation-delay: .03s; }
.fd-body > .fd-sec:nth-child(3) { animation-delay: .06s; }
.fd-body > .fd-sec:nth-child(4) { animation-delay: .09s; }
.fd-body > .fd-sec:nth-child(5) { animation-delay: .12s; }
.fd-body > .fd-sec:nth-child(6) { animation-delay: .15s; }
.fd-body > .fd-sec:nth-child(7) { animation-delay: .18s; }
.fd-body > .fd-sec:nth-child(8) { animation-delay: .21s; }

.fd-btn {
  transition: background .16s ease, border-color .16s ease, color .16s ease,
              transform .16s ease, box-shadow .16s ease;
}
.fd-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px -3px rgba(15, 23, 42, .3); }
.fd-btn:active { transform: translateY(0) scale(.96); }
.fd-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fd-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
[data-theme="dark"] .fd-btn[aria-pressed="true"] { --on-brand: #06131f; }

#loFleet .veh-list .veh-row {
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
#loFleet .veh-list .veh-row:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .fd-body > .fd-sec, .fd-chip, .fd-btn, .fd-kv,
  #loFleet .veh-list .veh-row, .fleet-detail { animation: none !important; transition: none !important; }
  .fd-chips, .fd-body { scroll-behavior: auto; }
}

.tile-note {
  flex: 0 0 auto;
  margin: 8px 0 0;
  padding: 7px 11px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: rgba(245, 158, 11, .12);
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark"] .tile-note, body.dark .tile-note { color: #fcd34d; border-color: #b45309; background: rgba(180, 83, 9, .2); }

.fleet-live-map {
  background-color: #eef2f7;
  background-image:
    linear-gradient(rgba(148,163,184,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.18) 1px, transparent 1px);
  background-size: 38px 38px;
}
.lo-mapstyle-btn {
  font: 700 11px/1 var(--font-sans);
  letter-spacing: .04em;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2,6,23,.18);
}
.lo-mapstyle-btn:hover { border-color: var(--brand); color: var(--brand); }

[data-theme="dark"] .fleet-live-map { background-color: #0b1220; }
[data-theme="dark"] .leaflet-tile-pane {

  filter: invert(1) hue-rotate(180deg) brightness(1.04) contrast(1.08) saturate(.62);
}
[data-theme="dark"] .leaflet-control-zoom a,
[data-theme="dark"] .leaflet-control-attribution { background: #111827; color: #cbd5e1; border-color: #1f2937; }

.leaflet-control-layers {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 4px 14px -6px rgba(2, 6, 23, .45);
  overflow: hidden;
}
.leaflet-control-layers-toggle {
  background-color: var(--card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.leaflet-control-layers-toggle:hover { background-color: var(--card-hover); }
[data-theme="dark"] .leaflet-control-layers-toggle:hover { background-color: var(--card-hover); }
.leaflet-control-layers-list { padding: 4px 6px; }
.leaflet-control-layers label {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 5px;
  transition: background .14s ease, color .14s ease;
}
.leaflet-control-layers label:hover { background: var(--bg-soft); }
.leaflet-control-layers-separator { border-top: 1px solid var(--border); }
.leaflet-control-layers input[type="checkbox"] { accent-color: var(--brand); margin: 0; }
[data-theme="dark"] .leaflet-control-layers input[type="checkbox"] { accent-color: var(--brand); }

.mm-mk { background: none !important; border: 0 !important; }
.mm-mk-in {
  display: grid; place-items: center; width: 34px; height: 34px;
  filter: drop-shadow(0 3px 6px rgba(2, 6, 23, .35));
  transition: transform .18s ease;
}
.mm-mk:hover { z-index: 500 !important; }
.mm-mk:hover .mm-mk-in { transform: scale(1.18); }
.mk-veh .mm-mk-in { color: #2563eb; }
.mk-veh.cold .mm-mk-in { color: #7c3aed; }
.mk-veh.idle .mm-mk-in { color: #94a3b8; opacity: .85; }
.mk-veh .mm-mk-in::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: currentColor; opacity: .16; animation: mmPing 2.4s ease-out infinite;
}
.mk-veh.idle .mm-mk-in::after { display: none; }
.mk-hub .mm-mk-in, .mk-hq .mm-mk-in { width: 30px; height: 30px; }
.mk-dest .mm-mk-in { width: 26px; height: 30px; }
@keyframes mmPing { 0% { transform: scale(.7); opacity: .35 } 70%, 100% { transform: scale(1.7); opacity: 0 } }

.leaflet-popup-content-wrapper {
  border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .28);
  background: var(--card);
}
.leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup-tip { background: var(--card); }
.leaflet-popup-close-button {
  color: var(--text) !important; z-index: 2;
  width: 26px !important; height: 26px !important;
  font: 700 17px/24px var(--font-sans) !important;
  border-radius: 7px;
  transition: background .15s ease, color .15s ease;
}
.leaflet-popup-close-button:hover { background: rgba(127, 127, 127, .22) !important; color: var(--text) !important; }
.lo-pop { min-width: 250px; max-width: 330px; font-size: 12px; }
.lo-pop-head {
  background: var(--bg-soft, rgba(148,163,184,.10));
  color: var(--text);
  box-shadow: inset 3px 0 0 0 var(--edge, var(--brand));
  font-weight: 700; font-size: 12.5px;
  padding: 9px 30px 9px 12px; letter-spacing: .01em;
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  transition: background .18s ease;
}
.lo-pop-head > b { color: var(--ink, var(--text)); font-weight: 800; }
.lo-pop-head > em {
  font-style: normal; flex: 0 0 auto; white-space: nowrap;
  color: var(--ink, var(--text)); background: color-mix(in srgb, var(--edge, var(--brand)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--edge, var(--brand)) 42%, transparent);
  padding: 1px 8px; border-radius: 999px; font-size: 10.5px;
  letter-spacing: .03em; text-transform: uppercase;
}

[data-theme="dark"] .lo-pop-head > b,
[data-theme="dark"] .lo-pop-head > em { color: #e2e8f0; }
[data-theme="dark"] .lo-pop-head > em {
  background: color-mix(in srgb, var(--edge, var(--brand)) 24%, transparent);
  border-color: color-mix(in srgb, var(--edge, var(--brand)) 55%, transparent);
}
.mk-hub-head { --edge: #475569; --ink: #334155; }
.mk-veh-head { --edge: #7c3aed; --ink: #6d28d9; }
.mk-hq-head  { --edge: #0f172a; --ink: #0f172a; }
.lo-pop-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 12px; border-bottom: 1px solid var(--border);
}
.lo-pop-row:last-child { border-bottom: 0; }
.lo-pop-row > span { color: var(--text-muted); flex: 0 0 40%; }
.lo-pop-row > b { font-weight: 600; text-align: right; flex: 1 1 auto; }
.lo-pop-row > b b, .lo-pop-row b { color: var(--brand); }
.lo-pop-stops { border-top: 1px solid var(--border); padding: 8px 12px; background: var(--bg-soft, rgba(148,163,184,.08)); }
.lo-pop-stops > div { display: grid; grid-template-columns: 10px 1fr; gap: 2px 6px; align-items: center; padding: 3px 0; }
.lo-pop-stops i { grid-row: 1 / span 2; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.lo-pop-stops span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.lo-pop-stops b { font-weight: 600; }
.lo-pop-stops em { grid-column: 2; font-style: normal; font-size: 10.5px; color: var(--text-muted); }
.lo-city-tip { background: rgba(15, 23, 42, .82) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important; font-size: 11px !important; padding: 2px 6px !important; }
.lo-city-tip::before { display: none; }

.lo-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft, rgba(148, 163, 184, 0.08));
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.lo-side-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lo-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.1);
  display: grid;
  place-items: center;
  flex: 0 0 26px;
}
.lo-pulse-icon {
  animation: live-dot-pulse 2s ease-out infinite;
}
.lo-side-head-title h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.lo-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-variant-numeric: tabular-nums;
}
.lo-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .lo-live-indicator {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
}

.veh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  position: relative;
}
.veh-row:hover {
  border-color: var(--brand);
  transform: translateX(3px);
  box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.18);
  background: var(--hover, rgba(37, 99, 235, 0.04));
}
.veh-row.on {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
  box-shadow: 0 0 0 1.5px var(--brand), 0 4px 12px rgba(37, 99, 235, 0.2);
}
.veh-row-left {
  flex: 0 0 auto;
}
.veh-av {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 5px rgba(0, 0, 0, 0.12);
}
.veh-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.veh-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.veh-ref {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.veh-client {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}
.veh-st-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.veh-row-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.71rem;
}
.veh-route {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.veh-arrow {
  color: var(--brand);
  font-weight: 700;
  margin: 0 1px;
}
.veh-plate-pill {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft, rgba(148, 163, 184, 0.12));
  border: 1px solid var(--border);
  color: var(--text);
  flex: 0 0 auto;
}
.veh-row-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.veh-track {
  flex: 1 1 auto;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.veh-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.veh-pct {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.veh-pill-temp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
  flex: 0 0 auto;
}
.veh-temp-ico {
  font-size: 0.62rem;
  line-height: 1;
}
.veh-pill-temp.bad {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
  animation: live-dot-pulse 1.4s ease-out infinite;
}
[data-theme="dark"] .veh-pill-temp.ok {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
}
[data-theme="dark"] .veh-pill-temp.bad {
  color: #f87171;
  background: rgba(220, 38, 38, 0.22);
}

.ev-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--ev-accent, var(--brand));
  border-radius: 8px;
  font-size: 0.77rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  animation: card-in 0.3s ease both;
}
.ev-item:hover {
  transform: translateX(3px);
  background: var(--hover, rgba(37, 99, 235, 0.04));
  box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.08);
}
.ev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid;
  flex: 0 0 auto;
}
.ev-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.ev-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.ev-clock-ico {
  opacity: 0.7;
}
.ev-src {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-soft, rgba(148, 163, 184, 0.15));
  color: var(--text-muted);
}
.ev-body {
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}
.ev-plate {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft, rgba(148, 163, 184, 0.12));
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-block;
  margin: 0 2px;
}
.ev-ref {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-weight: 700;
  color: var(--brand);
  background: rgba(37, 99, 235, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
  margin: 0 2px;
}
.ev-temp-pill {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  margin: 0 2px;
  display: inline-block;
}
.ev-temp-pill.ok {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.ev-temp-pill.bad {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
  font-weight: 800;
}
.ev-pct-pill {
  font-weight: 600;
  color: var(--text-muted);
}
.ev-new {
  animation: evHighlight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes evHighlight {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    box-shadow: 0 0 0 2px var(--ev-accent, var(--brand));
  }
  100% {
    opacity: 1;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
}

.fd-empty-cockpit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 4px;
}
.fd-empty-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07) 0%, rgba(14, 165, 233, 0.04) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
}
.fd-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}
.fd-empty-info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.fd-empty-info p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.fd-empty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.fd-stat-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.fd-stat-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.fd-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
}
.fd-stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lo-map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 10px 16px;
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
}
.lo-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.lo-foot-label {
  font-weight: 600;
  color: var(--text-muted);
}
.lo-foot-val {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-weight: 700;
  color: var(--text);
}
.lo-map-foot .fa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 6px currentColor;
  animation: live-dot-pulse 2s ease-out infinite;
}
.chart-legend { display: flex; gap: 12px; justify-content: center; margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.mapsvg-wrap.territory #territoryLeaflet { position: absolute; inset: 0; }
.mapsvg-wrap.territory { position: relative; }

.showcase-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.showcase-zoom-modal.open {
  opacity: 1;
  visibility: visible;
}
.zoom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.zoom-modal-content {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 1400px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0f1d2d;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.zoom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0b1522;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zoom-modal-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}
.zoom-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease;
}
.zoom-modal-close:hover {
  background: #ef4444;
}
.zoom-modal-body {
  padding: 12px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060e17;
}
.zoom-modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Architecture
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    padding: 0 20px;
  }
  .lo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lo-charts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .chart-card.wide {
    grid-column: auto;
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }
  .container {
    padding: 0 16px;
  }
  #navbar,
  .navbar {
    height: 64px;
    z-index: 10000 !important;
  }
  .navbar .nav-inner {
    padding: 0 14px;
  }
  .brand-logo-img {
    height: 40px;
    max-width: 190px;
  }
  .section {
    padding: 56px 0;
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.96) 0%, rgba(4, 8, 18, 0.98) 100%) !important;
    position: relative !important;
    z-index: 2 !important;
  }
  .section.alt {
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.97) 0%, rgba(5, 10, 22, 0.99) 100%) !important;
  }
  .section-head {
    margin-bottom: 30px;
  }
  .section-head h2 {
    font-size: clamp(1.75rem, 5.2vw, 2.3rem);
  }
  .section-head p {
    font-size: 0.94rem;
    line-height: 1.6;
  }
  .hero {
    padding: 40px 0 32px;
    position: relative;
    z-index: 2;
    background: transparent !important;
  }
  .hero-ambient-glow {
    opacity: 0.3 !important;
  }
  .hero-copy {
    margin-bottom: 22px;
    position: relative;
    z-index: 5;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .hero-top-badge .eyebrow {
    background: rgba(2, 6, 23, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85) !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
  }
  .hero-copy h1 {
    font-size: clamp(2rem, 6.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 12px 0 24px;
    letter-spacing: -0.024em;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95),
                 0 2px 8px rgba(0, 0, 0, 0.85) !important;
    filter: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .hero-copy .hero-word-wrap {
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0.16em 0 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    vertical-align: top !important;
    filter: none !important;
  }
  .hero-copy .hero-word {
    display: inline-block !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95),
                 0 2px 8px rgba(0, 0, 0, 0.85) !important;
  }
  .hero-copy .hero-word.grad-word {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 35%, #a5f3fc 70%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.75)) !important;
  }
  .hero-sub {
    font-size: 0.98rem !important;
    line-height: 1.68 !important;
    margin: 0 auto 24px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95),
                 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    filter: none !important;
    text-align: center !important;
    max-width: 96% !important;
  }
  .hero-badges {
    gap: 6px;
    margin-bottom: 22px;
  }
  .hero-badges .pill {
    font-size: 0.76rem;
    padding: 6px 13px;
    background: rgba(15, 23, 42, 0.90) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.75) !important;
    color: #e2e8f0 !important;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 28px 0;
    gap: 16px;
  }
  .stat-num {
    font-size: 2.1rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .showcase-wrapper {
    margin-bottom: 28px;
  }
  .showcase-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 4px 10px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .showcase-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .showcase-tab {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .live-ticker {
    flex-direction: row;
    align-items: center;
    border-radius: 16px;
    padding: 10px 14px;
    margin-top: 24px;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    gap: 0;
  }
  .live-badge {
    display: none !important;
  }
  .live-ticker-track {
    width: 100%;
    padding-top: 0;
  }
  .mapsvg-wrap, .mapsvg-wrap.territory {
    flex: 0 0 auto;
    height: 300px;
    min-height: 280px;
  }
  .lo-map-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .lo-map-head-right {
    width: 100%;
    justify-content: flex-start;
  }
  .lo-legend {
    gap: 8px 12px;
    font-size: 0.72rem;
  }
  .lo-map-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.74rem;
  }
  .veh-list {
    max-height: 280px;
  }
  /* Mobile Swipe Hint and Carousel Top Controls Disabled (Only Bottom Controls) */
  .mobile-swipe-hint,
  .mobile-carousel-top {
    display: none !important;
  }

  /* Mobile Live Map: Non-intrusive Floating Explore Pill */
  .mobile-map-touch-guard {
    position: absolute !important;
    inset: 0 !important;
    z-index: 25 !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  .mobile-map-touch-guard.desktop-hidden {
    display: none !important;
  }
  .mobile-map-touch-guard.preview-mode .btn-mmap-exit {
    display: none !important;
  }
  .mobile-map-touch-guard.active-mode .mmap-preview-bar {
    display: none !important;
  }
  .mmap-preview-bar {
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
  }
  .btn-mmap-explore {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 20px !important;
    background: rgba(3, 7, 18, 0.88) !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    letter-spacing: 0.02em !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(14, 116, 144, 0.35) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
  }
  .btn-mmap-explore:active {
    transform: scale(0.96) !important;
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
  }
  .mmap-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 8px #10b981, 0 0 14px rgba(16, 185, 129, 0.7) !important;
    animation: mcPulseDot 1.8s infinite ease-in-out !important;
    flex-shrink: 0 !important;
  }
  .mmap-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
  }
  .mobile-map-touch-guard svg,
  .btn-mmap-explore svg,
  .btn-mmap-exit svg,
  .mmap-icon,
  .mmap-exit-icon {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    color: #38bdf8 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
  }
  .btn-mmap-exit {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 30 !important;
    pointer-events: auto !important;
    display: none;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(3, 7, 18, 0.92) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 999px !important;
    padding: 7px 14px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    font-family: var(--font-heading) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
  }
  .btn-mmap-exit:active {
    transform: scale(0.95) !important;
    background: #1e293b !important;
    color: #38bdf8 !important;
  }
  .mobile-carousel-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 14px !important;
    padding: 0 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .mc-nav-btn {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    background: rgba(14, 116, 144, 0.22) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #22d3ee !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    flex-shrink: 0 !important;
  }
  .mc-nav-btn:hover,
  .mc-nav-btn:active {
    background: #0891b2 !important;
    color: #ffffff !important;
    border-color: #22d3ee !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.6) !important;
  }
  .mc-dots {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    max-width: calc(100% - 96px) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 4px 6px !important;
  }
  .mc-dots::-webkit-scrollbar {
    display: none !important;
  }
  .mc-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    flex-shrink: 0 !important;
  }
  .mc-dot.active {
    width: 22px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #22d3ee, #0284c7) !important;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.85) !important;
  }
  .overview-grid,
  .module-grid,
  .biz-cards-grid,
  .sec-grid,
  .deploy-grid,
  .tech-grid-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 0 16px 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overscroll-behavior-x: contain;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: grab;
  }
  .overview-grid:active,
  .module-grid:active,
  .biz-cards-grid:active,
  .sec-grid:active,
  .deploy-grid:active,
  .tech-grid-container:active {
    cursor: grabbing;
  }
  .overview-grid::-webkit-scrollbar,
  .module-grid::-webkit-scrollbar,
  .biz-cards-grid::-webkit-scrollbar,
  .sec-grid::-webkit-scrollbar,
  .deploy-grid::-webkit-scrollbar,
  .tech-grid-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .ov-card,
  .m-card,
  .b-card,
  .sec-card,
  .tech-domain-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px !important;
    margin: 0 !important;
  }
  .ov-card:hover,
  .m-card:hover,
  .b-card:hover,
  .sec-card:hover,
  .tech-domain-card:hover {
    transform: none !important;
  }
  .biz-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .biz-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .workflow-tab-bar,
  .flow-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 4px 10px;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .workflow-tab-bar::-webkit-scrollbar,
  .flow-rail::-webkit-scrollbar {
    display: none;
  }
  .flow-step {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .flow-panel {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .contact-card {
    padding: 48px 24px;
    border-radius: 20px;
  }
}

/* Modern Smartphones (<= 540px) */
@media (max-width: 540px) {
  :root {
    --nav-h: 60px;
  }
  .container {
    padding: 0 14px;
  }
  #navbar,
  .navbar {
    height: 60px;
    z-index: 10000 !important;
  }
  .navbar .nav-inner {
    padding: 0 12px;
  }
  .brand-logo-img {
    height: 36px;
    max-width: 155px;
  }
  .brand-erp-badge {
    display: none;
  }
  .btn-nav-cta {
    padding: 5px 9px;
    font-size: 0.72rem;
    gap: 5px;
  }
  .btn-nav-cta .live-dot {
    width: 6px;
    height: 6px;
  }
  .section {
    padding: 44px 0;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .section-head .eyebrow {
    font-size: 0.74rem;
    padding: 4px 12px;
  }
  .section-head h2 {
    font-size: clamp(1.5rem, 6.2vw, 1.95rem);
    letter-spacing: -0.02em;
    line-height: 1.22;
  }
  .section-head p {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .hero {
    padding: 38px 0 28px;
  }
  .hero-top-badge .eyebrow {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .hero-copy h1 {
    font-size: clamp(1.75rem, 7.6vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 10px 0 24px;
  }
  .hero-sub {
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 18px;
    padding: 0 !important;
  }
  .hero-badges {
    gap: 5px;
    margin-bottom: 20px;
  }
  .hero-badges .pill {
    font-size: 0.72rem;
    padding: 4.5px 10px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .browser-viewport {
    aspect-ratio: 16 / 10;
    min-height: 190px;
  }
  .browser-header {
    padding: 8px 12px;
  }
  .showcase-arrow {
    width: 32px;
    height: 32px;
  }
  .showcase-arrow svg {
    width: 16px;
    height: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 22px 0;
    gap: 14px 10px;
  }
  .stat-num {
    font-size: 1.65rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .segmented-control {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .segmented-control::-webkit-scrollbar {
    display: none;
  }
  .seg-btn {
    flex: 1 1 auto;
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: center;
  }
  .mapsvg-wrap, .mapsvg-wrap.territory {
    height: 250px;
    min-height: 230px;
  }
  .lo-side-card {
    padding: 14px 12px;
  }
  .veh-list {
    max-height: 240px;
  }
  .veh-row {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }
  .veh-name {
    flex: 1 1 100%;
    order: 3;
  }
  .lo-analytics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .live-kpi-card {
    padding: 12px 10px;
  }
  .knum {
    font-size: 1.35rem;
  }
  .overview-grid,
  .module-grid,
  .biz-cards-grid,
  .sec-grid,
  .deploy-grid,
  .tech-grid-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 0 16px 0 !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .ov-card,
  .m-card,
  .b-card,
  .sec-card,
  .tech-domain-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 22px 18px !important;
    margin: 0 !important;
  }
  .module-toolbar {
    margin-bottom: 20px;
  }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .flow-panel {
    padding: 18px 14px;
  }
  .contact-card {
    padding: 36px 16px;
    border-radius: 18px;
  }
  .contact-phones-wrap {
    flex-direction: column;
    width: 100%;
    max-width: 310px;
    margin: 0 auto 20px;
    gap: 10px;
  }
  .contact-phone-card {
    width: 100%;
    padding: 10px 16px;
    justify-content: flex-start;
  }
  .phone-val {
    font-size: 0.96rem;
  }
  .contact-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 10px;
  }
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .footer {
    padding: 32px 0 24px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: 0.8rem;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-card {
    padding: 22px 14px 18px;
    border-radius: 16px;
    max-height: 90vh;
  }
  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
  }
  .zoom-modal-header {
    padding: 10px 14px;
  }
  .zoom-modal-title {
    font-size: 0.88rem;
  }
}

/* Compact Smartphones (<= 380px e.g. iPhone SE, Galaxy Fold outer screen) */
@media (max-width: 380px) {
  .container {
    padding: 0 10px;
  }
  .brand-logo-img {
    height: 32px;
    max-width: 135px;
  }
  .btn-nav-cta {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
  .hero-copy h1 {
    font-size: 1.62rem;
    line-height: 1.18;
    margin: 8px 0 20px;
  }
  .hero-sub {
    font-size: 0.88rem;
    padding: 0 !important;
  }
  .stat-num {
    font-size: 1.45rem;
  }
  .lo-analytics-grid {
    grid-template-columns: 1fr !important;
  }
  .live-kpi-card {
    padding: 10px;
  }
  .knum {
    font-size: 1.25rem;
  }
}

@media print {
  body,
  body * {
    display: none !important;
  }
  html::before {
    content: "Printing is disabled for this presentation.";
    display: block !important;
    font: 600 14pt/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #475569;
    background: #fff;
    text-align: center;
    padding: 48pt 24pt;
  }
}
