/* --------------------------------------------------
   Basic Resets
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: #eee;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------
   Login Container
-------------------------------------------------- */
#login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#login-container h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #fff;
}

#login-container input {
  padding: 10px;
  font-size: 16px;
  margin: 5px;
  width: 250px;
  border: none;
  border-radius: 3px;
}

#login-container input:focus {
  outline: none;
}

#login-error {
  margin-top: 10px;
  color: red;
  font-size: 14px;
}

/* Cyberpunk Login Button */
.cyberpunk-login {
  padding: 10px 20px;
  font-size: 20px;
  background: linear-gradient(145deg, #007BFF, #66BBFF);
  border: 2px solid #007BFF;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(0,123,255,0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cyberpunk-login:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,123,255,1);
}

.cyberpunk-login:active {
  transform: scale(0.95);
}

/* --------------------------------------------------
   Disclaimer Box (Top Right)
-------------------------------------------------- */
#disclaimer {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 6cm;
  min-height: 3cm;
  background-color: orange;
  color: black;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  z-index: 3000;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  overflow: auto;
}

/* --------------------------------------------------
   Global Loading Element
-------------------------------------------------- */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
}

#network {
  width: 350px;
  height: 350px;
  background: transparent;
  margin: 0 auto;
  display: block;
}

.ai-message {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  padding: 0 20px;
  margin: 0 auto;
}

.loading-text {
  text-align: center;
  margin-top: 10px;
  font-size: 18px;
  color: #D8BFD8;
  animation: pulseText 2s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* --------------------------------------------------
   Header and Intro
-------------------------------------------------- */
header {
  text-align: center;
  margin-bottom: 10px;
}

header h1 {
  font-size: 2.5em;
  color: lightcoral;
}

.tagline {
  font-size: 1.2em;
  color: #39FF14;
  margin-top: 5px;
}

.intro {
  margin-bottom: 2em;
  text-align: center;
  font-size: 1.1em;
}

/* --------------------------------------------------
   Interaction Area Layout (5 columns)
-------------------------------------------------- */
#interaction-area {
  position: relative;
}

/* --------------------------------------------------
   Button Styling
-------------------------------------------------- */
.cancer-button {
  padding: 10px 15px;
  font-size: 14px;
  border: 2px solid #800080;
  background: linear-gradient(145deg, #dda0dd, #800080);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(128,0,128,0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cancer-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(128,0,128,1);
}

.cancer-button:active {
  transform: scale(0.95);
}

.cancer-button.selected {
  background: linear-gradient(145deg, #ffcccc, #ff9999);
  border-color: red;
  color: red;
  box-shadow: 0 0 10px rgba(255,0,0,0.7);
}

.action-button {
  background: linear-gradient(145deg, #cceeff, #99ddff);
  border: 2px solid #66bbff;
  color: #004466;
  padding: 16px 24px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 5px;
}

.action-button:hover {
  box-shadow: 0 0 10px #66bbff;
}

.action-button:active {
  transform: scale(0.95);
}

.larger-orange-button {
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid orange;
  background: linear-gradient(145deg, #331a00, #222);
  color: orange;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,165,0,0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.larger-orange-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px orange;
}

.larger-orange-button:active {
  transform: scale(0.95);
}

.larger-orange-button.selected {
  background: linear-gradient(145deg, #ffcccc, #ff9999);
  border-color: red;
  color: red;
  box-shadow: 0 0 10px rgba(255,0,0,0.7);
}

.allele-button {
  padding: 10px 15px;
  font-size: 14px;
  border: 2px solid #00BFFF;
  background: linear-gradient(145deg, #001f33, #112244);
  color: #00BFFF;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,191,255,0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.allele-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,191,255,1);
}

.allele-button:active {
  transform: scale(0.95);
}

.allele-button.selected {
  background: linear-gradient(145deg, #ccf5ff, #99e6ff);
  border-color: #00BFFF;
  color: #00BFFF;
  box-shadow: 0 0 10px rgba(0,191,255,0.9);
}

/* --------------------------------------------------
   Cyberpunk Construct Sequences Button Style
-------------------------------------------------- */
.cyberpunk-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 20px;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  color: #0aff0a;
  background: transparent;
  border: 2px solid #0aff0a;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(10,255,10,0.7);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 250px;
}

.cyberpunk-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(10,255,10,1);
}

.cyberpunk-button:active {
  transform: scale(0.95);
}

/* --------------------------------------------------
   Table + Popup
-------------------------------------------------- */
.table-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}

.table-container table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 10px;
}

.table-container th,
.table-container td {
  border: 1px solid #800080;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  min-width: 80px;
  word-wrap: break-word;
}

.popup {
  position: absolute;
  background-color: #222;
  border: 1px solid #888;
  border-radius: 5px;
  padding: 8px;
  color: #eee;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(128,0,128,0.7);
  z-index: 1100;
}

/* --------------------------------------------------
   Modal
-------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: auto;
  max-width: 90%;
  border-radius: 5px;
  position: relative;
  color: #eee;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------
   Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 600px) {
  #interaction-area {
    flex-direction: column;
  }
  
  #cancer-buttons {
    grid-template-columns: 1fr;
  }
  
  #toggle-interface {
    flex-direction: row;
    justify-content: space-around;
  }
}

/* -------------------------------------
   NEW CODE FOR NETAGENT
-------------------------------------- */
.hidden {
  display: none;
}

#netagent-panel {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #0aff0a;
  padding: 20px;
  border-radius: 5px;
}

.netagent-header h2 {
  color: #0aff0a;
  margin-bottom: 5px;
  font-family: 'Orbitron', sans-serif;
}
.netagent-header .subheader {
  color: #00ffff;
  margin-bottom: 15px;
}

.netagent-controls {
  margin-bottom: 10px;
}

.netagent-button {
  padding: 8px 15px;
  margin-right: 10px;
  background: #222;
  color: #0aff0a;
  border: 2px solid #0aff0a;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 8px rgba(10,255,10,0.7);
  transition: transform 0.2s;
}
.netagent-button:hover {
  transform: scale(1.05);
}
.netagent-button:active {
  transform: scale(0.95);
}

#netagent-container {
  width: 100%;
  height: 100%;
  border: 2px dashed #0aff0a;
  margin-top: 10px;
  overflow: auto;
  position: relative;
}

.net-link {
  stroke: #0aff0a;
  stroke-width: 2;
  stroke-opacity: 0.7;
}

.net-node circle {
  transition: none !important;
}

.net-node text {
  pointer-events: none;
  fill: #0aff0a;
  text-shadow: 0 0 5px #0aff0a;
}

/* --------------------------------------
   NEW .chip-button - (old code kept for reference)
-------------------------------------- */
.chip-button {
  display: block;
  width: 200px;
  height: 100px;
  margin-bottom: 10px;
  background: transparent;
  color: #ffd600;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  text-align: center;
  line-height: 100px;
  cursor: pointer;
  border: 4px double #ffd600;
  border-radius: 50px;
  box-shadow: 0 0 14px rgba(255,214,0,0.9);
  position: relative;
}

.chip-button::before,
.chip-button::after {
  content: "";
  position: absolute;
  background: #ffd600;
  width: 10px;
  height: 20px;
}

.chip-button::before {
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.chip-button::after {
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.chip-button::before {
  box-shadow:
    0 -40px 0 0 #ffd600,
    0  40px 0 0 #ffd600;
}
.chip-button::after {
  box-shadow:
    0 -40px 0 0 #ffd600, 
    0  40px 0 0 #ffd600;
}

/* --------------------------------------
   NEW Cyber-style NetAgent Button
-------------------------------------- */
@font-face {
  font-family: Cyber;
  src: url("https://assets.codepen.io/605876/Blender-Pro-Bold.otf");
  font-display: swap;
}

.cybr-btn {
  --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 1%));
  --shadow-primary: hsl(var(--shadow-primary-hue), 90%, 50%);
  --primary-hue: 0;
  --primary-lightness: 50;
  --color: hsl(0, 0%, 100%);
  --font-size: 26px;
  --shadow-primary-hue: 180;
  --label-size: 9px;
  --shadow-secondary-hue: 60;
  --shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
  --clip: polygon(0 0, 100% 0, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 70%);
  --border: 4px;
  --shimmy-distance: 5;
  --clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  --clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
  --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
  --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
  font-family: 'Cyber', sans-serif;
  color: var(--color);
  cursor: pointer;
  background: transparent;
  text-transform: uppercase;
  font-size: var(--font-size);
  outline: transparent;
  letter-spacing: 2px;
  position: relative;
  font-weight: 700;
  border: 0;
  min-width: 300px;
  height: 75px;
  line-height: 75px;
  transition: background 0.2s;
}

.cybr-btn:hover {
  --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 0.8%));
}

.cybr-btn:active {
  --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 0.6%));
}

.cybr-btn:after,
.cybr-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.cybr-btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), 0);
}

.cybr-btn:after {
  background: var(--primary);
}

.cybr-btn__tag {
  position: absolute;
  padding: 1px 4px;
  letter-spacing: 1px;
  line-height: 1;
  bottom: -5%;
  right: 5%;
  font-weight: normal;
  color: hsl(0, 0%, 0%);
  font-size: var(--label-size);
}

.cybr-btn__glitch {
  position: absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
  clip-path: var(--clip);
  animation: glitch 2s infinite;
  display: none;
}

.cybr-btn:hover .cybr-btn__glitch {
  display: block;
}

.cybr-btn__glitch:before {
  content: '';
  position: absolute;
  top: calc(var(--border) * 1);
  right: calc(var(--border) * 1);
  bottom: calc(var(--border) * 1);
  left: calc(var(--border) * 1);
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch {
  0% {
    clip-path: var(--clip-one);
  }
  2%, 8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }
  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }
  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }
  14%, 21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }
  35%, 45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1%));
  }
  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1%));
  }
  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }
  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }
  31%, 61%, 100% {
    clip-path: var(--clip-four);
  }
}

.cybr-btn:nth-of-type(2) {
  --primary-hue: 260;
}

/* --------------------------------------------------
   NEW Neural Button Styling for b‑SWARM & T‑SWARM
-------------------------------------------------- */
.neural-button {
  background: #2f2f2f;
  border: 2px solid #555;
  border-radius: 12px;
  padding: 14px;
  width: 600px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.neural-button:hover {
  background: #3d3d3d;
}

.neural-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(155,89,182,0.5) 0%, rgba(52,152,219,0) 80%);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  pointer-events: none;
}

.neural-button:active::after {
  animation: ripple 0.8s ease-out forwards;
}

.neural-button.cyberpunk-mode {
  animation: buttonPulse 0.6s ease;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 5px rgba(52,152,219,0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(155,89,182,0.8);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 5px rgba(52,152,219,0.8);
    transform: scale(1);
  }
}

/* --------------------------------------------------
   Grid Container for Neural Button Networks
-------------------------------------------------- */
#networksContainer,
#bcellNetworksContainer,
#tcellNetworksContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* --------------------------------------------------
   Header Styling for Neural Button
-------------------------------------------------- */
.header {
  text-align: center;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #3498db;
}

/* --------------------------------------------------
   Small Network SVG Styling
-------------------------------------------------- */
.small-network {
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.connection {
  stroke: #3498db;
  stroke-width: 0.5;
  transition: stroke 0.3s ease;
}

.node {
  fill: none;
  stroke: #3498db;
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

.cyberpunk-mode .connection {
  stroke: #9B59B6;
  animation: pulseLine 1.5s ease-in-out infinite;
}

.cyberpunk-mode .node {
  stroke: #9B59B6;
  animation: pulseNode 1.5s ease-in-out infinite;
}

@keyframes pulseLine {
  0% { stroke: #3498db; stroke-width: 0.5; }
  50% { stroke: #9B59B6; stroke-width: 1.5; }
  100% { stroke: #3498db; stroke-width: 0.5; }
}

@keyframes pulseNode {
  0% { stroke: #3498db; stroke-width: 1.5; fill: transparent; }
  50% { stroke: #9B59B6; stroke-width: 2.5; fill: rgba(155,89,182,0.3); }
  100% { stroke: #3498db; stroke-width: 1.5; fill: transparent; }
}

/* --------------------------------------------------
   Table + Popup
-------------------------------------------------- */
.table-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}

.table-container table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 10px;
}

.table-container th,
.table-container td {
  border: 1px solid #800080;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  min-width: 80px;
  word-wrap: break-word;
}

.popup {
  position: absolute;
  background-color: #222;
  border: 1px solid #888;
  border-radius: 5px;
  padding: 8px;
  color: #eee;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(128,0,128,0.7);
  z-index: 1100;
}

/* --------------------------------------------------
   Modal
-------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: auto;
  max-width: 90%;
  border-radius: 5px;
  position: relative;
  color: #eee;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------
   Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 600px) {
  #interaction-area {
    flex-direction: column;
  }
  
  #cancer-buttons {
    grid-template-columns: 1fr;
  }
  
  #toggle-interface {
    flex-direction: row;
    justify-content: space-around;
  }
}

/* -------------------------------------
   NEW CODE FOR NETAGENT
-------------------------------------- */
.hidden {
  display: none;
}

#netagent-panel {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #0aff0a;
  padding: 20px;
  border-radius: 5px;
}

.netagent-header h2 {
  color: #0aff0a;
  margin-bottom: 5px;
  font-family: 'Orbitron', sans-serif;
}
.netagent-header .subheader {
  color: #00ffff;
  margin-bottom: 15px;
}

.netagent-controls {
  margin-bottom: 10px;
}

.netagent-button {
  padding: 8px 15px;
  margin-right: 10px;
  background: #222;
  color: #0aff0a;
  border: 2px solid #0aff0a;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 8px rgba(10,255,10,0.7);
  transition: transform 0.2s;
}
.netagent-button:hover {
  transform: scale(1.05);
}
.netagent-button:active {
  transform: scale(0.95);
}

#netagent-container {
  width: 100%;
  height: 100%;
  border: 2px dashed #0aff0a;
  margin-top: 10px;
  overflow: auto;
  position: relative;
}

.net-link {
  stroke: #0aff0a;
  stroke-width: 2;
  stroke-opacity: 0.7;
}

.net-node circle {
  transition: none !important;
}

.net-node text {
  pointer-events: none;
  fill: #0aff0a;
  text-shadow: 0 0 5px #0aff0a;
}

/* --------------------------------------
   NEW .chip-button - (old code kept for reference)
-------------------------------------- */
.chip-button {
  display: block;
  width: 200px;
  height: 100px;
  margin-bottom: 10px;
  background: transparent;
  color: #ffd600;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  text-align: center;
  line-height: 100px;
  cursor: pointer;
  border: 4px double #ffd600;
  border-radius: 50px;
  box-shadow: 0 0 14px rgba(255,214,0,0.9);
  position: relative;
}

.chip-button::before,
.chip-button::after {
  content: "";
  position: absolute;
  background: #ffd600;
  width: 10px;
  height: 20px;
}

.chip-button::before {
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.chip-button::after {
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.chip-button::before {
  box-shadow:
    0 -40px 0 0 #ffd600,
    0  40px 0 0 #ffd600;
}
.chip-button::after {
  box-shadow:
    0 -40px 0 0 #ffd600, 
    0  40px 0 0 #ffd600;
}

/* --------------------------------------
   NEW Cyber-style NetAgent Button
-------------------------------------- */
@font-face {
  font-family: Cyber;
  src: url("https://assets.codepen.io/605876/Blender-Pro-Bold.otf");
  font-display: swap;
}

.cybr-btn {
  --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 1%));
  --shadow-primary: hsl(var(--shadow-primary-hue), 90%, 50%);
  --primary-hue: 0;
  --primary-lightness: 50;
  --color: hsl(0, 0%, 100%);
  --font-size: 26px;
  --shadow-primary-hue: 180;
  --label-size: 9px;
  --shadow-secondary-hue: 60;
  --shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
  --clip: polygon(0 0, 100% 0, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 70%);
  --border: 4px;
  --shimmy-distance: 5;
  --clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  --clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
  --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
  --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
  font-family: 'Cyber', sans-serif;
  color: var(--color);
  cursor: pointer;
  background: transparent;
  text-transform: uppercase;
  font-size: var(--font-size);
  outline: transparent;
  letter-spacing: 2px;
  position: relative;
  font-weight: 700;
  border: 0;
  min-width: 300px;
  height: 75px;
  line-height: 75px;
  transition: background 0.2s;
}

.cybr-btn:hover {
  --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 0.8%));
}

.cybr-btn:active {
  --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 0.6%));
}

.cybr-btn:after,
.cybr-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.cybr-btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), 0);
}

.cybr-btn:after {
  background: var(--primary);
}

.cybr-btn__tag {
  position: absolute;
  padding: 1px 4px;
  letter-spacing: 1px;
  line-height: 1;
  bottom: -5%;
  right: 5%;
  font-weight: normal;
  color: hsl(0, 0%, 0%);
  font-size: var(--label-size);
}

.cybr-btn__glitch {
  position: absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
  clip-path: var(--clip);
  animation: glitch 2s infinite;
  display: none;
}

.cybr-btn:hover .cybr-btn__glitch {
  display: block;
}

.cybr-btn__glitch:before {
  content: '';
  position: absolute;
  top: calc(var(--border) * 1);
  right: calc(var(--border) * 1);
  bottom: calc(var(--border) * 1);
  left: calc(var(--border) * 1);
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch {
  0% {
    clip-path: var(--clip-one);
  }
  2%, 8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }
  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }
  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }
  14%, 21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }
  35%, 45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1%));
  }
  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1%));
  }
  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }
  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }
  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }
  31%, 61%, 100% {
    clip-path: var(--clip-four);
  }
}

/* -------------------------------------
   UPDATED Top Sequence Constructor Button Styles
-------------------------------------- */
.cyberpunk-button {
  /* Overriding to update text, size, font, and color for the Top Sequence Constructor button */
  font-family: 'Roboto', sans-serif;       /* update font to Roboto */
  color: transparent;                        /* hide original inner text */
  border: 2px solid #ff073a;                  /* red cyberpunk border */
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);   /* red neon glow effect */
  padding: 18px 12px;                        /* vertical padding increased (50% larger) and horizontal decreased (50% smaller) */
  min-width: 125px;                          /* 50% smaller than the original 250px minimum width */
  position: relative;                        /* ensure positioning context for pseudo-element */
}

.cyberpunk-button::before {
  content: "Top Sequence Constructor";       /* set updated button text */
  font-family: 'Roboto', sans-serif;         /* ensure text uses Roboto */
  color: #ff073a;                            /* red cyberpunk font color */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;                        /* prevent wrapping of the text */
}