/* ═══════════════════════════════════════════════════════════════════════
   VIRUS SIMULATOR — styles.css
   happystoner5420 Games!
═══════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; background: #000; }
.hidden { display: none !important; }

/* ── Utility ──────────────────────────────────────────────────────── */
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes fadeOut { from{opacity:1} to{opacity:0} }
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes shake   { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }
@keyframes spin    { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes glitch  { 0%{clip-path:inset(40% 0 61% 0)} 20%{clip-path:inset(92% 0 1% 0)} 40%{clip-path:inset(43% 0 1% 0)} 60%{clip-path:inset(25% 0 58% 0)} 80%{clip-path:inset(54% 0 7% 0)} 100%{clip-path:inset(58% 0 43% 0)} }
@keyframes matrixRain { 0%{transform:translateY(-100%)} 100%{transform:translateY(100vh)} }
@keyframes flicker { 0%,19%,21%,23%,25%,54%,56%,100%{opacity:1} 20%,24%,55%{opacity:0.3} }
@keyframes scanline { 0%{top:-10%} 100%{top:110%} }
@keyframes boom    { 0%{transform:scale(0);opacity:1} 60%{transform:scale(1.4);opacity:.9} 100%{transform:scale(2);opacity:0} }
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes typewriter { from{width:0} to{width:100%} }
@keyframes blink-cursor { 0%,100%{border-right-color:transparent} 50%{border-right-color:#00ff41} }
@keyframes rgbShift { 0%{filter:hue-rotate(0deg)} 100%{filter:hue-rotate(360deg)} }
@keyframes wiggle   { 0%,100%{transform:rotate(-3deg)} 50%{transform:rotate(3deg)} }
@keyframes explode  { 0%{transform:scale(1);opacity:1} 100%{transform:scale(20);opacity:0} }
@keyframes static-noise { 0%{background-position:0 0} 100%{background-position:1000px 1000px} }
@keyframes marquee  { from{transform:translateX(100%)} to{transform:translateX(-100%)} }

/* ══════════════════════════════════════════════════════════════════════
   MAIN MENU
══════════════════════════════════════════════════════════════════════ */
#main-menu {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
#menu-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,100,255,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(180,0,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 90%, rgba(255,0,80,.10) 0%, transparent 50%),
    linear-gradient(135deg, #050510 0%, #0a0015 50%, #050510 100%);
  animation: rgbShift 12s linear infinite;
}
#menu-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.18) 2px, rgba(0,0,0,.18) 4px);
  animation: flicker 8s infinite;
}
/* Animated particle dots in background */
#menu-bg::after {
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(0,255,100,.6) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 6s ease-in-out infinite;
  opacity: .15;
}
#menu-container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  animation: slideUp .8s ease;
}
#menu-logo { text-align: center; }
#logo-virus-icon {
  font-size: 72px; line-height: 1;
  filter: drop-shadow(0 0 20px #00ff41) drop-shadow(0 0 40px #00ff41);
  animation: pulse 2s ease-in-out infinite, spin 8s linear infinite;
  display: inline-block;
}
#logo-title {
  font-size: 72px; font-weight: 900; letter-spacing: 8px;
  color: #fff; text-shadow: 0 0 20px #0078d4, 0 0 40px #0078d4;
  line-height: 1; margin-top: 8px;
}
#logo-title span { color: #00ff41; text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41; }
#logo-sub {
  font-size: 13px; letter-spacing: 6px; color: #888; margin-top: 4px;
  text-transform: uppercase;
}
#logo-tagline {
  margin-top: 10px; color: #ff6b6b; font-style: italic; font-size: 14px;
  text-shadow: 0 0 10px rgba(255,107,107,.5);
}
#menu-nav { display: flex; flex-direction: column; gap: 12px; width: 480px; }
.menu-btn {
  width: 100%; padding: 16px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-left: 3px solid #0078d4;
  border-radius: 8px;
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s ease;
  position: relative; overflow: hidden;
}
.menu-btn::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,120,212,.15) 0%, transparent 100%);
  opacity:0; transition: opacity .2s;
}
.menu-btn:hover { border-left-color: #00ff41; background: rgba(0,255,65,.06); transform: translateX(4px); }
.menu-btn:hover::before { opacity:1; }
.menu-btn:hover .btn-icon { filter: drop-shadow(0 0 8px #00ff41); }
.menu-btn:active { transform: translateX(2px) scale(.99); }
.btn-icon { font-size: 22px; min-width: 30px; }
.btn-sub { font-size: 11px; color: #888; font-weight: 400; margin-left: auto; letter-spacing: 0; }
#btn-exit { border-left-color: #ff4444; }
#btn-exit:hover { border-left-color: #ff4444; background: rgba(255,68,68,.08); }
#menu-footer { font-size: 11px; color: #444; text-align: center; letter-spacing: 1px; }

/* ══════════════════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  animation: fadeIn .3s ease;
}
.modal-box {
  background: linear-gradient(135deg, #0d0d1a 0%, #12121f 100%);
  border: 1px solid rgba(0,120,212,.4);
  border-radius: 12px; padding: 36px 40px;
  max-width: 620px; width: 90%; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 0 60px rgba(0,120,212,.2), 0 30px 60px rgba(0,0,0,.6);
  animation: slideUp .3s ease;
}
.modal-box h2 { font-size: 28px; color: #fff; margin-bottom: 24px; text-align: center; letter-spacing: 2px; }
.modal-content { color: #ccc; line-height: 1.8; }
.modal-content p { margin-bottom: 16px; }
.modal-content ul { padding-left: 20px; }
.modal-content li { margin-bottom: 10px; }
.modal-close-btn {
  margin-top: 28px; width: 100%; padding: 14px;
  background: linear-gradient(90deg, #0078d4, #005a9e);
  border: none; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: all .2s;
}
.modal-close-btn:hover { background: linear-gradient(90deg, #00ff41, #00cc33); color: #000; }
/* Credits */
.credits-content { text-align: center; }
.credit-hero { font-size: 42px; font-weight: 900; color: #00ff41; text-shadow: 0 0 20px #00ff41; margin: 16px 0 8px; }
.credit-role { color: #888; font-style: italic; margin-bottom: 24px; }
.credit-spacer { height: 20px; }
.credit-section { font-size: 11px; letter-spacing: 3px; color: #0078d4; text-transform: uppercase; margin-bottom: 12px; }
.credit-item { color: #bbb; margin-bottom: 8px; }
.credit-legal { font-size: 11px; color: #555; line-height: 1.6; margin-top: 24px; padding-top: 16px; border-top: 1px solid #222; }

/* ══════════════════════════════════════════════════════════════════════
   GAME CONTAINER
══════════════════════════════════════════════════════════════════════ */
#game-container {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  animation: fadeIn .5s ease;
}
#win11-shell {
  width: 100%; height: 100%; position: relative;
  display: flex; flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════════════
   DESKTOP
══════════════════════════════════════════════════════════════════════ */
#desktop {
  flex: 1; position: relative; overflow: hidden;
  cursor: default; user-select: none;
}
#wallpaper-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: high-quality;
  filter: brightness(1.0) saturate(1.1);
}
#desktop-icons-grid {
  position: absolute; top: 16px; left: 16px;
  display: grid; grid-template-columns: repeat(2, 80px);
  gap: 8px; z-index: 40;
}
.desktop-icon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 6px;
  cursor: pointer; transition: background .15s;
  width: 80px;
}
.desktop-icon:hover { background: rgba(255,255,255,.12); }
.desktop-icon:active { background: rgba(255,255,255,.20); }
.desktop-icon.selected { background: rgba(0,120,212,.35); outline: 1px solid rgba(0,120,212,.7); }
.di-icon { font-size: 36px; line-height: 1; filter: drop-shadow(1px 2px 4px rgba(0,0,0,.6)); }
.di-label {
  font-size: 11px; color: #fff; text-align: center; line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.8);
  word-break: break-word; max-width: 76px;
}

/* ══════════════════════════════════════════════════════════════════════
   TASKBAR
══════════════════════════════════════════════════════════════════════ */
#taskbar {
  height: 48px; min-height: 48px;
  background: rgba(8,8,16,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
  padding: 0 12px; gap: 4px;
  position: relative; z-index: 100;
}
#taskbar-left { display: flex; align-items: center; gap: 4px; }
#taskbar-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; }
#taskbar-right { display: flex; align-items: center; gap: 6px; }
.taskbar-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer; transition: background .15s; position: relative;
}
.taskbar-icon:hover { background: rgba(255,255,255,.10); }
.taskbar-icon:active { background: rgba(255,255,255,.15); }
.taskbar-icon.active::after {
  content:''; position:absolute; bottom:2px; left:50%; transform:translateX(-50%);
  width:16px; height:3px; background:#0078d4; border-radius:2px;
}
#taskbar-systray { display: flex; align-items: center; gap: 4px; }
.tray-icon { font-size: 14px; cursor: pointer; padding: 6px 3px; border-radius: 4px; }
.tray-icon:hover { background: rgba(255,255,255,.10); }
#taskbar-clock {
  font-size: 12px; color: #fff; cursor: pointer; padding: 4px 8px;
  border-radius: 4px; text-align: right; line-height: 1.4;
  white-space: nowrap;
}
#taskbar-clock:hover { background: rgba(255,255,255,.10); }

/* ══════════════════════════════════════════════════════════════════════
   START MENU
══════════════════════════════════════════════════════════════════════ */
#start-menu {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  width: 640px; max-height: 600px;
  background: rgba(10,10,24,.92);
  backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  z-index: 200; padding: 24px; overflow-y: auto;
  animation: slideUp .25s ease;
}
#sm-top { margin-bottom: 20px; }
#sm-search {
  width: 100%; padding: 10px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px; color: #fff; font-size: 14px; outline: none;
}
#sm-search::placeholder { color: #888; }
#sm-search:focus { border-color: rgba(0,120,212,.6); background: rgba(255,255,255,.11); }
#sm-pinned-label, #sm-recommended-label {
  font-size: 12px; font-weight: 600; color: #aaa; letter-spacing: 1px;
  margin-bottom: 12px; text-transform: uppercase;
}
#sm-pinned {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 4px; margin-bottom: 20px;
}
.sm-pinned-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.sm-pinned-item:hover { background: rgba(255,255,255,.08); }
.sm-pinned-item .spi-icon { font-size: 28px; }
.sm-pinned-item .spi-label { font-size: 11px; color: #ccc; text-align: center; }
#sm-recommended { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 20px; }
.sm-rec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.sm-rec-item:hover { background: rgba(255,255,255,.08); }
.sm-rec-item .sri-icon { font-size: 22px; }
.sm-rec-item .sri-info .sri-name { font-size: 12px; color: #fff; }
.sm-rec-item .sri-info .sri-detail { font-size: 10px; color: #888; }
#sm-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
#sm-user { display: flex; align-items: center; gap: 12px; }
#sm-avatar { font-size: 28px; }
#sm-username { font-size: 14px; font-weight: 600; color: #fff; }
#sm-power {
  width: 36px; height: 36px; border-radius: 6px;
  background: transparent; border: none; color: #fff; font-size: 20px;
  cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center;
}
#sm-power:hover { background: rgba(255,255,255,.10); }

/* ══════════════════════════════════════════════════════════════════════
   CALENDAR FLYOUT
══════════════════════════════════════════════════════════════════════ */
#calendar-flyout {
  position: absolute; bottom: 52px; right: 0;
  width: 360px; background: rgba(10,10,24,.95);
  backdrop-filter: blur(40px); border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; padding: 20px; z-index: 200;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  animation: slideUp .2s ease;
  color: #fff;
}
#calendar-flyout .cal-month { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #0078d4; }
#calendar-flyout .cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 12px;
}
#calendar-flyout .cal-day-header { color: #888; text-align: center; padding: 4px; }
#calendar-flyout .cal-day {
  text-align: center; padding: 6px 4px; border-radius: 4px; cursor: pointer;
}
#calendar-flyout .cal-day:hover { background: rgba(255,255,255,.08); }
#calendar-flyout .cal-day.today { background: #0078d4; border-radius: 50%; color: #fff; }
#calendar-flyout .cal-day.other-month { color: #555; }

/* ══════════════════════════════════════════════════════════════════════
   SEARCH FLYOUT
══════════════════════════════════════════════════════════════════════ */
#search-flyout {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  width: 600px; background: rgba(10,10,24,.95);
  backdrop-filter: blur(40px); border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; z-index: 200;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  animation: slideUp .2s ease; overflow: hidden;
}
#search-flyout-inner { padding: 16px; }
#search-flyout-input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: #fff; font-size: 15px; outline: none;
  margin-bottom: 12px;
}
#search-flyout-input:focus { border-color: rgba(0,120,212,.6); }
#search-results { max-height: 300px; overflow-y: auto; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 6px; cursor: pointer; color: #fff;
  transition: background .15s;
}
.search-result-item:hover { background: rgba(255,255,255,.08); }

/* ══════════════════════════════════════════════════════════════════════
   APP WINDOWS
══════════════════════════════════════════════════════════════════════ */
#windows-layer { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.app-window {
  position: absolute; pointer-events: all;
  background: rgba(12,12,24,.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
  display: flex; flex-direction: column; min-width: 300px; min-height: 200px;
  overflow: hidden; animation: slideUp .2s ease;
  resize: both;
}
.app-window.maximized {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: calc(100% - 48px) !important;
  border-radius: 0; resize: none;
}
.win-titlebar {
  height: 32px; display: flex; align-items: center; padding: 0 12px;
  background: rgba(20,20,36,.8); cursor: move; flex-shrink: 0;
  gap: 8px; user-select: none;
}
.win-titlebar-icon { font-size: 14px; }
.win-titlebar-title { font-size: 12px; color: #ccc; flex: 1; }
.win-controls { display: flex; gap: 0; margin-left: auto; }
.win-btn {
  width: 46px; height: 32px; border: none; background: transparent;
  color: #ccc; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.win-btn:hover { background: rgba(255,255,255,.10); }
.win-btn.close-btn:hover { background: #c42b1c; color: #fff; }
.win-body { flex: 1; overflow: auto; padding: 16px; color: #ddd; font-size: 13px; position: relative; }

/* Specific app styles */
.notepad-body { font-family: 'Consolas', monospace; font-size: 14px; }
.notepad-textarea {
  width: 100%; height: 100%; background: #fff; color: #000;
  border: none; outline: none; font-family: 'Consolas', monospace; font-size: 13px;
  padding: 8px; resize: none; min-height: 300px;
}
.explorer-body { padding: 0; }
.explorer-toolbar { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; gap: 8px; }
.explorer-toolbar button {
  padding: 4px 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10); border-radius: 4px; color: #ccc; cursor: pointer;
  font-size: 12px;
}
.explorer-toolbar button:hover { background: rgba(255,255,255,.10); }
.explorer-nav { padding: 6px 12px; font-size: 12px; color: #888; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 8px; }
.explorer-nav span { color: #0078d4; cursor: pointer; }
.explorer-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; padding: 12px; }
.file-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 4px; cursor: pointer; transition: background .15s;
}
.file-item:hover { background: rgba(255,255,255,.08); }
.file-item .fi-icon { font-size: 32px; }
.file-item .fi-name { font-size: 10px; color: #ccc; text-align: center; word-break: break-word; }
.edge-body { padding: 0; display: flex; flex-direction: column; }
.edge-urlbar { display: flex; align-items: center; gap: 8px; padding: 8px; background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.08); }
.edge-url-input {
  flex: 1; padding: 6px 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10); border-radius: 20px;
  color: #fff; font-size: 13px; outline: none;
}
.edge-url-input:focus { border-color: rgba(0,120,212,.6); }
.edge-go { padding: 6px 12px; background: #0078d4; border: none; border-radius: 4px; color: #fff; cursor: pointer; }
.edge-page { flex: 1; background: #fff; color: #000; padding: 20px; font-size: 14px; overflow: auto; }
.settings-body { padding: 0; }
.settings-sidebar { width: 200px; float: left; border-right: 1px solid rgba(255,255,255,.08); height: 100%; padding: 8px; }
.settings-main { margin-left: 200px; padding: 16px; }
.settings-item { padding: 8px 12px; border-radius: 6px; cursor: pointer; color: #ccc; font-size: 13px; transition: background .15s; }
.settings-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.terminal-body { background: #0c0c0c; font-family: 'Consolas', monospace; font-size: 13px; color: #cccccc; padding: 8px; }
.terminal-output { white-space: pre-wrap; margin-bottom: 8px; }
.terminal-line { display: flex; align-items: center; gap: 4px; }
.terminal-prompt { color: #0078d4; }
.terminal-input { background: transparent; border: none; outline: none; color: #fff; font-family: inherit; font-size: 13px; flex: 1; }
.taskman-body { padding: 0; }
.taskman-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); }
.taskman-tab { padding: 8px 16px; font-size: 12px; color: #aaa; cursor: pointer; border-bottom: 2px solid transparent; }
.taskman-tab.active { color: #fff; border-bottom-color: #0078d4; }
.taskman-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.taskman-table th { text-align: left; padding: 8px 12px; color: #888; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600; }
.taskman-table td { padding: 6px 12px; color: #ccc; border-bottom: 1px solid rgba(255,255,255,.04); }
.taskman-table tr:hover td { background: rgba(255,255,255,.04); }
.cpu-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.cpu-bar-fill { height: 100%; background: #0078d4; border-radius: 4px; transition: width .5s; }

/* ══════════════════════════════════════════════════════════════════════
   NOTIFICATION
══════════════════════════════════════════════════════════════════════ */
#notification-area { position: absolute; top: 16px; right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.notification {
  background: rgba(12,12,24,.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 12px 16px; min-width: 320px; max-width: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: slideUp .3s ease; pointer-events: all;
  display: flex; gap: 12px; align-items: flex-start;
}
.notif-icon { font-size: 22px; flex-shrink: 0; }
.notif-body {}
.notif-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.notif-msg { font-size: 12px; color: #aaa; line-height: 1.4; }
.notif-app { font-size: 10px; color: #666; margin-bottom: 6px; }
.notif.fadeout { animation: fadeOut .5s ease forwards; }

/* ══════════════════════════════════════════════════════════════════════
   VIRUS PANEL
══════════════════════════════════════════════════════════════════════ */
#virus-panel-toggle {
  position: absolute; bottom: 60px; right: 16px; z-index: 300;
  padding: 10px 18px; background: linear-gradient(135deg, #8b0000, #cc0000);
  border: 1px solid rgba(255,100,100,.3); border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; box-shadow: 0 0 20px rgba(200,0,0,.4);
  transition: all .2s; animation: pulse 3s ease-in-out infinite;
}
#virus-panel-toggle:hover { background: linear-gradient(135deg, #cc0000, #ff0000); box-shadow: 0 0 30px rgba(255,0,0,.6); transform: scale(1.05); }
#return-menu-btn {
  position: absolute; bottom: 60px; left: 16px; z-index: 300;
  padding: 10px 18px; background: rgba(20,20,40,.85);
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  color: #ccc; font-size: 13px; font-weight: 600; letter-spacing: .5px;
  cursor: pointer; backdrop-filter: blur(10px);
  transition: all .2s;
}
#return-menu-btn:hover { background: rgba(40,40,70,.9); color: #fff; border-color: rgba(255,255,255,.3); }
#virus-panel {
  position: absolute; right: 16px; bottom: 112px;
  width: 520px; max-height: 75vh;
  background: rgba(8,8,18,.97); backdrop-filter: blur(30px);
  border: 1px solid rgba(200,0,0,.3); border-radius: 12px;
  box-shadow: 0 0 40px rgba(200,0,0,.15), 0 20px 50px rgba(0,0,0,.7);
  z-index: 300; display: flex; flex-direction: column;
  animation: slideUp .25s ease;
}
#vp-header { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
#vp-title { font-size: 16px; font-weight: 800; color: #ff4444; letter-spacing: 2px; }
#vp-subtitle { font-size: 11px; color: #888; margin-bottom: 10px; }
#vp-search {
  width: 100%; padding: 8px 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10); border-radius: 6px;
  color: #fff; font-size: 12px; outline: none;
}
#vp-search:focus { border-color: rgba(255,68,68,.5); }
#vp-categories { display: flex; gap: 6px; padding: 10px 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.06); }
.vp-cat {
  padding: 4px 10px; border-radius: 20px; font-size: 11px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  color: #aaa; transition: all .15s;
}
.vp-cat:hover, .vp-cat.active { background: rgba(255,68,68,.2); border-color: rgba(255,68,68,.4); color: #ff8888; }
#vp-list { flex: 1; overflow-y: auto; padding: 8px; }
#vp-list::-webkit-scrollbar { width: 6px; }
#vp-list::-webkit-scrollbar-track { background: transparent; }
#vp-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.virus-item {
  padding: 10px 12px; border-radius: 6px;
  border: 1px solid transparent; transition: all .15s; margin-bottom: 2px;
  display: flex; align-items: center; gap: 10px;
}
.virus-item:hover { background: rgba(255,255,255,.05); border-color: rgba(255,68,68,.2); }
.virus-item.selected { background: rgba(255,68,68,.12); border-color: rgba(255,68,68,.4); }
.vi-emoji { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.vi-info {}
.vi-name { font-size: 13px; font-weight: 600; color: #fff; }
.vi-desc { font-size: 11px; color: #777; margin-top: 2px; line-height: 1.4; }
.vi-tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.vi-tag {
  font-size: 9px; padding: 2px 6px; border-radius: 3px;
  background: rgba(255,255,255,.06); color: #888; letter-spacing: .5px;
}
.vi-tag.danger { background: rgba(255,0,0,.15); color: #ff6666; }
.vi-tag.funny  { background: rgba(0,200,100,.12); color: #66ff99; }
.vi-tag.chaos  { background: rgba(150,0,255,.15); color: #cc88ff; }
.vi-deploy-btn {
  margin-left: auto;
  padding: 6px 12px;
  background: linear-gradient(90deg, #cc0000, #ff4444);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vi-deploy-btn:hover {
  background: linear-gradient(90deg, #ff0000, #ff6666);
  box-shadow: 0 0 12px rgba(255,0,0,.4);
  transform: scale(1.05);
}
#vp-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); display: flex; gap: 8px; align-items: center; }
#vp-count { font-size: 11px; color: #666; flex: 1; }
#vp-clear {
  padding: 8px 16px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10); border-radius: 6px;
  color: #ccc; font-size: 12px; cursor: pointer; transition: all .2s; font-weight: 600;
}
#vp-clear:hover { background: rgba(255,255,255,.10); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════
   ACTIVE INFECTIONS
══════════════════════════════════════════════════════════════════════ */
#active-infections {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  z-index: 200; pointer-events: none; max-width: 60vw;
}
.infection-badge {
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: rgba(200,0,0,.4); border: 1px solid rgba(255,50,50,.4);
  color: #ff9999; backdrop-filter: blur(8px);
  animation: pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════════
   VIRUS VISUAL EFFECTS
══════════════════════════════════════════════════════════════════════ */
#virus-overlays { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }

/* BSOD */
#bsod-screen {
  position: absolute; inset: 0; z-index: 9000;
  background: #0078d4; color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 10% 12%;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn .5s ease;
}
.bsod-emoji { font-size: 100px; margin-bottom: 20px; }
.bsod-title { font-size: 38px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.bsod-msg { font-size: 18px; margin-bottom: 32px; line-height: 1.6; max-width: 600px; opacity: .9; }
.bsod-progress { width: 60px; height: 60px; border: 6px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
.bsod-code { position: absolute; bottom: 40px; left: 12%; font-size: 13px; opacity: .7; line-height: 1.8; font-family: 'Consolas', monospace; }
.bsod-qr { position: absolute; bottom: 40px; right: 12%; font-size: 70px; opacity: .6; }

/* Matrix rain */
.matrix-canvas { position: absolute; inset: 0; opacity: .7; }

/* Screen glitch */
.glitch-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: inherit;
}
.glitch-bar {
  position: absolute; left: 0; right: 0; height: 3px;
  background: rgba(0,255,65,.8); animation: matrixRain 0.08s linear infinite;
}

/* Static noise */
.static-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: .25; mix-blend-mode: overlay;
  animation: static-noise .1s steps(1) infinite;
}

/* Pixel corruption */
.pixel-corrupt {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent 0px, transparent 3px, rgba(255,0,0,.1) 3px, rgba(255,0,0,.1) 4px
  ), repeating-linear-gradient(
    90deg, transparent 0px, transparent 3px, rgba(0,0,255,.08) 3px, rgba(0,0,255,.08) 4px
  );
  animation: flicker .2s steps(1) infinite;
}

/* File deletion effect */
.deletion-text {
  position: absolute; font-family: 'Consolas', monospace; font-size: 12px;
  color: #ff4444; pointer-events: none; animation: fadeOut 3s ease forwards;
  text-shadow: 0 0 8px rgba(255,0,0,.8);
}

/* Emoji rain */
.emoji-rain-item {
  position: absolute; font-size: 28px; pointer-events: none;
  animation: matrixRain linear forwards;
  top: -50px;
}

/* Crypto ransom overlay */
.ransom-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 500; animation: fadeIn .5s ease;
}
.ransom-title { font-size: 48px; font-weight: 900; color: #ff0000; text-shadow: 0 0 30px #ff0000; letter-spacing: 3px; margin-bottom: 16px; animation: pulse 1s ease-in-out infinite; }
.ransom-lock { font-size: 100px; animation: wiggle 1s ease-in-out infinite; }
.ransom-msg { font-size: 16px; color: #ff8888; text-align: center; max-width: 500px; line-height: 1.8; margin: 20px 0; }
.ransom-timer { font-size: 48px; font-weight: 900; color: #ff4444; font-family: 'Consolas', monospace; }
.ransom-btc { font-size: 22px; color: #ffa500; margin-top: 16px; }
.ransom-wallet { font-size: 12px; color: #666; font-family: 'Consolas', monospace; margin-top: 8px; }

/* Fireworks */
.firework {
  position: absolute; pointer-events: none;
  font-size: 36px; animation: boom .8s ease-out forwards;
}

/* Popup spam */
.spam-popup {
  position: absolute; background: #ece9d8;
  border: 2px solid #0054a6; border-radius: 4px;
  padding: 12px 16px; min-width: 280px; max-width: 360px;
  box-shadow: 3px 3px 6px rgba(0,0,0,.5); z-index: 600;
  font-family: 'Tahoma', sans-serif; font-size: 12px;
  animation: slideUp .2s ease;
  cursor: move;
}
.spam-popup-header {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #0054a6, #3a93f0);
  margin: -12px -16px 10px; padding: 4px 8px;
  border-radius: 2px 2px 0 0; color: #fff; font-size: 11px; font-weight: bold;
}
.spam-popup-close {
  margin-left: auto; cursor: pointer; background: rgba(255,255,255,.2);
  border: none; color: #fff; width: 16px; height: 14px; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.spam-popup-close:hover { background: #c00; }
.spam-popup-icon { font-size: 28px; float: left; margin: 0 10px 0 0; }
.spam-popup-msg { color: #000; line-height: 1.4; }
.spam-popup-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.spam-btn {
  padding: 3px 12px; background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
  border: 1px solid #999; border-radius: 2px; font-size: 11px; cursor: pointer;
}
.spam-btn:hover { background: linear-gradient(180deg, #e8e8e8 0%, #c8c8c8 100%); }

/* Spinning desktop */
.desktop-spinning { animation: spin 4s linear infinite !important; transform-origin: center center; }

/* Color invert */
.invert-effect { filter: invert(100%) !important; }

/* RGB chaos */
.rgb-chaos { animation: rgbShift .5s linear infinite !important; filter: saturate(3) !important; }

/* Earthquake */
.earthquake { animation: shake .1s linear infinite !important; }

/* Upside down */
.upsidedown { transform: rotate(180deg) !important; transform-origin: center center; }

/* Cursor trail */
.cursor-trail-dot { position: fixed; pointer-events: none; width: 8px; height: 8px; border-radius: 50%; z-index: 9999; animation: fadeOut .6s ease forwards; }

/* Water ripple */
.ripple-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(0,150,255,.6);
  animation: boom 1s ease-out forwards;
}

/* Sticky note spam */
.sticky-note {
  position: absolute; width: 180px; min-height: 120px;
  background: #fef3a0; border: 1px solid #e6d900;
  padding: 10px; font-family: 'Segoe UI', sans-serif;
  font-size: 12px; color: #333; box-shadow: 2px 3px 8px rgba(0,0,0,.3);
  z-index: 400; cursor: move; border-radius: 1px;
  animation: slideUp .2s ease;
}
.sticky-note-header { font-weight: bold; margin-bottom: 6px; font-size: 11px; color: #666; display: flex; justify-content: space-between; }
.sticky-note-close { cursor: pointer; }

/* Magnifier */
.magnifier-effect {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.5);
  overflow: hidden; pointer-events: none; z-index: 600;
  box-shadow: 0 0 20px rgba(0,0,0,.5);
}

/* Cat walk */
.walking-cat {
  position: absolute; font-size: 40px; pointer-events: none; z-index: 500;
  animation: float 1s ease-in-out infinite;
  transition: left .05s linear;
}

/* Nyan effect */
.nyan-trail {
  position: absolute; pointer-events: none; z-index: 498;
  height: 20px; animation: fadeOut 1s ease forwards;
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff);
  border-radius: 2px;
}

/* Scanner line */
.scanner-line {
  position: absolute; left: 0; right: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,.8), transparent);
  box-shadow: 0 0 12px rgba(0,255,65,.8);
  animation: scanline 2s linear infinite;
  z-index: 100;
}

/* Pacman */
.pacman-entity { position: absolute; font-size: 32px; pointer-events: none; z-index: 500; }

/* Virus text flood */
.flood-text {
  position: absolute; font-family: 'Consolas', monospace; font-size: 11px;
  color: #00ff41; pointer-events: none; white-space: nowrap; z-index: 50;
  text-shadow: 0 0 6px rgba(0,255,65,.7); opacity: .7;
  animation: fadeIn .3s ease;
}

/* Screensaver bouncin */
.bouncing-logo { position: absolute; font-size: 36px; pointer-events: none; z-index: 50; transition: none; }

/* Confetti */
.confetti-bit {
  position: absolute; width: 8px; height: 8px; pointer-events: none;
  animation: matrixRain linear forwards; z-index: 500; border-radius: 1px;
}

/* Power menu */
#power-menu {
  position: absolute; bottom: 52px; left: 0; right: 0; margin: auto;
  width: 200px; background: rgba(10,10,24,.95);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px; padding: 8px; z-index: 250;
  box-shadow: 0 8px 30px rgba(0,0,0,.6); animation: slideUp .2s ease;
}
.power-option {
  padding: 10px 14px; border-radius: 6px; cursor: pointer; color: #ccc;
  font-size: 13px; transition: background .15s; display: flex; gap: 10px; align-items: center;
}
.power-option:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Context menu */
#context-menu {
  position: fixed; background: rgba(12,12,24,.97);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 6px; z-index: 9000;
  box-shadow: 0 8px 30px rgba(0,0,0,.6); min-width: 200px;
  animation: fadeIn .1s ease;
}
.ctx-item {
  padding: 8px 12px; border-radius: 4px; cursor: pointer;
  color: #ccc; font-size: 13px; transition: background .1s;
  display: flex; align-items: center; gap: 10px;
}
.ctx-item:hover { background: rgba(0,120,212,.3); color: #fff; }
.ctx-separator { height: 1px; background: rgba(255,255,255,.08); margin: 4px 0; }

/* Screensaver */
#screensaver {
  position: absolute; inset: 0; z-index: 800; background: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ss-content { font-size: 60px; text-align: center; animation: float 3s ease-in-out infinite; }
.ss-label { font-size: 16px; color: #444; margin-top: 12px; }

/* Error dialog */
.error-dialog {
  position: absolute; background: #f0f0f0; border: 1px solid #999;
  border-radius: 4px; box-shadow: 4px 4px 12px rgba(0,0,0,.5);
  min-width: 320px; z-index: 700; font-family: 'Segoe UI', sans-serif;
  animation: slideUp .2s ease; cursor: move;
}
.error-dialog-header {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #ece9d8 0%, #d4cfb8 100%);
  padding: 4px 8px; border-radius: 4px 4px 0 0;
  border-bottom: 1px solid #999; font-size: 11px; font-weight: bold; color: #000;
}
.error-dialog-icon { font-size: 14px; }
.error-dialog-close { margin-left: auto; }
.error-dialog-close button {
  width: 17px; height: 16px; background: linear-gradient(180deg, #f0f0f0, #d8d8d8);
  border: 1px solid #999; border-radius: 2px; cursor: pointer; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.error-dialog-body { padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; }
.error-dialog-symbol { font-size: 36px; }
.error-dialog-text { font-size: 12px; color: #000; line-height: 1.5; }
.error-dialog-btns { display: flex; gap: 6px; justify-content: flex-end; padding: 0 16px 14px; }
.error-dialog-btns button {
  min-width: 75px; padding: 4px 14px;
  background: linear-gradient(180deg, #f0f0f0, #d4d4d4);
  border: 1px solid #999; border-radius: 2px; font-size: 12px; cursor: pointer;
}
.error-dialog-btns button:hover { background: linear-gradient(180deg, #e8e8e8, #c8c8c8); }

/* Fullscreen text takeover */
.takeover-screen {
  position: absolute; inset: 0; z-index: 800; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Consolas', monospace;
}

/* Progress bar popup */
.progress-popup {
  position: absolute; background: #ece9d8; border: 1px solid #999;
  border-radius: 4px; padding: 0; min-width: 300px; z-index: 600;
  box-shadow: 4px 4px 8px rgba(0,0,0,.4); font-family: 'Segoe UI', sans-serif;
  animation: slideUp .2s ease; cursor: move;
}
.progress-popup-header {
  background: linear-gradient(180deg, #ece9d8, #d4cfb8);
  padding: 4px 8px; border-bottom: 1px solid #bbb;
  font-size: 11px; font-weight: bold; display: flex; justify-content: space-between;
}
.progress-popup-body { padding: 14px 16px; }
.progress-label { font-size: 12px; color: #000; margin-bottom: 8px; }
.progress-bar-container { height: 18px; background: #fff; border: 1px solid #999; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #0054e3, #5ba2f5); transition: width .1s; }
.progress-pct { font-size: 11px; color: #666; text-align: right; margin-top: 4px; }

/* Scrollbar global style */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
