/* ============================================================
   HACK THE PLANET — styles.css
   happystoner5420 Games
   Windows 11 Fluent dark theme, 100% offline, zero assets.
   ============================================================ */
:root {
  --accent: #00d4ff;
  --accent2: #00ffc8;
  --danger: #ff4d6d;
  --warn: #ffb84d;
  --ok: #4dff9d;
  --gold: #ffd24d;
  --purple: #c74dff;
  --bg0: #0a0e16;
  --bg1: #12161f;
  --bg2: #1a2029;
  --bg3: #232a35;
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.16);
  --text: #e8edf4;
  --text2: #aab3c0;
  --text3: #6b7686;
  --acrylic: rgba(24, 28, 36, 0.82);
  --acrylic2: rgba(30, 35, 45, 0.88);
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "Cascadia Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: var(--font); color: var(--text); background: #000; }
#app { position: fixed; inset: 0; overflow: hidden; }
canvas { display: block; }
input, textarea, select { user-select: text; font-family: var(--font); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); background-clip: content-box; }
button { font-family: var(--font); cursor: pointer; }
.hidden { display: none !important; }

/* ============ MAIN MENU ============ */
#menu-screen { position: absolute; inset: 0; z-index: 60; }
#menu-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
#menu-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
#menu-title {
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
  background: linear-gradient(120deg, #00ffd0, #00d4ff, #c74dff, #00ffd0);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleFlow 8s linear infinite, glitchTitle 6s steps(1) infinite;
  text-shadow: 0 0 60px rgba(0, 255, 208, 0.35);
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.4));
}
@keyframes titleFlow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes glitchTitle {
  0%, 94%, 100% { transform: translate(0); }
  95% { transform: translate(-3px, 1px) skewX(2deg); }
  96% { transform: translate(3px, -1px) skewX(-2deg); }
  97% { transform: translate(-2px, 0) skewX(1deg); }
  98% { transform: translate(2px, 1px); }
}
#menu-sub { color: var(--text3); letter-spacing: 4px; font-size: 13px; text-transform: uppercase; }
#menu-tagline { color: var(--accent); font-family: var(--mono); font-size: 13px; opacity: 0.8; text-shadow: 0 0 12px rgba(0, 255, 208, 0.6); }
#menu-buttons { display: flex; flex-direction: column; gap: 12px; width: min(340px, 80vw); }
.menu-btn {
  position: relative;
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text);
  background: var(--acrylic);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  transition: all 0.18s ease;
  overflow: hidden;
}
.menu-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 255, 208, 0.12) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.menu-btn:hover { border-color: var(--accent); box-shadow: 0 0 22px rgba(0, 212, 255, 0.25), inset 0 0 22px rgba(0, 212, 255, 0.05); transform: translateY(-1px); }
.menu-btn:hover::before { transform: translateX(120%); }
.menu-btn.primary {
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.22), rgba(0, 255, 200, 0.18));
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.2);
}
.menu-btn.primary:hover { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); }
.menu-btn.danger:hover { border-color: var(--danger); box-shadow: 0 0 22px rgba(255, 77, 109, 0.25); }
#menu-credit { position: absolute; bottom: 26px; color: var(--text3); font-size: 12px; letter-spacing: 1px; }
#menu-credit b { color: var(--text2); }
#menu-hint { position: absolute; bottom: 60px; color: var(--text3); font-size: 11px; font-family: var(--mono); }

/* ============ OVERLAYS (how to / credits) ============ */
.overlay {
  position: absolute; inset: 0; z-index: 90;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
}
.overlay-panel {
  width: min(760px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--acrylic2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 30px 34px;
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 212, 255, 0.08);
  animation: popIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.overlay-panel h2 { font-size: 26px; margin-bottom: 18px; color: var(--accent); letter-spacing: 1px; }
.overlay-panel h3 { color: var(--text); margin: 18px 0 8px; font-size: 15px; }
.overlay-panel p, .overlay-panel li { color: var(--text2); font-size: 14px; line-height: 1.6; }
.overlay-panel ul { padding-left: 20px; }
.overlay-panel .hl { color: var(--accent); font-weight: 600; }
.overlay-panel .kbd { background: var(--bg3); border: 1px solid var(--border2); border-radius: 5px; padding: 1px 7px; font-family: var(--mono); font-size: 12px; color: var(--text); }
.overlay-close { float: right; }
.credits-art { text-align: center; padding: 20px 0; }
.credits-art .big { font-size: 34px; }
.credits-name { font-size: 22px; font-weight: 800; background: linear-gradient(120deg, #00ffd0, #c74dff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ BOOT / LOCK / EXIT ============ */
#boot-screen, #lock-screen, #exit-screen { position: absolute; inset: 0; z-index: 80; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; }
#boot-logo { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: 2px; display: flex; align-items: center; gap: 14px; }
#boot-logo .sq { width: 22px; height: 22px; background: linear-gradient(135deg, #00b4ff, #0060c8); border-radius: 4px; }
.boot-spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.12); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#boot-status { color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 12px; }
#lock-screen { background: linear-gradient(160deg, #0a1228 0%, #0f1e3a 45%, #081020 100%); }
#lock-time { font-size: clamp(60px, 12vw, 130px); font-weight: 200; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
#lock-date { font-size: 22px; color: rgba(255, 255, 255, 0.8); margin-top: -8px; }
.lock-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 40px; border: 3px solid rgba(255, 255, 255, 0.3); box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); margin-top: 14px; }
#lock-user { color: #fff; font-size: 20px; margin-top: 12px; }
#lock-signin {
  margin-top: 16px;
  padding: 12px 40px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
#lock-signin:hover { background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); }
#exit-screen { background: #000; }
#exit-screen .txt { color: #c8cdd6; font-size: 16px; letter-spacing: 1px; text-align: center; line-height: 2; }
#exit-screen .txt b { color: #fff; }
#exit-screen .mono { color: #4a5568; font-family: var(--mono); font-size: 12px; }

/* ============ DESKTOP ============ */
#desktop { position: absolute; inset: 0; z-index: 20; }
#wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; }
#desktop-icons { position: absolute; top: 12px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.dicon {
  width: 86px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.12s;
}
.dicon:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.08); }
.dicon img { width: 42px; height: 42px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.dicon span { color: #eef2f8; font-size: 12px; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
#news-ticker {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  width: min(760px, 92vw);
  background: var(--acrylic);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  padding: 9px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
#news-ticker .label { color: var(--danger); font-weight: 800; font-size: 11px; letter-spacing: 2px; white-space: nowrap; }
#news-ticker .text { color: var(--text2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ WINDOWS ============ */
#windows-layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.win {
  position: absolute;
  min-width: 320px; min-height: 200px;
  background: var(--acrylic2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 255, 0.04);
  backdrop-filter: blur(44px) saturate(1.6);
  -webkit-backdrop-filter: blur(44px) saturate(1.6);
  display: flex; flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  animation: winIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes winIn { from { transform: scale(0.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.win.minimized { display: none; }
.win.maximized { border-radius: 0; }
.win.focused { border-color: rgba(0, 212, 255, 0.4); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(0, 212, 255, 0.1); }
.win-titlebar {
  height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 14px;
  cursor: default;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent);
  border-bottom: 1px solid var(--border);
}
.win-titlebar .icon { width: 18px; height: 18px; }
.win-titlebar .title { font-size: 13px; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-controls { display: flex; gap: 2px; }
.win-ctl {
  width: 42px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--text2); font-size: 12px;
  border-radius: 6px; transition: all 0.12s;
}
.win-ctl:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.win-ctl.close:hover { background: #e81123; color: #fff; }
.win-body { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.win-body.scroll { overflow-y: auto; }
.win-drag { cursor: default; }

/* ============ TASKBAR ============ */
#taskbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 52px; z-index: 50;
  background: var(--acrylic);
  backdrop-filter: blur(50px) saturate(1.7);
  -webkit-backdrop-filter: blur(50px) saturate(1.7);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 10px;
}
#tb-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; }
.tb-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 8px;
  transition: all 0.12s; position: relative;
}
.tb-btn:hover { background: rgba(255, 255, 255, 0.08); }
.tb-btn.active { background: rgba(255, 255, 255, 0.1); }
.tb-btn img { width: 26px; height: 26px; }
.tb-btn .dot { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
#tb-tray { display: flex; align-items: center; gap: 8px; }
#tb-tray .icon { font-size: 15px; opacity: 0.85; }
#tb-clock { text-align: right; padding: 0 8px; line-height: 1.25; }
#tb-clock .t { font-size: 12px; color: var(--text); font-weight: 600; }
#tb-clock .d { font-size: 11px; color: var(--text3); }
#risk-widget {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; margin-right: 6px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
}
#risk-widget .shield { font-size: 15px; }
#risk-widget .meta { line-height: 1.1; }
#risk-widget .meta .lbl { font-size: 9px; color: var(--text3); letter-spacing: 1px; }
#risk-bar { width: 70px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
#risk-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--danger)); transition: width 0.5s ease; }

/* ============ START MENU ============ */
#start-menu {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%) scale(0.96);
  width: min(620px, 94vw);
  background: var(--acrylic2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  backdrop-filter: blur(60px) saturate(1.8);
  -webkit-backdrop-filter: blur(60px) saturate(1.8);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 212, 255, 0.06);
  padding: 26px;
  z-index: 55;
  opacity: 0; pointer-events: none;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
#start-menu.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
#start-search {
  width: 100%; padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text); font-size: 14px; outline: none;
  margin-bottom: 18px;
}
#start-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2); }
#start-pinned { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.start-app {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; background: transparent; transition: all 0.12s;
}
.start-app:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--border); }
.start-app img { width: 34px; height: 34px; }
.start-app span { font-size: 11px; color: var(--text2); text-align: center; }
#start-recent { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 18px; }
#start-recent .h { font-size: 11px; color: var(--text3); letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
#start-recent .items { color: var(--text2); font-size: 12px; line-height: 2; }
#start-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }
#start-user { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 13px; font-weight: 600; }
#start-user .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 14px; }
#start-footer-actions { display: flex; align-items: center; gap: 6px; }
#start-menu-btn {
  display: flex; align-items: center;
  height: 42px; padding: 0 14px;
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text2);
  font-size: 13px; font-weight: 600;
  transition: all 0.12s;
}
#start-menu-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--accent); border-color: var(--border2); }
#power-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: transparent; color: var(--text2); font-size: 17px; transition: all 0.12s; }
#power-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
#power-menu {
  position: absolute; bottom: 100px; right: 20px;
  background: var(--acrylic2);
  border: 1px solid var(--border2); border-radius: 12px;
  backdrop-filter: blur(40px);
  padding: 8px; z-index: 56;
  display: none; min-width: 190px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
#power-menu.open { display: block; animation: popIn 0.18s ease; }
.pm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; width: 100%; border: none; background: transparent;
  color: var(--text); font-size: 13px; border-radius: 8px; transition: all 0.1s;
}
.pm-item:hover { background: rgba(255, 255, 255, 0.08); }
.pm-item.danger:hover { background: rgba(255, 77, 109, 0.15); color: var(--danger); }

/* ============ FLUENT BUTTONS / INPUTS ============ */
.fbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text); font-size: 13px; font-weight: 600;
  transition: all 0.13s ease;
}
.fbtn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border2); }
.fbtn:active { transform: scale(0.97); }
.fbtn.accent { background: linear-gradient(120deg, rgba(0, 212, 255, 0.25), rgba(0, 255, 200, 0.2)); border-color: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(0, 212, 255, 0.18); }
.fbtn.accent:hover { box-shadow: 0 0 28px rgba(0, 212, 255, 0.35); }
.fbtn.danger { color: var(--danger); border-color: rgba(255, 77, 109, 0.4); }
.fbtn.danger:hover { background: rgba(255, 77, 109, 0.14); }
.fbtn.ok { color: var(--ok); border-color: rgba(77, 255, 157, 0.4); }
.fbtn.ok:hover { background: rgba(77, 255, 157, 0.12); }
.fbtn.gold { color: var(--gold); border-color: rgba(255, 210, 77, 0.4); }
.fbtn.gold:hover { background: rgba(255, 210, 77, 0.12); }
.fbtn.sm { padding: 5px 11px; font-size: 12px; }
.fbtn.lg { padding: 13px 24px; font-size: 15px; }
.fbtn:disabled { opacity: 0.4; cursor: not-allowed; }
.finput, .fselect {
  width: 100%; padding: 9px 12px;
  border-radius: 7px; border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text); font-size: 13px; outline: none;
  transition: all 0.13s;
}
.finput:focus, .fselect:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18); }

/* ============ HUB ============ */
.hub { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.hub-top { display: flex; gap: 12px; padding: 14px 16px 0; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 130px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  position: relative; overflow: hidden;
}
.stat-card .lbl { font-size: 10px; color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase; }
.stat-card .val { font-size: 20px; font-weight: 700; margin-top: 3px; font-family: var(--mono); }
.stat-card .val.money { color: var(--ok); text-shadow: 0 0 16px rgba(77, 255, 157, 0.4); }
.stat-card .val.risk { color: var(--warn); }
.stat-card .val.risk.hot { color: var(--danger); animation: blink 0.8s steps(2) infinite; }
.stat-card .val.purp { color: var(--purple); }
.stat-card .val.cyan { color: var(--accent); }
.stat-card .val.gold { color: var(--gold); }
.stat-card .glow { position: absolute; top: -40px; right: -40px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%); }
.hub-grid {
  flex: 1; overflow-y: auto;
  padding: 14px 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  align-content: start;
}
.hub-btn {
  position: relative;
  min-height: 110px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  padding: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  color: var(--text); text-align: left;
  transition: all 0.15s ease;
  overflow: hidden;
}
.hub-btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 212, 255, 0.15); }
.hub-btn .ico { font-size: 26px; filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
.hub-btn .t { font-size: 15px; font-weight: 700; }
.hub-btn .d { font-size: 11px; color: var(--text3); line-height: 1.4; }
.hub-btn .shine { position: absolute; top: 0; right: 0; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 70%); }
.hub-btn.small { min-height: 64px; flex-direction: row; align-items: center; }
.hub-btn.small .ico { font-size: 22px; }
.hub-btn.small .t { font-size: 14px; }
.hub-footer { padding: 8px 16px; border-top: 1px solid var(--border); color: var(--text3); font-size: 11px; display: flex; justify-content: space-between; }
.hub-footer .mono { font-family: var(--mono); }

/* ============ TARGET LISTS / CARDS ============ */
.target-list { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; }
.target-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer; transition: all 0.12s;
}
.target-card:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--border2); transform: translateX(2px); }
.target-card.selected { border-color: var(--accent); background: rgba(0, 212, 255, 0.07); box-shadow: 0 0 18px rgba(0, 212, 255, 0.12); }
.target-card img.av { width: 40px; height: 40px; border-radius: 10px; }
.target-card .info { flex: 1; min-width: 0; }
.target-card .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-card .sub { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.target-card .sub .loc { color: var(--text2); }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid; white-space: nowrap;
}
.badge.person { color: #4cc2ff; border-color: rgba(76, 194, 255, 0.4); background: rgba(76, 194, 255, 0.08); }
.badge.hospital { color: #ff6b9d; border-color: rgba(255, 107, 157, 0.4); background: rgba(255, 107, 157, 0.08); }
.badge.corp { color: #ffb347; border-color: rgba(255, 179, 71, 0.4); background: rgba(255, 179, 71, 0.08); }
.badge.bank { color: #4dd2ff; border-color: rgba(77, 210, 255, 0.4); background: rgba(77, 210, 255, 0.08); }
.badge.gov { color: #9dff7d; border-color: rgba(157, 255, 125, 0.4); background: rgba(157, 255, 125, 0.08); }
.badge.sec { color: var(--warn); border-color: rgba(255, 184, 77, 0.4); background: rgba(255, 184, 77, 0.06); }
.badge.hacked { color: var(--ok); border-color: rgba(77, 255, 157, 0.4); background: rgba(77, 255, 157, 0.08); }
.badge.locked { color: var(--danger); border-color: rgba(255, 77, 109, 0.4); background: rgba(255, 77, 109, 0.08); }
.sec-dots { display: inline-flex; gap: 2px; align-items: center; }
.sec-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.sec-dots i.on { background: var(--warn); box-shadow: 0 0 4px var(--warn); }

/* ============ VICTIM WINDOW ============ */
.victim-win { height: 100%; display: flex; flex-direction: column; background: #000; }
.victim-screen-wrap { position: relative; flex: 1; overflow: hidden; background: #000; }
.victim-screen { width: 100%; height: 100%; display: block; }
.victim-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: var(--bg1);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.victim-bar .chunk { display: flex; flex-direction: column; }
.victim-bar .lbl { font-size: 9px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.victim-bar .val2 { font-size: 12px; font-weight: 600; font-family: var(--mono); }
.victim-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: rgba(0, 0, 0, 0.25); border-top: 1px solid var(--border); }

/* ============ MODALS ============ */
.modal-overlay {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal {
  width: min(720px, 94vw);
  max-height: 86vh;
  background: var(--acrylic2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 212, 255, 0.1);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: popIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head .t { font-size: 17px; font-weight: 700; flex: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.94) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* hack minigame */
.hack-game { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.hack-steps { display: flex; gap: 8px; }
.hack-step {
  padding: 7px 16px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border2); color: var(--text3);
  background: rgba(255, 255, 255, 0.04);
}
.hack-step.done { color: var(--ok); border-color: rgba(77, 255, 157, 0.5); }
.hack-step.now { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(0, 212, 255, 0.3); animation: pulseGlow 1.2s ease infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.2); } 50% { box-shadow: 0 0 22px rgba(0, 212, 255, 0.5); } }
.hack-term {
  width: 100%; min-height: 160px;
  background: #03080a;
  border: 1px solid #0c3a2e;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  color: #7dff9d;
  overflow-y: auto;
  box-shadow: inset 0 0 40px rgba(0, 255, 120, 0.05);
}
.hack-term .dim { color: #3d6b55; }
.hack-term .err { color: #ff6b6b; }
.hack-term .hl { color: #fff; }
.hack-term .cy { color: #4dd2ff; }
.hack-prompt { font-family: var(--mono); color: var(--accent); font-size: 16px; letter-spacing: 1px; }
.hack-timing { width: 100%; height: 46px; background: #050b14; border: 1px solid #12344f; border-radius: 10px; position: relative; overflow: hidden; }
.hack-timing .zone { position: absolute; top: 0; bottom: 0; background: rgba(77, 255, 157, 0.18); border-left: 2px solid var(--ok); border-right: 2px solid var(--ok); }
.hack-timing .marker { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hack-simon { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; }
.simon-cell { width: 84px; height: 84px; border-radius: 12px; border: 2px solid var(--border2); background: rgba(255, 255, 255, 0.05); transition: all 0.1s; }
.simon-cell.lit { background: var(--accent); border-color: #fff; box-shadow: 0 0 30px var(--accent); transform: scale(0.95); }
.hack-pad { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hack-pad-btn {
  width: 52px; height: 52px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text); font-size: 18px; font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.12s;
}
.hack-pad-btn:hover { border-color: var(--accent); background: rgba(0, 212, 255, 0.12); box-shadow: 0 0 14px rgba(0, 212, 255, 0.25); transform: translateY(-1px); }
.hack-pad-btn:active { transform: scale(0.92); }
.hack-pad-btn.used { opacity: 0.35; border-color: var(--ok); color: var(--ok); cursor: default; }
.hack-status { font-size: 13px; color: var(--text2); min-height: 20px; font-family: var(--mono); }

/* virus picker */
.virus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.virus-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer; transition: all 0.12s;
  position: relative;
}
.virus-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.virus-card .top { display: flex; align-items: center; gap: 8px; }
.virus-card .nm { font-weight: 700; font-size: 13px; flex: 1; }
.virus-card .desc { font-size: 11px; color: var(--text3); margin-top: 6px; line-height: 1.4; }
.virus-card .tier { font-size: 10px; font-family: var(--mono); opacity: 0.8; }
.tier-dots { display: inline-flex; gap: 2px; }
.tier-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.tier-dots i.on { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* ============ MARKET ============ */
.market { height: 100%; display: flex; flex-direction: column; }
.market-tabs { display: flex; gap: 4px; padding: 12px 14px 0; }
.mtab {
  padding: 8px 18px; border-radius: 8px 8px 0 0;
  border: none; background: transparent; color: var(--text3);
  font-size: 13px; font-weight: 600; transition: all 0.12s;
  border-bottom: 2px solid transparent;
}
.mtab.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(0, 212, 255, 0.05); }
.market-body { flex: 1; overflow-y: auto; padding: 14px 16px 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.shop-item {
  border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.shop-item .nm { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.shop-item .desc { font-size: 11.5px; color: var(--text3); line-height: 1.5; flex: 1; }
.shop-item .price { font-family: var(--mono); color: var(--gold); font-weight: 700; font-size: 14px; }
.shop-item.owned { border-color: rgba(77, 255, 157, 0.35); }
.shop-item.owned .nm::after { content: "OWNED"; font-size: 9px; color: var(--ok); border: 1px solid rgba(77, 255, 157, 0.4); padding: 2px 6px; border-radius: 5px; letter-spacing: 1px; }
.data-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
}
.data-row .nm2 { flex: 1; font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-row .vl { font-family: var(--mono); color: var(--gold); font-size: 12.5px; font-weight: 700; }
.data-row .src { font-size: 10px; color: var(--text3); }
.sell-all { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg1) 40%); padding: 12px 4px 2px; display: flex; justify-content: flex-end; }

/* ============ LOGS ============ */
.logs { height: 100%; background: #04070d; font-family: var(--mono); font-size: 12px; padding: 12px 14px; overflow-y: auto; line-height: 1.8; }
.log-line .tm { color: #4a5a6a; }
.log-line.ok { color: #7dff9d; }
.log-line.warn { color: #ffb84d; }
.log-line.err { color: #ff6b6b; }
.log-line.cy { color: #4dd2ff; }
.log-line.pur { color: #c74dff; }
.log-line.dim { color: #55616f; }

/* ============ BANK TRANSFER ============ */
.bank-page { display: flex; flex-direction: column; gap: 14px; }
.bank-hero {
  background: linear-gradient(140deg, #0d3a5c, #07203a);
  border: 1px solid rgba(77, 210, 255, 0.3);
  border-radius: 14px; padding: 18px;
  box-shadow: inset 0 0 60px rgba(77, 210, 255, 0.06);
}
.bank-hero .bank-name { color: var(--accent); font-weight: 700; letter-spacing: 0.5px; }
.bank-hero .big { font-size: 30px; font-weight: 700; font-family: var(--mono); color: #fff; text-shadow: 0 0 24px rgba(77, 210, 255, 0.4); }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bank-field { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.bank-field .lbl { font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.bank-field .v { font-size: 14px; font-family: var(--mono); color: var(--text); margin-top: 2px; word-break: break-all; }
.bank-field .v.secret { color: var(--gold); }
.bank-field .v.cardnum { color: var(--purple); letter-spacing: 1.5px; }
.cc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; }
.cc-row .brand { font-weight: 800; font-size: 11px; color: var(--text2); border: 1px solid var(--border2); border-radius: 5px; padding: 2px 6px; }
.cc-row .num2 { font-family: var(--mono); flex: 1; font-size: 12.5px; letter-spacing: 1px; }
.cc-row .exp { font-size: 11px; color: var(--text3); }
.cc-row .cvv { font-family: var(--mono); color: var(--gold); }
.transfer-box { border: 1px solid rgba(77, 255, 157, 0.3); background: rgba(77, 255, 157, 0.04); border-radius: 12px; padding: 14px; }
.transfer-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.warn-box { border: 1px solid rgba(255, 184, 77, 0.35); background: rgba(255, 184, 77, 0.05); border-radius: 12px; padding: 12px 14px; font-size: 12px; color: var(--warn); line-height: 1.5; }

/* ============ TOASTS ============ */
#notif-layer { position: absolute; top: 14px; right: 14px; z-index: 95; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  width: 320px;
  background: var(--acrylic2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast .ic { font-size: 20px; }
.toast .tt { font-weight: 700; font-size: 13px; }
.toast .ms { font-size: 12px; color: var(--text2); margin-top: 2px; line-height: 1.4; }
.toast.ok .tt { color: var(--ok); } .toast.warn .tt { color: var(--warn); } .toast.err .tt { color: var(--danger); } .toast.info .tt { color: var(--accent); }
@keyframes toastIn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(60px); opacity: 0; } }

/* ============ TRACE OVERLAY ============ */
#trace-overlay { position: absolute; inset: 0; z-index: 100; background: rgba(20, 0, 0, 0.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s; }
.trace-card {
  width: min(520px, 92vw);
  background: linear-gradient(160deg, #2a0a0a, #140505);
  border: 1px solid rgba(255, 77, 109, 0.5);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 77, 109, 0.3);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.trace-card .big { font-size: 44px; animation: blink 0.7s steps(2) infinite; }
.trace-card h2 { color: var(--danger); letter-spacing: 2px; margin: 12px 0 8px; font-size: 22px; }
.trace-card p { color: var(--text2); font-size: 13.5px; line-height: 1.7; }
.trace-card .fine { font-family: var(--mono); color: var(--gold); font-size: 18px; margin: 10px 0; }
.trace-card .dots { font-family: var(--mono); color: var(--text3); font-size: 12px; margin-top: 10px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============ VIRUS FX CLASSES ============ */
.fx-invert { filter: invert(1) hue-rotate(180deg) !important; animation: fxHue 3s linear infinite; }
.fx-rainbow { animation: fxHue 1.2s linear infinite; }
@keyframes fxHue { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
.fx-shake { animation: fxShake 0.18s linear infinite; }
@keyframes fxShake { 0% { transform: translate(0, 0); } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, -5px); } 100% { transform: translate(4px, 4px); } }
.fx-zoom { animation: fxZoom 1.6s ease-in-out infinite; }
@keyframes fxZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.fx-pulse { animation: fxPulse 0.5s ease-in-out infinite; }
@keyframes fxPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fx-popups { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.fx-popup {
  position: absolute; width: 170px;
  background: linear-gradient(160deg, #2b2f3a, #1c1f28);
  border: 1px solid rgba(255, 184, 77, 0.6);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
  animation: fxPop 5s ease-in-out infinite;
  font-size: 11px;
}
@keyframes fxPop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fx-popup-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: rgba(255, 184, 77, 0.15); border-bottom: 1px solid rgba(255, 184, 77, 0.25); color: var(--gold); font-weight: 700; }
.fx-popup-bar b { color: var(--danger); }
.fx-popup-body { padding: 12px; text-align: center; font-size: 20px; }
.fx-spam { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.fx-email {
  position: absolute; top: -40px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fxEmail 8s linear infinite;
  white-space: nowrap;
}
@keyframes fxEmail { from { transform: translateY(-40px) rotate(-4deg); } to { transform: translateY(calc(100vh)) rotate(6deg); } }
.fx-ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ============ PROGRESS / MISC ============ */
.progress { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.15s linear; box-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }
.progress.warn i { background: linear-gradient(90deg, var(--warn), var(--danger)); box-shadow: 0 0 12px rgba(255, 184, 77, 0.5); }
.sep { height: 1px; background: var(--border); margin: 10px 0; }
.muted { color: var(--text3); font-size: 11.5px; }
.mono { font-family: var(--mono); }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.section-title { font-size: 12px; font-weight: 700; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; margin: 14px 0 8px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty-state .e { font-size: 44px; margin-bottom: 10px; opacity: 0.5; }
.avatar-circle { border-radius: 50%; }
.typing-cursor::after { content: "▌"; animation: blink 0.9s steps(2) infinite; color: var(--accent); }

/* scan animation for hub button */
@keyframes radarPing { 0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(0, 212, 255, 0); } }
.pinging { animation: radarPing 1.4s ease-out infinite; }
