/* ==========================================================================
   0xashiQ DUAL-INTERFACE ARCHITECTURE (v3.5.0)
   1. trbn-tv-body (index.html): Denis Turbin "A Portfolio You Watch" Hardware Console
   2. termix-page (dev.html): Pure Termix OS Retro CRT Terminal TUI
   ========================================================================== */

:root {
  /* Matrix Theme Default */
  --bg-dark: #0a0d0a;
  --chassis-bg: #141814;
  --chassis-border: #283028;
  --screen-bg: #050805;
  --border-color: rgba(34, 197, 94, 0.28);
  --border-bright: #22c55e;

  --primary: #00ff66;
  --primary-glow: rgba(0, 255, 102, 0.45);
  --primary-dim: rgba(0, 255, 102, 0.12);

  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.35);

  --cyan: #06b6d4;
  --purple: #a855f7;

  --text-main: #f0fdf4;
  --text-dim: #94a3b8;
  --text-bright: #ffffff;

  --font-heading: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Rajdhani', sans-serif;
  --font-led: 'VT323', monospace;
}

[data-theme="amber"] {
  --bg-dark: #0c0904;
  --chassis-bg: #1a150c;
  --chassis-border: #382c16;
  --screen-bg: #080603;
  --border-color: rgba(245, 158, 11, 0.28);
  --border-bright: #f59e0b;
  --primary: #ffb000;
  --primary-glow: rgba(255, 176, 0, 0.45);
  --primary-dim: rgba(255, 176, 0, 0.12);
  --text-main: #fef3c7;
  --text-dim: #d1d5db;
}

[data-theme="cyan"] {
  --bg-dark: #04090d;
  --chassis-bg: #0e1820;
  --chassis-border: #1a3040;
  --screen-bg: #03080c;
  --border-color: rgba(6, 182, 212, 0.28);
  --border-bright: #00f0ff;
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.45);
  --primary-dim: rgba(0, 240, 255, 0.12);
  --text-main: #e0f2fe;
  --text-dim: #cbd5e1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.profile-name, .profile-title, .left-skills-header, .wid-title,
.what-item-title, .vcr-channel-id, .deck-portal-label, .step-badge,
.section-title, .hud-title, .vcr-dev-portal-btn, .termix-nav-tab,
.boot-header-status, .host-badge, .active-module-title, .wing-tag,
.vcr-ctrl-btn, .service-pkg-title, .contact-btn {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

pre, code, .terminal-prompt, .boot-code-lines,
.tele-row strong, .cli-output, .status-ticker, .neofetch-table,
.proof-ticker-tag, .hud-metric-val {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  cursor: pointer;
}

.matrix-canvas.hidden {
  display: none !important;
  pointer-events: none !important;
}

html {
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Scanlines & Vignette Shaders - Disabled for Clean, Sharp Readability */
.scanlines {
  display: none !important;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 998;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.35);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.green { background: var(--primary); box-shadow: 0 0 8px var(--primary); }

/* ==========================================================================
   DENIS TURBIN "A PORTFOLIO YOU WATCH" HARDWARE TV CHASSIS (index.html)
   ========================================================================== */
.trbn-tv-body {
  background: #060906;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(4px, 1.2vh, 14px) clamp(6px, 1.5vw, 20px);
  box-sizing: border-box;
  overflow: hidden;
}


/* Outer Metallic TV Chassis (Immersive Full-Screen Adaptation) */
.hardware-chassis {
  width: 100%;
  max-width: min(1560px, 98vw);
  height: 100%;
  max-height: 98vh;
  background: var(--chassis-bg);
  border: 4px solid var(--chassis-border);
  border-radius: 24px;
  padding: clamp(8px, 1.2vh, 12px) clamp(10px, 1.2vw, 16px) clamp(6px, 1vh, 10px) clamp(10px, 1.2vw, 16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95),
              inset 0 1px 1px rgba(255, 255, 255, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  box-sizing: border-box;
}


/* Dual CRT Screen Enclosure - Dynamic Fit & Drag-Resizable for Visitors */
.dual-screen-enclosure {
  display: grid;
  grid-template-columns: minmax(260px, min(var(--sidebar-w, 380px), 40vw)) 8px minmax(0, 1fr);
  gap: clamp(6px, 1vw, 12px);
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Interactive Split Resizer Handle */
.sidebar-resizer-handle {
  width: 8px;
  cursor: col-resize;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.2s ease;
  z-index: 50;
  user-select: none;
}

.sidebar-resizer-handle::before {
  content: '';
  width: 2px;
  height: 60px;
  background: rgba(56, 189, 248, 0.35);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.sidebar-resizer-handle:hover::before,
.sidebar-resizer-handle.dragging::before {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  height: 100px;
  width: 3px;
}

.crt-panel-left {
  overflow-y: auto;
  min-width: 260px;
  max-width: 600px;
}

/* Base CRT Screen Styling (Golden/Amber Cathode Glow Ring) */
.crt-screen {
  background: var(--screen-bg);
  border: 2px solid #ca8a04;
  border-radius: 18px;
  padding: clamp(10px, 1.4vh, 16px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(202, 138, 4, 0.3),
              0 0 12px rgba(202, 138, 4, 0.35),
              inset 0 0 45px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  min-height: 0;
}


.crt-screen-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 12px);
  flex: 1;
  min-height: 0;
}

/* ==========================================================================
   SCREEN 1: LEFT CONTROL & IDENTITY PANEL
   ========================================================================== */
.profile-header-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.avatar-column {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.avatar-box {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #0d140e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 0 12px rgba(202, 138, 4, 0.25);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.avatar-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-icon {
  font-size: 1.5rem;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}


.profile-info-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.profile-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.profile-name {
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary, #22c55e);
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px var(--primary-glow), 0 0 2px rgba(34, 255, 102, 0.55);
}

.likes-counter {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.likes-counter:hover .heart-icon {
  color: #ef4444;
}
.profile-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 0;
  padding: 3px 8px;
  border: 1px solid rgba(0, 255, 102, 0.32);
  border-left: 2px solid var(--primary);
  border-radius: 3px;
  background: rgba(0, 255, 102, 0.06);
  box-shadow: inset 0 0 9px rgba(0, 255, 102, 0.05);
  color: #9fb4c9;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.58rem, 1.05vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: normal;
  gap: 1px;
}

.profile-title span {
  display: block;
}

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-link {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 3px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-decoration: none;
}

.project-link:hover {
  background: rgba(0, 255, 102, 0.14);
}

/* Option C: Cyber Spec 2x2 Grid Blocks */
.cyber-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.spec-cell {
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 5px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.spec-cell:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

/* Highlighted Bio (Crystal Clear, High Contrast, Uniform Bullet Telemetry) */
.highlighted-bio {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.highlighted-bio .bio-lead {
  font-size: 0.77rem;
  color: #e2e8f0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}
.highlighted-bio .bio-lead::before {
  content: '—';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chan-svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* Primary Halftone Texture Button (Exact Denis Turbin Halftone Look) */
.tv-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #f1f5f9;
  border: 1.5px solid #ffffff;
  border-radius: 4px;
  color: #000000;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  background-image: radial-gradient(rgba(0, 0, 0, 0.45) 1.2px, transparent 1.2px);
  background-size: 4px 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.tv-btn-primary:hover {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}


/* Email Quick Copy Bar */
.email-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #090e09;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.email-copy-bar:hover {
  border-color: var(--primary);
  background: #0e160e;
}

.email-icon {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.email-svg {
  width: 15px;
  height: 15px;
  display: block;
}

.email-text {
  color: var(--text-bright);
  font-weight: 600;
}
.copy-tooltip {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Availability Card */
.availability-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.avail-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}
.download-cv-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.download-cv-link:hover {
  color: var(--primary);
}


/* ==========================================================================
   LEFT PANEL: CORE EXPERTISE & WHAT I DO
   ========================================================================== */

/* Core Skills Categorized Points Card */
.left-skills-card {
  background: rgba(4, 14, 24, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 2.5px solid #38bdf8;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.left-skills-header {
  font-size: 0.64rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
  font-family: var(--font-mono, monospace);
  margin-bottom: 2px;
}

.left-skills-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.left-skills-points li {
  font-size: 0.74rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  line-height: 1.3;
}

.left-skills-points li::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
  transition: transform 0.2s ease;
}

.left-skills-points li:hover {
  color: #ff6b6b;
}

.left-skills-points li:hover::before {
  transform: scale(1.35);
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

/* Left Panel Pinstripe Hairline */
.left-panel-pinstripe {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
  margin: 4px 0;
}

/* What I Do Hands-On Services (Tactical Modular Grid) */
.what-i-do-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-left: 3px solid #facc15;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.what-i-do-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(250, 204, 21, 0.2);
}

.wid-title {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wid-pill {
  font-size: 0.58rem;
  color: #fef08a;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 1px 6px;
  border-radius: 3px;
}

.what-i-do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.what-module {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s ease;
}

.what-module:hover {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.07);
  transform: translateY(-1px);
}

.what-module-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  font-weight: 700;
  color: #facc15;
  letter-spacing: 0.05em;
}

.what-module-name {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.what-module-spec {
  font-size: 0.64rem;
  color: #94a3b8;
  line-height: 1.25;
  margin: 0;
}

/* ==========================================================================
   SCREEN 2: RIGHT BROADCAST TV TUBE ("A Portfolio You Watch")
   ========================================================================== */
.crt-tube-right {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}


/* VCR Top Header Bar */
.vcr-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.vcr-play-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-arrow {
  color: var(--primary);
  font-size: 0.75rem;
}
.play-label {
  font-weight: 700;
  color: var(--text-bright);
}
.timecode {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.tv-filter-tabs {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 3px;
  align-items: center;
}
.tv-tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 2px 5px;
  font-size: clamp(0.6rem, 0.95vw, 0.72rem);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.2s;
}

.tv-tab:hover {
  color: #ffffff;
}

.tv-tab.active {
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
  font-weight: 800;
  padding: 2px 8px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.vcr-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vcr-channel-id {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.vcr-dev-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vcr-dev-portal-btn:hover {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-1px);
}

.vcr-dev-portal-btn .portal-code-bracket {
  font-weight: 800;
}

.vcr-dev-portal-btn .portal-arrow-icon {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.vcr-dev-portal-btn:hover .portal-arrow-icon {
  transform: translate(2px, -2px);
}

/* VCR Live Oscilloscope & SMC Telemetry Ticker */
.vcr-oscilloscope {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 3px;
  box-shadow: inset 0 0 6px rgba(34, 197, 94, 0.3);
}

.vcr-market-ticker {
  display: flex;
  flex: 1 1 120px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #38bdf8;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-pulse {
  color: #22c55e;
  animation: blink 1.2s infinite;
  font-size: 0.6rem;
}

/* Tube Stage Center Display with Denis Turbin Atmospheric Glow */
.tube-stage-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 32%, rgba(14, 165, 233, 0.16) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(0, 0, 0, 0.98) 75%);
  border-radius: 12px;
  overflow: hidden;
}

/* Background Perspective Stage Wings (Denis Turbin 3D Depth) */
.stage-perspective-wing {
  position: absolute;
  top: 55px;
  width: 145px;
  height: 310px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.28;
}

.stage-perspective-wing.wing-left {
  left: -20px;
  transform: perspective(600px) rotateY(40deg);
}

.stage-perspective-wing.wing-right {
  right: -20px;
  transform: perspective(600px) rotateY(-40deg);
}

.wing-inner-card {
  width: 100%;
  height: 100%;
  background: #091018;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wing-tag {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.wing-grid {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: transparent;
}

.vhs-tape-tray {
  display: none;
}

/* Case Showcase Container */
.case-showcase-view {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Retro Cyber Skeleton Frame Overlay (Denis Turbin Signature Composition) */
.cyber-hands-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.skeleton-arm {
  position: absolute;
  top: 24px;
  width: 280px;
  height: 320px;
  z-index: 25;
  opacity: 0.88;
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.45)) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.95));
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, filter 0.3s ease;
  pointer-events: auto;
}

.skeleton-arm:hover {
  opacity: 0.98;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.85)) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.98));
}

.skeleton-arm.left-arm {
  left: calc(50% - 505px);
}

.skeleton-arm.right-arm {
  left: calc(50% + 225px);
}

.skeleton-arm-svg {
  width: 100%;
  height: 100%;
}

.skeleton-skull {
  position: absolute;
  top: 225px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  height: 290px;
  z-index: 18;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.4)) drop-shadow(0 18px 32px rgba(0, 0, 0, 0.95));
  opacity: 0.92;
  transition: all 0.3s ease;
}

.skeleton-skull-svg {
  width: 100%;
  height: 100%;
}

.skull-pupil {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 8px #ff4d4d) drop-shadow(0 0 16px rgba(255, 80, 80, 0.65));
  animation: skullGaze 3s ease-in-out infinite alternate;
}

@keyframes skullGaze {
  0% {
    opacity: 0.75;
    filter: drop-shadow(0 0 4px #ff4d4d);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px #ff5555) drop-shadow(0 0 16px rgba(255, 80, 80, 0.65));
  }
  100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 5px #ff4d4d);
  }
}

/* Center Card (Floating Retro Showcase Browser Mockup - Translucent Cyber Glass Theme) */
.broadcast-center-card {
  width: 535px;
  max-width: 92%;
  margin: 4px auto 0 auto;
  background: rgba(8, 14, 22, 0.42);
  border: 1.5px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85),
              0 0 25px rgba(56, 189, 248, 0.15);
  position: relative;
  z-index: 35;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.mockup-browser-nav {
  background: rgba(20, 27, 34, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-nav-links .m-link {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.65rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mockup-nav-links .m-link:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.mockup-nav-links .m-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.mockup-tab-content.hidden {
  display: none !important;
}

.mockup-tab-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  max-height: 319px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 102, 0.45) transparent;
  animation: fadeIn 0.2s ease;
}

.mockup-tab-content::-webkit-scrollbar {
  width: 6px;
}

.mockup-tab-content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.45);
  border-radius: 3px;
}

/* Identity Traits List in Center Card */
.identity-traits-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
}

.trait-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
  color: #f8fafc;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 4px;
  border-left: 2.5px solid #38bdf8;
  line-height: 1.4;
}

.trait-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trait-title {
  font-size: 0.77rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.trait-desc {
  font-size: 0.71rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   WORK PROOF PAGE & CARDS (Refined Modular Ecosystem Format)
   ========================================================================== */
.proof-grid-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 3px 0;
  max-height: 265px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(0, 0, 0, 0.3);
}

.proof-grid-container::-webkit-scrollbar {
  width: 4px;
}
.proof-grid-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}
.proof-grid-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 2px;
}

.proof-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 2.5px solid #38bdf8;
  border-radius: 4px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.proof-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(8, 16, 28, 0.7);
}

.proof-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.proof-project-name {
  font-size: 0.79rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.proof-role-pill {
  font-size: 0.59rem;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.proof-role-pill.mod {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.proof-role-pill.admin {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.proof-desc {
  font-size: 0.69rem;
  color: #e2e8f0;
  line-height: 1.38;
  margin: 0;
  font-weight: 400;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: #9fb4c9;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 102, 0.28);
  border-radius: 3px;
  padding: 2px 5px;
  background: rgba(0, 255, 102, 0.05);
  transition: all 0.2s;
}

.project-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 255, 102, 0.12);
}



/* Funnel Steps List in Center Card */
.funnel-steps-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
}

.funnel-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--primary);
}

.step-badge {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--primary);
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Telemetry Stat Bars in Center Card */
.telemetry-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.tele-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.tele-row strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

/* SMC Live Intel in Center Card */
.smc-live-intel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.intel-item {
  display: flex;
  gap: 6px;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  border-left: 2px solid #38bdf8;
}

.intel-item .k {
  color: #38bdf8;
  font-weight: 700;
  min-width: 75px;
}

.intel-item .v {
  color: var(--text-main);
}

.hardware-rotary-knob {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.hardware-rotary-knob:active {
  filter: brightness(1.3);
}

.mockup-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 8px #00ff66;
}

.card-grid-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
}

.mockup-hero-pane {
  background: linear-gradient(145deg, rgba(2, 132, 199, 0.30) 0%, rgba(3, 105, 161, 0.20) 40%, rgba(8, 47, 73, 0.35) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  box-shadow: inset 0 0 16px rgba(2, 132, 199, 0.2);
}

.yellow-sticker-badge {
  background: #facc15;
  color: #000000;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 900;
  font-size: 0.65rem;
  align-self: flex-start;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
  letter-spacing: 0.04em;
}

.yellow-sticker-badge .sticker-sub {
  font-weight: 900;
  margin-left: 2px;
}

.trader-avatar-stage {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trader-avatar-svg-box,
.trader-avatar-img-box {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.6), inset 0 0 8px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  position: relative;
  background: #09121a;
}

.trader-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trader-photo-scanlines {
  display: none !important;
}

.trader-photo-signature {
  display: none !important;
}

.trader-svg {
  width: 100%;
  height: 100%;
}

/* Services & Skills Point List under Photo */
.hero-skills-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}

.hero-skills-title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hero-skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  margin: 0;
}

.hero-skills-list li {
  font-size: 0.63rem;
  color: #f8fafc;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2.5px 6px;
  line-height: 1.2;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-skills-list li::before {
  content: "";
  display: none;
}

.mockup-info-pane {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.card-top-tags {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
}

.tag-status { color: var(--primary); }
.tag-rating { color: var(--warning); }

.showcase-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  margin-bottom: 1px;
  line-height: 1.15;
}

.showcase-handle {
  font-size: 0.62rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

/* Overview Body & Content Blocks (Clean, Professional, No Slop) */
.overview-body-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 4px 0;
}

.overview-card-block {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 2.5px solid #38bdf8;
  border-radius: 4px;
  padding: 4px 8px;
}

.overview-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.overview-section-desc {
  font-size: 0.69rem;
  color: #e2e8f0;
  line-height: 1.38;
  font-weight: 400;
  margin: 0;
}

.overview-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.overview-cta-btn {
  background: #facc15;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: background 0.2s;
  letter-spacing: 0.03em;
}

.overview-cta-btn:hover {
  background: #fde047;
}

.overview-sub-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.overview-sub-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.showcase-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-color);
  padding: 5px 8px;
  border-radius: 4px;
}

.showcase-metric {
  display: flex;
  flex-direction: column;
}

.m-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 6px var(--primary-glow);
}

.m-lbl {
  font-size: 0.55rem;
  color: var(--text-dim);
  font-weight: 600;
}

.showcase-description {
  font-size: 0.82rem;
  color: #f1f5f9;
  line-height: 1.55;
  font-weight: 450;
}

.mini-socials-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.social-chip {
  background: #111822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--text-dim);
}

.mockup-action-line {
  margin-top: auto;
}

.mockup-speak-btn {
  background: #facc15;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.mockup-speak-btn:hover {
  background: #fde047;
}

/* ALL 26 PROJECTS Button over Skeleton Sternum */
.all-projects-pill-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 410px;
  z-index: 26;
}

.all-projects-pill {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  transition: all 0.2s;
}

.all-projects-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
}

/* VHS Cassette Tape Tray at Bottom Right (Exact Denis Turbin Realism) */
.vhs-tape-tray {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 300px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #0b0f0b;
  border: 2px solid #233023;
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.95),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: rotate(1.2deg);
}

/* Multi-point Retail Starburst Sticker */
.tape-starburst-sticker {
  position: absolute;
  top: -24px;
  left: -14px;
  z-index: 35;
  background: #facc15;
  color: #000000;
  padding: 10px 8px;
  clip-path: polygon(50% 0%, 65% 15%, 85% 5%, 85% 25%, 100% 35%, 90% 50%, 100% 65%, 85% 75%, 85% 95%, 65% 85%, 50% 100%, 35% 85%, 15% 95%, 15% 75%, 0% 65%, 10% 50%, 0% 35%, 15% 25%, 15% 5%, 35% 15%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transform: rotate(-6deg);
}

.starburst-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.52rem;
  line-height: 1.1;
  text-align: center;
}

.starburst-text .sub {
  font-size: 0.44rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* VHS Cassette Body Internal Layout */
.vhs-cassette-widget {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.vhs-tape-bevel-top {
  font-size: 0.52rem;
  font-family: var(--font-mono);
  color: #64748b;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 3px;
}

.tape-arrow {
  color: var(--primary);
  font-size: 0.6rem;
}

.vhs-tape-main-bay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
}

.vhs-spool-window {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #334155;
  background: #020402;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spool-reel {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed #ffffff;
  position: relative;
  z-index: 2;
}

.spool-spinning {
  animation: spinReel 5s linear infinite;
}

.spool-tape-wound {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid #1f2937;
}

.spool-tape-wound.small {
  inset: 6px;
}

.vhs-label-monitor {
  flex: 1;
  background: #182218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 3px 6px;
}

.vhs-mini-screen {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vhs-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background-image: url('assets/avatar-twitter.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
}

.vhs-mini-text {
  display: flex;
  flex-direction: column;
}

.vhs-title-line {
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
}

.vhs-ch-tag {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--primary);
}

.tape-price-sticker {
  position: absolute;
  right: -8px;
  bottom: -8px;
  background: #facc15;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transform: rotate(4deg);
  border: 1px dashed rgba(0, 0, 0, 0.4);
}

@keyframes spinReel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.deck-portal-deck-btn {
  background: #0f1c12;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 8px var(--primary-dim);
}

.deck-portal-deck-btn:hover {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 0 16px var(--primary-glow);
}

.portal-code-mini {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.75rem;
}

.arrow-mini {
  font-size: 0.75rem;
}

.led-skull-icon {
  font-size: 1rem;
  margin-left: 10px;
  filter: drop-shadow(0 0 6px var(--primary));
}


.concept-tag.smc {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid #00ff66;
  color: #00ff66;
}

.concept-tag.ict {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

.concept-tag.mmc {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid #06b6d4;
  color: #06b6d4;
}

.concept-tag.gann {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  color: #a855f7;
}

.tape-price-sticker {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  transform: rotate(4deg);
}


.channel-switch-bar {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.channel-browse-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.channel-browse-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Overlays (Community Projects, Bot Safety, Concepts, Services, Contact) */
.trading-matrix-overlay, .services-overlay, .contact-overlay, .community-projects-overlay, .safety-bot-overlay {
  background: rgba(6, 10, 6, 0.98);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.trading-matrix-overlay.hidden, .services-overlay.hidden, .contact-overlay.hidden, .community-projects-overlay.hidden, .safety-bot-overlay.hidden {
  display: none;
}

.community-scale-highlight {
  font-size: 0.72rem;
  color: var(--primary);
  background: rgba(0, 255, 102, 0.08);
  border-left: 2px solid var(--primary);
  padding: 3px 8px;
  margin: 6px 0 8px 0;
  border-radius: 0 3px 3px 0;
}
.community-scale-highlight strong {
  color: #ffffff;
}
.matrix-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 16px;
}

.matrix-overlay-header h3 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
}

.close-overlay-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
}
.close-overlay-btn:hover { color: var(--danger); }

.matrix-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.services-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.services-subhead .subhead-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.services-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .services-tier-grid {
    grid-template-columns: 1fr;
  }
}

.hud-concept-card {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.c-tag {
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.c-tag.smc { background: rgba(0, 255, 102, 0.2); color: #00ff66; border: 1px solid #00ff66; }
.c-tag.ict { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.c-tag.mmc { background: rgba(6, 182, 212, 0.2); color: #06b6d4; border: 1px solid #06b6d4; }
.c-tag.gann { background: rgba(168, 85, 247, 0.2); color: #a855f7; border: 1px solid #a855f7; }

.hud-concept-card h4 {
  font-size: 0.88rem;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.hud-concept-card p {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Enhanced Community & Safety Cards */
.overlay-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  text-shadow: 0 0 6px var(--primary-glow);
}

.hud-status-badge.green {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

.community-card-enhanced, .safety-card-enhanced {
  background: rgba(12, 18, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-card-enhanced:hover, .safety-card-enhanced:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
}

.card-top-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.card-top-row .c-tag {
  min-width: 0;
  margin-bottom: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.card-top-row .card-status-dot {
  align-self: flex-start;
  white-space: nowrap;
}

.card-status-dot {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
}

.card-status-dot.green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.card-status-dot.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.card-status-dot.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.card-status-dot.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.card-stat-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.card-stat-meter-row strong {
  color: #ffffff;
}

.stat-pct {
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font-mono);
}

.stat-meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
}

.stat-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.card-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.card-chip {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.safety-kpi-row {
  display: flex;
  gap: 8px;
  margin: 2px 0;
}

.kpi-pill {
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  border-left: 2px solid var(--primary);
}

.kpi-pill strong {
  color: #ffffff;
}


/* Repos live feed and admin editor */

.repos-quick-add {
  border: 1px solid rgba(0, 255, 102, 0.35);
  background: rgba(0, 20, 8, 0.45);
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 4px;
}
.repos-quick-add.hidden { display: none; }

.repos-more-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 3px 8px;
  font-size: 0.62rem;
  cursor: pointer;
  border-radius: 3px;
  margin: 4px 0;
}
.repos-quick-more { margin: 4px 0; }
.repos-quick-more.hidden { display: none; }

.repos-advanced-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 4px 10px;
  font-size: 0.66rem;
  cursor: pointer;
  border-radius: 3px;
  align-self: flex-start;
}
.repos-advanced-toggle.hidden { display: none; }
.repos-quick-add .repos-edit-field input,
.repos-quick-add .repos-edit-field select {
  padding: 3px 6px;
  font-size: 0.64rem;
}
.repos-quick-title { margin-bottom: 5px; }
.repos-quick-add > button { margin-top: 4px; padding: 4px 10px; }

.repos-quick-title { font-size: 0.7rem; color: var(--primary); margin-bottom: 8px; }
.repos-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 6px; }
.repos-quick-add > .repos-quick-grid { grid-template-columns: 1.3fr 1.8fr 1.3fr; }
.repos-quick-grid .repos-edit-field:nth-child(9) { grid-column: 1 / -1; }
.repos-quick-wide { grid-column: 1 / -1; }
.repos-quick-add > button {
  margin-top: 8px;
  background: var(--primary);
  color: #000;
  border: none;
  padding: 6px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
}

#workspaceRepos { padding-top: 0; }

.repos-sticky-head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #020602;
  box-shadow: 0 8px 16px rgba(2, 6, 2, 0.95);
  padding: 2px 0 4px;
}

.repos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.repos-toolbar-title {
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.repos-admin-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 4px 10px;
  font-size: 0.68rem;
  cursor: pointer;
  border-radius: 3px;
}
.repos-admin-toggle:hover { border-color: var(--primary); }
.repos-admin-panel {
  position: relative;
  border: 1px solid rgba(0, 255, 102, 0.3);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.repos-admin-panel.hidden { display: none; }
.repos-admin-row.hidden { display: none; }
.repos-admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.repos-admin-row label { font-size: 0.68rem; color: var(--primary); }
.repos-admin-row input {
  flex: 1 1 180px;
  min-width: 120px;
  background: #090d09;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 5px 8px;
  font-size: 0.72rem;
  border-radius: 3px;
}
.repos-admin-row button,
.repos-admin-actions button,
.repos-add-item,
.repos-remove {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 5px 10px;
  font-size: 0.66rem;
  cursor: pointer;
  border-radius: 3px;
}
.repos-admin-row button:hover,
.repos-admin-actions button:hover,
.repos-add-item:hover { border-color: var(--primary); }
.repos-remove { color: var(--danger); border-color: rgba(255, 77, 77, 0.4); }
.repos-admin-status { font-size: 0.62rem; color: var(--text-dim); padding-right: 140px; }
.repos-admin-editor.hidden { display: none; }
.repos-edit-category {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}
.repos-edit-cat-head,
.repos-edit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.repos-edit-cat-head input {
  flex: 1 1 auto;
  background: #090d09;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 3px;
}
.repos-edit-item-head span { font-size: 0.64rem; color: var(--text-dim); }
.repos-edit-item { border-top: 1px solid var(--border-color); padding-top: 8px; margin-top: 8px; }
.repos-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}
.repos-edit-field { display: flex; flex-direction: column; gap: 3px; }
.repos-edit-field > span { font-size: 0.56rem; color: var(--text-dim); }
.repos-edit-field input,
.repos-edit-field textarea,
.repos-edit-field select {
  background: #090d09;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 4px 6px;
  font-size: 0.68rem;
  border-radius: 3px;
  width: 100%;
  resize: vertical;
}
.repos-admin-actions { display: flex; gap: 8px; margin-top: 4px; }
.repos-categories { display: flex; flex-direction: column; gap: 16px; }

/* Repository category accent colors */
.repos-category, .repo-jump-btn { --cat-color: #00ff66; }
.repos-category[data-cat="1"], .repo-jump-btn[data-cat="1"] { --cat-color: #ff4df0; }
.repos-category[data-cat="2"], .repo-jump-btn[data-cat="2"] { --cat-color: #00f0ff; }
.repos-category[data-cat="3"], .repo-jump-btn[data-cat="3"] { --cat-color: #ffb000; }
.repos-category[data-cat="4"], .repo-jump-btn[data-cat="4"] { --cat-color: #b16cff; }
.repos-category[data-cat="5"], .repo-jump-btn[data-cat="5"] { --cat-color: #ff5e3a; }

.repos-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--cat-color);
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.repos-category-title { font-size: 0.78rem; font-weight: 700; color: var(--cat-color); letter-spacing: 0.04em; }
.repos-category-count { font-size: 0.62rem; color: var(--text-dim); }
.repos-jump-nav {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px;
  border: 1px solid rgba(0, 255, 102, 0.22);
  border-radius: 6px;
  background: #020602;
  box-shadow: 0 8px 16px rgba(2, 6, 2, 0.95);
}
.repo-jump-btn {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--cat-color);
  color: var(--cat-color);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.repo-jump-btn span {
  font-size: 0.55rem;
  color: var(--cat-color);
  border: 1px solid var(--cat-color);
  border-radius: 3px;
  padding: 0 4px;
}
.repo-jump-btn:hover {
  color: #ffffff;
  background: var(--cat-color);
  transform: translateY(-1px);
}
.repo-jump-btn.active {
  color: #000;
  background: var(--cat-color);
  border-color: var(--cat-color);
  box-shadow: 0 0 10px var(--cat-color);
}
.repo-jump-btn.active span { color: #000; border-color: rgba(0, 0, 0, 0.35); }
.repos-category.hidden { display: none; }
.repos-jump-nav::-webkit-scrollbar { display: none; }
.repos-category { scroll-margin-top: 12px; }
.repos-category-tools { display: flex; align-items: center; gap: 8px; }
.copy-category-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-category-btn:hover { border-color: var(--primary); }
.repos-empty {
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
}
@media (max-width: 640px) {
  .repos-edit-grid { grid-template-columns: 1fr; }
}


.termix-ai-thinking { color: var(--warning); }
.cmd-output .ai-tag {
  color: #000;
  background: var(--primary);
  padding: 0 5px;
  border-radius: 2px;
  font-weight: 700;
  margin-right: 6px;
}
.termix-ai-hint { margin-top: 4px; color: var(--text-dim); font-size: 0.7em; }

/* Contact Form Embed */
.contact-forward-note {
  font-size: 0.72rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

.tv-embed-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}
.form-row input, .form-row textarea {
  background: #090d09;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  color: #fff;
  border-radius: 4px;
  font-size: 0.82rem;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--primary);
}
.form-submit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.tv-submit-btn {
  background: var(--primary);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.tv-form-status {
  font-size: 0.75rem;
  color: var(--primary);
}


/* ==========================================================================
   BOTTOM HARDWARE CONTROL DECK (Exact Denis Turbin Controls)
   ========================================================================== */
.hardware-control-deck {
  position: relative;
  background: #0f130f;
  border: 2px solid #202720;
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8),
              0 1px 1px rgba(255, 255, 255, 0.08);
}


.deck-push-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 3px 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.deck-btn {
  background: rgba(18, 25, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.deck-btn.active, .deck-btn:hover {
  background: rgba(0, 255, 102, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
}


/* Center Dot-Matrix LED Ticker */
.deck-dot-matrix-display {
  flex: 1;
  background: #050805;
  border: 1.5px solid #1a221a;
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-led);
  font-size: 0.96rem;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  white-space: nowrap;
}
.led-channel {
  font-weight: 800;
  color: var(--warning);
}

.led-play-icon {
  font-size: 0.85rem;
}

.led-ticker-text {
  letter-spacing: 0.03em;
}

.ai-chat-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ai-chat-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--primary);
  font-family: var(--font-led);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 8px var(--primary-glow);
}

.ai-chat-input::placeholder {
  color: rgba(0, 255, 102, 0.45);
}

.ai-chat-send {
  flex: 0 0 auto;
  background: #071007;
  border: 1px solid var(--primary);
  border-radius: 3px;
  color: var(--primary);
  font-family: var(--font-led);
  font-size: 0.68rem;
  padding: 2px 8px;
  cursor: pointer;
}

.ai-chat-send:hover {
  background: rgba(0, 255, 102, 0.14);
}

.ai-chat-panel {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(165px, 24vh, 220px);
  max-height: 220px;
  display: flex;
  flex-direction: column;
  background: #050a05;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.08);
  font-family: var(--font-mono);
  overflow: hidden;
}

.ai-chat-panel.hidden {
  display: none;
}

.dev-ai-chat-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 5px 8px;
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 4px;
}

.dev-ai-label {
  flex: 0 0 auto;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dev-ai-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.dev-ai-input::placeholder {
  color: #64748b;
}

.dev-ai-send {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 3px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 7px;
  cursor: pointer;
}

.ai-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 6px;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.25);
}

.ai-chat-title {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
}

.ai-chat-log {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 102, 0.45) transparent;
}

.ai-chat-log::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-log::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.45);
  border-radius: 3px;
}

.ai-chat-log::-webkit-scrollbar-track {
  background: transparent;
}

.ai-msg {
  max-width: 100%;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 0.66rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ai-msg.user {
  align-self: flex-end;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.4);
  color: #d7ffe4;
}

.ai-msg.bot {
  align-self: flex-start;
  background: rgba(8, 18, 12, 0.9);
  border: 1px solid rgba(0, 255, 102, 0.22);
  color: #cbd5e1;
}

.ai-chat-note {
  padding: 6px 10px;
  border-top: 1px dashed rgba(0, 255, 102, 0.25);
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

/* THE DEV PORTAL BUTTON */
.deck-portal-cell {
  display: flex;
  align-items: center;
}

.deck-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #090e09;
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 5px 14px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 0 12px var(--primary-dim);
  transition: all 0.2s;
}

.deck-portal-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.deck-portal-icon { font-weight: 800; }
.deck-portal-label { font-family: var(--font-mono); }
.deck-portal-arrow { font-size: 0.9rem; }

/* Right Rotary Controls & Knobs */
.deck-rotary-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}


.vcr-ctrl-btn {
  background: #141b14;
  border: 1px solid #243024;
  color: var(--text-dim);
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: 3px;
  cursor: pointer;
}

.vcr-ctrl-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}


.deck-lang-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  border: 1px solid #243024;
  padding: 3px 6px;
  border-radius: 3px;
}


.deck-toggle-btn {
  background: #141b14;
  border: 1px solid #243024;
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.deck-toggle-btn:hover {
  border-color: var(--primary);
}

/* 3D Hardware Rotary Knobs */
.hardware-rotary-knob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a342a 0%, #0d120d 100%);
  border: 2px solid #3c4a3c;
  box-shadow: 0 2px 4px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.2);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hardware-rotary-knob:hover {
  transform: rotate(45deg);
}
.knob-indicator {
  width: 3px;
  height: 8px;
  background: var(--primary);
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
}


.info-line .dim {
  color: var(--text-dim);
}

.info-line .highlight {
  color: var(--text-bright);
  font-weight: 600;
}

.info-line .green-text {
  color: var(--primary);
}


/* ==========================================================================
   INTERFACE 2: TERMIX OS PURE RETRO CRT TERMINAL (dev.html)
   ========================================================================== */
.termix-page {
  background-color: #030603;
  color: #00ff66;
  min-height: 100vh;
  padding: 24px;
}


/* ==========================================================================
   TERMIX OS v2.0 - CYBER HACKER WORKSTATION (dev.html)
   ========================================================================== */
.termix-page {
  background: #030603;
  color: #00ff66;
  min-height: 100vh;
  padding: clamp(8px, 1.8vh, 20px) clamp(8px, 1.5vw, 20px);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.termix-terminal-shell {
  width: 100%;
  max-width: 1360px;
  height: calc(100vh - 40px);
  min-height: 0;
  margin: 0 auto;
  border: 1.5px solid rgba(0, 255, 102, 0.45);
  border-radius: 8px;
  background: rgba(3, 7, 3, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 255, 102, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* OS Window Titlebar */
.termix-window-titlebar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 20, 5, 0.85);
  border-bottom: 1px solid rgba(0, 255, 102, 0.3);
  padding: 8px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.window-controls-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.win-dot:hover {
  transform: scale(1.18);
  filter: brightness(1.2);
}

.win-dot.red { background: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.6); }
.win-dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.6); }
.win-dot.green { background: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.6); }

.window-title-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.host-badge {
  color: #00ff66;
  font-weight: 700;
}

.path-sep {
  color: rgba(255, 255, 255, 0.3);
}

.active-module-title {
  color: #ffffff;
  font-weight: 500;
}

.window-telemetry-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tele-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot-live {
  font-size: 0.65rem;
}
.dot-live.green { color: #00ff66; text-shadow: 0 0 6px #00ff66; }
.dot-live.cyan { color: #38bdf8; text-shadow: 0 0 6px #38bdf8; }

.termix-portal-link {
  color: #00ff66;
  text-decoration: none;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px solid #00ff66;
  border-radius: 4px;
  background: rgba(0, 255, 102, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
  transition: all 0.2s ease;
  font-size: 0.72rem;
}

.termix-portal-link:hover {
  background: #00ff66;
  color: #000;
  box-shadow: 0 0 16px #00ff66;
}

/* Tmux / Multiplexer Workspace Tabs */
.termix-tab-nav {
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  min-height: 32px;
  display: flex;
  background: rgba(0, 10, 2, 0.95);
  border-bottom: 1px solid rgba(0, 255, 102, 0.3);
  overflow-x: auto;
  scrollbar-width: none;
}

.termix-tab-nav::-webkit-scrollbar {
  display: none;
}

.termix-nav-tab {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(0, 255, 102, 0.18);
  color: var(--text-dim);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 1;
  transition: all 0.2s ease;
}

.termix-nav-tab:hover {
  color: #ffffff;
  background: rgba(0, 255, 102, 0.08);
}

.termix-nav-tab.active {
  color: #000000;
  background: #00ff66;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 #ffffff;
}

.tab-glyph {
  font-size: 0.8rem;
}

/* Workspace Panels */
.termix-workspace-panel {
  min-height: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.2s ease;
}

.termix-workspace-panel.hidden {
  display: none !important;
}

/* Workspace 01: Split Screen Layout (Neofetch + CLI Terminal) */
.termix-cli-split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.terminal-column { min-height: 0; overflow: hidden; }

/* Neofetch Column */
.neofetch-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.termix-ascii-name {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00ff66;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.6);
  margin-bottom: 8px;
  user-select: none;
}

.termix-ascii-name-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  user-select: none;
}

.ascii-row {
  display: flex;
  gap: 4px;
}

.ascii-letter {
  display: flex;
  gap: 2px;
}

.ascii-cell {
  width: 6px;
  height: 6px;
}

.ascii-cell.on {
  background: #00ff66;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.7), 0 0 12px rgba(0, 255, 102, 0.35);
}

.termix-os-tag {
  font-size: 0.75rem;
  color: #00ff66;
  font-weight: 600;
  opacity: 0.85;
}

.neofetch-table-box {
  background: linear-gradient(145deg, rgba(0, 22, 8, 0.92), rgba(0, 0, 0, 0.78));
  border: 1px solid rgba(0, 255, 102, 0.32);
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
  box-shadow: inset 0 0 24px rgba(0, 255, 102, 0.045), 0 5px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.spec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  background: rgba(0, 255, 102, 0.08);
  border-bottom: 1px solid rgba(0, 255, 102, 0.25);
}
.spec-card-title {
  font-size: 0.66rem;
  font-weight: 800;
  color: #00ff66;
  letter-spacing: 0.12em;
}
.spec-card-tag {
  font-size: 0.56rem;
  color: rgba(0, 255, 102, 0.7);
  letter-spacing: 0.06em;
}

.spec-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 11px;
}
.spec-group + .spec-group {
  border-top: 1px solid rgba(0, 255, 102, 0.14);
}

.neofetch-table-box .spec-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.35;
}

.neofetch-table-box .spec-row .k {
  color: #00ff66;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  min-width: 68px;
  opacity: 0.9;
}

.neofetch-table-box .spec-row .v {
  color: #ffffff;
  font-family: 'Share Tech Mono', monospace;
  overflow-wrap: anywhere;
}

.spec-status-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: rgba(0, 255, 102, 0.06);
  border-top: 1px solid rgba(0, 255, 102, 0.28);
}
.spec-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.9);
  flex-shrink: 0;
}
.spec-status-label {
  font-size: 0.6rem;
  color: #00ff66;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.spec-status-value {
  font-size: 0.7rem;
  color: #ffffff;
  font-family: 'Share Tech Mono', monospace;
}

.neofetch-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.neo-act-btn {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.4);
  color: #00ff66;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.neo-act-btn:hover {
  background: #00ff66;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.5);
}

/* Terminal Column (Interactive CLI) */
.terminal-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 6px;
  padding: 12px 14px;
}

.terminal-console-window {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.termix-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.terminal-banner-welcome {
  color: var(--text-dim);
  font-size: 0.74rem;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.2);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.terminal-banner-welcome .cmd-highlight {
  color: #00ff66;
  font-weight: 700;
}

.termix-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.termix-history .history-entry {
  line-height: 1.45;
}

.termix-history .history-cmd {
  color: #00ff66;
  font-weight: 700;
}

.termix-history .history-output,
.cmd-output {
  color: #c7fcd0;
  margin-top: 4px;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
}

.termix-exchange {
  border-bottom: 1px solid rgba(0, 255, 102, 0.14);
  padding-bottom: 8px;
}
.termix-exchange:last-child { border-bottom: none; padding-bottom: 0; }

.termix-exchange-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.35;
}
.termix-exchange-cmd {
  color: #ffffff;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.termix-exchange-kind {
  margin-left: auto;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #00ff66;
  border: 1px solid rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.08);
  border-radius: 3px;
  padding: 1px 5px;
}
.termix-exchange-body {
  padding-left: 10px;
  border-left: 2px solid rgba(0, 255, 102, 0.35);
  margin-top: 6px;
}

.termix-input-line {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
  background: rgba(0, 10, 4, 0.85);
}

.termix-echo-line {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.termix-echo {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  white-space: pre;
}

.termix-placeholder {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.termix-placeholder.hidden {
  display: none;
}

.termix-prompt-short {
  display: none;
}

@media (max-width: 620px) {
  .termix-prompt-symbol {
    font-size: 0.68rem;
  }
  .termix-prompt-long {
    display: none;
  }
  .termix-prompt-short {
    display: inline;
  }
}

.termix-prompt-symbol {
  color: #00ff66;
  font-weight: 700;
  user-select: none;
  font-size: 0.82rem;
}

.termix-cli-input {
  position: absolute;
  inset: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: transparent;
  caret-color: transparent;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  z-index: 2;
}

.termix-cli-input::placeholder {
  color: transparent;
}

.termix-cursor-block {
  flex: 0 0 2px;
  width: 2px;
  height: 15px;
  background: #00ff66;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
  display: inline-block;
}

.termix-cursor-block.is-idle {
  animation: blink 1s infinite;
}

.termix-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
}

.terminal-console-window > *:not(.termix-rain-canvas) {
  position: relative;
  z-index: 1;
}

/* Terminal Directives Bar */
.terminal-directives-bar {
  display: flex;
  flex: 0 0 auto;
  align-content: flex-start;
  align-items: flex-start;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 255, 102, 0.22);
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
}

.directives-label {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.cmd-pill {
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid rgba(0, 255, 102, 0.3);
  color: #c7fcd0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-pill:hover {
  background: #00ff66;
  color: #000000;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
  transform: translateY(-1px);
}

/* Workspace 02: SOC Dashboard (Radar + Incident Stream) */
.soc-dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}

.soc-radar-card, .soc-logs-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.soc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #00ff66;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.25);
  padding-bottom: 6px;
}

.live-tag {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 800;
}
.live-tag.green { background: rgba(0, 255, 102, 0.15); color: #00ff66; }
.live-tag.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.radar-hud-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.radar-canvas {
  background: #020602;
  border: 1px solid rgba(0, 255, 102, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.25);
}

.radar-tele-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.stat-pill {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 6px;
  border-radius: 3px;
  border-left: 2px solid #00ff66;
}

.stat-pill .k { color: var(--text-dim); }
.stat-pill .v { color: #ffffff; font-weight: 700; }
.stat-pill .v.green { color: #00ff66; }
.stat-pill .v.cyan { color: #38bdf8; }

.event-stream-terminal {
  background: #020402;
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.stream-line {
  line-height: 1.4;
  color: #c7fcd0;
}

.stream-line .t { color: var(--text-dim); margin-right: 4px; }
.tag-ok { color: #00ff66; font-weight: 700; }
.tag-alert { color: #38bdf8; font-weight: 700; }
.tag-warn { color: #f59e0b; font-weight: 700; }

.ecosystem-empty {
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.35);
}

/* Workspace 03: Ecosystem Builds & Architecture */
.ecosystem-view-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ecosystem-pipeline-banner {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #00ff66;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.25);
  padding-bottom: 4px;
}

.pipeline-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.flow-step {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.3);
  padding: 5px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #ffffff;
}

.flow-step .step-num {
  color: #00ff66;
  font-weight: 800;
}

.flow-arrow {
  color: #00ff66;
  font-weight: 800;
  font-size: 0.82rem;
  opacity: 0.8;
}

.ecosystem-stats-row {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.ecosystem-stats-row strong {
  color: #ffffff;
}

/* 4 Bot Systems Grid */
.bot-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hacker-bot-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}

.hacker-bot-card:hover {
  border-color: #00ff66;
  box-shadow: 0 4px 18px rgba(0, 255, 102, 0.2);
  transform: translateY(-2px);
}

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
}
.bot-badge.smc { background: rgba(0, 255, 102, 0.15); color: #00ff66; }
.bot-badge.ict { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.bot-badge.mmc { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.bot-badge.gann { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.bot-status {
  font-size: 0.65rem;
  font-weight: 700;
}
.bot-status.green { color: #00ff66; }
.bot-status.cyan { color: #38bdf8; }
.bot-status.amber { color: #f59e0b; }
.bot-status.purple { color: #c084fc; }

.hacker-bot-card h3 {
  font-size: 0.92rem;
  color: #ffffff;
}

.bot-lead {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.bot-meta-tags {
  font-size: 0.68rem;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.bot-test-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid #00ff66;
  color: #00ff66;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.bot-test-btn:hover {
  background: #00ff66;
  color: #000;
}

/* Workspace 03: Repositories */
.repos-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.repo-card-enhanced {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--cat-color);
  border-radius: 5px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.repo-card-enhanced:hover {
  box-shadow: 0 4px 18px var(--cat-color);
}

.repo-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.repo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.repo-lang-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.repo-lang-tag.go { background: rgba(0, 173, 216, 0.2); color: #00add8; }
.repo-lang-tag.rust { background: rgba(222, 165, 132, 0.2); color: #dea584; }
.repo-lang-tag.python { background: rgba(53, 114, 165, 0.2); color: #3572a5; }
.repo-lang-tag.ts { background: rgba(49, 120, 198, 0.2); color: #3178c6; }

.repo-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.repo-metrics-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.repo-full-link {
  font-size: 0.66rem;
  color: var(--cat-color);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 1px dashed var(--cat-color);
  padding-bottom: 2px;
}
.repo-full-link:hover { color: #ffffff; }

.repo-open-btn,
.copy-info-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.repo-open-btn:hover,
.copy-info-btn:hover { border-color: var(--primary); }

.copy-clone-btn {
  margin-left: auto;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid #00ff66;
  color: #00ff66;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-clone-btn:hover {
  background: #00ff66;
  color: #000;
}

/* Workspace 04: Specs Arsenal */
.specs-arsenal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.arsenal-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arsenal-box h3 {
  font-size: 0.88rem;
  color: #00ff66;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.25);
  padding-bottom: 6px;
}

.arsenal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arsenal-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #ffffff;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  border-left: 2px solid #00ff66;
}

.arsenal-item .tag {
  color: #38bdf8;
  font-size: 0.68rem;
}

.lang-meter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.lang-row strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Workspace 05: Live SMC Signals */
.signals-broadcast-view {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signals-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #00ff66;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.25);
  padding-bottom: 6px;
}

.pinescript-snippet-box pre {
  background: #020502;
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 4px;
  padding: 10px 12px;
  color: #38bdf8;
  font-size: 0.72rem;
  overflow-x: auto;
}

.dispatched-signals-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dispatch-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.sig-asset { color: #ffffff; }
.sig-dir.buy { color: #00ff66; font-weight: 800; }

.sig-body {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.sig-body strong { color: #ffffff; }
.sig-foot {
  font-size: 0.68rem;
  color: #38bdf8;
  margin-top: 2px;
}

.hacker-boot-overlay {
  position: fixed;
  inset: 0;
  background: #020502;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hacker-boot-overlay.dismissed {
  display: none !important;
}

.hacker-boot-box {
  width: min(460px, 100%);
  background: #050a05;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 0 30px var(--primary-glow), inset 0 0 16px rgba(0, 255, 102, 0.08);
  font-family: var(--font-mono);
}

.boot-gate-title {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.35);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.boot-name-form {
  display: flex;
  gap: 8px;
}

.boot-name-input {
  flex: 1;
  min-width: 0;
  background: #020602;
  border: 1px solid rgba(0, 255, 102, 0.45);
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 8px;
  outline: none;
}

.boot-name-input::placeholder {
  color: #64748b;
}

.boot-name-btn {
  background: rgba(0, 255, 102, 0.14);
  border: 1px solid var(--primary);
  border-radius: 3px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.termix-footer-bar.ai-chat-panel {
  position: relative !important;
  left: auto;
  right: auto;
  bottom: auto !important;
  width: 100%;
  transform: none;
  z-index: 1;
  background: #050a05 !important;
  border: 1.5px solid var(--primary) !important;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.25), inset 0 0 14px rgba(0, 255, 102, 0.06) !important;
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: var(--ai-chat-height, 128px);
  flex: 0 0 var(--ai-chat-height, 128px);
  padding: 2px 6px;
  gap: 2px;
}

.ai-chat-resize {
  flex: 0 0 auto;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: ns-resize;
  border-bottom: 1px solid rgba(0, 255, 102, 0.18);
  margin-bottom: 2px;
  touch-action: none;
}
.ai-chat-resize span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 255, 102, 0.55);
}
.ai-chat-resize:hover span { background: #00ff66; }

.termix-footer-bar.ai-chat-panel .ai-chat-log {
  flex: 1 1 auto;
  min-height: 0;
}

.termix-footer-bar.ai-chat-panel .dev-ai-chat-box {
  flex: 0 0 auto;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 2px 6px;
}


/* Short viewport: keep a full chat box but give repo cards room */
@media (max-height: 560px) {
  .termix-footer-bar.ai-chat-panel { height: var(--ai-chat-height, 88px); flex: 0 0 var(--ai-chat-height, 88px); padding: 6px 14px; }
  .termix-footer-bar.ai-chat-panel .ai-chat-header { padding: 2px 4px; }
  .termix-footer-bar.ai-chat-panel .ai-chat-log { max-height: 26px; }
  .termix-footer-bar.ai-chat-panel .dev-ai-chat-box { min-height: 24px; }
  .repos-sticky-head { padding: 1px 0 3px; }
  .repos-jump-nav { padding: 3px; margin-bottom: 4px; }
  .repo-jump-btn { padding: 2px 6px; }
  .repos-category-head { padding-bottom: 2px; margin-bottom: 4px; }
  .repo-card-enhanced { padding: 8px 10px; gap: 3px; }
  .repo-desc { font-size: 0.68rem; line-height: 1.3; }
  .repo-full-link { font-size: 0.6rem; }
}

/* Footer Bar */
.termix-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 12, 3, 0.9);
  border-top: 1px solid rgba(0, 255, 102, 0.3);
  font-size: 0.74rem;
  color: #00ff66;
}

.cmd-item {
  text-decoration: underline;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.15s;
}

.cmd-item:hover {
  color: #00ff66;
}

.footer-divider {
  opacity: 0.4;
}

.footer-name {
  position: relative;
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 8px var(--primary-glow);
}

.termix-footer-bar .dev-ai-chat-box {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  min-height: 26px;
  margin: 0;
  padding: 2px 6px;
}



.cmd-item { text-decoration: underline; cursor: pointer; color: #ffffff; }
.cmd-item:hover { color: #00ff66; }
.footer-divider { opacity: 0.5; }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}


/* ==========================================================================
   AMBIENT MATRIX DIGITAL RAIN & HACKER BOOT OVERLAY (dev.html)
   ========================================================================== */
.ambient-matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
}

/* ==========================================================================
   DESKTOP FULL-SCREEN CHASSIS FIT (index.html)
   ========================================================================== */
/* ==========================================================================
   DESKTOP FULL-SCREEN CHASSIS FIT (index.html)
   ========================================================================== */
@media (min-width: 1025px) {
  .trbn-tv-body {
    height: 100vh;
    max-height: 100vh;
    padding: 10px 14px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hardware-chassis {
    height: calc(100vh - 20px);
    max-height: 940px;
    padding: 10px 14px 8px 14px;
    gap: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .dual-screen-enclosure {
    flex: 1;
    min-height: 0;
    gap: 12px;
  }

  .crt-screen {
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .crt-panel-left .crt-screen-inner {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
    gap: 8px;
  }

  .crt-tube-right {
    height: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
  }

  .tube-stage-container {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
  }
}

/* Compact Vertical Height Adaptations (Laptops & Sub-820px Screens) */
@media (max-height: 820px) and (min-width: 1025px) {
  .hardware-chassis {
    padding: 8px 12px 6px 12px;
    gap: 6px;
  }
  .crt-screen {
    padding: 10px 12px;
    border-radius: 16px;
  }
  .profile-header-row {
    gap: 8px;
  }
  .avatar-box {
    width: 44px;
    height: 44px;
  }
  .profile-name {
    font-size: 0.95rem;
  }
  .highlighted-bio {
    font-size: 0.74rem;
    line-height: 1.4;
  }
  .tv-btn-primary {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .email-copy-bar {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
  .availability-card {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .left-telemetry-panel {
    padding: 4px 6px;
    gap: 2px;
  }
  .telemetry-cell {
    padding: 2px 5px;
  }
  .tel-val {
    font-size: 0.60rem;
  }
  .tel-label {
    font-size: 0.50rem;
  }
  .capabilities-pills-row {
    gap: 3px;
  }
  .cap-pill {
    font-size: 0.58rem;
    padding: 1px 5px;
  }
  .left-panel-pinstripe {
    margin: 3px 0;
  }
  .reviews-slider-box {
    gap: 3px;
  }
  .review-quote-card {
    padding: 4px 6px;
    gap: 3px;
  }
  .review-quote-text {
    font-size: 0.68rem;
    min-height: 40px;
    line-height: 1.35;
  }
  .vcr-header-bar {
    padding-bottom: 6px;
  }
  .tube-stage-container {
    min-height: 0;
    flex: 1;
  }
  .broadcast-center-card {
    margin: 2px auto 0 auto;
    width: 510px;
  }
  .card-grid-layout {
    padding: 6px 10px;
  }
  .trader-avatar-stage {
    height: 90px;
  }
  .mockup-case-content {
    gap: 4px;
  }
  .hardware-control-deck {
    padding: 4px 10px;
  }
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 620px) {
  .tv-tab {
    font-size: 0.55rem !important;
    padding: 2px 3px !important;
  }
  .tv-tab.active {
    padding: 2px 5px !important;
  }
  .vcr-market-ticker {
    display: none;
  }
}

@media (max-width: 500px) {
  .timecode,
  .vcr-oscilloscope,
  .vcr-dev-portal-btn {
    display: none !important;
  }
  .vcr-play-status,
  .vcr-header-bar {
    gap: 4px;
  }
}

@media (max-width: 1024px) {
  .dual-screen-enclosure {
    grid-template-columns: minmax(240px, 280px) 8px minmax(0, 1fr);
  }

  .hardware-control-deck {
    flex-direction: column;
    gap: 10px;
  }

  .deck-push-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .deck-rotary-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .termix-specs-grid { grid-template-columns: 1fr; }
  .termix-about-grid { grid-template-columns: 1fr; }
  .termix-ascii-banner pre { font-size: 0.45rem; }
  .termix-footer-bar { flex-direction: column; gap: 6px; text-align: center; }
}

/* ==========================================================================
   AUTHENTIC OPERATOR IDENTITY & PROFILE COMPONENTS (TWITTER + DISCORD)
   ========================================================================== */

/* Quick Channels Row (Left Drawer under Email) */
.channels-quick-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.channel-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s ease;
}

.channel-pill:hover {
  border-color: var(--primary);
  color: var(--text-bright);
  background: rgba(0, 0, 0, 0.65);
}

.dc-pill {
  border-color: rgba(88, 101, 242, 0.35);
}

.dc-pill:hover {
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.25);
}

.dc-avatar-mini {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  background: #ffffff;
}

.tg-pill {
  border-color: rgba(56, 189, 248, 0.35);
}

.tg-pill:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.chan-icon {
  font-size: 0.8rem;
  color: #38bdf8;
}

.chan-name {
  color: var(--text-bright);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Identity Profiles Bar (Identity Tab inside Center Card) */
.identity-profiles-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.id-profile-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 8px;
}

.id-pfp {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.id-pfp-dc {
  border-radius: 50%;
  background: #ffffff;
}

.id-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.id-network {
  font-size: 0.58rem;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.id-handle {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-handle:hover {
  color: #38bdf8;
}

/* Neofetch Operator Identity Card (dev.html) */
.neofetch-operator-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.08);
}

.operator-avatar-frame {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
  flex-shrink: 0;
}

.operator-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.operator-scan-overlay {
  display: none !important;
}

.operator-badge-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.operator-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operator-callsign {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.operator-auth-tag {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(0, 255, 102, 0.15);
  color: #00ff66;
  border: 1px solid rgba(0, 255, 102, 0.4);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.operator-handles-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.op-handle-link {
  color: #00ff66;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  transition: opacity 0.2s;
}

.op-handle-link:hover {
  text-decoration: underline;
}

.op-dc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Share Tech Mono', monospace;
}

.op-dc-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}