:root {
  --bg: #05080c;
  --panel: #0a1118;
  --line: #1c2b38;
  --txt: #d7f0d0;
  --dim: #5f7a6b;
  --green: #2fe36b;
  --cyan: #4fd6ff;
  --yellow: #ffd166;
  --red: #ff5a5a;
  --magenta: #ff7ad9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: "Consolas", "Menlo", "DejaVu Sans Mono", monospace;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ===== Bejelentkező ===== */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47, 227, 107, 0.10), transparent 60%),
    linear-gradient(180deg, #060a0e, #030506);
}
.login-card {
  width: 360px;
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 40px rgba(47,227,107,0.03);
}
.logo {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 18px rgba(47,227,107,0.45);
}
.logo span { color: var(--cyan); }
.tagline { color: var(--dim); font-size: 11px; margin: 6px 0 22px; }
.login-card input {
  width: 100%;
  margin-bottom: 10px;
  padding: 11px 12px;
  background: #071017;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--txt);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(47,227,107,0.15); }
.btn-row { display: flex; gap: 8px; margin-top: 6px; }
.btn {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e1a22;
  color: var(--txt);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}
.btn:hover { border-color: var(--cyan); }
.btn.primary { background: var(--green); color: #04120a; border-color: var(--green); }
.btn.primary:hover { filter: brightness(1.1); }
.login-error { color: var(--red); min-height: 18px; margin-top: 12px; font-size: 13px; }
.login-hint { color: var(--dim); font-size: 11px; line-height: 1.5; margin-top: 14px; }

/* ===== HUD ===== */
.hud {
  display: flex; align-items: center; gap: 18px;
  padding: 8px 14px;
  background: #081018;
  border-bottom: 1px solid var(--line);
}
.hud-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hud-label { color: var(--dim); font-size: 11px; letter-spacing: 1px; }
.hud-value { color: var(--green); font-size: 14px; font-weight: 700; min-width: 34px; }
.hud-value.money { color: var(--yellow); min-width: 80px; }
.hud-mid { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hud-target { font-size: 11px; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-right { display: flex; gap: 6px; }
.hud-btn {
  position: relative;
  width: 34px; height: 30px;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-size: 15px; cursor: pointer;
}
.hud-btn:hover { border-color: var(--cyan); }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 8px; padding: 1px 4px;
  line-height: 1.2;
}
.badge.hidden { display: none; }

/* ===== Zene-sáv (a HUD-ban, a nyomkövető helyén) ===== */
.music-bar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.music-bar.hidden { display: none; }
.music-bar .music-title { color: var(--cyan); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.music-bar .music-count { color: var(--dim); font-size: 10px; }
.music-bar .music-btn {
  width: 26px; height: 22px;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-size: 12px; cursor: pointer; line-height: 1;
  flex: 0 0 auto;
}
.music-bar .music-btn:hover { border-color: var(--green); }
.music-bar .music-btn.music-play { color: var(--green); }
.music-bar .music-hide {
  background: none; border: none; color: var(--dim);
  cursor: pointer; font-size: 11px; line-height: 1; padding: 2px 4px;
}
.music-bar .music-hide:hover { color: var(--red); }
.music-bar.paused .music-eq i { animation-play-state: paused; }

/* ===== Riasztások ===== */
.alerts {
  position: fixed; top: 52px; right: 14px; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
}
.alert {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  max-width: 300px;
  background: rgba(10, 17, 24, 0.95);
  border: 1px solid var(--line);
  animation: slideIn 0.25s ease;
}
.alert.err { border-color: var(--red); color: var(--red); }
.alert.warn { border-color: var(--yellow); color: var(--yellow); }
.alert.ok { border-color: var(--green); color: var(--green); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Layout ===== */
.layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 53px);
}
.panel { display: flex; flex-direction: column; }
.terminal-panel { flex: 1.35; min-width: 0; border-right: 1px solid var(--line); }
.map-panel { flex: 1; min-width: 0; }
.panel-title {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dim);
  background: #081018;
  border-bottom: 1px solid var(--line);
}
.panel-title span { color: var(--green); }

/* ===== Terminál ===== */
.terminal {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 26px),
    #050a0f;
}
.terminal .tline { white-space: pre-wrap; word-break: break-word; }
.terminal .c-sys { color: var(--dim); }
.terminal .c-info { color: var(--txt); }
.terminal .c-ok { color: var(--green); }
.terminal .c-err { color: var(--red); }
.terminal .c-warn { color: var(--yellow); }
.terminal .c-dim { color: var(--dim); }
.terminal .c-hl { color: var(--cyan); }
.terminal .c-file { color: var(--magenta); }
.prompt-line {
  display: flex; align-items: center;
  padding: 10px 14px;
  background: #071017;
  border-top: 1px solid var(--line);
}
.prompt { color: var(--green); margin-right: 8px; white-space: nowrap; font-size: 13.5px; }
#cmdInput {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--txt);
  font-family: inherit; font-size: 13.5px;
  caret-color: var(--green);
}

/* ===== Térkép ===== */
.map-svg { flex: 1; width: 100%; min-height: 0; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 8px 12px;
  font-size: 11px; color: var(--dim);
  border-top: 1px solid var(--line);
  background: #081018;
}
.map-legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.me { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.player { background: var(--yellow); }
.dot.npc { background: var(--cyan); }
.dot.rooted { background: var(--red); }
.dot.off { background: #3a4a55; }
.map-info {
  padding: 8px 12px; font-size: 11px; color: var(--dim);
  border-top: 1px solid var(--line); background: #071017;
  min-height: 34px;
}
.map-info i { color: var(--cyan); font-style: normal; }

.map-node { cursor: pointer; }
.map-node circle { transition: stroke-width 0.15s; }
.map-node:hover circle { stroke-width: 3.5; }
.map-node text { font-family: inherit; }
.map-edge { stroke: #1c2b38; stroke-width: 1.5; }
.map-edge.online { stroke: #2a4a3a; }
.map-ring { fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 4 3; }
.map-flash { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; }

/* ===== Asztal ===== */
.desktop {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, #0a1a2a 0%, #082032 50%, #0d1f14 100%);
  background-size: cover; background-position: center;
}
.desktop-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: rgba(5, 10, 16, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.desktop-host { color: var(--green); font-size: 13px; }
.desktop-bar-btns { display: flex; gap: 6px; }
.desktop-btn {
  padding: 6px 10px;
  background: rgba(14, 26, 34, 0.9); border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-family: inherit; font-size: 12px; cursor: pointer;
}
.desktop-btn:hover { border-color: var(--cyan); }
.desktop-icons {
  flex: 1; padding: 24px; overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  gap: 18px;
  align-content: start;
  justify-content: start;
}
.dicon {
  width: 84px; height: 84px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(5, 10, 16, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
}
.dicon:hover { background: rgba(47, 227, 107, 0.15); border-color: var(--green); transform: translateY(-2px); }
.dicon span { font-size: 30px; }
.dicon label { font-size: 11px; color: var(--txt); text-align: center; cursor: pointer; }

/* ===== Értesítések panel ===== */
.notif-panel {
  position: fixed; top: 58px; right: 14px;
  width: 330px; max-height: 60vh;
  z-index: 58;
  display: flex; flex-direction: column;
  background: rgba(8, 15, 22, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.notif-head {
  padding: 9px 12px;
  font-size: 13px; font-weight: 700; color: var(--cyan);
  background: #0a1219; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  cursor: move; user-select: none;
}
.notif-head-btns { display: flex; gap: 4px; }
.notif-list { overflow-y: auto; padding: 8px; }
.notif-item {
  position: relative;
  padding: 8px 26px 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #071017;
  font-size: 12px; line-height: 1.4;
}
.notif-item.err { border-color: var(--red); }
.notif-item.warn { border-color: var(--yellow); }
.notif-item.ok { border-color: var(--green); }
.notif-text { word-break: break-word; }
.notif-ip { color: var(--dim); margin-top: 2px; }
.notif-time { color: var(--dim); font-size: 10px; }
.notif-del {
  position: absolute; top: 6px; right: 6px;
  background: none; border: none; color: var(--dim);
  cursor: pointer; font-size: 12px; padding: 0;
}
.notif-del:hover { color: var(--red); }
.notif-empty { color: var(--dim); font-size: 12px; padding: 10px; text-align: center; }

/* ===== Chat ===== */
.chat-panel {
  position: fixed; right: 14px; top: 58px; bottom: 14px;
  width: 300px; z-index: 55;
  display: flex; flex-direction: column;
  background: rgba(8, 15, 22, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.chat-head {
  padding: 9px 12px;
  font-size: 13px; font-weight: 700; color: var(--cyan);
  background: #0a1219; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.chat-close { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 14px; }
.chat-close:hover { color: var(--red); }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 12.5px; }
.chat-msg { margin-bottom: 7px; line-height: 1.4; word-break: break-word; }
.chat-msg .nick { color: var(--yellow); font-weight: 700; }
.chat-msg .sysnick { color: var(--dim); font-weight: 700; }
.chat-msg .time { color: var(--dim); font-size: 10px; margin-left: 4px; }
.chat-input-row { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
#chatInput {
  flex: 1; padding: 8px 10px;
  background: #071017; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-family: inherit; font-size: 12.5px; outline: none;
}
#chatInput:focus { border-color: var(--green); }
.chat-input-row .btn { flex: 0 0 auto; padding: 8px 10px; }

/* ===== Tutorial ===== */
.tutorial {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 10, 0.8);
}
.tutorial-card {
  position: relative;
  width: min(560px, 92vw);
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.tutorial-head { font-size: 16px; color: var(--green); font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; }
.tutorial-head span { color: var(--dim); font-weight: 400; }
.tutorial-body { font-size: 13.5px; line-height: 1.6; min-height: 150px; }
.tutorial-body h3 { color: var(--cyan); font-size: 15px; margin: 0 0 8px; }
.tutorial-body p { margin: 6px 0; }
.tutorial-body code {
  background: #071017; border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px; color: var(--green); font-family: inherit;
}
.tutorial-nav { display: flex; gap: 8px; margin-top: 16px; }
.tutorial-nav .btn { flex: none; padding: 9px 16px; }
.tutorial-skip {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--dim); cursor: pointer; font-size: 13px;
}
.tutorial-skip:hover { color: var(--red); }

/* ===== Zenelejátszó ===== */
.music-player {
  position: fixed; left: 14px; bottom: 14px; z-index: 56;
  width: 250px;
  background: rgba(8, 15, 22, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.music-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.music-eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.music-eq i { width: 3px; background: var(--green); border-radius: 1px; animation: eq 0.8s ease-in-out infinite; }
.music-eq i:nth-child(2) { animation-delay: 0.2s; height: 80%; }
.music-eq i:nth-child(3) { animation-delay: 0.4s; height: 60%; }
.music-eq i:nth-child(4) { animation-delay: 0.1s; height: 90%; }
.music-player.paused .music-eq i { animation-play-state: paused; height: 22%; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.music-title { flex: 1; color: var(--cyan); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-count { color: var(--dim); font-size: 10px; }
.music-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.music-btn {
  width: 30px; height: 26px;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-size: 13px; cursor: pointer; line-height: 1;
}
.music-btn:hover { border-color: var(--green); }
.music-btn.music-play { color: var(--green); }
.music-vols { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.music-vols label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--dim); }
.music-vols input[type="range"] {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: #0b141d; border-radius: 2px; outline: none;
}
.music-vols input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); cursor: pointer; border: none;
}
.music-hide {
  background: none; border: none; color: var(--dim);
  cursor: pointer; font-size: 12px; line-height: 1; padding: 2px 4px;
}
.music-hide:hover { color: var(--red); }
.music-note { margin-top: 8px; font-size: 10px; color: var(--dim); line-height: 1.4; }
.music-note code { color: var(--cyan); background: #071017; border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; }
.music-open {
  position: fixed; left: 14px; bottom: 14px; z-index: 57;
  width: 46px; height: 46px;
  background: rgba(8, 15, 22, 0.95);
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green); font-size: 20px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 12px rgba(47,227,107,0.25);
}
.music-open:hover { background: rgba(47, 227, 107, 0.2); }

/* ===== OS-választó (bejelentkezés) ===== */
.os-label { color: var(--dim); font-size: 11px; margin: 2px 0 6px; }
.os-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.os-opt {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #071017;
  color: var(--txt);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.os-opt .os-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.os-opt:hover { border-color: var(--cyan); }
.os-opt.sel { border-color: var(--green); box-shadow: 0 0 0 2px rgba(47,227,107,0.2); }

/* ===== Programablakok (az asztalon) ===== */
.win-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.win {
  position: absolute;
  width: 320px;
  height: 300px;
  min-height: 160px;
  max-width: calc(100vw - 40px);
  background: rgba(8, 15, 22, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  pointer-events: auto;
  display: flex; flex-direction: column;
}
.win-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px;
  background: #0a1219;
  border-bottom: 1px solid var(--line);
  cursor: move;
  border-radius: 8px 8px 0 0;
  user-select: none;
  flex: 0 0 auto;
}
.win-title { font-size: 12px; color: var(--cyan); font-weight: 700; }
.win-btns { display: flex; gap: 4px; }
.win-min { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 13px; padding: 0 2px; }
.win-min:hover { color: var(--cyan); }
.win-close { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 13px; }
.win-close:hover { color: var(--red); }
.win-resize {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  cursor: nwse-resize;
}
.win-resize::after {
  content: ''; position: absolute; right: 3px; bottom: 3px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
}
.win-body { flex: 1; min-height: 0; padding: 10px; overflow-y: auto; font-size: 12.5px; }
.app-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; gap: 10px; }
.app-row span { color: var(--dim); flex-shrink: 0; }
.app-row b { color: var(--txt); text-align: right; word-break: break-all; }
.app-sep { border-top: 1px solid var(--line); margin: 8px 0; }
.app-h { color: var(--cyan); font-weight: 700; font-size: 12px; margin: 8px 0 6px; }
.app-empty { color: var(--dim); font-size: 12px; }
.app-btn {
  padding: 5px 9px;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-family: inherit; font-size: 11.5px; cursor: pointer;
}
.app-btn:hover { border-color: var(--green); }
.app-btn.primary { background: var(--green); color: #04120a; border-color: var(--green); }
.app-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.prog-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.prog-row .pname { flex: 1; }
.prog-row .pbar { color: var(--green); font-size: 11px; }
.prog-row .pcost { color: var(--dim); font-size: 10px; }
.os-sel-btn {
  padding: 5px 8px; margin: 2px 3px 2px 0;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); font-family: inherit; font-size: 11.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.os-sel-btn:hover { border-color: var(--cyan); }
.os-sel-btn.cur { border-color: var(--green); }
.net-win-svg { width: 100%; height: 220px; display: block; }

/* ===== Tulajdonos / Admin program ===== */
.win-body input[type=number], .win-body input[type=text] {
  background: #0e1a22; border: 1px solid var(--line); color: var(--txt);
  border-radius: 4px; padding: 4px 6px; font-family: inherit; font-size: 11.5px; width: 90px;
}
.adm-list { display: flex; flex-direction: column; gap: 6px; }
.adm-card { border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: #0a1219; }
.adm-top { display: flex; justify-content: space-between; align-items: center; }
.adm-nick { color: var(--cyan); font-weight: 700; font-size: 12.5px; }
.adm-tag { font-size: 10px; color: #04120a; background: var(--green); border-radius: 3px; padding: 1px 5px; font-weight: 700; }
.adm-tag.admin { background: var(--red); color: #fff; }
.adm-detail { color: var(--dim); font-size: 11px; margin-top: 4px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.adm-inline { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.os-price { color: var(--dim); font-size: 10px; margin-left: 2px; }
.os-owned { color: var(--green); font-size: 10px; margin-left: 2px; }

/* ===== Fájlkezelő ===== */
.fm-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fm-row:hover { background: rgba(47, 227, 107, 0.06); }
.fm-name {
  flex: 1; min-width: 0; color: var(--txt); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fm-val { color: var(--dim); font-size: 11px; flex: 0 0 auto; }
.fm-view {
  margin-top: 8px; border: 1px solid var(--line); border-radius: 6px;
  background: #0a1219; overflow: hidden;
}
.fm-view-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px; font-size: 12px; color: var(--cyan); font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.fm-view-content {
  padding: 8px; font-size: 12px; color: var(--txt);
  white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow-y: auto;
}

/* ===== Boot képernyő ===== */
.boot {
  position: fixed; inset: 0; z-index: 300;
  background: radial-gradient(ellipse at 50% 20%, rgba(47,227,107,0.06), transparent 60%), #02060a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s;
}
.boot-done { opacity: 0; pointer-events: none; }
.boot-inner { width: min(560px, 90vw); }
.boot-log { min-height: 280px; font-size: 13px; line-height: 1.75; color: var(--dim); }
.boot-line.boot-title { color: var(--bootcolor, var(--green)); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.boot-bar { height: 8px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; }
#bootBarFill {
  height: 100%; width: 0%;
  background: var(--bootcolor, var(--green));
  box-shadow: 0 0 10px var(--bootcolor, var(--green));
  transition: width 0.2s;
}
.boot-skip { margin-top: 12px; font-size: 11px; color: var(--dim); text-align: center; }

/* ===== Tálca (taskbar) ===== */
.taskbar {
  position: relative; z-index: 2000;
  height: 40px; flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px;
  background: rgba(5, 10, 16, 0.93);
  border-top: 1px solid var(--line);
}
.tb-start-wrap { position: relative; flex: 0 0 auto; }
#tbStart {
  width: 36px; height: 28px; font-size: 16px;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 6px;
  color: var(--green); cursor: pointer;
}
#tbStart:hover { border-color: var(--cyan); }
.tb-windows { flex: 1; display: flex; gap: 5px; overflow-x: auto; align-items: center; }
.tb-win {
  padding: 5px 10px; font-size: 11.5px;
  background: #0e1a22; border: 1px solid var(--line); border-radius: 4px;
  color: var(--txt); cursor: pointer; font-family: inherit; white-space: nowrap;
}
.tb-win:hover { border-color: var(--cyan); }
.tb-win.active { border-color: var(--green); color: var(--green); }
.tb-win.min { opacity: 0.55; }
.tb-clock { flex: 0 0 auto; font-size: 11px; color: var(--dim); padding: 0 6px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.tb-clock #tbClockTime { font-size: 12px; color: var(--txt); }
.tb-clock #tbClockDate { font-size: 10px; color: var(--dim); }
.start-menu {
  position: absolute; bottom: 42px; left: 0; width: 210px;
  background: rgba(8, 15, 22, 0.98);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  max-height: 70vh; overflow-y: auto;
}
.start-os {
  font-size: 12px; color: var(--cyan); font-weight: 700;
  padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.start-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: var(--txt);
  font-family: inherit; font-size: 12.5px; padding: 6px 8px;
  cursor: pointer; border-radius: 4px;
}
.start-menu button:hover { background: rgba(47, 227, 107, 0.15); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050a0f; }
::-webkit-scrollbar-thumb { background: #1c2b38; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2c4355; }

@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .terminal-panel { border-right: none; border-bottom: 1px solid var(--line); height: 58vh; }
  .map-panel { height: 42vh; }
  .chat-panel { width: calc(100vw - 28px); }
}

/* ============================================================
   🎨 NAGY GRAFIKUS FRISSÍTÉS — 3. csomag
   (a régi szabályok alá kerül, így felülírja őket)
   ============================================================ */

:root {
  --glow: rgba(47, 227, 107, 0.55);
  --glow-cyan: rgba(79, 214, 255, 0.55);
  --glass: rgba(9, 16, 23, 0.82);
  --line-soft: rgba(255, 255, 255, 0.08);
}

/* ---- háttér + CRT hatás ---- */
body {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(47, 227, 107, 0.07), transparent 50%),
    radial-gradient(ellipse at 90% 110%, rgba(79, 214, 255, 0.06), transparent 55%),
    #04070b;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 5000;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.10) 0 1px, transparent 1px 3px);
  opacity: 0.16;
}

/* ---- Bejelentkező ---- */
.login-screen {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47, 227, 107, 0.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(79, 214, 255, 0.10), transparent 50%),
    linear-gradient(180deg, #071018, #02050a);
  animation: bgPulse 9s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
.login-card {
  background: linear-gradient(180deg, rgba(14, 24, 34, 0.96), rgba(7, 12, 18, 0.98));
  border: 1px solid rgba(47, 227, 107, 0.25);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 80px rgba(0,0,0,0.7), 0 0 44px rgba(47, 227, 107, 0.10);
}
.logo {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(47, 227, 107, 0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(79, 214, 255, 0.7)); }
}

/* ---- Gombok ---- */
.btn {
  background: linear-gradient(180deg, #12202b, #0c151d);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all 0.15s ease;
}
.btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(79, 214, 255, 0.25);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(180deg, #3ef07a, #23c95c);
  box-shadow: 0 0 18px rgba(47, 227, 107, 0.35);
}
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 0 26px rgba(47, 227, 107, 0.5); }

/* ---- HUD ---- */
.hud {
  background: linear-gradient(180deg, #0a141d, #071018);
  border-bottom: 1px solid rgba(47, 227, 107, 0.18);
  box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.hud-value { text-shadow: 0 0 10px rgba(47, 227, 107, 0.45); }
.hud-value.money { text-shadow: 0 0 10px rgba(255, 209, 102, 0.45); }
.hud-btn { background: linear-gradient(180deg, #12202b, #0b141d); transition: all 0.15s; }
.hud-btn:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(79, 214, 255, 0.3); }

/* ---- Panelek ---- */
.panel-title {
  background: linear-gradient(180deg, #0a141d, #081018);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.terminal { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.010) 0 1px, transparent 1px 26px), #04080d; }
.terminal .c-ok { text-shadow: 0 0 8px rgba(47, 227, 107, 0.35); }
.terminal .c-hl { text-shadow: 0 0 8px rgba(79, 214, 255, 0.35); }
.terminal .c-err { text-shadow: 0 0 8px rgba(255, 90, 90, 0.35); }
.prompt { text-shadow: 0 0 8px rgba(47, 227, 107, 0.6); }
#cmdInput { caret-color: var(--green); }

/* ---- Térkép ---- */
.map-node circle { transition: all 0.18s ease; }
.map-node:hover circle { filter: drop-shadow(0 0 6px rgba(255,255,255,0.5)); }
.map-edge { stroke: rgba(28, 43, 56, 0.9); }
.map-edge.online { stroke: rgba(42, 74, 58, 0.9); }
.map-info { background: #050b11; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---- Asztal ---- */
.desktop-bar {
  background: rgba(6, 11, 17, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.desktop-btn { transition: all 0.15s; }
.desktop-btn:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(79, 214, 255, 0.25); }
.dicon {
  background: linear-gradient(180deg, rgba(10, 17, 24, 0.72), rgba(6, 11, 17, 0.6));
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: all 0.16s ease;
}
.dicon:hover {
  background: linear-gradient(180deg, rgba(47, 227, 107, 0.22), rgba(47, 227, 107, 0.08));
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(47, 227, 107, 0.3);
  transform: translateY(-3px) scale(1.03);
}

/* ---- Programablakok ---- */
.win {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,0,0,0.4);
  animation: winIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes winIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.win-bar {
  background: linear-gradient(180deg, rgba(20, 34, 46, 0.9), rgba(10, 18, 26, 0.9));
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.win-title { text-shadow: 0 0 8px rgba(79, 214, 255, 0.35); }
.win-close:hover, .win-min:hover { text-shadow: 0 0 8px currentColor; }
.app-btn { transition: all 0.14s; }
.app-btn:hover { border-color: var(--green); box-shadow: 0 0 10px rgba(47, 227, 107, 0.25); }
.app-btn.primary { background: linear-gradient(180deg, #3ef07a, #23c95c); }
.adm-card { background: linear-gradient(180deg, #0c161f, #081018); }

/* ---- Értesítések / Chat / Zene (üveg-hatás) ---- */
.notif-panel, .chat-panel, .music-player, .start-menu {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}
.notif-head, .chat-head {
  background: linear-gradient(180deg, rgba(20, 34, 46, 0.8), rgba(10, 18, 26, 0.8));
}
.notif-item { transition: all 0.14s; }
.notif-item:hover { border-color: rgba(255,255,255,0.2); transform: translateX(2px); }

/* ---- Riasztások ---- */
.alert {
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.5);
}
.alert.err { box-shadow: 0 8px 26px rgba(0,0,0,0.5), 0 0 18px rgba(255, 90, 90, 0.2); }
.alert.ok { box-shadow: 0 8px 26px rgba(0,0,0,0.5), 0 0 18px rgba(47, 227, 107, 0.2); }

/* ---- Tálca ---- */
.taskbar {
  background: rgba(6, 11, 17, 0.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
#tbStart { background: linear-gradient(180deg, #12202b, #0b141d); }
.tb-win { background: linear-gradient(180deg, #12202b, #0b141d); transition: all 0.14s; }
.tb-win:hover { box-shadow: 0 0 10px rgba(79, 214, 255, 0.25); }
.start-menu button:hover { background: rgba(47, 227, 107, 0.16); }
.tb-clock #tbClockTime { text-shadow: 0 0 8px rgba(47, 227, 107, 0.3); }

/* ---- Cég-jelölés a térképen ---- */
.dot.company { background: #ffb84d; box-shadow: 0 0 8px #ffb84d; }

/* ---- Zene-lejátszó ---- */
.music-btn { background: linear-gradient(180deg, #12202b, #0b141d); transition: all 0.14s; }
.music-btn:hover { border-color: var(--green); box-shadow: 0 0 10px rgba(47, 227, 107, 0.3); }
.music-open { animation: floaty 3s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---- OS-választó ---- */
.os-opt { transition: all 0.14s; }
.os-opt:hover { transform: translateY(-1px); }
.os-opt.sel { box-shadow: 0 0 12px rgba(47, 227, 107, 0.35); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04080d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1c2b38, #14202b);
  border-radius: 5px;
  border: 2px solid #04080d;
}
::-webkit-scrollbar-thumb:hover { background: #2c4355; }
