/* ==========================================================================
   TCN "Future" layer (2026-10-30) — a high-tech HUD look over the app shell.

   Sits on top of tcn-app.css and only restyles; no markup changes. Like the
   app layer it is scoped under html.tx-app, so Classic look is untouched.
   Direction: deep blue-black, faint grid, glass panels with hairline cyan
   edges and corner brackets, monochrome glowing icons instead of the
   rainbow app-icon tiles, mono uppercase labels, squarer shapes.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

html.tx-app {
  --tx-bg: #02050b;
  --tx-raised: rgba(10,20,36,.62);
  --tx-raised-2: rgba(14,28,50,.7);
  --tx-overlay: #0a1424;
  --tx-line: rgba(90,200,255,.14);
  --tx-line-strong: rgba(90,200,255,.32);
  --tx-label-2: rgba(214,232,255,.78);
  --tx-label-3: rgba(150,190,230,.55);
  --tx-cyan: #3ee8ff;
  --tx-grad: linear-gradient(120deg, #3ee8ff 0%, #4f7dff 55%, #b44dff 100%);
  --tx-radius: 14px;
  --tx-radius-sm: 10px;
  --tx-font: "Space Grotesk", "Inter", system-ui, "Segoe UI", sans-serif;
  --tx-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --tx-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fx-glow: 0 0 0 1px rgba(62,232,255,.08), 0 0 24px rgba(62,232,255,.08);
}

/* --- Backdrop: grid + horizon glow + slow scan line ------------------------ */
html.tx-app .tx-ambient {
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(62,232,255,.14), transparent 70%),
    radial-gradient(50% 35% at 100% 100%, rgba(180,77,255,.10), transparent 70%),
    var(--tx-bg);
}
html.tx-app .tx-ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(62,232,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,232,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 85%);
}
html.tx-app .tx-ambient::after {
  opacity: 1; mix-blend-mode: normal; background-image: none;
  background: linear-gradient(180deg, transparent, rgba(62,232,255,.06) 50%, transparent);
  height: 140px; inset: auto 0 auto 0; top: -140px;
  animation: fx-scan 9s linear infinite;
}
@keyframes fx-scan { to { transform: translateY(calc(100vh + 140px)); } }

/* --- Type ------------------------------------------------------------------- */
html.tx-app h1, html.tx-app h2, html.tx-app h3, html.tx-app .tx-hero-name,
html.tx-app .tx-large h1, html.tx-app .h-section { letter-spacing: -.01em !important; font-weight: 600 !important; }
html.tx-app .tx-large-kicker, html.tx-app .eyebrow, html.tx-app .tx-section-label,
html.tx-app .perf-card-label, html.tx-app .agency-stat-lbl, html.tx-app .form-label,
html.tx-app .tx-hero-hello {
  font-family: var(--tx-mono) !important; font-weight: 500 !important;
  text-transform: uppercase; letter-spacing: .16em !important; font-size: 11px !important;
  color: var(--tx-cyan) !important; opacity: .85;
}
html.tx-app .perf-card-value, html.tx-app .agency-stat-num, html.tx-app [class*="statnum"] {
  font-family: var(--tx-mono) !important; font-weight: 600 !important; letter-spacing: -.02em !important;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(62,232,255,.35);
}
html.tx-app .gradient-text, html.tx-app .ax-grad-text { background: var(--tx-grad) !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* --- Panels: glass, hairline edge, corner brackets -------------------------- */
html.tx-app .tx-hero, html.tx-app .tx-quick, html.tx-app .card,
html.tx-app [class$="-card"]:not(.tx-tile):not(.contact-card),
html.tx-app .agency-stat, html.tx-app .perf-mini-stat, html.tx-app .tx-list,
html.tx-app .agency-section, html.tx-app .perf-section > div[class$="-card"] {
  position: relative;
  background: linear-gradient(180deg, rgba(16,32,58,.55), rgba(6,14,28,.55)) !important;
  border: 1px solid var(--tx-line) !important;
  border-radius: var(--tx-radius) !important;
  box-shadow: inset 0 1px 0 rgba(160,230,255,.06), var(--fx-glow) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
html.tx-app .tx-hero::after, html.tx-app .tx-quick::after,
html.tx-app [class$="-card"]:not(.tx-tile):not(.contact-card)::after, html.tx-app .agency-stat::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(var(--tx-cyan), var(--tx-cyan)) top left / 14px 1px,
    linear-gradient(var(--tx-cyan), var(--tx-cyan)) top left / 1px 14px,
    linear-gradient(var(--tx-cyan), var(--tx-cyan)) bottom right / 14px 1px,
    linear-gradient(var(--tx-cyan), var(--tx-cyan)) bottom right / 1px 14px;
  background-repeat: no-repeat; opacity: .7;
}

/* Hero: the cartoon wave and big logo watermark give way to a data-strip feel */
html.tx-app .tx-hero-wave { opacity: .18; filter: saturate(.6) hue-rotate(-20deg); }
html.tx-app .tx-hero-mark { opacity: .08; filter: grayscale(1) brightness(1.6); }
html.tx-app .tx-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tx-cyan), transparent); opacity: .8;
}

/* --- Avatars: thin ring instead of a fat gradient disc ---------------------- */
html.tx-app .tx-avatar { background: conic-gradient(from 200deg, #3ee8ff, #4f7dff, #b44dff, #3ee8ff) !important; padding: 1.5px; }
html.tx-app .tx-avatar span { background: #040a14 !important; font-family: var(--tx-mono) !important; letter-spacing: .04em; }
html.tx-app .tx-hero .tx-avatar { box-shadow: 0 0 22px rgba(62,232,255,.35) !important; }

/* --- Quick tiles: monochrome glowing glyphs, not rainbow app icons ---------- */
html.tx-app .tx-ic {
  background: linear-gradient(180deg, rgba(20,40,70,.8), rgba(6,14,28,.9)) !important;
  border: 1px solid var(--tx-line-strong);
  border-radius: 12px !important;
  box-shadow: inset 0 0 18px rgba(62,232,255,.08) !important;
  color: var(--tx-cyan) !important;
  transition: border-color .2s, box-shadow .2s, transform .16s var(--tx-ease);
}
html.tx-app .tx-ic::after { background: linear-gradient(180deg, rgba(62,232,255,.10), transparent 55%) !important; }
html.tx-app .tx-ic svg { stroke: currentColor; stroke-width: 1.6 !important; filter: drop-shadow(0 0 6px rgba(62,232,255,.7)) !important; }
html.tx-app .tx-tile { font-family: var(--tx-mono) !important; font-size: 10.5px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-label-2) !important; }
html.tx-app .tx-tile:hover .tx-ic { border-color: var(--tx-cyan); box-shadow: inset 0 0 22px rgba(62,232,255,.18), 0 0 18px rgba(62,232,255,.3) !important; }
html.tx-app .tx-row-ic, html.tx-app .ax-row-ic {
  background: rgba(62,232,255,.08) !important; border: 1px solid var(--tx-line-strong); color: var(--tx-cyan) !important;
}
html.tx-app .tx-row-ic svg, html.tx-app .ax-row-ic svg { stroke: currentColor; filter: drop-shadow(0 0 4px rgba(62,232,255,.6)); }

/* --- Chips, pills and buttons: squarer, outlined, mono ---------------------- */
html.tx-app .tx-chip, html.tx-app a[style*="border-radius:100px"], html.tx-app a[style*="border-radius: 100px"],
html.tx-app .agency-badge, html.tx-app .ob-badge, html.tx-app .admin-link-btn, html.tx-app .notes-btn {
  border-radius: 6px !important;
  background: rgba(62,232,255,.04) !important;
  border: 1px solid var(--tx-line-strong) !important;
  font-family: var(--tx-mono) !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-label-2) !important;
}
html.tx-app a[style*="border-radius:100px"]:hover, html.tx-app .tx-chip:hover {
  border-color: var(--tx-cyan) !important; color: #fff !important; box-shadow: 0 0 14px rgba(62,232,255,.25);
}
html.tx-app .tx-chip i { background: var(--tx-cyan); box-shadow: 0 0 8px var(--tx-cyan); }
html.tx-app .btn { border-radius: 8px !important; font-family: var(--tx-mono) !important; font-weight: 600 !important; letter-spacing: .1em !important; text-transform: uppercase; font-size: 13px !important; }
html.tx-app .btn-primary {
  background: linear-gradient(120deg, rgba(62,232,255,.95), rgba(79,125,255,.95)) !important; color: #02050b !important;
  box-shadow: 0 0 0 1px rgba(62,232,255,.6), 0 0 24px rgba(62,232,255,.35) !important; border: 0 !important;
}
html.tx-app .btn-outline { border-radius: 8px !important; border-color: var(--tx-line-strong) !important; background: rgba(62,232,255,.04) !important; }

/* --- Inputs ------------------------------------------------------------------ */
html.tx-app input, html.tx-app textarea, html.tx-app select {
  border-radius: 8px !important; background: rgba(4,10,20,.8) !important; border-color: var(--tx-line-strong) !important;
  font-family: var(--tx-font) !important;
}
html.tx-app input:focus, html.tx-app textarea:focus, html.tx-app select:focus {
  border-color: var(--tx-cyan) !important; box-shadow: 0 0 0 3px rgba(62,232,255,.15), 0 0 18px rgba(62,232,255,.2) !important;
}

/* --- Top bar and tab bar: glass HUD strips ----------------------------------- */
html.tx-app .tx-bar { background: rgba(2,6,14,.72) !important; border-bottom: 1px solid var(--tx-line) !important; }
html.tx-app .tx-brand span { color: var(--tx-cyan); text-shadow: 0 0 10px rgba(62,232,255,.6); }
html.tx-app .tx-tabs {
  background: rgba(4,10,22,.78) !important; border: 1px solid var(--tx-line-strong) !important;
  border-radius: 14px !important; box-shadow: 0 0 30px rgba(62,232,255,.10), inset 0 1px 0 rgba(160,230,255,.08) !important;
}
html.tx-app .tx-tab-ind { background: rgba(62,232,255,.08) !important; border: 1px solid rgba(62,232,255,.35); border-radius: 10px !important; }
html.tx-app .tx-tab-ind::after { background: var(--tx-cyan) !important; box-shadow: 0 0 10px var(--tx-cyan) !important; }
html.tx-app .tx-tab { font-family: var(--tx-mono) !important; letter-spacing: .06em; text-transform: uppercase; font-size: 9.5px !important; }
html.tx-app .tx-tab.tx-on { color: var(--tx-cyan) !important; }
html.tx-app .tx-tab.tx-on svg { stroke: var(--tx-cyan) !important; filter: drop-shadow(0 0 8px rgba(62,232,255,.8)) !important; }
html.tx-app .tx-badge { background: #ff2e88 !important; box-shadow: 0 0 10px rgba(255,46,136,.7); font-family: var(--tx-mono); }

/* Bottom sheet */
html.tx-app .tx-sheet { background: rgba(4,10,22,.94) !important; border-top: 1px solid var(--tx-line-strong) !important; }

/* Recognition: the selected wave tab is a glowing outline in its own colour, not a solid gold block */
html.tx-app .rw-tab { border-radius: 10px !important; font-family: var(--tx-mono) !important; background: rgba(6,14,28,.6) !important; }
html.tx-app .rw-tab.rw-on {
  background: rgba(6,14,28,.6) !important; color: var(--rw-solid) !important;
  border: 1px solid var(--rw-solid) !important;
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--rw-solid) 22%, transparent), 0 0 18px color-mix(in srgb, var(--rw-solid) 35%, transparent);
  text-shadow: 0 0 10px var(--rw-solid);
}

/* Progress bars and rings pick up the cyan glow */
html.tx-app [class*="-bar"] > i { box-shadow: 0 0 12px rgba(62,232,255,.45); }

@media (prefers-reduced-motion: reduce) { html.tx-app .tx-ambient::after { animation: none; display: none; } }
