/* ==========================================================================
   伯温智算AI · 蜀道易
   星舰 HUD 销售指挥中心 — futuristic sales big screen template
   ========================================================================== */

:root {
  --hud-bg: #020b17;
  --hud-bg-2: #031525;
  --hud-panel: rgba(4, 24, 41, 0.78);
  --hud-panel-2: rgba(5, 32, 53, 0.86);
  --hud-line: rgba(57, 211, 255, 0.2);
  --hud-line-strong: rgba(74, 228, 255, 0.46);
  --hud-cyan: #43e6ff;
  --hud-green: #58ffd0;
  --hud-blue: #4d8dff;
  --hud-amber: #ffd36b;
  --hud-red: #ff7e8c;
  --hud-violet: #bda4ff;
  --hud-ink: #e1f8ff;
  --hud-muted: rgba(178, 225, 242, 0.68);
  --hud-dim: rgba(145, 204, 226, 0.4);
  --hud-mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Roboto Mono", monospace;
  --hud-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--hud-bg);
  color: var(--hud-ink);
  font-family: var(--hud-sans);
  -webkit-font-smoothing: antialiased;
}
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.hud-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 62px;
  gap: 9px;
  height: 100vh;
  padding: 10px 14px 11px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(20, 110, 155, 0.12), transparent 72%),
    radial-gradient(500px 280px at 16% 0%, rgba(35, 226, 255, 0.08), transparent 70%),
    radial-gradient(560px 320px at 88% 100%, rgba(58, 120, 255, 0.09), transparent 72%),
    linear-gradient(145deg, #020a13 0%, #031322 46%, #020a14 100%);
}

.hud-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(61, 205, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 205, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 48%, #000 15%, transparent 100%);
}
.hud-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 4, 10, 0.55), transparent 16%, transparent 84%, rgba(0, 4, 10, 0.55)),
    linear-gradient(180deg, rgba(0, 4, 10, 0.5), transparent 18%, transparent 82%, rgba(0, 4, 10, 0.58));
}

.hud-frame { position: absolute; inset: 7px; z-index: 30; pointer-events: none; }
.hud-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(73, 213, 255, 0.16);
  clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
}
.frame-corner { position: absolute; width: 42px; height: 42px; border-color: rgba(80, 229, 255, 0.65); border-style: solid; }
.frame-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.frame-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.frame-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.frame-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.frame-rail { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(80, 229, 255, 0.5), transparent); }
.frame-rail--top { top: -1px; left: 10%; right: 10%; }
.frame-rail--bottom { bottom: -1px; left: 22%; right: 22%; }

/* Header */
.hud-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid var(--hud-line);
  background:
    linear-gradient(90deg, rgba(16, 79, 109, 0.15), transparent 30%, transparent 70%, rgba(16, 79, 109, 0.15)),
    linear-gradient(180deg, rgba(5, 30, 49, 0.9), rgba(3, 19, 33, 0.82));
  clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}
.hud-head::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-cyan), transparent);
  opacity: 0.55;
}
.hud-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud-brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  color: #04111f;
  background: linear-gradient(135deg, var(--hud-green), var(--hud-cyan));
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  box-shadow: 0 0 22px rgba(67, 230, 255, 0.3);
}
.hud-brand__mark svg { width: 24px; height: 24px; }
.hud-brand__name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.hud-brand__name b { color: var(--hud-green); }
.hud-brand__sub { margin-top: 3px; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 8px; letter-spacing: 0.09em; white-space: nowrap; }
.hud-title { text-align: center; min-width: 0; }
.hud-title__kicker { display: block; color: rgba(105, 227, 255, 0.48); font-family: var(--hud-mono); font-size: 7px; letter-spacing: 0.24em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-title h1 { margin-top: 3px; color: #effcff; font-size: 27px; font-weight: 800; letter-spacing: 0.08em; text-shadow: 0 0 22px rgba(67, 230, 255, 0.36); }
.hud-title small { display: block; margin-top: 3px; color: var(--hud-muted); font-size: 8.5px; letter-spacing: 0.06em; }
.hud-clock { text-align: right; }
.hud-clock__status { display: inline-flex; align-items: center; gap: 5px; color: var(--hud-green); font-family: var(--hud-mono); font-size: 7.5px; letter-spacing: 0.08em; }
.hud-clock__status i { width: 5px; height: 5px; border-radius: 50%; background: var(--hud-green); box-shadow: 0 0 9px var(--hud-green); animation: hudPulse 2s ease-in-out infinite; }
.hud-clock__time { margin-top: 2px; color: #f4feff; font-family: var(--hud-mono); font-size: 23px; font-weight: 500; letter-spacing: 0.04em; }
.hud-clock__date { margin-top: 1px; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 8.5px; }

/* Main grid */
.hud-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, 0.86fr) minmax(480px, 1.8fr) minmax(295px, 0.94fr);
  gap: 9px;
}
.hud-side { min-height: 0; display: grid; gap: 9px; }
.hud-side--left { grid-template-rows: 150px minmax(0, 1.1fr) minmax(165px, 0.75fr); }
.hud-side--right { grid-template-rows: minmax(0, 1.35fr) minmax(150px, 0.7fr) minmax(145px, 0.63fr); }

.hud-panel {
  position: relative;
  min-height: 0;
  padding: 11px 13px 10px;
  border: 1px solid var(--hud-line);
  background:
    linear-gradient(135deg, rgba(18, 80, 111, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(5, 29, 47, 0.88), rgba(3, 17, 30, 0.8));
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
  overflow: hidden;
}
.hud-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--hud-cyan), transparent);
  opacity: 0.8;
}
.hud-panel__head { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.hud-panel__head > span { color: rgba(91, 208, 243, 0.45); font-family: var(--hud-mono); font-size: 6.5px; letter-spacing: 0.12em; white-space: nowrap; }
.hud-panel__head > b { color: var(--hud-ink); font-size: 13px; font-weight: 650; letter-spacing: 0.02em; white-space: nowrap; }
.hud-panel__head > em { margin-left: auto; padding: 2px 5px; border: 1px solid rgba(67, 230, 255, 0.16); color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6.5px; font-style: normal; white-space: nowrap; }
.hud-panel__head::after { content: ""; flex: 1; min-width: 4px; height: 1px; margin-bottom: 4px; background: linear-gradient(90deg, rgba(60, 208, 242, 0.25), transparent); }

/* Today due */
.hud-due { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.hud-due__value { display: flex; align-items: baseline; gap: 5px; }
.hud-due__value b { color: #f4feff; font-family: var(--hud-mono); font-size: 43px; font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; text-shadow: 0 0 20px rgba(67, 230, 255, 0.2); }
.hud-due__value span { color: var(--hud-muted); font-size: 9px; }
.hud-due__meta { display: flex; flex-direction: column; gap: 4px; padding-bottom: 1px; color: var(--hud-dim); font-size: 7.5px; white-space: nowrap; }
.hud-due__meta b { color: var(--hud-amber); font-family: var(--hud-mono); font-weight: 500; }
.hud-due__track { height: 4px; margin-top: 10px; overflow: hidden; background: rgba(44, 178, 218, 0.11); }
.hud-due__track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hud-green), var(--hud-cyan)); box-shadow: 0 0 12px rgba(67, 230, 255, 0.55); transition: width 700ms ease; }
.hud-due__foot { display: flex; justify-content: space-between; margin-top: 5px; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6.5px; }

/* Sales matrix */
.hud-sales { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.hud-sales-row { display: grid; grid-template-columns: 16px 27px minmax(0, 1fr) 35px 35px 48px; align-items: center; gap: 6px; min-height: 34px; padding: 2px 0; border-top: 1px solid rgba(73, 203, 238, 0.09); }
.hud-sales-row:first-child { border-top: 0; }
.hud-sales-rank { color: var(--hud-dim); font-family: var(--hud-mono); font-size: 7px; }
.hud-sales-row:first-child .hud-sales-rank { color: var(--hud-green); }
.hud-sales-avatar { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(67, 230, 255, 0.24); border-radius: 50%; background: rgba(15, 74, 91, 0.32); color: var(--hud-green); font-size: 8px; font-weight: 700; }
.hud-sales-row:first-child .hud-sales-avatar { border-color: rgba(88, 255, 208, 0.55); box-shadow: 0 0 14px rgba(88, 255, 208, 0.16); }
.hud-sales-id b { display: block; color: var(--hud-ink); font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-sales-id small { display: block; margin-top: 2px; color: var(--hud-dim); font-size: 6.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-sales-metric b { display: block; color: var(--hud-cyan); font-family: var(--hud-mono); font-size: 10px; font-weight: 500; }
.hud-sales-metric span { display: block; margin-top: 1px; color: var(--hud-dim); font-size: 6px; }
.hud-sales-bar { height: 3px; background: rgba(67, 230, 255, 0.1); overflow: hidden; }
.hud-sales-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--hud-green), var(--hud-cyan)); }
.hud-sales-label { grid-column: 1 / -1; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(73, 203, 238, 0.09); color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6.5px; }

/* Funnel */
.hud-funnel { display: flex; flex-direction: column; justify-content: space-around; gap: 2px; height: calc(100% - 24px); margin-top: 4px; }
.hud-funnel-row { display: grid; grid-template-columns: 43px minmax(0, 1fr) 28px 27px; align-items: center; gap: 6px; }
.hud-funnel-label { color: var(--hud-muted); font-size: 7.5px; white-space: nowrap; }
.hud-funnel-track { height: 4px; overflow: hidden; background: rgba(47, 180, 220, 0.12); }
.hud-funnel-track span { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--hud-green), rgba(67, 230, 255, 0.22)); }
.hud-funnel-value { color: var(--hud-ink); font-family: var(--hud-mono); font-size: 8.5px; text-align: right; }
.hud-funnel-rate { color: var(--hud-dim); font-family: var(--hud-mono); font-size: 7px; text-align: right; }

/* Center */
.hud-center {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 4px 0;
  overflow: hidden;
}
.hud-center__top { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 7px; letter-spacing: 0.1em; }
.hud-center__top > span:first-child { color: rgba(88, 255, 208, 0.62); }
.hud-center__line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(67, 230, 255, 0.28), transparent); }
.holo-stage { position: relative; flex: 1; min-height: 300px; margin-top: 2px; }
.holo-orbit { position: absolute; left: 50%; top: 52%; border: 1px solid rgba(67, 230, 255, 0.18); border-radius: 50%; transform: translate(-50%, -50%) rotateX(65deg); pointer-events: none; }
.holo-orbit--outer { width: 86%; height: 58%; border-color: rgba(67, 230, 255, 0.14); animation: hudOrbit 20s linear infinite; }
.holo-orbit--mid { width: 68%; height: 45%; border-style: dashed; border-color: rgba(88, 255, 208, 0.2); animation: hudOrbit 14s linear infinite reverse; }
.holo-orbit--inner { width: 48%; height: 32%; border-color: rgba(77, 141, 255, 0.2); animation: hudOrbit 10s linear infinite; }
.holo-axis { position: absolute; left: 50%; top: 54%; width: 76%; height: 1px; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, rgba(67, 230, 255, 0.25), transparent); }
.holo-axis::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 260px; transform: translate(-50%, -50%); background: linear-gradient(180deg, transparent, rgba(67, 230, 255, 0.16), transparent); }
.holo-grid { position: absolute; left: 15%; right: 15%; bottom: 14%; height: 24%; background-image: linear-gradient(rgba(67, 230, 255, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(67, 230, 255, 0.13) 1px, transparent 1px); background-size: 24px 17px; transform: perspective(260px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(180deg, transparent, #000 58%, #000); opacity: .55; }
.holo-glow { position: absolute; left: 50%; top: 55%; width: 54%; height: 30%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(31, 229, 255, 0.16), transparent 68%); filter: blur(8px); }
.holo-car { position: absolute; left: 50%; top: 51%; width: min(92%, 760px); transform: translate(-50%, -50%); filter: drop-shadow(0 0 22px rgba(37, 226, 255, 0.22)); animation: hudFloat 6s ease-in-out infinite; }
.wheel--rear { transform-origin: 234px 319px; animation: hudWheel 5s linear infinite; }
.wheel--front { transform-origin: 681px 319px; animation: hudWheel 5s linear infinite; }
.holo-scan { position: absolute; left: 18%; right: 18%; top: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(88, 255, 208, 0.7), transparent); box-shadow: 0 0 18px rgba(88, 255, 208, 0.4); animation: hudScan 5s ease-in-out infinite; }
.holo-readout { position: absolute; left: 14%; top: 16%; padding-left: 8px; border-left: 1px solid var(--hud-green); }
.holo-readout span { display: block; color: var(--hud-green); font-family: var(--hud-mono); font-size: 6.5px; letter-spacing: .12em; }
.holo-readout b { display: block; margin-top: 3px; color: var(--hud-ink); font-size: 9px; font-weight: 600; }
.holo-readout small { display: block; margin-top: 2px; color: var(--hud-dim); font-size: 6.5px; }
.holo-node { position: absolute; display: flex; flex-direction: column; gap: 1px; padding-left: 9px; border-left: 1px solid var(--hud-cyan); }
.holo-node::before { content: ""; position: absolute; left: -3px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--hud-cyan); box-shadow: 0 0 10px var(--hud-cyan); }
.holo-node i { color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6px; font-style: normal; }
.holo-node b { color: #fff; font-family: var(--hud-mono); font-size: 18px; font-weight: 500; line-height: 1; }
.holo-node span { color: var(--hud-muted); font-size: 7px; }
.holo-node--a { left: 7%; top: 32%; }
.holo-node--b { right: 7%; top: 26%; border-left-color: var(--hud-amber); }
.holo-node--b::before { background: var(--hud-amber); box-shadow: 0 0 10px var(--hud-amber); }
.holo-node--c { right: 11%; bottom: 22%; border-left-color: var(--hud-green); }
.holo-node--c::before { background: var(--hud-green); box-shadow: 0 0 10px var(--hud-green); }
.holo-corner { position: absolute; width: 18px; height: 18px; border-color: rgba(67, 230, 255, 0.5); border-style: solid; }
.holo-corner--tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.holo-corner--tr { right: 0; top: 0; border-width: 1px 1px 0 0; }
.holo-corner--bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.holo-corner--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.hud-center__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 6px 14px 0; }
.center-stat { position: relative; padding: 7px 9px; border-left: 1px solid rgba(67, 230, 255, 0.2); background: linear-gradient(90deg, rgba(19, 91, 113, 0.12), transparent); }
.center-stat span { display: block; color: var(--hud-dim); font-size: 7px; }
.center-stat b { display: inline-block; margin-top: 2px; color: var(--hud-cyan); font-family: var(--hud-mono); font-size: 21px; font-weight: 500; line-height: 1; }
.center-stat small { margin-left: 2px; color: var(--hud-dim); font-size: 7px; }
.center-stat--accent b { color: var(--hud-green); }
.hud-center__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px 0; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6.5px; }
.dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; }
.dot--green { background: var(--hud-green); box-shadow: 0 0 8px var(--hud-green); }

/* Right activity */
.hud-activity { display: flex; flex-direction: column; margin-top: 5px; }
.hud-activity-row { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 7px 0 7px 8px; border-top: 1px solid rgba(67, 203, 238, 0.09); }
.hud-activity-row:first-child { border-top: 0; }
.hud-activity-row::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--tone, var(--hud-cyan)); opacity: .8; }
.hud-activity-avatar { width: 19px; height: 19px; flex: none; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--tone, var(--hud-cyan)) 40%, transparent); background: color-mix(in srgb, var(--tone, var(--hud-cyan)) 12%, transparent); color: var(--tone, var(--hud-cyan)); font-size: 7px; }
.hud-activity-main { flex: 1; min-width: 0; }
.hud-activity-main b { display: block; overflow: hidden; color: var(--hud-ink); font-size: 8px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.hud-activity-main b span { color: var(--hud-dim); font-weight: 400; }
.hud-activity-main small { display: block; overflow: hidden; margin-top: 2px; color: var(--hud-dim); font-size: 6.5px; text-overflow: ellipsis; white-space: nowrap; }
.hud-activity-outcome { flex: none; padding: 2px 4px; border: 1px solid color-mix(in srgb, var(--tone, var(--hud-cyan)) 28%, transparent); background: color-mix(in srgb, var(--tone, var(--hud-cyan)) 10%, transparent); color: var(--tone, var(--hud-cyan)); font-family: var(--hud-mono); font-size: 6px; }
.hud-activity-time { flex: none; padding-top: 2px; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6px; }
.tone-cyan { --tone: var(--hud-cyan); }
.tone-green { --tone: var(--hud-green); }
.tone-amber { --tone: var(--hud-amber); }
.tone-violet { --tone: var(--hud-violet); }
.tone-orange { --tone: #ffab76; }
.tone-red { --tone: var(--hud-red); }
.tone-gray { --tone: #b6c5d0; }
.tone-blue { --tone: var(--hud-blue); }

/* Queue */
.hud-queue { display: flex; flex-direction: column; justify-content: space-around; gap: 2px; height: calc(100% - 24px); margin-top: 4px; }
.hud-queue-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 30px; align-items: center; gap: 6px; }
.hud-queue-label { color: var(--hud-muted); font-size: 7.5px; white-space: nowrap; }
.hud-queue-track { height: 3px; overflow: hidden; background: rgba(47, 180, 220, 0.12); }
.hud-queue-track span { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--hud-green), var(--hud-cyan)); }
.hud-queue-value { color: var(--hud-ink); font-family: var(--hud-mono); font-size: 9px; text-align: right; }
.hud-queue-value small { color: var(--hud-dim); font-family: var(--hud-sans); font-size: 6px; }

/* Target */
.hud-target { display: flex; align-items: center; gap: 14px; height: calc(100% - 24px); margin-top: 4px; }
.hud-target__ring { --pct: 0; width: 87px; height: 87px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--hud-green) calc(var(--pct) * 1%), rgba(67, 230, 255, 0.1) 0); box-shadow: 0 0 25px rgba(88, 255, 208, 0.12); }
.hud-target__ring > div { width: 73px; height: 73px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #041525; }
.hud-target__ring b { color: #fff; font-family: var(--hud-mono); font-size: 19px; font-weight: 500; }
.hud-target__ring span { margin-top: 1px; color: var(--hud-dim); font-size: 6.5px; }
.hud-target__meta { min-width: 0; }
.hud-target__meta > div { display: flex; align-items: baseline; gap: 4px; }
.hud-target__meta b { color: #fff; font-family: var(--hud-mono); font-size: 30px; font-weight: 500; line-height: 1; }
.hud-target__meta span { color: var(--hud-muted); font-size: 8px; }
.hud-target__meta i { font-style: normal; }
.hud-target__meta small { display: block; margin-top: 5px; color: var(--hud-dim); font-size: 7px; line-height: 1.5; }

/* Footer */
.hud-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid var(--hud-line);
  background: linear-gradient(180deg, rgba(5, 27, 45, 0.85), rgba(3, 17, 30, 0.8));
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}
.hud-foot__brand { display: flex; align-items: baseline; gap: 6px; min-width: 210px; }
.hud-foot__brand span { color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6px; letter-spacing: .08em; }
.hud-foot__brand b { color: var(--hud-ink); font-size: 11px; }
.hud-foot__brand em { color: var(--hud-green); font-size: 7px; font-style: normal; }
.hud-foot__mods { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hud-foot__mods > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mod-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(67, 230, 255, 0.24); color: var(--hud-cyan); font-family: var(--hud-mono); font-size: 6px; font-style: normal; }
.hud-foot__mods b { color: var(--hud-ink); font-size: 8px; font-weight: 550; white-space: nowrap; }
.hud-foot__mods span { color: var(--hud-dim); font-size: 6.5px; white-space: nowrap; }
.hud-foot__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--hud-dim); font-family: var(--hud-mono); font-size: 6.5px; white-space: nowrap; }
.hud-back { color: var(--hud-cyan); font-family: var(--hud-sans); font-size: 7px; }
.hud-back:hover { color: var(--hud-green); }

/* State / loading */
.hud-loading, .hud-error {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(2, 11, 23, 0.92);
  backdrop-filter: blur(4px);
}
.hud-loading.is-hidden { display: none; }
.hud-loading b { color: var(--hud-ink); font-size: 12px; }
.hud-loading small { color: var(--hud-dim); font-family: var(--hud-mono); font-size: 7px; letter-spacing: .16em; }
.hud-loader { width: 42px; height: 42px; border: 1px solid rgba(67, 230, 255, 0.15); border-top-color: var(--hud-green); border-radius: 50%; animation: hudSpin 900ms linear infinite; box-shadow: 0 0 20px rgba(88, 255, 208, 0.12); }
.hud-error[hidden] { display: none; }
.hud-error b { color: var(--hud-red); font-size: 13px; }
.hud-error span { color: var(--hud-dim); font-size: 9px; }
.hud-error button { margin-top: 5px; padding: 8px 14px; border: 1px solid rgba(67, 230, 255, 0.28); color: var(--hud-cyan); font-size: 9px; }
.hud-skeleton { height: 130px; background: linear-gradient(90deg, rgba(67, 230, 255, 0.03), rgba(67, 230, 255, 0.08), rgba(67, 230, 255, 0.03)); animation: hudSkeleton 2s ease-in-out infinite; }

@keyframes hudPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes hudFloat { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@keyframes hudScan { 0%, 100% { top: 20%; opacity: .15; } 50% { top: 70%; opacity: .8; } }
@keyframes hudOrbit { to { transform: translate(-50%, -50%) rotateX(65deg) rotate(360deg); } }
@keyframes hudWheel { to { transform: rotate(360deg); } }
@keyframes hudSpin { to { transform: rotate(360deg); } }
@keyframes hudSkeleton { 0%, 100% { opacity: .4; } 50% { opacity: .8; } }

@media (max-width: 1600px) {
  .hud-main { grid-template-columns: 280px minmax(400px, 1fr) 300px; }
  .hud-side--left { grid-template-rows: 136px minmax(0, 1fr) 160px; }
  .hud-side--right { grid-template-rows: minmax(0, 1.3fr) 145px 140px; }
  .hud-brand__name { font-size: 15px; }
  .hud-title h1 { font-size: 23px; }
  .hud-clock__time { font-size: 20px; }
  .hud-sales-row { grid-template-columns: 14px 24px minmax(0, 1fr) 30px 30px 38px; gap: 4px; }
  .holo-car { width: 88%; }
  .hud-center__stats { gap: 4px; }
  .center-stat b { font-size: 18px; }
}

@media (max-width: 1320px) {
  .hud-shell { grid-template-rows: 68px minmax(0, 1fr) 54px; padding: 7px 9px; gap: 7px; }
  .hud-main { grid-template-columns: 245px minmax(330px, 1fr) 260px; gap: 7px; }
  .hud-side { gap: 7px; }
  .hud-side--left { grid-template-rows: 120px minmax(0, 1fr) 145px; }
  .hud-side--right { grid-template-rows: minmax(0, 1.3fr) 135px 128px; }
  .hud-panel { padding: 8px 9px; }
  .hud-panel__head > span { font-size: 5.5px; }
  .hud-panel__head > b { font-size: 11px; }
  .hud-brand__name { font-size: 13px; }
  .hud-brand__sub { font-size: 6px; }
  .hud-title__kicker { font-size: 5.5px; }
  .hud-title h1 { font-size: 19px; }
  .hud-title small { font-size: 7px; }
  .hud-clock__time { font-size: 17px; }
  .hud-due__value b { font-size: 35px; }
  .hud-due__meta { font-size: 6.5px; }
  .hud-due__track { margin-top: 7px; }
  .hud-sales-row { min-height: 29px; grid-template-columns: 12px 22px minmax(0, 1fr) 26px 26px 32px; }
  .hud-sales-avatar { width: 21px; height: 21px; font-size: 7px; }
  .hud-sales-id b { font-size: 8px; }
  .hud-sales-id small { font-size: 5.5px; }
  .hud-sales-metric b { font-size: 8.5px; }
  .hud-sales-metric span { font-size: 5px; }
  .hud-funnel-row { grid-template-columns: 35px minmax(0, 1fr) 24px 23px; gap: 4px; }
  .hud-funnel-label { font-size: 6.5px; }
  .hud-activity-main b { font-size: 7px; }
  .hud-activity-main small { font-size: 5.5px; }
  .hud-activity-outcome, .hud-activity-time { font-size: 5.2px; }
  .hud-queue-label { font-size: 6.5px; }
  .hud-target__ring { width: 72px; height: 72px; }
  .hud-target__ring > div { width: 60px; height: 60px; }
  .hud-target__ring b { font-size: 16px; }
  .hud-target__meta b { font-size: 25px; }
  .hud-center__top { font-size: 6px; }
  .center-stat { padding: 5px 6px; }
  .center-stat span { font-size: 6px; }
  .center-stat b { font-size: 16px; }
  .center-stat small { font-size: 6px; }
  .hud-foot__brand { min-width: 160px; }
  .hud-foot__mods b { font-size: 7px; }
  .hud-foot__mods span { font-size: 5.5px; }
}

@media (max-width: 1050px) {
  body { overflow: auto; }
  .hud-shell { height: auto; min-height: 100vh; grid-template-rows: auto auto auto; }
  .hud-main { grid-template-columns: 1fr 1.4fr 1fr; min-height: 560px; }
  .hud-side { display: none; }
  .hud-center { grid-column: 1 / -1; }
  .hud-foot__mods { grid-template-columns: repeat(2, 1fr); }
  .hud-foot__brand, .hud-foot__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* ==========================================================================
   Hologram car — motion / energy / scan effects
   ========================================================================== */

.holo-car {
  rotate: -.4deg;
  animation: hudFloat 6s ease-in-out infinite, carGlow 3.6s ease-in-out infinite, carTilt 7s ease-in-out infinite;
}

.car-aura-path {
  fill: none;
  stroke: #4dffe0;
  stroke-width: 13;
  opacity: .1;
  filter: blur(11px);
  animation: carAuraPulse 3.2s ease-in-out infinite;
}

.car-body-outline,
.car-window-outline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: carDraw 2.3s cubic-bezier(.22, 1, .36, 1) forwards;
}
.car-window-outline { animation-delay: .35s; }

.car-data-line {
  stroke-dasharray: 18 64;
  animation: carDataFlow 2.6s linear infinite;
}

.wheel--rear { animation: hudWheel 3.8s linear infinite; }
.wheel--front { animation: hudWheel 3.8s linear infinite; }

.holo-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 58%;
  height: 38%;
  border: 1px solid rgba(88, 255, 208, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.82);
  opacity: 0;
  pointer-events: none;
  animation: holoPulseRing 4.2s ease-out infinite;
}

.holo-floor-pulse {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 255, 208, .8), rgba(67, 230, 255, .5), transparent);
  box-shadow: 0 0 16px rgba(67, 230, 255, .35);
  opacity: .5;
  animation: floorPulse 3.6s ease-in-out infinite;
}

.holo-sweep {
  position: absolute;
  z-index: 2;
  top: 7%;
  bottom: 9%;
  left: -22%;
  width: 17%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(88, 255, 208, .09), rgba(67, 230, 255, .26), transparent);
  filter: blur(12px);
  transform: skewX(-12deg);
  mix-blend-mode: screen;
  animation: holoSweep 5.2s ease-in-out infinite;
}

.holo-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.holo-particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--hud-cyan);
  box-shadow: 0 0 8px rgba(67, 230, 255, .9);
  animation: particleDrift var(--d, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.holo-particles i:nth-child(3n) { background: var(--hud-green); box-shadow: 0 0 9px rgba(88, 255, 208, .9); }
.holo-particles i:nth-child(4n) { width: 1px; height: 1px; opacity: .7; }

.holo-node::before { animation: nodePulse 2.4s ease-in-out infinite; }
.holo-grid { animation: gridDrift 14s linear infinite; }
.holo-orbit--outer { animation-duration: 16s; }
.holo-orbit--mid { animation-duration: 10s; }
.holo-orbit--inner { animation-duration: 7s; }

@keyframes carGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(37, 226, 255, .2)) drop-shadow(0 0 48px rgba(88, 255, 208, .06)); }
  50% { filter: drop-shadow(0 0 34px rgba(37, 226, 255, .38)) drop-shadow(0 0 82px rgba(88, 255, 208, .14)); }
}
@keyframes carAuraPulse {
  0%, 100% { opacity: .06; stroke-width: 10; }
  50% { opacity: .2; stroke-width: 17; }
}
@keyframes carDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes carTilt {
  0%, 100% { rotate: -.5deg; }
  50% { rotate: .5deg; }
}
@keyframes carDataFlow {
  to { stroke-dashoffset: -82; }
}
@keyframes holoPulseRing {
  0% { opacity: .48; transform: translate(-50%, -50%) scale(.8); }
  80%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
}
@keyframes floorPulse {
  0%, 100% { opacity: .25; transform: scaleX(.72); }
  50% { opacity: .8; transform: scaleX(1); }
}
@keyframes holoSweep {
  0%, 12% { left: -22%; opacity: 0; }
  26% { opacity: .85; }
  58% { left: 112%; opacity: .4; }
  60%, 100% { left: 112%; opacity: 0; }
}
@keyframes particleDrift {
  0%, 100% { transform: translate(0, 0); opacity: .2; }
  35% { opacity: .9; }
  50% { transform: translate(8px, -16px); opacity: .55; }
  75% { transform: translate(-6px, -6px); opacity: .85; }
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 8px currentColor; }
  50% { box-shadow: 0 0 18px currentColor; }
}
@keyframes gridDrift {
  to { background-position: 24px 34px, 24px 34px; }
}


/* Refined brand mark tile */
.brand__mark, .login-brand__mark, .portal-login__mark, .screen-brand__mark, .hud-brand__mark {
  background: linear-gradient(145deg, #ff7b48 0%, #f05a28 48%, #dc4618 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 18px rgba(230, 72, 26, 0.26) !important;
}
.brand__mark svg, .login-brand__mark svg, .portal-login__mark svg, .screen-brand__mark svg, .hud-brand__mark svg {
  filter: drop-shadow(0 1px 1px rgba(100, 25, 0, 0.18));
}
