/* ============================================================
   🖥️ SHBM-OS — customize the theme here
   ============================================================ */
:root {
  --wall-1: #0f0c2e;         /* wallpaper gradient start */
  --wall-2: #1a0b3a;         /* wallpaper gradient mid */
  --wall-3: #041524;         /* wallpaper gradient end */
  --glass: rgba(16, 18, 38, 0.72);
  --glass-head: rgba(28, 30, 56, 0.85);
  --border: rgba(255, 255, 255, 0.14);
  --text: #e8eaf6;
  --dim: #8b90b5;
  --accent: #8b7cff;         /* violet */
  --accent-2: #4fd8ff;       /* cyan */
  --ok: #34d399;
  --warn: #fbbf24;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  color: var(--text);
  height: 100vh; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 15%, rgba(139, 124, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(79, 216, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--wall-1), var(--wall-2) 45%, var(--wall-3));
  user-select: none;
}
/* alternate wallpapers (right-click → Change Wallpaper) */
body[data-wall="2"] {
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(52, 211, 153, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(251, 191, 36, 0.15), transparent 60%),
    linear-gradient(135deg, #041f14, #072a1c 45%, #02131c);
}
body[data-wall="3"] {
  background:
    radial-gradient(ellipse 70% 60% at 80% 25%, rgba(255, 99, 132, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(255, 159, 64, 0.16), transparent 60%),
    linear-gradient(135deg, #2b0a1e, #3a0d16 45%, #12041f);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

/* ============ SCROLLBARS (global, themed) ============ */
/* Firefox only — Chrome 121+ DISABLES ::-webkit-scrollbar styling when
   scrollbar-width/color are set, so these must stay out of its way. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(139, 124, 255, 0.6) transparent; }
  .term { scrollbar-color: rgba(43, 255, 136, 0.55) transparent; }
  .resume-doc { scrollbar-color: rgba(255, 255, 255, 0.45) transparent; }
}
/* WebKit / Chromium / Safari */
*::-webkit-scrollbar { width: 13px; height: 13px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  background-clip: padding-box;          /* creates the inset "floating pill" look */
  border: 3px solid transparent;         /* 13 − 6 = 7px visible pill */
  min-height: 44px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a596ff, #78e4ff);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:active { background: var(--accent-2); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
/* horizontal scrollers get the same pill, rotated gradient */
*::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-clip: padding-box;
}

/* terminal panes: phosphor-green thumb to match the shell */
.term::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2bff88, #17b35c);
  background-clip: padding-box;
}
.term::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6effb0, #2bff88);
  background-clip: padding-box;
}

/* resume paper: subtle grey so it reads as a document viewer */
.resume-doc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
  background-clip: padding-box;
}
.resume-doc::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
  background-clip: padding-box;
}


/* starfield */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 40%, transparent 60%),
    radial-gradient(1px 1px at 34% 8%, #fff 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 30%, #fff 40%, transparent 60%),
    radial-gradient(1px 1px at 76% 12%, #fff 40%, transparent 60%),
    radial-gradient(1px 1px at 88% 42%, #fff 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 64%, #fff 40%, transparent 60%),
    radial-gradient(1px 1px at 45% 82%, #fff 40%, transparent 60%),
    radial-gradient(1px 1px at 92% 78%, #fff 40%, transparent 60%),
    radial-gradient(1px 1px at 66% 58%, #fff 40%, transparent 60%);
  opacity: 0.35;
}

/* ============ BOOT SPLASH ============ */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: #05040f;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity 0.6s;
}
.splash.done { opacity: 0; pointer-events: none; }
.splash-logo { font-size: 64px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.splash-name { font-size: 28px; font-weight: 700; letter-spacing: 6px; }
.splash-bar {
  width: 220px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.12); overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: load 1.4s ease-in-out infinite;
}
@keyframes load { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.splash-sub { font-size: 12px; color: var(--dim); font-family: var(--mono); }

/* ============ DESKTOP & ICONS ============ */
.desktop { position: fixed; inset: 0; }
.icons {
  position: absolute; top: 26px; left: 22px;
  display: grid; gap: 10px;
  grid-template-rows: repeat(auto-fill, 92px);
  grid-auto-flow: column;
  height: calc(100% - 140px);
}
.icon {
  width: 92px; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 1px solid transparent; border-radius: 10px;
  color: var(--text); font-family: var(--font); font-size: 11.5px;
  cursor: pointer; text-align: center; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.icon span { font-size: 34px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.icon:hover { background: rgba(255,255,255,0.08); border-color: var(--border); }
.icon:active { transform: scale(0.95); }

.desktop-hint {
  position: absolute; bottom: 70px; right: 26px;
  font-size: 11px; color: var(--dim); font-family: var(--mono);
  opacity: 0.75; max-width: 340px; text-align: right;
}

/* ============ WINDOWS ============ */
.window {
  position: absolute;
  left: var(--x, 15%); top: var(--y, 15%);
  width: min(var(--w, 560px), calc(100vw - 24px));
  max-height: calc(100vh - 90px);
  display: none; flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: winin 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.window.open { display: flex; }
.window.focus { border-color: rgba(139, 124, 255, 0.55); box-shadow: 0 24px 90px rgba(0,0,0,0.7), 0 0 32px rgba(139,124,255,0.12); }
.window.max {
  left: 8px !important; top: 8px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100vh - 70px); max-height: none;
}
@keyframes winin { from { transform: scale(0.92) translateY(12px); opacity: 0; } }

.win-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--glass-head);
  border-bottom: 1px solid var(--border);
  cursor: grab; touch-action: none;
  flex-shrink: 0;
}
.win-head:active { cursor: grabbing; }
.win-title { font-size: 12.5px; font-weight: 600; color: var(--dim); pointer-events: none; }
.win-title b { color: var(--accent-2); }
.lights { display: flex; gap: 8px; }
.lights i { width: 13px; height: 13px; border-radius: 50%; cursor: pointer; transition: filter 0.15s; }
.lights i:hover { filter: brightness(1.35); }
.l-close { background: #ff5f57; }
.l-min { background: #febc2e; }
.l-max { background: #28c840; }

.win-body { overflow-y: auto; font-size: 13.5px; line-height: 1.75; flex: 1; }
.pad { padding: 18px 22px; }

/* notepad */
.mono-body { font-family: var(--mono); font-size: 12.5px; }
.mono-body b { color: var(--accent-2); }

/* log viewer */
.log { font-family: var(--mono); font-size: 12px; padding: 16px 20px; line-height: 1.9; }
.log .lg { color: var(--dim); }
.log .hl { color: var(--warn); }
.lv { font-weight: 600; margin-right: 6px; }
.lv.ok { color: var(--ok); }
.lv.info { color: var(--accent-2); }
.lv.warn { color: var(--warn); }

/* file explorer */
.explorer-bar {
  padding: 10px 18px; font-size: 11.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; padding: 14px; }
.file {
  display: grid; justify-items: center; text-align: center; gap: 3px;
  padding: 14px 8px 12px; border-radius: 10px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.file:hover { background: rgba(255,255,255,0.08); }
.file span { font-size: 30px; }
.file b { font-family: var(--mono); font-size: 12px; color: var(--accent-2); }
.file i { font-size: 10.5px; color: var(--dim); font-style: normal; }
.bin-note { padding: 4px 18px 14px; font-size: 10.5px; text-align: center; }

/* task manager */
.tm-note { font-size: 11px; color: var(--dim); margin-bottom: 12px; }
.tm { display: grid; gap: 9px; }
.tm-row { display: grid; grid-template-columns: 120px 1fr 42px; gap: 10px; align-items: center; font-size: 12px; }
.tm-row .nm { font-family: var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.tm-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tm-row .pc { text-align: right; font-family: var(--mono); color: var(--dim); font-size: 11px; }

/* mail */
.mail-row {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 18px; font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.mail-row span { color: var(--dim); width: 52px; }
.mail-row input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-family: var(--font); font-size: 12.5px;
}
.mail-body {
  width: 100%; border: 0; outline: 0; resize: vertical;
  background: transparent; color: var(--text);
  font-family: var(--font); font-size: 13px; line-height: 1.6;
  padding: 14px 18px;
}
.mail-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 18px 14px; font-size: 10.5px;
}
.send-btn {
  border: 0; cursor: pointer;
  padding: 9px 26px; border-radius: 8px;
  font-family: var(--font); font-weight: 700; font-size: 12.5px; letter-spacing: 1px;
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(139, 124, 255, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(139, 124, 255, 0.6); }

/* ============ TERMINAL APP ============ */
.term {
  background: rgba(2, 8, 4, 0.92);
  font-family: var(--mono); font-size: 12.5px;
  padding: 14px 16px;
  min-height: 260px;
  display: flex; flex-direction: column;
  cursor: text;
}
#termOut { white-space: pre-wrap; color: #7ee8a2; line-height: 1.7; }
#termOut .t-dim { color: #4a6b56; }
#termOut .t-warn { color: var(--warn); }
#termOut .t-cyan { color: var(--accent-2); }
.term-line { display: flex; gap: 8px; margin-top: 4px; }
.term-prompt { color: #7ee8a2; white-space: nowrap; }
.term-input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #d9ffe8; font-family: var(--mono); font-size: 12.5px;
  caret-color: #2bff88;
}

/* ============ SNAKE ============ */
.snake-body { display: grid; justify-items: center; gap: 10px; padding: 16px; }
#snakeCanvas {
  border: 1px solid var(--border); border-radius: 8px;
  background: rgba(2, 8, 6, 0.9);
  max-width: 100%;
}
.snake-help { font-size: 10px; color: var(--dim); text-align: center; line-height: 1.7; }

/* ============ CLIPPY (HIRY) ============ */
.clippy {
  position: absolute; right: 28px; bottom: 84px; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  animation: winin 0.3s ease-out;
}
.clippy-bubble {
  position: relative;
  max-width: 250px; padding: 14px 16px;
  background: #fffbe8; color: #333;
  border-radius: 14px 14px 2px 14px;
  font-size: 12.5px; line-height: 1.55;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.clippy-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.clippy-actions button {
  border: 1px solid #d9cf9e; border-radius: 7px;
  background: #fff3c4; color: #4a4325;
  font-family: var(--font); font-size: 11px; font-weight: 600;
  padding: 5px 10px; cursor: pointer;
  transition: background 0.15s;
}
.clippy-actions button:hover { background: #ffe98f; }
.clippy-char {
  font-size: 44px; background: none; border: 0; cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
  animation: wiggle 2.4s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes wiggle { 0%, 100% { rotate: -6deg; } 50% { rotate: 8deg; } }
.clippy-close {
  position: absolute; top: -8px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: #333; color: #fff;
  font-size: 10px; cursor: pointer;
}

/* ============ TOASTS ============ */
.toasts {
  position: absolute; top: 96px; right: 18px; z-index: 150;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; gap: 12px; align-items: center;
  min-width: 260px; max-width: 330px;
  padding: 12px 16px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: toastin 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.toast.out { animation: toastout 0.3s forwards; }
@keyframes toastin { from { transform: translateX(120%); opacity: 0; } }
@keyframes toastout { to { transform: translateX(120%); opacity: 0; } }
.toast .t-ico { font-size: 22px; }
.toast b { display: block; font-size: 12.5px; }
.toast p { font-size: 11.5px; color: var(--dim); line-height: 1.4; }

/* ============ CONTEXT MENU ============ */
.ctxmenu {
  position: absolute; z-index: 160;
  min-width: 200px; padding: 6px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  animation: winin 0.14s ease-out;
}
.ctxmenu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: 0; border-radius: 7px;
  background: none; color: var(--text);
  font-family: var(--font); font-size: 12.5px; cursor: pointer;
}
.ctxmenu button:hover { background: rgba(255,255,255,0.1); }
.ctxmenu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 0; }

/* ============ START MENU ============ */
.startmenu {
  position: absolute; bottom: 62px; left: 12px; z-index: 90;
  width: 270px; padding: 8px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: winin 0.18s ease-out;
}
.sm-user {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sm-user img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); }
.sm-user .dim { font-size: 11px; }
.startmenu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.sm-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text);
  font-family: var(--font); font-size: 13px; cursor: pointer;
  transition: background 0.12s;
}
.sm-item:hover { background: rgba(255,255,255,0.1); }

/* ============ TASKBAR ============ */
.taskbar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(10, 10, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.start {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 9px;
  background: rgba(255,255,255,0.06); color: var(--text);
  font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 2px;
  cursor: pointer; transition: background 0.15s;
}
.start:hover { background: rgba(139, 124, 255, 0.22); }
.tasks { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.task-chip {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,0.05); color: var(--dim);
  font-family: var(--font); font-size: 11.5px; white-space: nowrap;
  cursor: pointer; transition: 0.15s;
}
.task-chip.active { color: var(--text); background: rgba(139, 124, 255, 0.25); border-color: var(--accent); }
.tray { font-size: 12px; color: var(--dim); padding: 0 8px; display: flex; gap: 14px; align-items: center; }

/* ============ SHUTDOWN ============ */
.shutdown {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 4, 14, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 18px; text-align: center; padding: 20px;
}
.shutdown .dim { font-size: 13px; }
.shutdown button {
  margin-top: 18px; padding: 11px 26px;
  border: 1px solid var(--accent); border-radius: 9px;
  background: rgba(139, 124, 255, 0.15); color: var(--text);
  font-family: var(--font); font-size: 13px; cursor: pointer;
}
.shutdown button:hover { background: rgba(139, 124, 255, 0.3); }

/* ============ SCREENSAVER ============ */
.screensaver {
  position: fixed; inset: 0; z-index: 400;
  background: #000; cursor: none;
}

/* ============ LOGIN SCREEN ============ */
.login {
  position: fixed; inset: 0; z-index: 190;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(139, 124, 255, 0.18), transparent 65%),
    #070518;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity 0.5s;
}
.login.done { opacity: 0; pointer-events: none; }
.login-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 44px rgba(139, 124, 255, 0.45);
}
.login-name { font-size: 19px; font-weight: 600; }
.login-form {
  display: flex; gap: 8px; margin-top: 6px;
}
.login-form input {
  width: 220px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 9px;
  background: rgba(255,255,255,0.07); color: var(--text);
  font-family: var(--font); font-size: 13px; outline: 0;
  transition: border-color 0.2s;
}
.login-form input:focus { border-color: var(--accent); }
.login-form button {
  width: 40px; border: 1px solid var(--border); border-radius: 9px;
  background: rgba(139, 124, 255, 0.25); color: var(--text);
  font-size: 15px; cursor: pointer;
}
.login-form button:hover { background: rgba(139, 124, 255, 0.45); }
.login-hint { font-size: 11px; color: var(--dim); margin-top: 4px; }

/* ============ APP FRAMES (PDF / TERMINAL / BROWSER) ============ */
.window.tall { height: min(78vh, 720px); }
.app-frame { flex: 1; width: 100%; border: 0; background: #0a0a14; }
.app-frame.light { background: #525659; }   /* pdf viewer chrome grey */
.win-action {
  margin-left: auto; font-size: 11px; color: var(--accent-2);
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px;
  transition: 0.15s;
}
.win-action:hover { background: rgba(79, 216, 255, 0.15); }
/* ============ RESUME DOCUMENT ============ */
.resume-doc { background: #494c52; padding: 22px 16px; }
.paper {
  max-width: 620px; margin: 0 auto;
  background: #ffffff; color: #202124;
  padding: 36px 40px;
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 12.5px; line-height: 1.6;
  user-select: text;
}
.paper h1 { font-size: 24px; letter-spacing: 0.5px; margin-bottom: 4px; color: #111; }
.paper h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: #5b4bd6; border-bottom: 1.5px solid #e4e2f7;
  padding-bottom: 3px; margin: 18px 0 9px;
}
.paper a { color: #5b4bd6; }
.paper a:hover { text-decoration: underline; }
.r-contact { font-size: 11.5px; color: #555; line-height: 1.7; }
.r-job { margin-bottom: 10px; }
.r-job header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: 12.5px; }
.r-job header span { color: #777; font-size: 11px; }
.r-job ul, .r-ach { margin: 4px 0 0 18px; }
.r-job li, .r-ach li { margin-bottom: 3px; color: #333; }
.r-skills { color: #333; }
.paper b { color: #111; }

/* ============ ABOUT THIS PC ============ */
.aboutpc { text-align: center; }
.pc-logo { font-size: 52px; margin: 6px 0 2px; }
.pc-name { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.aboutpc .kv { text-align: left; margin-bottom: 14px; }
.pc-license { font-size: 11px; color: var(--warn); line-height: 1.7; margin-bottom: 12px; }
.pc-activate { display: inline-block; text-align: center; }

/* ============ GITHUB LIVE WIDGET ============ */
.gh-widget {
  position: absolute; top: 18px; right: 18px; z-index: 60;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transition: transform 0.15s, border-color 0.15s;
}
.gh-widget:hover { transform: translateY(-2px); border-color: var(--accent); }
.gh-widget img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); }
.gh-widget b { display: block; font-size: 12.5px; }
.gh-widget span { display: block; font-size: 11.5px; color: var(--dim); }
.gh-widget i { display: block; font-size: 9px; color: var(--ok); font-style: normal; letter-spacing: 0.5px; }

/* ============ CONFETTI ============ */
.confetti { position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden; }
.confetti span {
  position: absolute; top: -36px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(115vh) rotate(720deg); opacity: 0.6; }
}

/* ============ CHATBOT ============ */
.chat { display: flex; flex-direction: column; height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.msg {
  max-width: 82%; padding: 9px 13px;
  border-radius: 13px; font-size: 12.5px; line-height: 1.55;
}
.msg.bot { align-self: flex-start; background: rgba(255,255,255,0.09); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg.bot b { color: var(--accent-2); }
.msg.user { align-self: flex-end; background: rgba(139, 124, 255, 0.3); border-bottom-right-radius: 3px; }
.msg.typing { color: var(--dim); letter-spacing: 2px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chips button {
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--accent-2);
  font-family: var(--font); font-size: 11px; padding: 5px 12px; cursor: pointer;
  transition: background 0.15s;
}
.chat-chips button:hover { background: rgba(139, 124, 255, 0.2); }
.chat-inputrow {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.chat-inputrow input {
  flex: 1; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--text);
  font-family: var(--font); font-size: 12.5px; outline: 0;
}
.chat-inputrow input:focus { border-color: var(--accent); }
.chat-inputrow button {
  width: 38px; border: 0; border-radius: 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 14px; cursor: pointer;
}

/* ============ SETUP WIZARD ============ */
.wizard { display: flex; flex-direction: column; padding: 20px 24px 14px; min-height: 340px; }
.wz-step { flex: 1; }
.wz-step h3 { font-size: 15.5px; margin-bottom: 10px; }
.wz-step p { font-size: 12.5px; margin-bottom: 8px; }
.wz-art { font-size: 46px; text-align: center; margin: 4px 0 10px; }
.wz-eula {
  white-space: pre-wrap; font-size: 10.5px; line-height: 1.7;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; max-height: 150px; overflow-y: auto; color: var(--dim);
  margin-bottom: 10px;
}
.wz-agree { display: flex; gap: 8px; align-items: center; font-size: 12.5px; cursor: pointer; }
.wz-agree input { accent-color: var(--accent); width: 15px; height: 15px; }
.wz-path {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 12px; color: var(--accent-2); margin-bottom: 10px;
}
.wz-barwrap {
  height: 14px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,0.1); border: 1px solid var(--border);
  margin: 14px 0 10px;
}
.wz-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s;
}
.wz-file { font-size: 11px; color: var(--dim); }
.wz-nav {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 14px;
}
.wz-nav button {
  font-family: var(--font); font-size: 12.5px;
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text);
  transition: background 0.15s;
}
.wz-nav button:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.wz-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.wz-nav .wz-primary {
  border: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; margin-left: 8px;
}
.wz-nav div { display: flex; }

/* ============ LIVE METRICS ============ */
.metrics { padding: 14px; }
.m-live { color: var(--ok); font-size: 10px; animation: blinkslow 1.6s step-end infinite; margin-left: 6px; }
@keyframes blinkslow { 50% { opacity: 0.25; } }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-panel {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.m-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; color: var(--dim); margin-bottom: 8px; }
.m-unit { color: var(--accent-2); letter-spacing: 0.5px; }
.m-panel canvas { width: 100%; display: block; }
.m-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px;
}
.m-stats > div {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 8px; text-align: center; display: grid; gap: 2px;
}
.m-num { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.m-num.up { color: var(--ok); }
.m-num.warn { color: var(--warn); }
.m-lbl { font-size: 9px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.m-note { text-align: center; font-size: 10px; margin-top: 10px; }

/* ============ BSOD ============ */
.bsod {
  position: fixed; inset: 0; z-index: 600;
  background: #0078d7; color: #fff;
  display: flex; align-items: center;
  padding: 8vw; cursor: pointer;
}
.bsod-face { font-size: 88px; margin-bottom: 20px; }
.bsod-inner p { font-size: 17px; margin-bottom: 12px; max-width: 620px; }
.bsod-code { font-size: 12.5px; opacity: 0.85; line-height: 1.8; }
.bsod-pct { font-size: 13px; }
.bsod .dim { color: rgba(255,255,255,0.7); font-size: 12.5px; }

/* ============ TRAY BUTTON ============ */
.tray-btn {
  border: 0; background: none; cursor: pointer;
  font-size: 13px; padding: 2px 4px; border-radius: 6px;
  transition: background 0.15s;
}
.tray-btn:hover { background: rgba(255,255,255,0.1); }

/* ============ COMMAND PALETTE ============ */
.palette {
  position: fixed; inset: 0; z-index: 170;
  background: rgba(4, 4, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; padding-top: 14vh;
}
.palette-box {
  width: min(520px, 92vw); height: fit-content;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  overflow: hidden;
  animation: winin 0.16s ease-out;
}
#paletteIn {
  width: 100%; padding: 16px 20px;
  border: 0; outline: 0; background: transparent;
  color: var(--text); font-family: var(--font); font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.palette-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.pal-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 10px 14px; border: 0; border-radius: 9px;
  background: none; color: var(--text);
  font-family: var(--font); font-size: 13.5px; cursor: pointer;
}
.pal-item small { margin-left: auto; color: var(--dim); font-size: 10.5px; }
.pal-item.sel, .pal-item:hover { background: rgba(139, 124, 255, 0.22); }
.palette-hint {
  padding: 8px 16px; font-size: 10.5px; color: var(--dim);
  border-top: 1px solid var(--border);
}

/* ============ TASKBAR SEARCH ============ */
.tb-search {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px;
  background: rgba(255,255,255,0.06); cursor: pointer; font-size: 13px;
  transition: background 0.15s;
}
.tb-search:hover { background: rgba(139, 124, 255, 0.22); }

/* ============ MOBILE BANNER ============ */
.mobile-banner {
  display: none;
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 165;
  padding: 10px 14px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 12px; line-height: 1.5;
}
.mobile-banner a { color: var(--accent-2); text-decoration: underline; }
.mobile-banner button {
  float: right; border: 0; background: none; color: var(--dim);
  font-size: 13px; cursor: pointer; padding: 0 2px;
}

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  .icons { grid-template-rows: repeat(auto-fill, 86px); gap: 6px; }
  .icon { width: 80px; font-size: 10.5px; }
  .icon span { font-size: 28px; }
  .window {
    left: 6px !important; top: 8px !important;
    width: calc(100vw - 12px) !important;
    max-height: calc(100vh - 84px);
  }
  .window.tall { height: calc(100vh - 92px); }
  .desktop-hint { display: none; }
  .clippy { right: 12px; bottom: 76px; }
  .mobile-banner { display: block; }
  .gh-widget { display: none; }
}
