:root {
  --fosfor-void:    #121314; /* Slightly lighter than pure black */
  --fosfor-surface: #1d2021;
  --fosfor-cyan:    #83A598;
  --fosfor-orange:  #FABD2F;
  --fosfor-beige:   #D5C4A1;
  --fosfor-muted:   rgba(213, 196, 161, 0.25);
  --fosfor-font:    "FiraCode Nerd Font", "JetBrains Mono", monospace;
  --fosfor-t:       0.15s ease-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--fosfor-font); }

body {
  background: var(--fosfor-void);
  color: var(--fosfor-beige);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* § fosfor-signal-crt: Scanline Overlay */
.fosfor-signal-crt {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* § io-toolbar */
#io-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: var(--fosfor-surface);
  border-bottom: 1px solid var(--fosfor-muted);
  height: 50px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  flex-shrink: 0;
}

#system-path { color: var(--fosfor-muted); }
#io-links-anchor { display: flex; height: 100%; }

/* § fosfor-io-button (Dropdowns) */
.fosfor-io-button {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--fosfor-muted);
  cursor: pointer;
  transition: color var(--fosfor-t);
}

.fosfor-io-button:hover { color: var(--fosfor-cyan); background: rgba(131, 165, 152, 0.05); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--fosfor-surface);
  border: 1px solid var(--fosfor-cyan);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.fosfor-io-button:hover .dropdown { display: block; }

.fosfor-io-link {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--fosfor-beige);
  font-size: 0.8rem;
}

.fosfor-io-link:hover { background: var(--fosfor-cyan); color: var(--fosfor-void); }

/* § terminal-core */
#terminal-core {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 10vh;
}

#system-ascii {
  color: var(--fosfor-orange);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(250, 189, 47, 0.3);
  margin-bottom: 30px;
}

#system-status { font-size: 0.65rem; letter-spacing: 5px; color: var(--fosfor-muted); margin-bottom: 40px; }

/* § search-hud & cursor */
.fosfor-io-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  border-bottom: 1px solid var(--fosfor-muted);
  padding: 10px;
}

.fosfor-io-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fosfor-cyan);
  font-size: 1rem;
  width: 100%;
  padding-left: 10px;
  text-transform: uppercase;
}

.fosfor-cursor-block {
  width: 10px;
  height: 1.2rem;
  background: var(--fosfor-orange);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }