/* ==========================================================================
   Node-X-Logistics — Bugatti Design System Specification
   Liquid Glass UI 2.0 & Full-Viewport 3D Background Engine
   Near-Pure Black Canvas (#000000), Uppercase Letterspaced Display,
   Custom Type Trinity (Display / Serif Text / Monospace), Transparent Pill CTAs,
   Hyper-Transparent Liquid Glass Optics (Refraction, Sheen, Specular Highlights),
   Multi-Tier Corner Radius Scale & Decluttered Simulator
   ========================================================================== */

:root {
  /* Colors */
  --primary: #ffffff;
  --ink: #ffffff;
  --body: #d6d6d6;
  --body-strong: #f0f0f0;
  --muted: #a0a0a0;
  --muted-soft: #707070;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --canvas: #000000;
  --on-primary: #000000;
  --on-dark: #ffffff;
  --on-photo: #ffffff;
  --link: #c3d9f3;
  --warning: #e5b32a;
  --success: #5fa657;
  --critical: #ea4d4d;
  --critical-dim: rgba(234, 77, 77, 0.18);

  /* Liquid Glass 2.0 Surface Tokens (Enhanced Transparency & Refraction) */
  --glass-bg: rgba(18, 18, 22, 0.18);
  --glass-bg-strong: rgba(18, 18, 22, 0.45);
  /* critical modal only — needs to stay readable */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 28px;

  /* Typography Fonts */
  --font-display: "Saira Condensed", "Bugatti Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Bugatti Text Regular", Garamond, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Bugatti Monospace", ui-monospace, "SF Mono", monospace;

  /* Corner Radius Scale */
  --radius-none: 0px;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 64px;
  --space-section: 120px;

  /* Navigation Heights */
  --nav-height: 56px;
}

/* Reset & Base Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--canvas);
  color: var(--body);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   PERSISTENT FULL-VIEWPORT 3D BACKGROUND & DARK SCRIM OVERLAY
   ========================================================================== */
#siteBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--canvas);
}

#siteBgScrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--hairline);
  z-index: 2;
}

.app-main {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-top: var(--nav-height);
}

.bugatti-footer,
.modal-backdrop {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   REUSABLE LIQUID GLASS CORE CLASS (Light Refraction, Sheen, Specular Highlights)
   ========================================================================== */
.liquid-glass,
.stakeholder-card,
.sim-toolbar-band,
.sim-panel,
.sim-center-canvas,
.metrics-2x2-grid,
.runway-glass-card,
.feed-entry-card,
.ledger-card,
.node-inspector-strip,
.hero-spec-grid,
.step-rows-container {
  position: relative;
  overflow: hidden;
  /* keeps the sheen inside the squircle corners */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.40), 0 16px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Specular Top-Sheen Overlay */
.liquid-glass::before,
.stakeholder-card::before,
.sim-toolbar-band::before,
.sim-panel::before,
.sim-center-canvas::before,
.metrics-2x2-grid::before,
.runway-glass-card::before,
.feed-entry-card::before,
.ledger-card::before,
.node-inspector-strip::before,
.hero-spec-grid::before,
.step-rows-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* ==========================================================================
   REUSABLE UTILITY CLASSES
   ========================================================================== */
.stack-xs {
  margin-bottom: 6px;
}

.stack-sm {
  margin-bottom: 12px;
}

.stack-md {
  margin-bottom: 20px;
}

.stack-lg {
  margin-bottom: 32px;
}

.divider-top {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

/* ==========================================================================
   TYPOGRAPHY (Bugatti Trinity: Display / Serif / Monospace — Weight 400 Always)
   ========================================================================== */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.display-md {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}

.display-sm {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.title-md {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}

.title-sm {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.caption-uppercase {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.body-md {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--body);
}

.body-sm {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.text-link {
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.critical-text {
  color: var(--critical) !important;
}

/* ==========================================================================
   BUTTONS (Transparent Pill Background with Specular Outline)
   ========================================================================== */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.40), 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-primary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: #ffffff;
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.60), 0 12px 32px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: scale(0.97) translateY(0);
}

.button-primary-small {
  padding: 8px 20px;
  height: 34px;
  font-size: 11px;
  letter-spacing: 2px;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.20), 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateY(-1px);
}

.button-secondary-small {
  padding: 8px 20px;
  height: 34px;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.button-danger {
  border-color: var(--critical) !important;
  border-top-color: rgba(234, 77, 77, 0.8) !important;
  color: var(--critical) !important;
  box-shadow: inset 0 1px 1px 0 rgba(234, 77, 77, 0.35), 0 6px 20px rgba(234, 77, 77, 0.15);
}

.button-danger:hover {
  background: rgba(234, 77, 77, 0.15) !important;
  box-shadow: 0 0 16px rgba(234, 77, 77, 0.35) !important;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.top-nav-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.wordmark-center {
  cursor: pointer;
}

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

/* Status Badge (--radius-sm) */
.status-badge-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-sm);
  corner-shape: squircle;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
}

/* ==========================================================================
   HERO PHOTO BAND & SPEC CELLS
   ========================================================================== */
.hero-photo-band {
  background: transparent;
  color: var(--on-dark);
  padding: 110px 32px 90px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.hero-lead-text {
  max-width: 780px;
  margin: 24px auto 0;
  font-size: 18px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 48px 0 64px;
  flex-wrap: wrap;
}

/* Liquid Glass Specs Grid (--radius-lg) */
.hero-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  margin-top: 40px;
  text-align: left;
}

.spec-cell {
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease;
  position: relative;
  z-index: 1;
}

.spec-cell:hover {
  background: rgba(255, 255, 255, 0.04);
}

.spec-cell:last-child {
  border-right: none;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}

.spec-cell-sub {
  color: var(--muted-soft);
}

/* ==========================================================================
   SECTION BANDS & STAKEHOLDER CARDS (--radius-lg)
   ========================================================================== */
.section-band {
  padding: var(--space-section) 32px;
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header-wrap {
  text-align: left;
  margin-bottom: 64px;
}

.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Liquid Glass Stakeholder Card (--radius-lg) */
.stakeholder-card {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stakeholder-card:hover {
  border-top-color: rgba(255, 255, 255, 0.60);
  border-left-color: rgba(255, 255, 255, 0.30);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.40), 0 20px 48px rgba(0, 0, 0, 0.60);
}

.stakeholder-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.feature-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--body);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Step Rows Container (--radius-lg) */
.step-rows-container {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  corner-shape: squircle;
}

.step-row {
  display: grid;
  grid-template-columns: 120px 280px 1fr;
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: baseline;
  transition: background 0.2s ease;
  position: relative;
  z-index: 1;
}

.step-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.step-row:last-child {
  border-bottom: none;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--muted);
}

/* ==========================================================================
   SIMULATOR STUDIO (Liquid Glass UI 2.0)
   ========================================================================== */
.simulator-section {
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Toolbar Band (--radius-md) */
.sim-toolbar-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  padding: 14px 28px;
  margin-bottom: 24px;
}

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   VOICE AGENT SWITCH (From Uiverse.io by Galahhad)
   ========================================================================== */
.switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: rgb(0, 218, 80);
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 10px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all .2s ease-in-out;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}

.switch input {
  display: none;
}

.switch svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
  position: absolute;
  height: auto;
}

.switch .checkmark {
  width: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

.switch .cross {
  width: var(--icon-cross-size);
  color: var(--icon-cross-color);
}

.slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
  cursor: pointer;
}

.circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: inherit;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
}

.slider::before {
  content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  -webkit-transition: var(--effect-transition);
  -o-transition: var(--effect-transition);
  transition: var(--effect-transition);
}

/* actions */

.switch input:checked+.slider {
  background: var(--switch-checked-bg);
}

.switch input:checked+.slider .checkmark {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.switch input:checked+.slider .cross {
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

.switch input:checked+.slider::before {
  left: calc(100% - var(--effect-width) - (var(--effect-width) / 2) - var(--switch-offset));
}

.switch input:checked+.slider .circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}

.bugatti-select {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-sm);
  corner-shape: squircle;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 8px 14px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bugatti-select:hover {
  border-top-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.bugatti-select:focus {
  border-color: rgba(255, 255, 255, 0.60);
}

.bugatti-select option {
  background-color: #0d0d12;
  color: #ffffff;
  padding: 8px;
}

/* 3-Column Studio Grid */
.sim-grid {
  display: grid;
  grid-template-columns: 340px 1fr 380px;
  gap: 24px;
  min-height: 720px;
}

/* Liquid Glass Sidebars (--radius-lg) */
.sim-panel {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  position: relative;
  z-index: 1;
}

/* Minimal Monochrome Node Inspector */
.node-inspector-tray {
  max-width: 280px;
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #333333;
  border-radius: 4px;
  padding: 16px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.inspector-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

/* --- MINIMAL MONOCHROME DISRUPTION PRESETS --- */
.preset-chip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.preset-chip {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #a0a0a0;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 10px;
  border: 1px solid #222222;
  border-left: 2px solid #444444;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: #111111;
  color: #ffffff;
  border-left-color: #ffffff;
}

/* Slider */
.bugatti-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  margin: 14px 0;
}

.bugatti-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 0px;
  /* Sharp square per spec */
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

/* Center Graph Canvas (--radius-lg) */
.sim-center-canvas {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.graph-viewport {
  flex: 1;
  min-height: 420px;
  background: rgba(6, 6, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-md);
  corner-shape: squircle;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
  margin: 16px 0 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.network-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Graph Legend Row */
.graph-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 6px 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-factory {
  background-color: #ffffff;
}

.dot-transit {
  background-color: var(--link);
}

.dot-warehouse {
  background-color: #a0a0a0;
}

.dot-delivery {
  background-color: #5fa657;
}

.dot-bottleneck {
  background-color: var(--critical);
}

/* ==========================================================================
   MINIMAL FLOATING TOPOLOGY & HOVER-REVEAL NODES
   ========================================================================== */

.svg-node-minimal {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.svg-node-minimal:hover {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85));
}

.svg-node-minimal.selected {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 1));
}

.svg-node-minimal.bottleneck {
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.85));
}

/* Floating breathing keyframes */
@keyframes floatMinimalNode {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }
}

.svg-node-minimal .minimal-node-halo {
  animation: pulseNodeHalo 2.6s ease-in-out infinite;
  transform-origin: 20px 20px;
  transition: all 0.25s ease;
}

@keyframes pulseNodeHalo {

  0%,
  100% {
    stroke-opacity: 0.45;
    opacity: 0.65;
  }

  50% {
    stroke-opacity: 0.95;
    opacity: 1;
  }
}

.svg-node-minimal .minimal-node-core {
  transition: all 0.2s ease;
}

.svg-node-minimal:hover .minimal-node-core {
  stroke-width: 2.6;
}

.svg-node-minimal:hover .minimal-node-halo {
  stroke-opacity: 1;
}

.svg-node-minimal.selected .minimal-node-core {
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.svg-node-minimal.selected .minimal-node-halo {
  stroke-width: 1.6;
  stroke-opacity: 1;
}

#graphSvg {
  pointer-events: none;
}

#graphSvg .svg-node-minimal {
  pointer-events: auto;
}

#graphSvg .svg-edge {
  pointer-events: none;
}

/* Legacy SVG node card styles */
.node-card-bg {
  fill: rgba(16, 16, 20, 0.85);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.2;
  rx: 8;
  ry: 8;
  transition: all 0.2s ease;
}

.svg-node-group:hover .node-card-bg {
  stroke: rgba(255, 255, 255, 0.6);
  fill: rgba(24, 24, 30, 0.92);
}

.svg-node-group.bottleneck .node-card-bg {
  stroke: var(--critical);
  stroke-width: 2;
  fill: rgba(40, 15, 15, 0.85);
}

.svg-node-group.financed .node-card-bg {
  stroke: #ffffff;
  stroke-width: 1.8;
  fill: rgba(22, 22, 28, 0.90);
}

.svg-node-group.settled .node-card-bg {
  stroke: var(--muted-soft);
  stroke-width: 1.2;
}

.svg-node-group.selected .node-card-bg {
  stroke: #ffffff;
  stroke-width: 2.4;
  fill: rgba(30, 30, 38, 0.95);
}

.svg-edge {
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s ease;
}

.svg-edge.shocked-edge,
.svg-edge.shocked {
  stroke: var(--critical);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.flow-particle {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

.flow-particle.shocked-particle {
  fill: var(--critical);
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.85));
}

/* Node Inspector Strip (--radius-md) */
.node-inspector-strip {
  border-radius: var(--radius-md);
  corner-shape: squircle;
  padding: 16px 20px;
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr auto;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Tabs */
.bugatti-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.bugatti-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bugatti-tab-btn:hover {
  color: #ffffff;
}

.bugatti-tab-btn.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Ledger List & Cards (--radius-md) */
.ledger-list-wrap {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ledger-card {
  border-radius: var(--radius-md);
  corner-shape: squircle;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Shared Glass 2x2 Metrics Container with Internal Dividers */
.metrics-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-md);
  corner-shape: squircle;
}

.metric-sub-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  z-index: 1;
}

.metric-sub-card::before {
  display: none !important;
}

.metric-sub-card:nth-child(2n) {
  border-right: none !important;
}

.metric-sub-card:nth-last-child(-n+2) {
  border-bottom: none !important;
}

.metric-sub-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ffffff;
}

.risk-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  margin-top: 6px;
}

.risk-bar-fill {
  width: 12%;
  height: 100%;
  background: #ffffff;
}

/* Runway Glass Card */
.runway-glass-card {
  border-radius: var(--radius-md);
  corner-shape: squircle;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.runway-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  margin: 8px 0;
}

.runway-bar-fill {
  width: 100%;
  height: 100%;
  background: #ffffff;
}

/* Feed Entries (--radius-md) */
.refinancing-feed-list {
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.feed-entry-card {
  border-left: 3px solid #ffffff;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-entry-card.critical {
  border-left-color: var(--critical);
}

/* --- MINIMAL COMPACT NODE POP-UP (NO FULL-SCREEN, NO COLOR) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-bugatti-card {
  width: 100%;
  max-width: 320px;
  /* Compact, non-intrusive */
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);
}

/* Strip all color accents inside the modal */
.modal-bugatti-card * {
  text-shadow: none !important;
}

.modal-bugatti-card h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 1px;
}

.modal-bugatti-card .caption-uppercase {
  font-size: 9px;
  color: #777777;
  letter-spacing: 1px;
}

.modal-bugatti-card strong,
.modal-bugatti-card span {
  color: #dddddd !important;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid #333333;
  color: #888888;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  padding: 3px 8px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.attack-modal-details {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   REACT BITS <LogoLoop /> COMPONENT & PARTNER TICKER SECTION
   ========================================================================== */
.partner-ticker-band {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  padding: 44px 0 36px;
  position: relative;
  overflow: hidden;
}

.partner-ticker-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.partner-ticker-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.partner-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.partner-ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  corner-shape: squircle;
  padding: 8px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-ticker-chip:hover {
  background: rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.60);
  border-left-color: rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.30), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.partner-ticker-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.partner-ticker-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.partner-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}

.partner-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

/* React Bits LogoLoop Core Styles */
.logoloop {
  position: relative;
  overflow: hidden;
  --logoloop-gap: 32px;
  --logoloop-logoHeight: 28px;
  --logoloop-fadeColorAuto: #000000;
}

.logoloop--vertical {
  height: 100%;
  display: inline-block;
}

.logoloop--scale-hover {
  padding-top: calc(var(--logoloop-logoHeight) * 0.1);
  padding-bottom: calc(var(--logoloop-logoHeight) * 0.1);
}

.logoloop__track {
  display: flex;
  width: max-content;
  will-change: transform;
  user-select: none;
  position: relative;
  z-index: 0;
}

.logoloop--vertical .logoloop__track {
  flex-direction: column;
  height: max-content;
  width: 100%;
}

.logoloop__list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.logoloop--vertical .logoloop__list {
  flex-direction: column;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  font-size: var(--logoloop-logoHeight);
  line-height: 1;
  list-style: none;
}

.logoloop--vertical .logoloop__item {
  margin-right: 0;
  margin-bottom: var(--logoloop-gap);
}

.logoloop__item:last-child {
  margin-right: var(--logoloop-gap);
}

.logoloop--vertical .logoloop__item:last-child {
  margin-right: 0;
  margin-bottom: var(--logoloop-gap);
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
}

.logoloop__item img {
  height: var(--logoloop-logoHeight);
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop--scale-hover .logoloop__item {
  overflow: visible;
}

.logoloop--scale-hover .logoloop__item:hover img,
.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
  transform: scale(1.08);
  transform-origin: center center;
}

.logoloop--scale-hover .logoloop__node {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}

.logoloop__link:hover {
  opacity: 0.9;
}

.logoloop__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.logoloop--fade::before,
.logoloop--fade::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 8%, 140px);
  pointer-events: none;
  z-index: 10;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(to right,
      var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
      rgba(0, 0, 0, 0) 100%);
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(to left,
      var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
      rgba(0, 0, 0, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .logoloop__track {
    transform: translate3d(0, 0, 0) !important;
  }

  .logoloop__item img,
  .logoloop__node {
    transition: none !important;
  }
}

/* ==========================================================================
   OUR STACK & INSPIRATION (Segmented Tab LogoLoop Section)
   ========================================================================== */
.stack-inspiration-section {
  position: relative;
  padding: 80px 32px 90px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-inspiration-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stack-tab-segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  margin: 32px auto 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.20), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stack-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.stack-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stack-tab-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.stack-subheading-wrap {
  min-height: 32px;
  margin-bottom: 24px;
}

.stack-subheading {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.stack-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  padding: 12px;
  border-radius: var(--radius-squircle, 20px);
  corner-shape: squircle;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.40), 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.stack-logo-chip:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.50);
  border-top-color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.stack-logo-img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  transition: transform 0.25s ease;
}

.stack-logo-chip svg {
  max-width: 48px;
  max-height: 38px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  transition: transform 0.25s ease;
}

.stack-logo-chip:hover .stack-logo-img,
.stack-logo-chip:hover svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

/* Footer (Liquid Glass Dark Surface) */
.bugatti-footer {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.05);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 80px 32px 48px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* ==========================================================================
   ABOUT US PAGE — TECHIEMECHIE BRAND & ENGINEERING STYLES
   ========================================================================== */
.about-hero {
  position: relative;
  padding: 100px 32px 80px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.techie-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.techie-logo-svg {
  width: 76px;
  height: 76px;
  color: #ffffff;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  transition: transform 0.4s ease;
}

.techie-logo-wrap:hover .techie-logo-svg {
  transform: scale(1.06) rotate(6deg);
}

.about-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  margin: 28px 0 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Disciplines Equation Card */
.equation-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  corner-shape: squircle;
}

.equation-block {
  padding: 24px 18px;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.equation-block:hover {
  background: rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 255, 255, 0.50);
  transform: translateY(-2px);
}

.equation-symbol {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}

.equation-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  margin-bottom: 4px;
}

/* Why TechieMechie 4-Card Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover {
  border-top-color: rgba(255, 255, 255, 0.60);
  border-left-color: rgba(255, 255, 255, 0.30);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.40), 0 20px 48px rgba(0, 0, 0, 0.60);
}

/* Philosophy 4-Step Flow */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.philosophy-steps-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.philosophy-step-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.25s ease;
}

.philosophy-step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.50);
  transform: translateX(4px);
}

.philosophy-step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  width: 64px;
  flex-shrink: 0;
}

.philosophy-step-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1;
}

.philosophy-arrow-indicator {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 16px;
}

/* Mindset Visual Stream */
.mindset-stream-deck {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 44px 36px;
  margin-bottom: 32px;
}

.mindset-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 40px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mindset-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  transition: all 0.2s ease;
}

.mindset-node:hover {
  background: rgba(255, 255, 255, 0.12);
  border-top-color: #ffffff;
  transform: scale(1.05);
}

.mindset-arrow {
  font-family: var(--font-mono);
  color: var(--muted-soft);
  font-size: 14px;
}

.mindset-highlight-quote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
  color: #ffffff;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Mission Statement Box */
.mission-card {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 48px 40px;
}

/* LinkedIn Dedicated Card */
.linkedin-section-card {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 1px solid #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.50), 0 12px 32px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.linkedin-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-color: #ffffff;
  box-shadow: inset 0 1px 2px #ffffff, 0 16px 40px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.linkedin-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Final CTA Band */
.final-about-cta {
  padding: 80px 32px 100px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 1200px) {
  .sim-grid {
    grid-template-columns: 300px 1fr 320px;
  }

  .stakeholder-grid {
    grid-template-columns: 1fr;
  }

  .hero-spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sim-grid {
    grid-template-columns: 1fr;
  }

  .nav-left-cluster,
  .nav-right-cluster {
    display: none;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .equation-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .equation-symbol {
    text-align: center;
    font-size: 24px;
  }

  .mindset-flow-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mindset-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   LOGISTICS PATHWAY OPTIMIZER & SHIPPING METHOD ANALYZER (BUGATTI LUXURY GLASS)
   ========================================================================== */
.pathway-optimizer-deck {
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.pathway-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.pathway-deck-title-group h3 {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #ffffff;
  margin-top: 4px;
}

.pathway-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.pathway-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pathway-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.pathway-card.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pathway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pathway-tag-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: 500;
}

.badge-optimum {
  background: rgba(95, 166, 87, 0.2);
  color: #5fa657;
  border: 1px solid rgba(95, 166, 87, 0.4);
}

.badge-speed {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.badge-cost {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-balanced {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pathway-title {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
  margin-top: 4px;
}

.pathway-specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}

.pathway-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.pathway-spec-label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
}

.pathway-spec-val {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 500;
}

.pathway-cost-total-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pathway-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted-soft);
}

.pathway-total-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.pathway-select-btn {
  width: 100%;
  margin-top: 14px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pathway-card.active .pathway-select-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  border-color: #ffffff;
}

.pathway-card:not(.active):hover .pathway-select-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Customizer & Verdict Analysis Deck */
.pathway-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

@media (max-width: 900px) {
  .pathway-details-grid {
    grid-template-columns: 1fr;
  }
}

.pathway-customizer-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pathway-verdict-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.verdict-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.verdict-explanation-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 16px;
}

.verdict-tradeoff-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 11.5px;
}

.verdict-tradeoff-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--hairline);
}

.verdict-tradeoff-table td {
  font-family: var(--font-mono);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   MINIMALIST STUDIO SEGMENTED NAVIGATION & CRISIS / AI SUITES
   ========================================================================== */
.studio-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.studio-tab-bar::-webkit-scrollbar {
  display: none;
}

.studio-tab-btn {
  flex: 1;
  min-width: 180px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.studio-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.studio-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

.studio-pane {
  display: none;
  animation: fadeInPane 0.25s ease forwards;
}

.studio-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DECADE CRISIS LAB STYLES */
.crisis-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.crisis-card {
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.crisis-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.crisis-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.crisis-title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 3px;
}

.crisis-severity-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  text-transform: uppercase;
  white-space: nowrap;
}

.crisis-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .crisis-impact-grid {
    grid-template-columns: 1fr;
  }
}

.impact-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--body);
}

.impact-list li strong {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 500;
}

.crisis-optimal-box {
  background: rgba(95, 166, 87, 0.06);
  border: 1px solid rgba(95, 166, 87, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.optimal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.optimal-route-name {
  font-family: var(--font-headline);
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
  margin-top: 4px;
}

.optimal-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

/* OPEN-SOURCE AI ADVISOR STYLES */
.ai-advisor-container {
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.ai-query-box {
  display: flex;
  gap: 12px;
  margin: 16px 0 12px;
}

@media (max-width: 700px) {
  .ai-query-box {
    flex-direction: column;
  }
}

.ai-input-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.ai-input-field:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.ai-suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ai-pill-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ai-thinking-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 12px #60a5fa;
  animation: pulseAi 1.2s infinite ease-in-out;
}

@keyframes pulseAi {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.ai-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 24px;
}

.ai-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.ai-metric-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ai-pill-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-pill-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.ai-secondary-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 11.5px;
}

/* ==========================================================================
   GLOBAL LOGISTICS ROUTE INTELLIGENCE SYSTEM (150 CHECKPOINTS)
   DARK COMMAND-CENTER WORLD MAP & HORIZONTAL ROUTING CONTROLS
   ========================================================================== */

.route-intelligence-deck {
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* --- Map Viewport & Header --- */
.world-map-wrapper {
  background: #030407;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin: 18px 0;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.map-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(10, 12, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: #00f0ff;
  text-transform: uppercase;
  font-weight: 600;
}

.hud-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* Filter Segmented Control */
.map-filter-group {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
}

.map-filter-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.map-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.map-filter-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.btn-sea.active {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.btn-rail.active {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-air.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-sea {
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
}

.dot-rail {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.dot-air {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.dot-origin {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dot-dest {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.map-zoom-group {
  display: flex;
  gap: 4px;
}

.map-ctrl-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #00f0ff;
}

/* --- SVG World Canvas --- */
.map-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #030407;
  cursor: grab;
}

.world-svg-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-landmass {
  fill: #0c0e14;
  stroke: #1e2433;
  stroke-width: 0.8;
  transition: fill 0.3s ease;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.5;
  stroke-dasharray: 2, 4;
}

.grid-equator,
.grid-meridian {
  stroke: rgba(0, 240, 255, 0.12);
  stroke-width: 0.8;
}

/* --- Node Markers --- */
.map-node {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-node:hover {
  filter: drop-shadow(0 0 8px currentColor);
}

.node-halo {
  fill: transparent;
  stroke-width: 1;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.halo-sea {
  stroke: #00f0ff;
}

.halo-air {
  stroke: #38bdf8;
}

.halo-rail {
  stroke: #f59e0b;
}

.core-sea {
  fill: #00f0ff;
}

.core-air {
  fill: #38bdf8;
}

.core-rail {
  fill: #f59e0b;
}

/* Node Highlight States */
.map-node.node-origin .node-halo {
  stroke: #10b981;
  stroke-width: 2.5;
  r: 10;
  opacity: 1;
  animation: pulseGreenRing 1.6s infinite ease-in-out;
}

.map-node.node-origin .node-core {
  fill: #10b981 !important;
}

.map-node.node-dest .node-halo {
  stroke: #f43f5e;
  stroke-width: 2.5;
  r: 10;
  opacity: 1;
  animation: pulseRedRing 1.6s infinite ease-in-out;
}

.map-node.node-dest .node-core {
  fill: #f43f5e !important;
}

.map-node.node-waypoint .node-halo {
  stroke: #00f0ff;
  stroke-width: 2;
  r: 9;
  opacity: 0.9;
  animation: pulseCyanRing 2s infinite ease-in-out;
}

.map-node.node-blocked {
  opacity: 0.6;
}

.map-node.node-blocked .node-halo {
  stroke: #ef4444;
  stroke-width: 2;
  r: 9;
  opacity: 1;
}

.map-node.node-blocked .node-core {
  fill: #ef4444 !important;
}

@keyframes pulseGreenRing {
  0% {
    r: 6;
    opacity: 1;
    stroke-width: 2;
  }

  50% {
    r: 12;
    opacity: 0.4;
    stroke-width: 1;
  }

  100% {
    r: 6;
    opacity: 1;
    stroke-width: 2;
  }
}

@keyframes pulseRedRing {
  0% {
    r: 6;
    opacity: 1;
    stroke-width: 2;
  }

  50% {
    r: 12;
    opacity: 0.4;
    stroke-width: 1;
  }

  100% {
    r: 6;
    opacity: 1;
    stroke-width: 2;
  }
}

@keyframes pulseCyanRing {
  0% {
    r: 6;
    opacity: 1;
    stroke-width: 2;
  }

  50% {
    r: 11;
    opacity: 0.4;
    stroke-width: 1;
  }

  100% {
    r: 6;
    opacity: 1;
    stroke-width: 2;
  }
}

/* --- Route Vectors & Animated Path --- */
.route-vector {
  fill: none;
  stroke-width: 0.8;
  opacity: 0.22;
  stroke-dasharray: 2, 4;
}

.route-mode-sea {
  stroke: #00f0ff;
}

.route-mode-rail {
  stroke: #f59e0b;
}

.route-mode-air {
  stroke: #38bdf8;
}

.route-mode-intermodal {
  stroke: #a78bfa;
  stroke-dasharray: 1, 3;
  stroke-width: 0.6;
}

/* Active Optimal Path Glow Lines */
.optimal-path-aura {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 6;
  opacity: 0.35;
  filter: url(#pathNeonGlow);
}

.optimal-path-core {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.optimal-path-tracer {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 16, 32;
  animation: laserSweep 1.8s linear infinite;
}

@keyframes laserSweep {
  from {
    stroke-dashoffset: 48;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Radar Sweep Line Overlay */
.radar-sweep-line {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0.8) 50%, rgba(0, 240, 255, 0) 100%);
  box-shadow: 0 0 12px #00f0ff;
  animation: radarScan 2.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 5;
}

@keyframes radarScan {
  0% {
    left: 0%;
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0.2;
  }
}

/* --- Node Telemetry HUD Tooltip --- */
.node-hud-tooltip {
  position: absolute;
  z-index: 100;
  width: 280px;
  background: rgba(8, 10, 15, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(8px);
  pointer-events: none;
  font-family: var(--font-sans);
}

.node-hud-tooltip.hidden {
  display: none !important;
}

.hud-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hud-mode-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 5px;
  border: 1px solid;
  border-radius: 2px;
  text-transform: uppercase;
}

.hud-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.hud-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.hud-loc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.hud-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  margin-bottom: 8px;
}

.hud-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted-soft);
  text-transform: uppercase;
}

.hud-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.hud-val.val-high {
  color: #f43f5e;
}

.hud-val.val-ok {
  color: #10b981;
}

.hud-val.val-cyan {
  color: #00f0ff;
}

.hud-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  text-align: center;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.status-nominal {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-blocked {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-origin {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
}

.status-dest {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid #f43f5e;
}

.status-optimal {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid #00f0ff;
}

/* ==========================================================================
   SPACIOUS HORIZONTAL ROUTING CONTROL PANEL
   ========================================================================== */

.route-control-panel-horizontal {
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-grid-horizontal {
  display: grid;
  grid-template-columns: 260px 260px 1fr 200px;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 1200px) {
  .control-grid-horizontal {
    grid-template-columns: 1fr 1fr;
  }

  .ctrl-problem-field {
    grid-column: span 2;
  }

  .ctrl-btn-wrap {
    grid-column: span 2;
  }
}

.ctrl-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctrl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-select-dropdown {
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 11px 12px;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.route-select-dropdown:hover,
.route-select-dropdown:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.route-select-dropdown optgroup {
  background: #0d0f14;
  color: #00f0ff;
  font-weight: 600;
  padding: 4px 0;
}

.route-select-dropdown option {
  background: #06070a;
  color: #ffffff;
  padding: 4px 8px;
}

.route-problem-textbox {
  background: #06070a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.route-problem-textbox:hover,
.route-problem-textbox:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.btn-analyze-route {
  width: 100%;
  height: 42px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
  border: 1px solid #00f0ff;
  color: #000000;
}

.btn-analyze-route:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.spinner-ring {
  width: 14px;
  height: 14px;
  border: 2px solid #000000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Preset Shocks Strip */
.preset-shocks-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.preset-strip-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-right: 4px;
}

.preset-shock-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preset-shock-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00f0ff;
  color: #00f0ff;
}

/* ==========================================================================
   ROUTE INTELLIGENCE SUMMARY & AI REASONING PANEL
   ========================================================================== */

.route-intelligence-summary-deck {
  background: rgba(8, 10, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verdict-banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.risk-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.risk-low {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.risk-mod {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.risk-high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* KPI Grid */
.route-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.route-kpi-cell {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted-soft);
  text-transform: uppercase;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.kpi-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* Route Trail */
.route-trail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}

.trail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.route-trail-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.trail-node-card {
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  min-width: 180px;
  max-width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trail-node-card.trail-origin {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.trail-node-card.trail-dest {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}

.trail-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trail-mode-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-mode-sea {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
}

.badge-mode-rail {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-mode-air {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.trail-step {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}

.trail-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trail-loc {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trail-arrow {
  color: #00f0ff;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

/* AI Underwriter Reasoning Split Grid */
.reasoning-split-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .reasoning-split-grid {
    grid-template-columns: 1fr;
  }
}

.reasoning-card,
.avoided-zones-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reasoning-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reasoning-text {
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
}

.blocked-nodes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blocked-node-chip {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   LEAFLET DARK COMMAND-CENTER WORLD MAP STYLING & GLOWING GLYPHS
   ========================================================================== */
.leaflet-container {
  background: #030407 !important;
  font-family: var(--font-mono, monospace) !important;
  outline: none !important;
}

.leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
}

.leaflet-bar a {
  background: rgba(12, 14, 20, 0.88) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.2s ease !important;
}

.leaflet-bar a:hover {
  background: rgba(30, 36, 50, 0.95) !important;
  color: #00f0ff !important;
}

/* Custom DivIcon container reset */
.custom-leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

/* Glowing Node Glyphs (SEA, AIR, RAIL) */
.leaflet-node-glyph {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(8, 10, 15, 0.9);
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.glyph-sea {
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5), inset 0 0 6px rgba(0, 240, 255, 0.2);
}

.glyph-air {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5), inset 0 0 6px rgba(56, 189, 248, 0.2);
}

.glyph-rail {
  border-color: #f59e0b;
  color: #f59e0b;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), inset 0 0 6px rgba(245, 158, 11, 0.2);
}

.glyph-core-symbol {
  font-size: 11px;
  line-height: 1;
}

.glyph-pulse-halo {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0.4;
  animation: leafletPulse 2.4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes leafletPulse {

  0%,
  100% {
    transform: scale(1.0);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
}

/* Idle / Unused Nodes: Highly subtle & semi-transparent (clean, uncluttered view) */
.leaflet-node-glyph.is-idle {
  opacity: 0.18 !important;
  transform: scale(0.68);
  box-shadow: none !important;
  border-width: 1px;
}

.leaflet-node-glyph.is-idle .glyph-pulse-halo {
  display: none !important;
}

.leaflet-node-glyph.is-idle .glyph-core-symbol {
  opacity: 0.65;
}

.leaflet-node-glyph.is-idle:hover {
  opacity: 0.95 !important;
  transform: scale(1.2) !important;
  box-shadow: 0 0 14px currentColor !important;
  z-index: 1000 !important;
}

.leaflet-node-glyph.is-idle:hover .glyph-pulse-halo {
  display: block !important;
  animation: leafletPulse 2s infinite ease-in-out;
}

/* Active In-Use / Connected Nodes: Ultra-Bright, glowing, vivid */
.leaflet-node-glyph.is-active-node {
  opacity: 1.0 !important;
  transform: scale(1.3) !important;
  z-index: 850 !important;
}

.leaflet-node-glyph.is-origin {
  opacity: 1.0 !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
  background: #022c1b !important;
  box-shadow: 0 0 24px #10b981, inset 0 0 10px #10b981 !important;
  transform: scale(1.48) !important;
  z-index: 1000 !important;
}

.leaflet-node-glyph.is-dest {
  opacity: 1.0 !important;
  border-color: #f43f5e !important;
  color: #f43f5e !important;
  background: #4c0519 !important;
  box-shadow: 0 0 24px #f43f5e, inset 0 0 10px #f43f5e !important;
  transform: scale(1.48) !important;
  z-index: 1000 !important;
}

.leaflet-node-glyph.is-waypoint {
  opacity: 1.0 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: #0f172a !important;
  box-shadow: 0 0 18px currentColor, inset 0 0 8px currentColor !important;
  transform: scale(1.32) !important;
  z-index: 900 !important;
}

.leaflet-node-glyph.is-blocked {
  opacity: 0.85 !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  background: #2a0808 !important;
  box-shadow: 0 0 16px #ef4444 !important;
  animation: leafletBlockedBlink 1.2s infinite ease-in-out;
  z-index: 820 !important;
}

@keyframes leafletBlockedBlink {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* Laser Route Vectors */
.leaflet-laser-aura {
  filter: drop-shadow(0 0 8px #00f0ff);
}

.leaflet-laser-core {
  stroke-linecap: round;
}

.leaflet-laser-tracer {
  animation: tracerDash 2.5s linear infinite;
}

@keyframes tracerDash {
  to {
    stroke-dashoffset: -72;
  }
}

/* Custom Leaflet Dark Command-Center Popup */
.custom-leaflet-dark-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 12, 18, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(0, 240, 255, 0.4) !important;
  border-radius: 6px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8) !important;
  padding: 0 !important;
  color: #ffffff !important;
}

.custom-leaflet-dark-popup .leaflet-popup-tip {
  background: #0a0c12 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.custom-leaflet-dark-popup .leaflet-popup-close-button {
  color: #a0a0a0 !important;
  padding: 6px 8px !important;
}

.custom-leaflet-dark-popup .leaflet-popup-close-button:hover {
  color: #ffffff !important;
}

.leaflet-hud-popup {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono, monospace);
}

.hud-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.hud-mode-badge {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid;
  border-radius: 2px;
  padding: 1px 4px;
}

.hud-id {
  font-size: 8.5px;
  color: var(--muted);
}

.hud-title {
  font-family: var(--font-display, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.hud-loc {
  font-size: 9.5px;
  color: var(--muted);
}

.hud-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 8px 10px;
}

.hud-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hud-label {
  font-size: 8px;
  color: var(--muted-soft);
  letter-spacing: 0.5px;
}

.hud-val {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.val-ok {
  color: #10b981;
}

.val-high {
  color: #ef4444;
}

.val-cyan {
  color: #00f0ff;
}

.popup-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.popup-select-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 1px;
  padding: 6px 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-set-from:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #10b981;
}

.btn-set-to:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #f43f5e;
}

/* ==========================================================================
   REACT BITS "DECRYPTED TEXT" ANIMATION & CYBER COMMAND STYLING
   ========================================================================== */
.decrypted-header-centered {
  text-align: center;
  justify-content: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 24px !important;
  padding-bottom: 18px !important;
}

.decrypted-text-container {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.decrypted-eyebrow {
  letter-spacing: 3.5px;
  color: #00f0ff !important;
  font-size: 11px !important;
  display: inline-block;
  font-family: var(--font-mono, monospace);
}

.decrypted-text {
  font-family: var(--font-display, "Space Grotesk", "Syne", -apple-system, sans-serif);
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.15;
  text-align: center;
  margin: 6px auto;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  contain: layout style;
  will-change: contents;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.decrypted-text:hover {
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.75), 0 0 40px rgba(0, 240, 255, 0.4);
}

.decrypted-text .char-space {
  display: inline;
}

.decrypted-text .char-scrambled {
  color: #00f0ff;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  display: inline;
  text-shadow: 0 0 8px #00f0ff;
}

.decrypted-text .char-revealed {
  color: #ffffff;
  display: inline;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.decrypted-subtext {
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  max-width: 820px;
  margin: 0 auto;
}

.decrypted-badge-wrap {
  margin-top: 4px;
}

/* Single Tab Indicator Bar (Clean & Focused) */
.single-tab-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.single-tab-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm, 6px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SEARCHABLE COMBOBOX / LOCATION PICKER COMPONENT (150 NODES)
   ========================================================================== */

.searchable-dropdown-group {
  position: relative;
}

.searchable-combobox-wrapper {
  position: relative;
  width: 100%;
}

.combobox-input-box {
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 8px;
  cursor: text;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 42px;
}

.combobox-input-box:hover,
.combobox-input-box:focus-within {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.combobox-selected-icon {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  flex-shrink: 0;
}

.combobox-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  width: 100%;
  outline: none;
  padding: 6px 0;
  text-overflow: ellipsis;
}

.combobox-search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10.5px;
}

.combobox-clear-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  cursor: pointer;
  padding: 3px 5px;
  line-height: 1;
  border-radius: 3px;
  display: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.combobox-clear-btn:hover {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.15);
}

.combobox-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  cursor: pointer;
  padding: 3px 4px;
  line-height: 1;
  border-radius: 3px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.combobox-toggle-btn:hover {
  color: #00f0ff;
}

.combobox-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: rgba(8, 10, 16, 0.98);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: comboSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.combobox-dropdown-panel.open {
  display: flex;
}

@keyframes comboSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.combobox-filter-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  gap: 4px;
}

.combo-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.combo-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.combo-tab.active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
}

.combobox-items-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combobox-items-list::-webkit-scrollbar {
  width: 5px;
}

.combobox-items-list::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 3px;
}

.combobox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  gap: 8px;
}

.combobox-item:hover,
.combobox-item.focused {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.25);
}

.combobox-item.selected {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
}

.combobox-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.combobox-item-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combobox-item-title mark {
  background: rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-weight: 700;
  padding: 0 1px;
  border-radius: 2px;
}

.combobox-item-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combobox-item-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.combobox-item-badge.badge-sea {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.combobox-item-badge.badge-air {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.combobox-item-badge.badge-rail {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.combobox-no-results {
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ULTRA-SMOOTH SCROLL ELEVATION TRANSITIONS (60FPS / ZERO-LAG HARDWARE ACCEL)
   Light elevation coming up smoothly while scrolling down each page
   ========================================================================== */
.scroll-elevate {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.scroll-elevate.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Subtle staggered delays for grid items and consecutive siblings */
.scroll-elevate:nth-child(1) { transition-delay: 20ms; }
.scroll-elevate:nth-child(2) { transition-delay: 70ms; }
.scroll-elevate:nth-child(3) { transition-delay: 120ms; }
.scroll-elevate:nth-child(4) { transition-delay: 170ms; }
.scroll-elevate:nth-child(5) { transition-delay: 220ms; }
.scroll-elevate:nth-child(6) { transition-delay: 270ms; }

/* Stagger parent helper */
.scroll-elevate-stagger > *:nth-child(1) { transition-delay: 20ms; }
.scroll-elevate-stagger > *:nth-child(2) { transition-delay: 70ms; }
.scroll-elevate-stagger > *:nth-child(3) { transition-delay: 120ms; }
.scroll-elevate-stagger > *:nth-child(4) { transition-delay: 170ms; }
.scroll-elevate-stagger > *:nth-child(5) { transition-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .scroll-elevate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}