/* ─── TERMINAL STRIP ─── */
.terminal-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.terminal-section-label {
  font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.terminal-section-label::before {
  content: none;
}

.terminal {
  position: relative;
  width: 100%;
  background: #08080c;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(124, 58, 237, 0.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  user-select: none;
  background: #0f0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.amber {
  background: #febc2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  margin-right: 30px;
}

.terminal-body {
  padding: 16px 20px 20px;
  font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  user-select: none;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-all;
  scrollbar-width: none; /* Firefox: hide scrollbar, keep scroll */
}

.terminal-body::-webkit-scrollbar {
  display: none; /* Chrome/Safari: hide scrollbar, keep scroll */
}

/* terminal-body small-mobile overrides handled in the 480px block below */

.t-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 2px;
}

.t-prompt {
  color: var(--accent);
  user-select: none;
  flex-shrink: 0;
}

.t-cmd {
  color: #f0ecff;
}

.t-out {
  color: #9d94c0;
  padding-left: 18px;
}

.t-out.ok {
  color: #4ade80;
}

.t-out.warn {
  color: #e2b4ff;
}

.t-cursor {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}


/* ─── HACKERMAN MODE ─── */
body.hackerman {
  animation: glitch-body 0.12s infinite;
}

body.hackerman .terminal {
  border-color: #00ff41;
  box-shadow: 0 0 32px rgba(0, 255, 65, 0.35), 0 0 80px rgba(0, 255, 65, 0.15);
}

body.hackerman .terminal-bar {
  background: #001a00;
}

body.hackerman .terminal-title {
  color: #00ff41;
}

body.hackerman #terminal-body {
  background: #000;
  color: #00ff41;
}

body.hackerman .t-prompt {
  color: #ff4444;
}

body.hackerman .t-cmd {
  color: #00ff41;
}

.t-out.hack-out {
  color: #00cc33;
  padding-left: 18px;
}

@keyframes glitch-body {
  0% {
    filter: none;
  }

  20% {
    filter: hue-rotate(90deg) saturate(2);
    transform: translateX(1px);
  }

  40% {
    filter: none;
    transform: translateX(-1px);
  }

  60% {
    filter: hue-rotate(180deg) saturate(1.5);
    transform: translateX(0);
  }

  80% {
    filter: none;
  }

  100% {
    filter: none;
  }
}

