/* ==========================================================================
   Hub3PL 2026 Industrial Technical Design System
   Aesthetic: Swiss Typographic Rigor + Neo-Brutalist Technical Precision
   Reference: Linear.app, Samsara, Flexport, Teenage Engineering
   ========================================================================== */

/* ---------- 1. LIGHT TOKENS (Swiss Technical Paper) ---------- */
:root,
:root[data-theme="light"] {
  --hub-canvas: #f8fafc;
  --hub-surface: #ffffff;
  --hub-surface-subtle: #f1f5f9;
  --hub-surface-raised: #e2e8f0;
  --hub-border: #cbd5e1;
  --hub-border-subtle: #e2e8f0;
  --hub-border-active: #2563eb;
  --hub-text-primary: #090e17;
  --hub-text-secondary: #334155;
  --hub-text-muted: #64748b;
  --hub-accent-blue: #2563eb;
  --hub-accent-blue-hover: #1d4ed8;
  --hub-accent-emerald: #059669;
  --hub-accent-amber: #d97706;
  --hub-grid-line: rgba(15, 23, 42, 0.06);
  --hub-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --hub-nav-bg: rgba(248, 250, 252, 0.94);
  --hub-footer-bg: #f1f5f9;
  --hub-badge-bg: #e2e8f0;
  --hub-badge-text: #1e293b;
  --hub-badge-border: #cbd5e1;
  --hub-radius: 4px;
  --hub-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- 2. DARK TOKENS (Technical Console / Terminal Obsidian) ---------- */
:root[data-theme="dark"],
html.dark {
  --hub-canvas: #07090e;
  --hub-surface: #0e121a;
  --hub-surface-subtle: #141a24;
  --hub-surface-raised: #1c2432;
  --hub-border: #222c3d;
  --hub-border-subtle: #171f2c;
  --hub-border-active: #3b82f6;
  --hub-text-primary: #f8fafc;
  --hub-text-secondary: #94a3b8;
  --hub-text-muted: #64748b;
  --hub-accent-blue: #2563eb;
  --hub-accent-blue-hover: #1d4ed8;
  --hub-accent-emerald: #10b981;
  --hub-accent-amber: #f59e0b;
  --hub-grid-line: rgba(255, 255, 255, 0.04);
  --hub-card-shadow: none;
  --hub-nav-bg: rgba(7, 9, 14, 0.94);
  --hub-footer-bg: #05070a;
  --hub-badge-bg: #141a24;
  --hub-badge-text: #cbd5e1;
  --hub-badge-border: #222c3d;
  --hub-radius: 4px;
}

/* ---------- 3. BASE RESETS & TYPOGRAPHY ---------- */
body {
  background-color: var(--hub-canvas) !important;
  color: var(--hub-text-secondary) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  line-height: 1.55;
  background-image: radial-gradient(var(--hub-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

#page-wrapper {
  background: transparent !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hub-text-primary) !important;
  font-family: "Cal Sans", "Inter", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 700;
}

/* Technical Label / Micro-spec tag */
.tech-label {
  font-family: var(--hub-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hub-text-muted);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--hub-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  background: var(--hub-badge-bg) !important;
  color: var(--hub-badge-text) !important;
  border: 1px solid var(--hub-badge-border) !important;
  border-radius: var(--hub-radius, 4px) !important;
  line-height: 1.2;
}

.tech-tag-blue {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--hub-accent-blue-hover) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.tech-tag-emerald {
  background: rgba(16, 185, 129, 0.1) !important;
  color: var(--hub-accent-emerald) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Pulse Dot */
.pulse-indicator,
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-accent-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  display: inline-block;
}

/* Backward-compatible Hub Badges (Industrial Monospace) */
.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--hub-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  background: var(--hub-badge-bg);
  color: var(--hub-badge-text);
  border: 1px solid var(--hub-badge-border);
  border-radius: var(--hub-radius, 4px) !important;
  line-height: 1.2;
}

.hub-badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--hub-accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.hub-badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--hub-accent-blue-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.hub-badge-slate {
  background: var(--hub-badge-bg);
  color: var(--hub-badge-text);
  border-color: var(--hub-badge-border);
}

.hub-badge-amber {
  background: rgba(217, 119, 6, 0.1);
  color: var(--hub-accent-amber);
  border-color: rgba(217, 119, 6, 0.3);
}

/* Industrial Cards (Flat 1px Border, No AI Shadows) */
.hub-card {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.15s ease;
  position: relative;
}

.hub-card:hover {
  border-color: var(--hub-border-active);
  background: var(--hub-surface-subtle);
}

.hub-card-raised {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border-active) !important;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.12) !important;
}

/* Metric Box */
.metric-box {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.metric-number {
  font-family: var(--hub-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--hub-text-primary);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.metric-label {
  font-family: var(--hub-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hub-text-muted);
  margin-top: 0.35rem;
  display: block;
}

/* ---------- 4. NAVBAR HEADER ---------- */
#header {
  background: var(--hub-nav-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hub-border) !important;
}

#header .navbar {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.85rem 0;
}

.navbar .navbar-brand svg {
  height: 34px;
  width: auto;
}

.dropmenu ul li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--hub-text-secondary) !important;
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.dropmenu ul li a:hover,
.dropmenu ul li.active a {
  color: var(--hub-text-primary) !important;
  background-color: var(--hub-surface-subtle) !important;
}

.dropmenu ul li ul {
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: var(--hub-radius, 4px) !important;
}

/* ---------- 5. STRUCTURAL GRID & EXPOSED BORDERS ---------- */
.tech-grid {
  display: grid;
  border: 1px solid var(--hub-border);
  background: var(--hub-border);
  gap: 1px;
}

.tech-panel {
  background: var(--hub-surface);
  padding: 2rem;
  position: relative;
  transition: background-color 0.15s ease;
}

.tech-panel:hover {
  background: var(--hub-surface-subtle);
}

/* Corner Crosshair Decorations */
.has-crosshairs {
  position: relative;
}

.has-crosshairs::before {
  content: "+";
  position: absolute;
  top: -9px;
  left: -6px;
  font-family: var(--hub-mono);
  font-size: 13px;
  color: var(--hub-text-muted);
  line-height: 1;
}

.has-crosshairs::after {
  content: "+";
  position: absolute;
  top: -9px;
  right: -6px;
  font-family: var(--hub-mono);
  font-size: 13px;
  color: var(--hub-text-muted);
  line-height: 1;
}

/* Technical Blueprint Border Box */
.blueprint-box {
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  border-radius: 4px;
  overflow: hidden;
}

.blueprint-header {
  border-bottom: 1px solid var(--hub-border);
  background: var(--hub-surface-subtle);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--hub-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hub-text-muted);
}

.blueprint-body {
  padding: 1.5rem;
}

/* ---------- 6. INDUSTRIAL BUTTONS ---------- */
.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.hub-btn-primary {
  background-color: var(--hub-text-primary) !important;
  color: var(--hub-canvas) !important;
  border: 1px solid var(--hub-text-primary) !important;
}

.hub-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hub-btn-secondary {
  background-color: var(--hub-surface) !important;
  color: var(--hub-text-primary) !important;
  border: 1px solid var(--hub-border) !important;
}

.hub-btn-secondary:hover {
  background-color: var(--hub-surface-subtle) !important;
  border-color: var(--hub-text-muted) !important;
}

.hub-btn-blue {
  background-color: var(--hub-accent-blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--hub-accent-blue) !important;
}

.hub-btn-blue:hover {
  background-color: var(--hub-accent-blue-hover) !important;
}

/* ---------- 7. METRIC TICKER (TELEMETRY STRIP) ---------- */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: 1px solid var(--hub-border);
  background: var(--hub-border);
  gap: 1px;
  border-radius: 4px;
  overflow: hidden;
  margin: 2.5rem 0;
}

.telemetry-cell {
  background: var(--hub-surface);
  padding: 1.25rem 1.5rem;
}

.telemetry-val {
  font-family: var(--hub-mono);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hub-text-primary);
  display: block;
  line-height: 1.1;
}

.telemetry-name {
  font-family: var(--hub-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hub-text-muted);
  margin-top: 0.35rem;
  display: block;
}

/* ---------- 8. BENCHMARK TABLE ---------- */
.spec-table-container {
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  overflow-x: auto;
  background: var(--hub-surface);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.spec-table th {
  background: var(--hub-surface-subtle);
  color: var(--hub-text-primary);
  font-family: var(--hub-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--hub-border);
}

.spec-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hub-border-subtle);
  color: var(--hub-text-secondary);
}

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

.spec-table tr:hover td {
  background: var(--hub-surface-subtle);
}

/* ---------- 9. LIVE OPERATIONAL CONSOLE ---------- */
.operational-console {
  background: #080b10 !important;
  border: 1px solid #1a2230 !important;
  border-radius: 4px;
  font-family: var(--hub-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  overflow: hidden;
}

.console-bar {
  background: #0f1520;
  border-bottom: 1px solid #1a2230;
  padding: 0.5rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #64748b;
}

.console-body {
  padding: 1.25rem;
  line-height: 1.7;
}

/* ---------- 10. FORM FIELDS ---------- */
.form-field {
  margin-bottom: 1.25rem;
}

.form-label label {
  display: block;
  font-family: var(--hub-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-text-primary) !important;
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea,
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  background-color: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  border-radius: 4px !important;
  padding: 0.65rem 0.85rem !important;
  color: var(--hub-text-primary) !important;
  font-size: 0.92rem !important;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--hub-border-active) !important;
}

.form-field.buttons button[type="submit"],
.form-field.buttons input[type="submit"] {
  width: 100%;
  background-color: var(--hub-accent-blue) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0.8rem 1.5rem !important;
  font-size: 0.92rem !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--hub-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field.buttons button[type="submit"]:hover,
.form-field.buttons input[type="submit"]:hover {
  background-color: var(--hub-accent-blue-hover) !important;
}

/* ---------- 11. LANGUAGE SWITCHER ---------- */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-switcher-btn {
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  color: var(--hub-text-secondary) !important;
  border-radius: 4px !important;
  padding: 0.4rem 0.65rem !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem !important;
  font-weight: 600;
  font-family: var(--hub-mono);
  transition: all 0.15s ease;
}

.lang-switcher-btn:hover {
  color: var(--hub-text-primary) !important;
  border-color: var(--hub-border-active) !important;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  list-style: none !important;
  padding: 0.35rem !important;
  margin: 0 !important;
  min-width: 175px;
  display: none;
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
}

.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper:focus-within .lang-dropdown-menu,
.lang-dropdown-menu.open {
  display: block !important;
}

.lang-dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem !important;
  border-radius: var(--hub-radius, 4px) !important;
  color: var(--hub-text-secondary) !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  font-family: "Inter", sans-serif;
}

.lang-dropdown-menu li:hover a,
.lang-dropdown-menu li.active a {
  background: var(--hub-surface-subtle) !important;
  color: var(--hub-text-primary) !important;
}

.lang-badge-pill {
  font-family: var(--hub-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--hub-badge-bg);
  color: var(--hub-badge-text);
  padding: 0.05rem 0.3rem;
  border-radius: var(--hub-radius, 4px) !important;
  border: 1px solid var(--hub-badge-border);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  color: var(--hub-text-secondary) !important;
  border-radius: 4px !important;
  padding: 0.4rem 0.55rem !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.theme-toggle:hover {
  color: var(--hub-text-primary) !important;
  border-color: var(--hub-border-active) !important;
}

/* Mobile button */
.button_container span {
  background: var(--hub-text-primary) !important;
}

.overlay {
  background: var(--hub-canvas) !important;
}

.overlay .overlay-menu a {
  color: var(--hub-text-primary) !important;
}

/* ---------- 12. FOOTER ---------- */
#footer {
  background: var(--hub-footer-bg) !important;
  border-top: 1px solid var(--hub-border) !important;
  padding: 4rem 0 2.5rem;
  color: var(--hub-text-secondary) !important;
}

#footer h4 {
  color: var(--hub-text-primary) !important;
  font-family: var(--hub-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  margin-bottom: 0.55rem;
}

#footer ul li a {
  color: var(--hub-text-secondary) !important;
  font-size: 0.88rem;
  text-decoration: none;
}

#footer ul li a:hover {
  color: var(--hub-text-primary) !important;
}

/* Responsive adjustments */
.split-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
  padding: 4.5rem 0 3.5rem;
}

.topology-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  background: var(--hub-surface-subtle);
  border: 1px solid var(--hub-border-subtle);
  border-radius: var(--hub-radius, 4px) !important;
  font-family: var(--hub-mono);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.topology-node .code-id {
  color: var(--hub-accent-blue);
  font-weight: 700;
}

.topology-node .code-tag {
  color: var(--hub-text-muted);
  font-size: 0.7rem;
  margin-left: auto;
}

.topology-connector {
  font-family: var(--hub-mono);
  color: var(--hub-border);
  font-size: 0.75rem;
  line-height: 1;
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 980px) {
  .split-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 2rem;
  }
}

@media (max-width: 860px) {
  .telemetry-val { font-size: 1.45rem; }
  .tech-panel { padding: 1.25rem; }
}

/* ---------- 13. TANGIBLE PHYSICAL LOGISTICS ARTIFACTS ---------- */

/* Physical Thermal Shipping Label (Zebra ZD421 / GS1-128) */
.thermal-label-container {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  font-family: var(--hub-mono);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}

.thermal-label-header {
  border-bottom: 2px solid #0f172a;
  padding: 0.6rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc !important;
  color: #0f172a !important;
}

.thermal-carrier-badge {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0f172a !important;
}

.thermal-routing-code {
  font-size: 1.35rem;
  font-weight: 900;
  border: 2px solid #0f172a;
  padding: 0.2rem 0.55rem;
  background: #0f172a !important;
  color: #ffffff !important;
  line-height: 1;
}

.thermal-label-body {
  padding: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #0f172a !important;
}

.thermal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 0.5rem;
}

.thermal-barcode-svg {
  width: 100%;
  height: 52px;
  margin: 0.75rem 0 0.35rem;
  display: block;
}

.thermal-sscc-number {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-align: center;
  font-weight: 700;
  color: #0f172a !important;
}

/* Rugged PDA Handheld Device */
.pda-terminal-device {
  background: #1e293b !important;
  border: 3px solid #0f172a !important;
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  max-width: 380px;
  margin: 0 auto;
}

.pda-scanner-window {
  height: 10px;
  background: #dc2626 !important;
  border-radius: 4px;
  margin: 0 auto 0.6rem;
  width: 70px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.pda-screen {
  background: #0b1120 !important;
  border-radius: var(--hub-radius, 4px) !important;
  padding: 1rem;
  color: #f8fafc !important;
  font-family: var(--hub-mono);
  border: 1px solid #334155 !important;
}

.pda-top-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8 !important;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

.pda-location-callout {
  background: #1e293b !important;
  border-left: 4px solid var(--hub-accent-blue);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.pda-action-btn {
  background: #10b981 !important;
  color: #022c22 !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--hub-radius, 4px) !important;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Tangible 3PL Invoice Breakdown */
.invoice-card {
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  border-radius: var(--hub-radius, 4px) !important;
  padding: 1.5rem;
  box-shadow: var(--hub-card-shadow);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 1rem 0;
}

.invoice-table th {
  border-bottom: 1px solid var(--hub-border);
  padding: 0.5rem 0.25rem;
  color: var(--hub-text-muted) !important;
  font-family: var(--hub-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.invoice-table td {
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--hub-border-subtle);
  color: var(--hub-text-primary) !important;
}

.invoice-table td:last-child {
  text-align: right;
  font-family: var(--hub-mono);
  font-weight: 600;
}

/* Interactive ROI Calculator */
.roi-calculator {
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  border-radius: var(--hub-radius, 4px) !important;
  padding: 2.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.roi-slider-row {
  margin-bottom: 1.5rem;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hub-text-primary) !important;
}

.roi-slider-val {
  font-family: var(--hub-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hub-accent-blue) !important;
}

.roi-range-input {
  width: 100%;
  height: 6px;
  border-radius: var(--hub-radius, 4px) !important;
  background: var(--hub-border);
  outline: none;
  cursor: pointer;
  accent-color: var(--hub-accent-blue);
}

.roi-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hub-border);
}

.roi-output-cell {
  background: var(--hub-surface-subtle) !important;
  border: 1px solid var(--hub-border-subtle) !important;
  border-radius: var(--hub-radius, 4px) !important;
  padding: 1rem;
}

.roi-output-num {
  font-family: var(--hub-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hub-accent-emerald) !important;
  display: block;
}

.roi-output-label {
  font-size: 0.78rem;
  color: var(--hub-text-secondary) !important;
  line-height: 1.35;
  margin-top: 0.35rem;
  display: block;
}

/* Operator and Director Testimonials */
.human-quote-card {
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  border-left: 4px solid var(--hub-accent-blue) !important;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.human-quote-text {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--hub-text-primary) !important;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.human-quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hub-text-primary) !important;
}

.human-quote-role {
  font-size: 0.78rem;
  color: var(--hub-text-muted) !important;
}

/* ==========================================================================
   14. EXPANSIVE FULL-SCREEN PC LAYOUT & FLUID ERGONOMICS (2026 WIDESCREEN)
   ========================================================================== */

/* Universal mobile & desktop overflow containment */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Unbind default Quark2 container & content-item restrictions */
.container,
.container-fluid,
.container-wide {
  width: 96% !important;
  max-width: 1720px !important;
  margin-inline: auto !important;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem) !important;
  box-sizing: border-box !important;
}

@media (min-width: 1920px) {
  .container,
  .container-fluid,
  .container-wide {
    max-width: 1880px !important;
    padding-inline: 3rem !important;
  }
}

.hub-page-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Eliminate artificial 960px white card wrapping the entire page on desktop */
#body-wrapper > .container > .content-item,
#body-wrapper > .container-wide > .content-item,
#body-wrapper .content-item,
.content-item,
.hub-page-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#body-wrapper {
  padding-block: clamp(1rem, 2.5vw, 2.5rem) !important;
  background: transparent !important;
}

/* Header & Navbar full-screen alignment */
#header {
  width: 100% !important;
  background: var(--hub-nav-bg) !important;
  border-bottom: 1px solid var(--hub-border) !important;
}

#header .container,
#header .container-wide {
  max-width: 1720px !important;
  width: 96% !important;
  margin-inline: auto !important;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem) !important;
}

@media (min-width: 1920px) {
  #header .container,
  #header .container-wide {
    max-width: 1880px !important;
    padding-inline: 3rem !important;
  }
}

#header .navbar {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0.85rem 0 !important;
}

/* Footer full-screen alignment */
#footer {
  width: 100% !important;
  background: var(--hub-footer-bg) !important;
  border-top: 1px solid var(--hub-border) !important;
}

#footer .container {
  max-width: 1720px !important;
  width: 96% !important;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem) !important;
}

@media (min-width: 1920px) {
  #footer .container {
    max-width: 1880px !important;
  }
}

/* Expansive split hero on PC */
.split-hero {
  display: grid !important;
  grid-template-columns: 1.22fr 0.98fr !important;
  gap: clamp(2.5rem, 5vw, 5rem) !important;
  align-items: center !important;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem) !important;
  width: 100% !important;
}

/* Telemetry strip full width */
.telemetry-strip {
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  border: 1px solid var(--hub-border) !important;
  background: var(--hub-border) !important;
  gap: 1px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin: 3rem 0 !important;
}

/* Technical Panels & Grids */
.tech-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  width: 100% !important;
  border: 1px solid var(--hub-border) !important;
  background: var(--hub-border) !important;
  gap: 1px !important;
}

/* ==========================================================================
   15. ENHANCED SMARTPHONE RESPONSIVENESS & TOUCH ERGONOMICS
   ========================================================================== */

img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .split-hero {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    padding: 2rem 0 1.75rem !important;
  }
}

@media (max-width: 860px) {
  /* Keep mobile action items clean and functional */
  .navbar-section.actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-right: 56px !important; /* Leave clearance for hamburger icon */
  }
  .navbar-section.actions .hub-btn,
  .navbar-section.actions .theme-toggle {
    display: none !important;
  }
  .navbar-section.actions .lang-dropdown-wrapper {
    display: inline-block !important;
  }
  
  .mobile-menu {
    top: 10px !important;
    right: 12px !important;
  }
  
  .overlay {
    padding: 4.5rem 1.5rem 2rem !important;
  }
}

@media (max-width: 768px) {
  .container,
  .container-fluid {
    padding-inline: 1rem !important;
  }

  #body-wrapper {
    padding-block: 1rem 2.25rem !important;
  }

  /* Fluid typography scaling for mobile screens */
  h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
  }
  h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
    line-height: 1.2 !important;
  }
  h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem) !important;
  }
  p {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
  }

  /* Mobile card ergonomics */
  .hub-card,
  .tech-panel,
  .blueprint-box,
  .roi-calculator,
  .invoice-card {
    padding: 1.25rem !important;
    border-radius: 4px !important;
  }

  /* Mobile telemetry: 2 clean columns */
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    margin: 1.5rem 0 !important;
  }
  .telemetry-cell {
    padding: 1rem !important;
  }
  .telemetry-val {
    font-size: 1.45rem !important;
  }

  /* Full width button layout on mobile */
  .split-hero .hub-btn,
  .hub-card > a.hub-btn,
  .hero-actions .hub-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  /* Collapse multi-column grids gracefully to 1fr on mobile */
  .tech-grid,
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Responsive benchmark table scroll */
  .spec-table-container {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 4px !important;
    margin: 1.25rem 0 !important;
  }
  .spec-table th,
  .spec-table td {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  /* Hardware devices */
  .thermal-label-container,
  .pda-terminal-device {
    max-width: 100% !important;
    margin: 1rem auto !important;
  }

  /* Prevent iOS zoom on form inputs (16px minimum) */
  .form-input, .form-select, .form-textarea,
  input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    font-size: 16px !important;
    padding: 0.75rem 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .telemetry-strip {
    grid-template-columns: 1fr !important;
  }
  .telemetry-cell {
    padding: 0.85rem 1rem !important;
  }
  .thermal-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
  }
}

/* ==========================================================================
   16. PRECISION NAVBAR ALIGNMENT & DAY/NIGHT SWITCHER
   ========================================================================== */

/* Header bar container alignment */
#header {
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
}

#header .navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 64px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.navbar-section {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar-section.logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.navbar-brand svg {
  height: 32px !important;
  width: auto !important;
  display: block !important;
}

/* Nav Menu Links - standardized 36px height and vertical alignment */
.navbar-section.desktop-menu {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  margin-right: 1.25rem !important;
}

.dropmenu {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dropmenu > ul,
.dropmenu ul.navigation {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.dropmenu > ul > li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.dropmenu a,
.dropmenu > ul > li > a {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0.85rem !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--hub-text-secondary) !important;
  border-radius: 4px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.dropmenu a:hover,
.dropmenu > ul > li > a:hover {
  color: var(--hub-text-primary) !important;
  background-color: var(--hub-surface-subtle) !important;
  border-color: var(--hub-border) !important;
}

/* Submenu dropdown caret */
.dropmenu li.has-children > a::after {
  content: "" !important;
  display: inline-block !important;
  width: 5px !important;
  height: 5px !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
  margin-left: 0.35rem !important;
  opacity: 0.6 !important;
}

/* Active page link styling - subtle and elegant, NO glaring solid white block */
.dropmenu a.active,
.dropmenu ul li a.active,
.dropmenu > ul > li > a.active {
  color: var(--hub-text-primary) !important;
  background-color: var(--hub-surface-subtle) !important;
  border: 1px solid var(--hub-border) !important;
  font-weight: 600 !important;
}

/* Actions Section: Language, Theme Toggle, CTA Demo - exact 36px height */
.navbar-section.actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  margin-left: 0 !important;
}

/* Language Switcher Button */
.lang-dropdown-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.lang-switcher-btn {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0.75rem !important;
  margin: 0 !important;
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  color: var(--hub-text-secondary) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  gap: 0.4rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  font-family: var(--hub-mono) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.lang-switcher-btn:hover {
  color: var(--hub-text-primary) !important;
  border-color: var(--hub-border-active) !important;
  background: var(--hub-surface-subtle) !important;
}

/* Day / Night Theme Toggle Button */
.theme-toggle {
  height: 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  color: var(--hub-text-secondary) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

.theme-toggle:hover {
  color: var(--hub-text-primary) !important;
  border-color: var(--hub-border-active) !important;
  background: var(--hub-surface-subtle) !important;
}

/* Day / Night icon management:
   - When Dark (Night): show Sun (☀️) in warm amber to switch to Day
   - When Light (Day): show Moon (🌙) in cool slate to switch to Night
*/
.theme-toggle .icon {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

:root[data-theme="dark"] .theme-toggle .icon-sun,
html.dark .theme-toggle .icon-sun {
  display: inline-block !important;
  font-size: 15px !important;
  color: #f59e0b !important;
}

:root[data-theme="dark"] .theme-toggle .icon-moon,
html.dark .theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-auto,
html.dark .theme-toggle .icon-auto {
  display: none !important;
}

:root[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: inline-block !important;
  font-size: 14px !important;
  color: #334155 !important;
}

:root[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme="dark"]) .theme-toggle .icon-sun,
:root[data-theme="light"] .theme-toggle .icon-auto,
:root:not([data-theme="dark"]) .theme-toggle .icon-auto {
  display: none !important;
}

/* Nav Demo CTA Button */
.nav-demo-btn {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 1.15rem !important;
  margin: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  gap: 0.45rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

/* ==========================================================================
   17. STRICT UNIFIED 4PX CORNER RADIUS ACROSS ALL BOXES & PANELS
   Harmonizes every card, callout, table, badge, and container in Hub3PL
   ========================================================================== */
.invoice-card,
.roi-calculator,
.roi-output-cell,
.hub-card,
.tech-panel,
.blueprint-box,
.telemetry-strip,
.spec-table-container,
.thermal-label-container,
.human-quote-card,
.pda-screen,
.pda-action-btn,
.pda-scanner-window,
.topology-node,
.tech-tag,
.hub-badge,
.badge-code,
.dropmenu ul li ul,
.lang-dropdown-menu,
.lang-dropdown-menu li a,
.lang-badge-pill,
.lang-switcher-btn,
.theme-toggle,
.nav-demo-btn,
.hub-btn,
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select,
[style*="border-radius: 8px"],
[style*="border-radius: 6px"],
[style*="border-radius: 4px"],
[style*="border-radius: 3px"],
[style*="border-radius: 2px"],
[style*="border-radius:8px"],
[style*="border-radius:6px"],
[style*="border-radius:4px"],
[style*="border-radius:3px"],
[style*="border-radius:2px"] {
  border-radius: var(--hub-radius, 4px) !important;
}

/* Retain circular geometry exclusively for live status pulse indicators */
.pulse-indicator,
.pulse-dot,
[style*="border-radius: 50%"],
[style*="border-radius:50%"] {
  border-radius: 50% !important;
}
