/* Shared preview navbar styling (Options A/B/C) */

:root{
  --nav-bg: #060606;
  --nav-fg: #eaeaea;
  --nav-muted: #9aa0a6;
  /* Global plate tone controls (quick tuning without re-rendering texture) */
  --nav-plate-brightness: 0.90; /* darker red plate */
  --nav-plate-saturation: 0.98;
  /* User requested nav red */
  --nav-red-main: #DE1111;
  --nav-red-main-rgb: 222, 17, 17;
  --nav-red-0: #2a0000;
  --nav-red-1: #7a0b0b;
  --nav-red-2: var(--nav-red-main);
  --nav-red-3: var(--nav-red-main);
  /* darker “blood red” hover accent (looks less neon) */
  --nav-hover-red: var(--nav-red-main);
  --nav-sep-red: var(--nav-red-main);
}

body.nav-preview {
  margin: 0;
  background: #000;
  color: var(--nav-fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.navPreviewBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* user request: make the black bar noticeably taller */
  height: 120px;
  /* navbar is the red plate now (no black bar behind it) */
  background: transparent;
  border-bottom: 0;
  z-index: 99999;
  overflow: visible;
}

/* Kill any subpixel “seam” under the fixed bar (covers anything below). */
.navPreviewBar::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  /* neon red separator line under navbar */
  height: 2px;
  background: var(--nav-sep-red); /* darker + less attention */
  box-shadow:
    0 0 6px rgba(var(--nav-red-main-rgb), 0.22),
    0 0 12px rgba(var(--nav-red-main-rgb), 0.10);
  z-index: 2; /* above plate SVG, below buttons/menus */
  pointer-events: none;
}

.navPreviewInner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  /* align with app shell below: .container { max-width: 2800px; padding: 20px; } */
  max-width: 2800px;
  margin: 0 auto;
  padding: 14px 20px;
  position: relative;
  z-index: 30; /* above separator line */
  overflow: visible;
}

.navPlateFull{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  z-index: 1;
}
.navPlateSvgFull{
  width: 100%;
  height: 120px;
  display: block;
  /* glow handled by SVG filter to avoid a crisp edge “border” */
  filter: brightness(var(--nav-plate-brightness)) saturate(var(--nav-plate-saturation));
}

.navBrand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
}
.navBrand .title {
  font-weight: 800;
  letter-spacing: 0.7px;
}
.navBrand .subtitle {
  font-size: 12px;
  color: var(--nav-muted);
}

.navPlate {
  position: relative;
  flex: 1 1 auto;
  height: 120px;
  min-width: 520px;
}

/* Option A: no brand on the left, let the plate start at container edge */
.optA .navPlate { min-width: 0; }
.optA .navTabs { margin-left: calc(0.125in + 10px); }
.navPlateSvg {
  width: 100%;
  height: 120px;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(var(--nav-plate-brightness)) saturate(var(--nav-plate-saturation));
}

/* Static “ultra metallic” finish on the red plate (no streaks; just controlled spec + micro texture) */
.navPlateFx{
  position: absolute;
  inset: 0;
  z-index: 2; /* above SVG, below pulse/buttons */
  pointer-events: none;
  clip-path: none; /* rectangular plate now */
}
.navPlateFx::before{
  content: "";
  position: absolute;
  inset: 0;
  /* "Ironman armor" clearcoat: one dominant off-camera highlight + tighter streak + subtle vignette.
     No obvious top-to-bottom gradient overlay (the texture handles tone). */
  background:
    /* dominant specular spot (upper-left, off-camera light) */
    radial-gradient(120% 90% at 28% -18%,
      rgba(255,255,255,0.22) 0%,
      rgba(255,255,255,0.08) 30%,
      rgba(255,255,255,0.00) 62%),
    /* tighter clearcoat streak (thin, across upper area) */
    radial-gradient(160% 38% at 54% 8%,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.00) 66%),
    /* subtle bottom vignette to keep plate feeling solid */
    radial-gradient(170% 140% at 50% 122%,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.00) 62%);
  mix-blend-mode: screen;
  opacity: 0.62;
  /* Avoid blur bleed outside clip-path (can show as an offset gray rectangle) */
  filter: none;
}
.navPlateFx::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("textures/noise_64.png?v=20260107a");
  background-size: 64px 64px;
  opacity: 0.075;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.navPlatePulse{
  position: absolute;
  inset: 0;
  z-index: 3; /* above static finish, under buttons */
  pointer-events: none;
  clip-path: none; /* rectangular plate now */
  /* the moving “flash” */
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.00) 42%,
    rgba(255,255,255,0.26) 50%,
    rgba(255,255,255,0.00) 58%,
    rgba(255,255,255,0.00) 100%
  );
  /* Avoid blur bleed outside clip-path (can show as an offset gray rectangle) */
  filter: none;
  opacity: 0;
  transform: translateX(-140%);

  /* one pass, 8s after load */
  animation: navPlateScanner 6000ms ease-in-out 8s 1 both;
}

@keyframes navPlateScanner{
  0%   { opacity: 0; transform: translateX(-140%); }
  10%  { opacity: 0.9; }
  60%  { opacity: 0.75; }
  100% { opacity: 0; transform: translateX(140%); }
}

@media (prefers-reduced-motion: reduce){
  .navPlatePulse{ animation: none; }
}

/* Full-width flash burst after sweep (brief) */
.navPlateFlash{
  position: absolute;
  inset: 0;
  z-index: 3; /* plate FX layer */
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0.20);
  transform-origin: 50% 50%;
  mix-blend-mode: screen;
  filter: none;
  background:
    /* wider hot bloom (covers most of the plate) */
    radial-gradient(120% 220% at 46% 52%,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.38) 18%,
      rgba(255,255,255,0.00) 62%),
    /* edge blooms (push light to the borders) */
    radial-gradient(140% 220% at -10% 50%,
      rgba(255,40,40,0.22) 0%,
      rgba(255,40,40,0.00) 58%),
    radial-gradient(140% 220% at 110% 50%,
      rgba(255,40,40,0.22) 0%,
      rgba(255,40,40,0.00) 58%),
    /* red energy wash (fills whole width) */
    linear-gradient(90deg,
      rgba(255,0,0,0.10) 0%,
      rgba(255,0,0,0.26) 30%,
      rgba(255,0,0,0.20) 70%,
      rgba(255,0,0,0.10) 100%);
  /* default: no heavy halo unless flashing */
  box-shadow: none;
}
.navPlateFlash.flashNow{
  animation: navPlateFlashBurst 260ms ease-out 0ms 1 both;
}
@keyframes navPlateFlashBurst{
  0%   {
    opacity: 0;
    transform: scaleX(0.16);
    box-shadow: none;
  }
  16%  {
    opacity: 1;
    /* massive, quick border afterglow */
    box-shadow:
      0 0 90px rgba(255, 0, 0, 0.42),
      0 0 160px rgba(255, 0, 0, 0.26),
      0 0 260px rgba(255, 0, 0, 0.14);
  }
  55%  {
    opacity: 0.92;
    box-shadow:
      0 0 70px rgba(255, 0, 0, 0.32),
      0 0 130px rgba(255, 0, 0, 0.18),
      0 0 220px rgba(255, 0, 0, 0.10);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.24);
    box-shadow: none;
  }
}
.navPlateContent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 22px 26px;
  gap: 10px;
  z-index: 40; /* keep buttons/menus above separator line */
  overflow: visible;
}

.navTitle{
  position: absolute;
  top: 10px;
  left: 26px;
  right: 26px;
  font-family: 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1.6em;
  /* ALWAYS visible: solid metal-white base */
  color: #f3f4f6;
  display: inline-block;
  isolation: isolate; /* keep pseudo-layer blending contained */
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* crisp surround + depth */
  text-shadow:
    /* black surround */
    -2px -2px 0 rgba(0, 0, 0, 0.95),
     2px -2px 0 rgba(0, 0, 0, 0.95),
    -2px  2px 0 rgba(0, 0, 0, 0.95),
     2px  2px 0 rgba(0, 0, 0, 0.95),
    /* bevel */
     0 -1px 0 rgba(255,255,255,0.28),
     0  1px 0 rgba(0,0,0,0.55),
    /* depth */
     0  2px 0 rgba(0,0,0,0.35),
     0  3px 0 rgba(0,0,0,0.26),
    /* soft white sheen */
     0  0 10px rgba(255,255,255,0.18),
     0  0 22px rgba(255,255,255,0.10);
}

/* Scramble overlay (sits on top of title; per-letter jitter) */
.navTitleOverlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 90ms linear;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3f4f6;
  text-shadow:
    -2px -2px 0 rgba(0, 0, 0, 0.95),
     2px -2px 0 rgba(0, 0, 0, 0.95),
    -2px  2px 0 rgba(0, 0, 0, 0.95),
     2px  2px 0 rgba(0, 0, 0, 0.95),
     0  0 12px rgba(220,255,235,0.10);
  filter: none;
}
.navTitleOverlay.isActive{ opacity: 1; }
.navTitleOverlay .titleChar{
  display: inline-block;
  position: relative;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  will-change: transform;
}

/* When scrambling, hide the base + chrome layers so the overlay fully “covers” it */
.navTitle.isScrambling{
  color: transparent;
  text-shadow: none;
}
.navTitle.isScrambling::before,
.navTitle.isScrambling::after{
  opacity: 0;
}
.navTitle.isScrambling .navTitleOverlay{
  color: rgba(206,255,226,0.95); /* subtle “encrypted/matrix” tint */
  /* keep the "encrypted" tone, but distort per-letter (no spill to the right) */
  filter: contrast(1.25) saturate(1.2);
  text-shadow:
    0 0 10px rgba(206,255,226,0.18),
    0 0 18px rgba(206,255,226,0.10),
    0 0 28px rgba(0,255,170,0.06);
}

/* Slice-tear distortion (top/middle/bottom lateral offsets) — per-letter only */
.navTitleOverlay .titleChar .measure{
  visibility: hidden; /* keeps exact letter placement/width */
}
.navTitleOverlay .titleChar .slice{
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: inherit;
  mix-blend-mode: screen;
  will-change: transform;
}
.navTitleOverlay .titleChar .sliceTop{
  clip-path: inset(0 0 66.7% 0);
  transform: translateX(var(--topX, 0px)) translateY(var(--topY, 0px));
}
.navTitleOverlay .titleChar .sliceMid{
  clip-path: inset(33.3% 0 33.3% 0);
  transform: translateX(var(--midX, 0px)) translateY(var(--midY, 0px));
}
.navTitleOverlay .titleChar .sliceBot{
  clip-path: inset(66.7% 0 0 0);
  transform: translateX(var(--botX, 0px)) translateY(var(--botY, 0px));
}

/* Decrypt-complete title flash (brief) */
.navTitle.isFlash{
  color: #ffffff;
  filter: brightness(1.18) contrast(1.10);
  text-shadow:
    -2px -2px 0 rgba(0, 0, 0, 0.95),
     2px -2px 0 rgba(0, 0, 0, 0.95),
    -2px  2px 0 rgba(0, 0, 0, 0.95),
     2px  2px 0 rgba(0, 0, 0, 0.95),
     0  0 16px rgba(255,255,255,0.55),
     0  0 34px rgba(255,255,255,0.26),
     0  0 22px rgba(159,15,15,0.14);
}

/* 3D depth/extrusion layer (behind the shiny face) */
.navTitle::before{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: rgba(0,0,0,0.62);
  transform: translate(3px, 3px);
  z-index: -1;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.55),
    0 2px 0 rgba(0,0,0,0.48),
    0 3px 0 rgba(0,0,0,0.40),
    0 4px 0 rgba(0,0,0,0.32),
    0 10px 18px rgba(0,0,0,0.55);
  opacity: 0.95;
}

/* Optional chrome highlight layer (won't break base if unsupported) */
.navTitle::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.18) 18%,
      rgba(255,255,255,0.85) 34%,
      rgba(0,0,0,0.00) 52%,
      rgba(255,255,255,0.70) 70%,
      rgba(255,255,255,0.20) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.85;
  mix-blend-mode: screen;
  filter: none;
}
/* align title with the tab stack offset (Option A shifts tabs right) */
.optA .navTitle{
  left: calc(26px + 0.125in + 10px);
}

.navTabs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  /* allow hover dropdown to extend outside the row */
  overflow-x: hidden;
  overflow-y: visible;
}

/* ANALYSIS hover dropdown */
.navTabDropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}
.navDropdownMenu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.86);
  background: rgba(8, 10, 12, 0.92);
  box-shadow: 0 16px 46px rgba(0,0,0,0.62), 0 0 24px rgba(222, 17, 17, 0.10);
  display: none;
  z-index: 999999;
}
.navTabDropdown:hover .navDropdownMenu{
  display: block;
}
.navTabDropdown:focus-within .navDropdownMenu{
  display: block;
}
.navTabDropdown.open .navDropdownMenu{
  display: block;
}

/* Divisions -> Diplomacy submenu (expands to the right) */
.navDropdownSub{
  position: relative;
}
.navDropdownSubMenu{
  position: absolute;
  /* Align first submenu item with parent row */
  top: -10px;
  /* No gap between parent + submenu (prevents hover drop) */
  left: 100%;
  margin-left: -1px; /* overlap borders slightly */
  min-width: 220px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.86);
  background: rgba(8, 10, 12, 0.92);
  box-shadow: 0 16px 46px rgba(0,0,0,0.62), 0 0 24px rgba(222, 17, 17, 0.10);
  display: none;
  z-index: 1000001;
}
.navDropdownSubMenu::before{
  /* Invisible hover bridge to prevent accidental collapse */
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 14px;
  height: 100%;
  background: transparent;
}
.navDropdownSub:hover .navDropdownSubMenu{
  display: block;
}
.navDropdownSub:focus-within .navDropdownSubMenu{
  display: block;
}
.navDropdownSubToggle{
  position: relative;
}
.navDropdownSubToggle::after{
  content: "▸";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.navDropdownItem{
  width: 100%;
  text-align: left;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(92, 8, 8, 0.85);
  background: rgba(92, 8, 8, 0.55);
  color: rgba(255,255,255,0.94);
  font-family: 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.navDropdownItem--withIcon{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

/* Military submenu: top 20% olive stripe (from Military.png) */
.navDropdownItem--military{
  position: relative;
  overflow: hidden;
}
.navDropdownItem--military::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20%;
  background: #4A542B;
  opacity: 0.95;
  pointer-events: none;
}
.navDropdownItem--military > *{
  position: relative;
  z-index: 1;
}

/* Trade & Industry submenu: top 20% gold stripe */
.navDropdownItem--trade{ position: relative; overflow: hidden; }
.navDropdownItem--trade::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:20%;
  background:#A87623;
  opacity:0.95;
  pointer-events:none;
}
.navDropdownItem--trade > *{ position: relative; z-index: 1; }

/* Science submenu: top 20% deep blue stripe */
.navDropdownItem--science{ position: relative; overflow: hidden; }
.navDropdownItem--science::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:20%;
  background:#263359;
  opacity:0.95;
  pointer-events:none;
}
.navDropdownItem--science > *{ position: relative; z-index: 1; }

/* Operations submenu: top 20% teal stripe */
.navDropdownItem--operations{ position: relative; overflow: hidden; }
.navDropdownItem--operations::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:20%;
  background:#29775A;
  opacity:0.95;
  pointer-events:none;
}
.navDropdownItem--operations > *{ position: relative; z-index: 1; }

/* Intelligence submenu: top 20% charcoal stripe */
.navDropdownItem--intel{ position: relative; overflow: hidden; }
.navDropdownItem--intel::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:20%;
  background:#242725;
  opacity:0.95;
  pointer-events:none;
}
.navDropdownItem--intel > *{ position: relative; z-index: 1; }

/* Fleet Command submenu: top 20% fleet red stripe */
.navDropdownItem--fleet{ position: relative; overflow: hidden; }
.navDropdownItem--fleet::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:20%;
  background:#B61919;
  opacity:0.95;
  pointer-events:none;
}
.navDropdownItem--fleet > *{ position: relative; z-index: 1; }

/* Diplomacy submenu: top 20% slate stripe */
.navDropdownItem--diplomacy{ position: relative; overflow: hidden; }
.navDropdownItem--diplomacy::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:20%;
  background:#656865;
  opacity:0.95;
  pointer-events:none;
}
.navDropdownItem--diplomacy > *{ position: relative; z-index: 1; }
.navDropdownItemText{
  flex: 1 1 auto;
  min-width: 0;
}
.navDropdownIcon{
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
  pointer-events: none;
}
.navDropdownItem + .navDropdownItem{
  margin-top: 8px;
}
.navDropdownItem:hover{
  background: rgba(122, 11, 11, 0.72);
  border-color: rgba(122, 11, 11, 0.98);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.10), 0 0 18px rgba(122, 11, 11, 0.16);
}

.navAuth{
  margin-left: auto; /* push to right side */
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-top: 16px;
}
.navPrivateLabel{
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 0 8px rgba(222, 17, 17, .35);
  pointer-events: none;
}
.navAuthBtn{
  padding-left: 12px;
  padding-right: 12px;
}

.navAdminMenuWrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.navHamburgerBtn{
  width: 44px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
.navAdminMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  padding: 8px;
  z-index: 20000;
}
.navAdminMenu .navDropdownItem{
  width: 100%;
  text-align: left;
}

.navTabBtn {
  appearance: none;
  /* more “panel” than “pill” */
  border: 2px solid rgba(0,0,0,0.86); /* hair thicker */
  /* machined bone metal: spec highlight + diagonal multi-stop sheen +
     higher-contrast convex curvature (same hue, more metal) */
  background:
    /* tight spec highlight near top */
    radial-gradient(140% 120% at 50% -10%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.00) 52%),
    /* diagonal polished-metal sheen (alternating light/dark bands) */
    linear-gradient(135deg,
      rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.00) 16%,
      rgba(96,86,70,0.20) 38%, rgba(255,255,255,0.30) 54%,
      rgba(84,74,58,0.24) 78%, rgba(255,255,255,0.20) 100%),
    /* convex “finger press” curvature */
    linear-gradient(180deg, #f4eee2 0%, #dfd5c4 20%, #a99d8a 50%, #ece5d8 72%, #94897a 90%, #dcd2c2 100%);
  /* Shallow etched red lettering */
  color: var(--nav-red-1); /* darker cherry red */
  font-family: 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-transform: uppercase;
  /* Orbitron kerning can collide letters (e.g. "LI" in INTELLIGENCE) */
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0, "clig" 0, "calt" 0;
  /* a touch more tracking prevents "LI" collisions */
  /* crisp edge for readability (lighter + thinner = less "deep" and less L "foot") */
  -webkit-text-stroke: 0.22px rgba(0,0,0,0.58);
  /* shallow etch: tiny offsets + lower contrast */
  text-shadow:
    /* slight top inner shade */
    0 -0.45px 0 rgba(0,0,0,0.46),
    /* slight bottom inner highlight */
    0  0.45px 0 rgba(255,255,255,0.34),
    /* micro lift so it doesn't feel carved too deep */
    0 -0.22px 0 rgba(255,255,255,0.14),
    /* soft readability */
    0  0.8px 0.8px rgba(0,0,0,0.16);
  font-size: 1.12em; /* readability bump */
  line-height: 1.05;
  padding: 12px 14px;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.9px;
  cursor: pointer;
  box-shadow:
    /* crisp inner dark keyline */
    inset 0 0 0 2px rgba(0,0,0,0.92),
    /* raised top bevel */
    inset 0 2px 0 rgba(255,255,255,0.98),
    /* convex shading */
    inset 0 10px 16px rgba(255,255,255,0.36),
    inset 0 -12px 16px rgba(0,0,0,0.22),
    /* lower bevel */
    inset 0 -3px 0 rgba(0,0,0,0.34),
    /* outer lift */
    0 8px 18px rgba(0,0,0,0.55),
    0 2px 0 rgba(0,0,0,0.65),
    /* heavy black aura */
    0 0 14px rgba(0,0,0,0.80),
    0 0 26px rgba(0,0,0,0.55);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  /* match the “rectangle with 45° cut” vibe */
  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}
.navTabBtn:hover {
  transform: translateY(-1px);
  /* hover lights up the same hue as the lettering, but like a light source */
  color: var(--nav-hover-red);
  -webkit-text-stroke: 0.22px rgba(0,0,0,0.56);
  text-shadow:
    0 -0.45px 0 rgba(0,0,0,0.44),
    0  0.45px 0 rgba(255,255,255,0.38),
    0 -0.22px 0 rgba(255,255,255,0.16),
    0  0.8px 0.8px rgba(0,0,0,0.16),
    0  0 7px rgba(143,15,15,0.18),
    0  0 14px rgba(143,15,15,0.10);
  background:
    radial-gradient(140% 120% at 50% -10%, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.00) 54%),
    linear-gradient(135deg,
      rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.00) 16%,
      rgba(96,86,70,0.18) 38%, rgba(255,255,255,0.34) 54%,
      rgba(84,74,58,0.22) 78%, rgba(255,255,255,0.22) 100%),
    linear-gradient(180deg, #f8f2e7 0%, #e5dccb 20%, #b2a693 50%, #f0e9dd 72%, #9a8f80 90%, #e2d8c8 100%);
  /* red glow on hover only */
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.92),
    inset 0 2px 0 rgba(255,255,255,0.98),
    inset 0 10px 16px rgba(255,255,255,0.36),
    inset 0 -12px 16px rgba(0,0,0,0.22),
    inset 0 -3px 0 rgba(0,0,0,0.34),
    0 8px 18px rgba(0,0,0,0.55),
    0 2px 0 rgba(0,0,0,0.65),
    0 0 14px rgba(0,0,0,0.80),
    0 0 26px rgba(0,0,0,0.55),
    /* afterglow (no border color change) */
    0 0 10px rgba(143, 15, 15, 0.22),
    0 0 22px rgba(143, 15, 15, 0.14),
    0 0 44px rgba(143, 15, 15, 0.08);
}
.navTabBtn.active {
  border-color: rgba(0,0,0,0.92);
  /* active tab uses the separator-line red + a glowing bottom edge */
  color: var(--nav-sep-red);
  -webkit-text-stroke: 0.22px rgba(0,0,0,0.60);
  text-shadow:
    0 -0.45px 0 rgba(0,0,0,0.48),
    0  0.45px 0 rgba(255,255,255,0.32),
    0 -0.22px 0 rgba(255,255,255,0.12),
    0  0.8px 0.8px rgba(0,0,0,0.18),
    0  0 10px rgba(159,15,15,0.38),
    0  0 22px rgba(159,15,15,0.22);
  background:
    radial-gradient(140% 120% at 50% -10%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.00) 52%),
    linear-gradient(135deg,
      rgba(255,255,255,0.36) 0%, rgba(255,255,255,0.00) 16%,
      rgba(96,86,70,0.19) 38%, rgba(255,255,255,0.32) 54%,
      rgba(84,74,58,0.23) 78%, rgba(255,255,255,0.21) 100%),
    linear-gradient(180deg, #f6f0e5 0%, #e2d9c8 20%, #ada18e 50%, #eee7db 72%, #968b7c 90%, #ded4c4 100%);
  box-shadow:
    /* crisp inner dark keyline */
    inset 0 0 0 2px rgba(0,0,0,0.92),
    inset 0 2px 0 rgba(255,255,255,0.98),
    inset 0 10px 16px rgba(255,255,255,0.36),
    inset 0 -12px 16px rgba(0,0,0,0.22),
    inset 0 -3px 0 rgba(0,0,0,0.34),
    /* bottom glow line */
    inset 0 -2px 0 rgba(159,15,15,0.90),
    inset 0 -6px 10px rgba(159,15,15,0.18),
    0 8px 18px rgba(0,0,0,0.55),
    0 2px 0 rgba(0,0,0,0.65),
    0 0 14px rgba(0,0,0,0.80),
    0 0 26px rgba(0,0,0,0.55),
    /* subtle red activity glow */
    0 0 18px rgba(159,15,15,0.20),
    0 0 34px rgba(159,15,15,0.12);
}

.navRight {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.navDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,42,42,0.95);
  box-shadow: 0 0 12px rgba(255,42,42,0.55);
}

.navPreviewFrame {
  position: fixed;
  top: 120px; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: calc(100vh - 120px);
  border: 0;
  background: #000; /* ensure iframe itself doesn't show gray before content paints */
}

/* Option B tweaks: two-tier HUD */
.optB .navPreviewBar { height: 150px; }
.optB .navPreviewFrame { top: 150px; height: calc(100vh - 150px); }
.optB .navPreviewInner { align-items: stretch; }
.optB .navBrand { min-width: 220px; }
.optB .navPlate { height: 78px; align-self: flex-end; }
.optB .navPlateSvg { height: 78px; }
.optB .navPlateContent { padding: 10px 16px; }
.optB .navTopRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Option C tweaks: heavier “command deck” */
.optC .navPlate { height: 78px; }
.optC .navPlateSvg { height: 78px; }

