:root {
  --neon-accent: #00f0ff;
  --neon-glow: rgba(0, 240, 255, 0.4);
  --neon-dark: #008899;
  --bg-dark: #080b10;
  --bg-panel: rgba(13, 19, 32, 0.82);
  --bg-panel-solid: #0d1320;
  --border-glow: rgba(0, 240, 255, 0.3);
  --text-main: #d0f0ff;
  --text-dim: #65849f;
  --term-green: #00ff66;
  --danger-red: #ff3366;
  --warn-yellow: #ffcc00;
  --win-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.65), 0 0 15px var(--neon-glow);
}

.theme-green {
  --neon-accent: #00ff66;
  --neon-glow: rgba(0, 255, 102, 0.4);
  --neon-dark: #008833;
  --border-glow: rgba(0, 255, 102, 0.3);
  --text-main: #d4ffd9;
  --text-dim: #5c9966;
}

.theme-purple {
  --neon-accent: #b026ff;
  --neon-glow: rgba(176, 38, 255, 0.4);
  --neon-dark: #6a00a8;
  --border-glow: rgba(176, 38, 255, 0.3);
  --text-main: #f2d6ff;
  --text-dim: #925c99;
}

.theme-pink {
  --neon-accent: #ff007f;
  --neon-glow: rgba(255, 0, 127, 0.4);
  --neon-dark: #99004d;
  --border-glow: rgba(255, 0, 127, 0.3);
  --text-main: #ffd1e8;
  --text-dim: #995c7c;
}

.theme-orange {
  --neon-accent: #ffaa00;
  --neon-glow: rgba(255, 170, 0, 0.4);
  --neon-dark: #996600;
  --border-glow: rgba(255, 170, 0, 0.3);
  --text-main: #ffe9cc;
  --text-dim: #997e5c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: 'Consolas', 'Courier New', monospace, -apple-system, sans-serif;
}

body, html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.hidden {
  display: none !important;
}

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #00ff66;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
}

.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 4px 100%;
  pointer-events: none;
  z-index: 2;
}

.boot-terminal {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

#boot-logs {
  font-size: 13px;
  line-height: 1.5;
  overflow-y: auto;
  flex-grow: 1;
  text-shadow: 0 0 5px #00ff66;
  padding-bottom: 20px;
}

.boot-line {
  margin-bottom: 2px;
  word-break: break-all;
}

.boot-ok {
  color: #00ff66;
  font-weight: bold;
}

.boot-warn {
  color: var(--warn-yellow);
}

.boot-info {
  color: var(--neon-accent);
}

.boot-progress-container {
  border-top: 1px solid rgba(0, 255, 102, 0.4);
  padding-top: 12px;
}

.boot-bar-label {
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.boot-progress-track {
  width: 100%;
  height: 14px;
  background: #0d1a10;
  border: 1px solid #00ff66;
  padding: 1px;
}

#boot-progress-fill {
  width: 0%;
  height: 100%;
  background: #00ff66;
  box-shadow: 0 0 10px #00ff66;
  transition: width 0.1s linear;
}

#desktop-environment {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(circle at center, #0e1726 0%, #05080e 100%);
  background-size: cover;
  background-position: center;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#top-bar {
  position: relative;
  z-index: 10000;
  height: 34px;
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--neon-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  transition: all 0.2s ease;
}

.top-btn:hover, .top-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-accent);
  box-shadow: 0 0 8px var(--neon-glow);
}

.hex-icon {
  font-size: 14px;
  color: var(--neon-accent);
}

.workspace-switcher {
  display: flex;
  gap: 3px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
}

.ws-btn.active {
  background: var(--neon-accent);
  color: #000;
  font-weight: bold;
}

.quick-status {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tray-item {
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}

.tray-item:hover {
  color: var(--neon-accent);
}

.tray-date {
  color: var(--text-dim);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

.tray-clock {
  color: var(--neon-accent);
  font-weight: bold;
}

#desktop-area {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  z-index: 10;
}

.desktop-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 90px);
  gap: 16px;
  z-index: 20;
}

.desktop-icon {
  width: 76px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  padding: 4px;
  text-align: center;
}

.desktop-icon:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--border-glow);
  box-shadow: 0 0 10px var(--neon-glow);
}

.desktop-icon .app-glyph {
  font-size: 28px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 5px var(--neon-glow));
}

.desktop-icon .app-title {
  font-size: 11px;
  color: var(--text-main);
  text-shadow: 0 1px 3px #000;
  word-break: break-word;
  line-height: 1.2;
}

#dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  box-shadow: var(--win-shadow);
}

.dock-item {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item:hover {
  transform: translateY(-6px) scale(1.15);
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-accent);
  box-shadow: 0 0 12px var(--neon-glow);
}

.dock-item.has-window::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon-accent);
  box-shadow: 0 0 6px var(--neon-accent);
}

.dock-item.active-window {
  border-color: var(--neon-accent);
  background: rgba(0, 240, 255, 0.15);
}

.window {
  position: absolute;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  box-shadow: var(--win-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 320px;
  min-height: 220px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.window.active-win {
  border-color: var(--neon-accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--neon-glow);
}

.window.minimized {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7) translateY(200px);
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

.win-header {
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  cursor: grab;
}

.win-header:active {
  cursor: grabbing;
}

.win-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.win-title-icon {
  font-size: 14px;
}

.win-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #000;
  font-weight: bold;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.win-btn:hover {
  opacity: 1;
}

.win-btn.btn-min {
  background: var(--warn-yellow);
}

.win-btn.btn-max {
  background: var(--term-green);
}

.win-btn.btn-close {
  background: var(--danger-red);
}

.win-content {
  flex: 1;
  position: relative;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.win-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: se-resize;
  z-index: 100;
  background: linear-gradient(135deg, transparent 50%, var(--neon-accent) 50%);
  opacity: 0.6;
}

.win-resize-handle:hover {
  opacity: 1;
}

.term-container {
  background: #04080d;
  color: var(--term-green);
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
  overflow-y: auto;
  position: relative;
}

.term-output {
  white-space: pre-wrap;
  word-break: break-all;
  flex-grow: 1;
}

.term-line {
  margin-bottom: 4px;
}

.term-prompt-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.term-prompt {
  color: var(--neon-accent);
  margin-right: 8px;
  font-weight: bold;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.netscan-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #060a12;
  padding: 10px;
  gap: 10px;
  font-size: 11px;
}

.netscan-top {
  display: flex;
  gap: 10px;
  height: 140px;
}

.netscan-canvas-wrap {
  flex: 1;
  background: #020509;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

#netscan-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.netscan-info-box {
  width: 220px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.netscan-bot {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.netscan-packets {
  flex: 1;
  background: #020408;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 8px;
  overflow-y: auto;
  font-family: monospace;
  color: var(--term-green);
  line-height: 1.35;
}

.netscan-ports {
  width: 200px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.synth16-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #080c14;
  padding: 12px;
  gap: 10px;
}

.synth16-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glow);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.synth16-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 10px;
}

.synth16-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.synth16-label {
  width: 75px;
  font-size: 10px;
  color: var(--neon-accent);
  font-weight: bold;
}

.synth16-step {
  flex: 1;
  height: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s;
}

.synth16-step:nth-child(4n+2) {
  margin-right: 4px;
}

.synth16-step.active {
  background: var(--neon-accent);
  box-shadow: 0 0 8px var(--neon-glow);
}

.synth16-step.playing {
  border-color: #fff;
  transform: scale(1.08);
}

.synth16-vis {
  width: 100%;
  height: 50px;
  background: #020508;
  border: 1px solid var(--border-glow);
  border-radius: 4px;
}

.browser-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #0a0e17;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-glow);
}

.b-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.b-btn:hover {
  background: rgba(0, 240, 255, 0.2);
}

.browser-url {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glow);
  color: var(--neon-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.browser-tabs {
  display: flex;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px 0;
  gap: 4px;
  border-bottom: 1px solid var(--border-glow);
}

.b-tab {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.b-tab.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-accent);
  font-weight: bold;
}

.browser-bookmarks {
  display: flex;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 11px;
}

.b-bmk {
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}

.b-bmk:hover {
  color: var(--neon-accent);
  background: rgba(255,255,255,0.05);
}

.browser-frame-wrap {
  flex: 1;
  position: relative;
  background: #fff;
}

.browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.browser-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #090e17;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 12px;
}

.sysmon-container {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  background: #080c14;
}

.sysmon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sysmon-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 10px;
}

.sysmon-card-title {
  font-size: 11px;
  color: var(--neon-accent);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.sysmon-canvas {
  width: 100%;
  height: 70px;
  background: #03060a;
  border-radius: 4px;
  display: block;
}

.sysmon-procs {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.proc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 8px;
}

.proc-table th, .proc-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.proc-table th {
  color: var(--text-dim);
}

.kill-btn {
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid var(--danger-red);
  color: var(--danger-red);
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
}

.kill-btn:hover {
  background: var(--danger-red);
  color: #fff;
}

.fs-container {
  display: flex;
  flex: 1;
  background: #090e17;
}

.fs-sidebar {
  width: 130px;
  background: rgba(0,0,0,0.4);
  border-right: 1px solid var(--border-glow);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.fs-nav-item {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-dim);
}

.fs-nav-item:hover, .fs-nav-item.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-accent);
}

.fs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fs-toolbar {
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  gap: 6px;
}

.fs-grid {
  flex: 1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  align-content: start;
  overflow-y: auto;
}

.fs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}

.fs-item:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--border-glow);
}

.fs-item-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.fs-item-name {
  font-size: 11px;
  color: var(--text-main);
  word-break: break-all;
}

.audio-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #080c14;
  flex: 1;
  align-items: center;
}

.audio-visualizer {
  width: 100%;
  height: 90px;
  background: #020508;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
}

.audio-track-info {
  text-align: center;
  margin: 6px 0;
}

.audio-track-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--neon-accent);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--neon-accent);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.audio-btn:hover {
  background: var(--neon-accent);
  color: #000;
  box-shadow: 0 0 10px var(--neon-glow);
}

.audio-sliders {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-dim);
  align-items: center;
}

.draw-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #0a0e17;
}

.draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--border-glow);
}

.draw-palette {
  display: flex;
  gap: 4px;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid #fff;
}

.color-swatch.active {
  outline: 2px solid var(--neon-accent);
}

.draw-canvas-wrap {
  flex: 1;
  position: relative;
  background: #111;
  overflow: hidden;
}

#paint-canvas {
  background: #fff;
  cursor: crosshair;
  display: block;
}

.notes-container {
  display: flex;
  flex: 1;
  background: #090e17;
}

.notes-sidebar {
  width: 140px;
  background: rgba(0,0,0,0.4);
  border-right: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.note-item {
  padding: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-size: 11px;
  border: 1px solid transparent;
}

.note-item.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-accent);
  color: var(--neon-accent);
}

.notes-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}

.notes-title-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-glow);
  color: var(--neon-accent);
  font-size: 14px;
  padding: 4px 0;
  outline: none;
  font-weight: bold;
}

.notes-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.snake-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 12px;
  background: #06090e;
  position: relative;
}

.snake-hud {
  display: flex;
  justify-content: space-between;
  width: 320px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--neon-accent);
}

#snake-canvas {
  background: #000;
  border: 2px solid var(--neon-accent);
  box-shadow: 0 0 15px var(--neon-glow);
}

.calc-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
  background: #080c14;
  gap: 10px;
}

.calc-display {
  background: #020508;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 10px;
  text-align: right;
}

.calc-history {
  font-size: 11px;
  color: var(--text-dim);
  min-height: 14px;
}

.calc-main-num {
  font-size: 24px;
  color: var(--neon-accent);
  font-weight: bold;
  word-break: break-all;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
}

.calc-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  color: var(--neon-accent);
}

.calc-btn.op {
  color: var(--neon-accent);
  background: rgba(0, 240, 255, 0.08);
}

.calc-btn.eq {
  background: var(--neon-accent);
  color: #000;
  font-weight: bold;
}

.settings-container {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #090e17;
  font-size: 12px;
}

.settings-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 12px;
}

.settings-title {
  font-size: 13px;
  color: var(--neon-accent);
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cyber-btn {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-accent);
  color: var(--neon-accent);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.cyber-btn:hover {
  background: var(--neon-accent);
  color: #000;
  box-shadow: 0 0 10px var(--neon-glow);
}

.cyber-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  outline: none;
  font-size: 12px;
}

.launcher-menu {
  position: absolute;
  top: 40px;
  left: 12px;
  width: 320px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--neon-accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--neon-glow);
  border-radius: 8px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.launcher-header {
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-glow);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--neon-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.user-name {
  font-weight: bold;
  font-size: 12px;
  color: var(--neon-accent);
}

.user-status {
  font-size: 10px;
  color: var(--term-green);
}

#launcher-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  outline: none;
}

.launcher-grid {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.launcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}

.launcher-item:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-accent);
}

.launcher-footer {
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border-glow);
  display: flex;
  justify-content: space-between;
}

.launcher-action-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.launcher-action-btn:hover {
  color: var(--danger-red);
  border-color: var(--danger-red);
}

.ctx-menu {
  position: absolute;
  width: 180px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8), 0 0 10px var(--neon-glow);
  z-index: 1000000;
  padding: 4px 0;
  font-size: 11px;
}

.ctx-item {
  padding: 6px 14px;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.1s;
}

.ctx-item:hover {
  background: var(--neon-accent);
  color: #000;
}

.ctx-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 4px 0;
}

#lockscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.95);
  backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-box {
  background: rgba(13, 19, 32, 0.9);
  border: 1px solid var(--neon-accent);
  box-shadow: 0 0 30px var(--neon-glow);
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.lock-avatar {
  font-size: 40px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--neon-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--neon-glow);
}

.lock-status {
  font-size: 11px;
  color: var(--term-green);
  letter-spacing: 1px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-accent);
}