:root {
  --bg: #0c0c0c;
  --term-bg: #060606;
  --text: #33ff00;
  --text-dim: #1a8000;
  --text-highlight: #ccffcc;
  --alert: #ff3333;
  --accent: #ffff33;
  --font: 'Fira Code', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.scanlines {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
  background-size: 100% 4px;
  pointer-events: none; z-index: 10;
}
.flicker {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(18, 16, 16, 0.02);
  opacity: 0; z-index: 10; pointer-events: none;
  animation: flicker 0.15s infinite;
}
@keyframes flicker {
  0% { opacity: 0.02; } 50% { opacity: 0.05; } 100% { opacity: 0.02; }
}
.terminal-container {
  width: 95%; max-width: 1000px; height: 90vh;
  background: var(--term-bg);
  border: 1px solid #333;
  box-shadow: 0 0 20px rgba(51, 255, 0, 0.1);
  display: flex; flex-direction: column;
  position: relative; z-index: 5;
}
.term-bar {
  background: #111; padding: 8px 15px; border-bottom: 1px solid #333;
  display: flex; align-items: center;
}
.btns { display: flex; gap: 8px; margin-right: 15px; }
.btn { width: 12px; height: 12px; border-radius: 50%; }
.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27c93f; }
.title { font-size: 12px; color: #666; }
.term-body {
  flex: 1; padding: 20px; overflow-y: auto;
  font-size: 14px; line-height: 1.5;
  text-shadow: 0 0 5px rgba(51, 255, 0, 0.4);
  padding-bottom: 60px;
}
.term-body::-webkit-scrollbar { width: 8px; }
.term-body::-webkit-scrollbar-track { background: #000; }
.term-body::-webkit-scrollbar-thumb { background: var(--text-dim); }
a { color: var(--text-highlight); text-decoration: none; border-bottom: 1px dashed var(--text-dim); cursor: pointer; }
a:hover { background: var(--text); color: #000; }
.prompt-line { margin-top: 10px; display: flex; }
.user { color: var(--accent); font-weight: bold; }
.path { color: #66ccff; }
.command { color: var(--text-highlight); margin-left: 8px; }
.output-line { color: var(--text); white-space: pre-wrap; margin-bottom: 2px; }
.dim { color: var(--text-dim); }
.error-text { color: var(--alert); }
.cursor {
  display: inline-block; width: 8px; height: 16px; background: var(--text);
  animation: blink 1s step-end infinite; margin-left: 5px; vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.control-deck {
  position: absolute; bottom: 20px; right: 20px;
  display: flex; gap: 10px;
}
.sys-btn {
  background: #000; border: 1px solid var(--text-dim); color: var(--text-dim);
  padding: 8px 12px; font-family: var(--font); font-size: 12px; cursor: pointer;
  transition: 0.2s; text-transform: uppercase;
}
.sys-btn:hover { background: var(--text-dim); color: #000; }
.sys-btn.error:hover { background: var(--alert); color: #fff; border-color: var(--alert); }
.control-deck{
    display:flex;
    gap:12px;
    padding:16px;
    border-top:1px solid #1a1a1a;
}
.sys-btn{
    font-family:'Fira Code', monospace;
    padding:10px 16px;
    border-radius:6px;
    border:1px solid #222;
    background:#0f1115;
    color:#00ff88;
    cursor:pointer;
    transition:all .15s ease;
}
.sys-btn:hover{
    transform:translateY(-1px);
    background:#14171d;
}
.sys-btn.primary{
    background:#00ff88;
    color:black;
    font-weight:600;
}
.sys-btn.secondary{
    color:#7fd0ff;
}
.sys-btn.error{
    color:#ff6b6b;
}
.copyright-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 10px;
  background: var(--bg);
  z-index: 15;
  line-height: 1.5;
}