.section-terminal {
  background-color: var(--c-bg);
  color: #c5c6c7;
  font-family: 'Courier New', Courier, monospace;
  padding: 5rem 1.25rem;
}

.terminal-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.terminal-section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-family: 'Courier New', Courier, monospace;
  background: var(--grad-text-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.terminal-section-subtitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--c-text-dim);
  font-size: 0.95rem;
}

.terminal-section-subtitle code {
  background: #1e1e2e;
  color: #c084fc;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.terminal-window {
  background-color: #12121e;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(168, 85, 247, 0.06);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.terminal-window:hover {
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.55),
    0 18px 56px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(168, 85, 247, 0.14);
}

.terminal-header {
  background-color: #1a1a2e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a2a3e;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-button.close { background-color: #ff5f56; }
.terminal-button.minimize { background-color: #ffbd2e; }
.terminal-button.maximize { background-color: #27c93f; }

.terminal-title {
  flex-grow: 1;
  text-align: center;
  color: #c5c6c7;
  font-weight: 600;
  font-size: 0.9rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #1e1e1e;
}

.terminal-body::-webkit-scrollbar { width: 10px; }
.terminal-body::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 4px;
  transition: background 0.2s;
}
.terminal-body::-webkit-scrollbar-thumb:hover { background: #5a5a5a; }

.terminal-line {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.terminal-line.input-line {
  margin-top: 4px;
}

.terminal-output {
  display: block;
  padding: 0.25rem 0 0.4rem 0.75rem;
  color: #a3a3b3;
  border-left: 2px solid #2a2a3e;
  margin-left: 4px;
}

.terminal-prompt,
.terminal-prompt-static {
  color: #6a9955;
  flex: 0 0 auto;
  padding-right: 8px;
  line-height: 1.4;
}

.terminal-welcome { color: #9ca3af; }

.terminal-highlight {
  color: #c084fc;
  font-style: italic;
}

.terminal-input {
  background: none;
  border: none;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  outline: none;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}

.terminal-command { color: #d4d4d4; }
