/* ==========================================================================
   Tech-futuristic accent layer (Sep 2026). ADDITIVE on the original dark
   design — it keeps the teal glass look untouched and layers on a HUD:
   a faint blueprint grid, monospace precision numerals for data, corner
   brackets on the dashboard panel, tracked technical eyebrows, and a
   restrained teal glow on the live and primary-action elements. Premium,
   not neon. Remove this one <link> to return to the pure original.
   ========================================================================== */

:root {
  --tech-teal: #1697A8;
  --tech-cyan: #8FD0D8;
  --tech-grid: rgba(143,208,216,.05);
  --tech-edge: rgba(143,208,216,.5);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- HUD blueprint grid, faint, faded from the top ---- */
#xsf-scroll::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(var(--tech-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 92%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 92%);
}

/* ---- Futuristic HUD assets: a glowing ring arc at the top and a perspective
   circuit-grid floor at the base, layered into the existing art container so
   they sit behind the app content. Original SVGs, teal palette. ---- */
div[aria-hidden="true"] > svg { display: none !important; }   /* remove the crossing ribbon texture; keep the teal glow blobs and the HUD */
div[aria-hidden="true"]::after {
  content: ''; position: absolute; left: 50%; top: -3%; transform: translateX(-50%);
  width: min(1150px, 96vw); height: 60vh; max-height: 620px;
  background: url('/img/hud-arc.svg') center top / contain no-repeat;
  opacity: .6; pointer-events: none;
  filter: drop-shadow(0 0 26px rgba(22,151,168,.35));
  animation: hudFloat 16s ease-in-out infinite alternate;   /* slow hover, loops seamlessly */
  will-change: transform, opacity;
}
@keyframes hudFloat {
  from { transform: translate(-50%, 0) scale(1);     opacity: .55; }
  to   { transform: translate(-50%, -10px) scale(1.015); opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
  div[aria-hidden="true"]::after { animation: none; }
}
div[aria-hidden="true"]::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; max-height: 460px;
  background: url('/img/hud-floor.svg') center bottom / 100% 100% no-repeat;
  opacity: .5; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .xcta { filter: none; } }

/* ---- Monospace precision numerals on every data cell (rates, codes,
   numbers, dates, amounts, timestamps already carry tabular-nums) ---- */
[data-screen-label] [style*="font-variant-numeric:tabular-nums"] {
  font-family: var(--font-mono) !important;
  letter-spacing: -.02em;
}
/* dashboard clock + big stat figures read as an instrument panel */
[data-screen-label] [style*="font-size:34px"][style*="font-weight:700"] {
  font-family: var(--font-mono) !important;
  letter-spacing: -.03em;
}

/* ---- Technical eyebrow: the teal kicker becomes a tracked mono label ---- */
[data-screen-label] [style*="color:#8FD0D8"] {
  font-family: var(--font-mono) !important;
  text-transform: uppercase;
  letter-spacing: .22em !important;
  font-size: 11px !important;
}

/* ---- Corner-bracket HUD accents on the dashboard instrument panel ---- */
[data-screen-label] div[style*="1.2fr 1fr 1fr 1fr 1.2fr"] { position: relative; }
[data-screen-label] div[style*="1.2fr 1fr 1fr 1fr 1.2fr"]::before,
[data-screen-label] div[style*="1.2fr 1fr 1fr 1fr 1.2fr"]::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 1.5px solid var(--tech-edge); pointer-events: none;
}
[data-screen-label] div[style*="1.2fr 1fr 1fr 1fr 1.2fr"]::before {
  top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0;
}
[data-screen-label] div[style*="1.2fr 1fr 1fr 1fr 1.2fr"]::after {
  bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0;
}

/* ---- Restrained teal glow on the primary action (aura, not neon) ---- */
.xcta { filter: drop-shadow(0 4px 16px rgba(22,151,168,.35)); }
.xcta:hover { filter: drop-shadow(0 6px 22px rgba(22,151,168,.55)); }

/* ---- Live indicator: a crisper cyan pulse ---- */
[data-screen-label] [style*="xping"], [style*="animation:xping"] {
  box-shadow: 0 0 0 1px rgba(143,208,216,.4), 0 0 10px rgba(48,209,88,.5) !important;
}

/* ---- Section headings gain a hair of tech precision, still Inter ---- */
[data-screen-label] h1, [data-screen-label] h2 { letter-spacing: -.045em; }

@media (prefers-reduced-motion: reduce) { .xcta { filter: none; } }
