/* ═══════════════════════════════════════════════════════
   KALI LINUX DESKTOP OS — COMPLETE UI
   Full desktop environment stylesheet
═══════════════════════════════════════════════════════ */

:root {
  --bg:           #0a0a0f;
  --surface:      #12121a;
  --surface-2:    #1a1a26;
  --surface-3:    #22223a;
  --border:       rgba(100,80,200,0.18);
  --border-2:     rgba(100,80,200,0.35);
  --border-3:     rgba(100,80,200,0.6);

  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --purple-dim:   rgba(124,58,237,0.12);
  --purple-glow:  rgba(124,58,237,0.3);

  --green:        #00ff41;
  --green-dim:    rgba(0,255,65,0.08);
  --green-glow:   rgba(0,255,65,0.2);
  --cyan:         #00d4ff;
  --yellow:       #f0e040;
  --red:          #ff4444;
  --orange:       #ff8c00;

  --text:         #c8c8e8;
  --text-dim:     rgba(200,200,232,0.45);
  --text-bright:  #e8e8ff;

  --taskbar-h:    40px;
  --titlebar-h:   32px;
  --font:         'JetBrains Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.16,1,0.3,1);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 13px;
  background: #000;
  color: var(--text);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
input, textarea, select, button { font-family: var(--font); }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--green); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── UTILITIES ───────────────────────────────────────── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════
   BOOT SCREEN
══════════════════════════════════════════════════════ */
.boot-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.boot-screen__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; width: 600px; max-width: 90vw;
}
.boot-logo { text-align: center; }
.boot-dragon { font-size: 4rem; margin-bottom: .5rem; animation: bootPulse 2s ease-in-out infinite; }
@keyframes bootPulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.boot-title { font-size: 2rem; font-weight: 700; color: var(--purple-light); letter-spacing: .1em; }
.boot-sub { font-size: .75rem; color: var(--text-dim); margin-top: .25rem; }
.boot-log {
  width: 100%; height: 120px; overflow: hidden;
  font-size: .72rem; color: var(--text-dim);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.boot-log-line { opacity: 0; animation: fadeIn .3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.boot-log-line .ok   { color: var(--green); }
.boot-log-line .warn { color: var(--yellow); }
.boot-log-line .fail { color: var(--red); }
.boot-bar-wrap {
  width: 100%; height: 3px;
  background: var(--surface-2);
  border-radius: 2px; overflow: hidden;
}
.boot-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  transition: width .3s ease;
  box-shadow: 0 0 10px var(--purple-glow);
}
.boot-version { font-size: .65rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════
   LOCK SCREEN
══════════════════════════════════════════════════════ */
.lock-screen {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.lock-screen__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
}
.lock-screen__bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(124,58,237,.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0,212,255,.08) 0%, transparent 40%);
}
.lock-screen__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.lock-avatar { font-size: 4rem; margin-bottom: .5rem; }
.lock-user { font-size: 1.4rem; font-weight: 700; color: var(--text-bright); }
.lock-host { font-size: .8rem; color: var(--text-dim); margin-top: -.5rem; }
.lock-input-wrap { display: flex; gap: .5rem; margin-top: .5rem; }
.lock-input {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: .6rem 1rem;
  color: var(--text-bright);
  font-size: .9rem;
  width: 220px;
  outline: none;
  transition: border-color .2s;
}
.lock-input:focus { border-color: var(--purple-light); box-shadow: 0 0 12px var(--purple-glow); }
.lock-btn {
  background: var(--purple);
  border-radius: 6px;
  padding: .6rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: background .2s, box-shadow .2s;
}
.lock-btn:hover { background: var(--purple-light); box-shadow: 0 0 12px var(--purple-glow); }
.lock-hint { font-size: .72rem; color: var(--text-dim); }
.lock-time { font-size: 3.5rem; font-weight: 700; color: var(--text-bright); margin-top: 1rem; }
.lock-date { font-size: .85rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════
   DESKTOP
══════════════════════════════════════════════════════ */
.desktop {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.wallpaper {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 40%, #0a0f1a 100%);
  transition: background 1s ease;
}
.wallpaper::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(124,58,237,.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0,212,255,.1) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(124,58,237,.05) 0%, transparent 60%);
}
.wallpaper::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(124,58,237,.03) 39px, rgba(124,58,237,.03) 40px
  ), repeating-linear-gradient(
    90deg, transparent, transparent 39px,
    rgba(124,58,237,.03) 39px, rgba(124,58,237,.03) 40px
  );
}

/* ── DESKTOP ICONS ───────────────────────────────────── */
.desktop-icons {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 10;
}
.desktop-icon {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  width: 72px;
  transition: background .15s;
  outline: none;
}
.desktop-icon:hover, .desktop-icon:focus { background: rgba(124,58,237,.2); }
.desktop-icon.selected { background: rgba(124,58,237,.35); outline: 1px solid var(--purple-light); }
.desktop-icon__img { font-size: 1.8rem; line-height: 1; }
.desktop-icon span {
  font-size: .65rem; color: var(--text-bright);
  text-align: center; line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  word-break: break-word;
}

/* ── CONTEXT MENU ────────────────────────────────────── */
.context-menu {
  position: fixed; z-index: 8000;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 4px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}
.context-menu__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .75rem;
  border-radius: 5px;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.context-menu__item:hover { background: var(--purple-dim); color: var(--text-bright); }
.context-menu__sep { height: 1px; background: var(--border); margin: 3px 0; }

/* ══════════════════════════════════════════════════════
   OS WINDOWS
══════════════════════════════════════════════════════ */
.windows-container { position: absolute; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; }

.os-window {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04), 0 0 30px var(--purple-glow);
  display: flex; flex-direction: column;
  overflow: hidden;
  pointer-events: all;
  min-width: 320px; min-height: 200px;
  transition: box-shadow .2s;
  resize: both;
}
.os-window.focused { box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 40px var(--purple-glow); z-index: 100; }
.os-window.minimized { display: none; }
.os-window.maximized {
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: calc(100% - var(--taskbar-h)) !important;
  border-radius: 0; resize: none;
}

/* Titlebar */
.os-window__titlebar {
  height: var(--titlebar-h);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 .6rem;
  gap: .5rem;
  flex-shrink: 0;
  cursor: move;
}
.os-window__dots { display: flex; gap: 6px; flex-shrink: 0; }
.wdot {
  width: 13px; height: 13px; border-radius: 50%;
  font-size: 0; display: flex; align-items: center; justify-content: center;
  transition: filter .15s;
  flex-shrink: 0;
}
.wdot:hover { font-size: 8px; filter: brightness(1.3); }
.wdot--close  { background: #ff5f57; color: #7a0000; }
.wdot--min    { background: #febc2e; color: #7a5000; }
.wdot--max    { background: #28c840; color: #005a00; }
.os-window__title {
  font-size: .75rem; color: var(--text-dim);
  flex: 1; text-align: center;
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.os-window__drag-area { flex: 1; height: 100%; }

/* Window body */
.os-window__body {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ══════════════════════════════════════════════════════
   TERMINAL
══════════════════════════════════════════════════════ */
#win-terminal { width: 720px; height: 460px; top: 60px; left: 120px; }
.terminal-body {
  background: #0d0d0d;
  padding: .75rem;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.term-output {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 1px;
}
.term-line {
  font-size: .8rem; line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap; word-break: break-all;
}
.term-line--banner { color: var(--purple-light); font-size: .65rem; line-height: 1.2; }
.term-line--dim    { color: var(--text-dim); }
.term-line--green  { color: var(--green); }
.term-line--red    { color: var(--red); }
.term-line--yellow { color: var(--yellow); }
.term-line--cyan   { color: var(--cyan); }
.term-line--cmd    { color: var(--text-bright); }
.term-input-row {
  margin-top: .5rem;
  font-size: .8rem;
  line-height: 1.6;
  flex-shrink: 0;
}
.term-prompt-user  { color: var(--green); font-weight: 700; }
.term-prompt-sep   { color: var(--text-dim); }
.term-prompt-path  { color: var(--cyan); }
.term-prompt-arrow { color: var(--green); }
.term-prompt-hash  { color: var(--text-bright); margin: 0 .3rem; }
.term-input {
  background: transparent; border: none; outline: none;
  color: var(--text-bright); font-family: var(--font);
  font-size: .8rem; width: calc(100% - 2rem);
  caret-color: var(--green);
}

/* ══════════════════════════════════════════════════════
   FILE MANAGER
══════════════════════════════════════════════════════ */
#win-files { width: 700px; height: 480px; top: 80px; left: 200px; }
.files-body { flex-direction: row; }
.files-sidebar {
  width: 160px; flex-shrink: 0;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: .5rem 0;
  overflow-y: auto;
}
.files-sidebar__section {
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  color: var(--text-dim); padding: .6rem .75rem .3rem;
}
.files-sidebar__item {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .75rem;
  font-size: .78rem; cursor: pointer;
  border-radius: 4px; margin: 0 4px;
  transition: background .15s, color .15s;
}
.files-sidebar__item:hover { background: var(--purple-dim); color: var(--text-bright); }
.files-sidebar__item.active { background: var(--purple-dim); color: var(--purple-light); }
.files-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.files-toolbar {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}
.files-btn {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 4px; padding: .25rem .6rem;
  font-size: .75rem; color: var(--text);
  transition: background .15s, color .15s;
}
.files-btn:hover { background: var(--purple-dim); color: var(--purple-light); }
.files-path-bar {
  flex: 1; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 4px;
  padding: .25rem .6rem; font-size: .75rem; color: var(--text-dim);
}
.files-grid {
  flex: 1; overflow-y: auto;
  padding: .75rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem; align-content: start;
}
.file-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: .5rem .25rem;
  border-radius: 6px; cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.file-item:hover { background: var(--purple-dim); }
.file-item__icon { font-size: 1.8rem; }
.file-item__name { font-size: .65rem; color: var(--text); word-break: break-word; line-height: 1.2; }

/* ══════════════════════════════════════════════════════
   BROWSER
══════════════════════════════════════════════════════ */
#win-browser { width: 900px; height: 580px; top: 50px; left: 160px; }
.browser-body { background: #fff; }
.browser-toolbar {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .6rem;
  background: #2b2b3b;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.browser-btn {
  background: #3a3a4a; border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; padding: .25rem .5rem;
  font-size: .8rem; color: var(--text);
  transition: background .15s;
}
.browser-btn:hover { background: #4a4a5a; }
.browser-url-bar {
  flex: 1; display: flex; align-items: center; gap: .4rem;
  background: #1a1a2a; border: 1px solid var(--border-2);
  border-radius: 20px; padding: .25rem .75rem;
}
.browser-lock { font-size: .75rem; }
.browser-url {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-bright); font-size: .78rem;
}
.browser-tabs {
  display: flex; align-items: center;
  background: #1e1e2e;
  border-bottom: 1px solid var(--border);
  padding: 0 .5rem;
  flex-shrink: 0;
}
.browser-tab {
  padding: .4rem .9rem;
  font-size: .72rem; color: var(--text-dim);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.browser-tab.active { background: var(--surface); color: var(--text-bright); }
.browser-tab:hover:not(.active) { background: var(--surface-2); }
.browser-content { flex: 1; overflow-y: auto; background: #0d0d18; }

/* PixelForge site inside browser */
.pf-site { font-family: var(--font); color: var(--text); }
.pf-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
  background: rgba(10,10,20,.95);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.pf-logo { font-weight: 700; color: var(--green); font-size: .9rem; }
.pf-nav nav { display: flex; gap: 1.5rem; }
.pf-nav a { font-size: .75rem; color: var(--text-dim); transition: color .2s; }
.pf-nav a:hover { color: var(--green); }
.pf-hero {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #0a0a0f, #1a0a2e);
  text-align: center;
}
.pf-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .65rem; color: var(--text-dim);
  border: 1px solid var(--border); padding: .25rem .75rem;
  border-radius: 20px; margin-bottom: 1rem;
}
.pf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.pf-hero h1 { font-size: 2rem; font-weight: 800; color: var(--green); margin-bottom: .75rem; line-height: 1.1; }
.pf-hero h1 span { color: var(--purple-light); }
.pf-hero p { font-size: .8rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.pf-hero__btns { display: flex; gap: .75rem; justify-content: center; margin-bottom: 2rem; }
.pf-btn { padding: .5rem 1.25rem; border-radius: 4px; font-size: .78rem; font-family: var(--font); cursor: pointer; transition: all .2s; }
.pf-btn--primary { background: transparent; color: var(--green); border: 1px solid var(--green); }
.pf-btn--primary:hover { background: var(--green); color: #000; }
.pf-btn--ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border-2); }
.pf-btn--ghost:hover { color: var(--text-bright); border-color: var(--border-3); }
.pf-stats { display: flex; gap: 2rem; justify-content: center; }
.pf-stats div { text-align: center; }
.pf-stats strong { display: block; font-size: 1.2rem; color: var(--green); }
.pf-stats span { font-size: .65rem; color: var(--text-dim); }
.pf-services { padding: 2rem 1.5rem; }
.pf-services h2 { color: var(--green); margin-bottom: 1rem; font-size: 1rem; }
.pf-services__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.pf-service-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; text-align: center; }
.pf-service-card div { font-size: 1.5rem; margin-bottom: .4rem; }
.pf-service-card h3 { font-size: .78rem; color: var(--text-bright); margin-bottom: .25rem; }
.pf-service-card p { font-size: .65rem; color: var(--text-dim); }
.pf-pricing { padding: 2rem 1.5rem; background: var(--surface); }
.pf-pricing h2 { color: var(--green); margin-bottom: 1rem; font-size: 1rem; }
.pf-pricing__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.pf-plan { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; position: relative; }
.pf-plan--featured { border-color: var(--green); box-shadow: 0 0 20px var(--green-glow); }
.pf-plan__badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); font-size: .55rem; font-weight: 700; background: var(--green); color: #000; padding: .1rem .5rem; border-radius: 0 0 4px 4px; }
.pf-plan h3 { font-size: .8rem; color: var(--text-bright); margin-bottom: .4rem; }
.pf-plan__price { font-size: 1.1rem; font-weight: 700; color: var(--green); margin-bottom: .4rem; }
.pf-plan p { font-size: .65rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════
   PIXELFORGE DASHBOARD
══════════════════════════════════════════════════════ */
#win-pixelforge { width: 860px; height: 560px; top: 60px; left: 180px; }
.pf-dashboard { flex-direction: row; }
.pf-dash__sidebar {
  width: 180px; flex-shrink: 0;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 1rem 0;
}
.pf-dash__logo { font-size: .9rem; font-weight: 700; color: var(--green); padding: 0 1rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.pf-dash__nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 .5rem; }
.pf-dash__nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; border-radius: 5px;
  font-size: .78rem; cursor: pointer;
  transition: background .15s, color .15s;
  color: var(--text-dim);
}
.pf-dash__nav-item:hover { background: var(--purple-dim); color: var(--text-bright); }
.pf-dash__nav-item.active { background: var(--purple-dim); color: var(--purple-light); }
.pf-dash__status {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: .7rem; color: var(--text-dim);
}
.pf-dash__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; flex-shrink: 0; }
.pf-dash__main { flex: 1; overflow-y: auto; padding: 1.5rem; }
.pf-tab { display: none; }
.pf-tab.active { display: block; }
.pf-tab h2 { font-size: 1.1rem; color: var(--green); margin-bottom: 1.25rem; }
.pf-tab h3 { font-size: .85rem; color: var(--text-bright); margin-bottom: .75rem; }
.pf-dash__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; margin-bottom: 1.5rem; }
.pf-dash__stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; text-align: center; }
.pf-dash__stat-num { display: block; font-size: 1.4rem; font-weight: 700; color: var(--green); }
.pf-dash__stat span:last-child { font-size: .7rem; color: var(--text-dim); }
.pf-dash__activity { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; }
.activity-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.activity-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.act-green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.act-blue   { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.act-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.act-time { margin-left: auto; color: var(--text-dim); font-size: .7rem; white-space: nowrap; }
.pf-services-list { display: flex; flex-direction: column; gap: .5rem; }
.pf-svc { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; transition: border-color .2s; }
.pf-svc:hover { border-color: var(--border-2); }
.pf-svc__num { font-size: .7rem; font-weight: 700; color: var(--purple-light); min-width: 24px; }
.pf-svc h3 { font-size: .82rem; color: var(--text-bright); margin-bottom: .15rem; }
.pf-svc p { font-size: .72rem; color: var(--text-dim); }
.pf-svc__tag { margin-left: auto; font-size: .65rem; color: var(--cyan); white-space: nowrap; }
.pf-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pf-work-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: border-color .2s, transform .2s; }
.pf-work-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pf-work-card img { width: 100%; height: 100px; object-fit: cover; filter: saturate(.4) brightness(.7); transition: filter .3s; }
.pf-work-card:hover img { filter: saturate(.6) brightness(.8); }
.pf-work-card div { padding: .75rem; }
.pf-work-card span { font-size: .65rem; color: var(--cyan); }
.pf-work-card h3 { font-size: .8rem; color: var(--text-bright); margin: .2rem 0; }
.pf-work-card p { font-size: .68rem; color: var(--text-dim); }
.pf-pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.pf-price-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; position: relative; }
.pf-price-card--featured { border-color: var(--green); box-shadow: 0 0 20px var(--green-glow); }
.pf-price-card__badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); font-size: .55rem; font-weight: 700; background: var(--green); color: #000; padding: .15rem .6rem; border-radius: 0 0 4px 4px; white-space: nowrap; }
.pf-price-card__icon { font-size: 1.4rem; }
.pf-price-card h3 { font-size: .88rem; color: var(--text-bright); }
.pf-price-card__price { font-size: 1.3rem; font-weight: 700; color: var(--green); }
.pf-price-card__price span { font-size: .75rem; color: var(--text-dim); }
.pf-price-card p { font-size: .72rem; color: var(--text-dim); }
.pf-price-card ul { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pf-price-card li { font-size: .72rem; color: var(--text-dim); }
.pf-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pf-contact__info { display: flex; flex-direction: column; gap: .75rem; }
.pf-contact__item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; font-size: .78rem; }
.pf-contact__item span:first-child { font-size: 1.1rem; flex-shrink: 0; }
.pf-contact__item strong { display: block; color: var(--text-bright); margin-bottom: .15rem; }
.pf-contact__item a, .pf-contact__item span:last-child { color: var(--text-dim); font-size: .75rem; }
.pf-available { color: var(--green) !important; }
.pf-contact__form { display: flex; flex-direction: column; gap: .6rem; }
.pf-input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .6rem .75rem; color: var(--text-bright); font-size: .78rem; font-family: var(--font); outline: none; transition: border-color .2s; }
.pf-input:focus { border-color: var(--purple-light); }
.pf-textarea { resize: vertical; min-height: 80px; }

/* ══════════════════════════════════════════════════════
   NMAP
══════════════════════════════════════════════════════ */
#win-nmap { width: 680px; height: 440px; top: 100px; left: 200px; }
.nmap-body { background: #0a0a0a; display: flex; flex-direction: column; }
.nmap-toolbar { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.nmap-target { flex: 1; background: var(--surface-3); border: 1px solid var(--border); border-radius: 4px; padding: .3rem .6rem; color: var(--text-bright); font-size: .78rem; font-family: var(--font); outline: none; }
.nmap-target:focus { border-color: var(--green); }
.nmap-select { background: var(--surface-3); border: 1px solid var(--border); border-radius: 4px; padding: .3rem .5rem; color: var(--text); font-size: .75rem; font-family: var(--font); outline: none; }
.nmap-btn { background: var(--green); color: #000; border-radius: 4px; padding: .3rem .8rem; font-size: .75rem; font-weight: 700; font-family: var(--font); transition: background .2s; }
.nmap-btn:hover { background: #00cc33; }
.nmap-btn--stop { background: var(--red); color: #fff; }
.nmap-btn--stop:hover { background: #cc0000; }
.nmap-output { flex: 1; overflow-y: auto; padding: .75rem; display: flex; flex-direction: column; gap: 2px; }
.nmap-line { font-size: .75rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; }
.nmap-line--dim    { color: var(--text-dim); }
.nmap-line--green  { color: var(--green); }
.nmap-line--yellow { color: var(--yellow); }
.nmap-line--red    { color: var(--red); }
.nmap-line--cyan   { color: var(--cyan); }
.nmap-line--header { color: var(--purple-light); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   METASPLOIT
══════════════════════════════════════════════════════ */
#win-metasploit { width: 700px; height: 460px; top: 80px; left: 220px; }
.msf-body { background: #0a0a0a; display: flex; flex-direction: column; padding: .75rem; }
.msf-banner { font-size: .65rem; color: var(--red); white-space: pre; line-height: 1.2; margin-bottom: .5rem; flex-shrink: 0; }
.msf-output { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.msf-line { font-size: .78rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; }
.msf-line--red    { color: var(--red); }
.msf-line--green  { color: var(--green); }
.msf-line--cyan   { color: var(--cyan); }
.msf-line--yellow { color: var(--yellow); }
.msf-line--dim    { color: var(--text-dim); }
.msf-input-row { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; flex-shrink: 0; }
.msf-prompt { color: var(--red); font-size: .78rem; white-space: nowrap; }
.msf-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-bright); font-family: var(--font); font-size: .78rem; caret-color: var(--red); }

/* ══════════════════════════════════════════════════════
   SETTINGS
══════════════════════════════════════════════════════ */
#win-settings { width: 620px; height: 440px; top: 100px; left: 240px; }
.settings-body { flex-direction: row; }
.settings-sidebar { width: 160px; flex-shrink: 0; background: var(--surface-2); border-right: 1px solid var(--border); padding: .5rem 0; }
.settings-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; font-size: .78rem; cursor: pointer; border-radius: 4px; margin: 0 4px; transition: background .15s, color .15s; }
.settings-item:hover { background: var(--purple-dim); color: var(--text-bright); }
.settings-item.active { background: var(--purple-dim); color: var(--purple-light); }
.settings-main { flex: 1; overflow-y: auto; padding: 1.25rem; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-panel h3 { font-size: .9rem; color: var(--text-bright); margin-bottom: 1rem; }
.settings-row { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .8rem; }
.settings-row label { min-width: 100px; color: var(--text-dim); }
.settings-select { background: var(--surface-3); border: 1px solid var(--border); border-radius: 4px; padding: .3rem .5rem; color: var(--text); font-size: .75rem; font-family: var(--font); outline: none; }
.settings-val { color: var(--text-bright); }
.settings-val--green { color: var(--green); }
.settings-range { flex: 1; accent-color: var(--purple-light); }
.wallpaper-grid { display: flex; gap: .5rem; }
.wp-thumb { width: 40px; height: 28px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.wp-thumb:hover { border-color: var(--border-2); }
.wp-thumb.active { border-color: var(--purple-light); box-shadow: 0 0 8px var(--purple-glow); }
.toggle-wrap { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface-3); border-radius: 10px; cursor: pointer; transition: background .2s; border: 1px solid var(--border); }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--text-dim); border-radius: 50%; transition: transform .2s, background .2s; }
.toggle-wrap input:checked + .toggle-slider { background: var(--purple-dim); border-color: var(--purple-light); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--purple-light); }

/* ══════════════════════════════════════════════════════
   TEXT EDITOR
══════════════════════════════════════════════════════ */
#win-texteditor { width: 640px; height: 460px; top: 90px; left: 200px; }
.editor-body { background: #0d0d14; }
.editor-toolbar { display: flex; align-items: center; gap: .3rem; padding: .35rem .6rem; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.editor-btn { background: var(--surface-3); border: 1px solid var(--border); border-radius: 3px; padding: .2rem .55rem; font-size: .72rem; color: var(--text); transition: background .15s; }
.editor-btn:hover { background: var(--purple-dim); color: var(--purple-light); }
.editor-sep { width: 1px; height: 16px; background: var(--border); margin: 0 .2rem; }
.editor-wrap { flex: 1; display: flex; overflow: hidden; }
.editor-lines { width: 40px; flex-shrink: 0; background: var(--surface-2); border-right: 1px solid var(--border); padding: .5rem 0; text-align: right; overflow: hidden; }
.editor-line-num { font-size: .72rem; color: var(--text-dim); padding: 0 .5rem; line-height: 1.6; }
.editor-area { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--font); font-size: .78rem; line-height: 1.6; padding: .5rem .75rem; resize: none; overflow-y: auto; }
.editor-statusbar { display: flex; align-items: center; gap: 1.5rem; padding: .25rem .75rem; background: var(--purple); font-size: .68rem; color: rgba(255,255,255,.8); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   TASKBAR
══════════════════════════════════════════════════════ */
.taskbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: var(--taskbar-h);
  background: rgba(12,12,20,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 .5rem;
  gap: .25rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.taskbar__menu {
  width: 36px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  transition: background .15s;
  flex-shrink: 0;
}
.taskbar__menu:hover { background: var(--purple-dim); }
.taskbar__dragon { font-size: 1.2rem; }
.taskbar__launchers { display: flex; align-items: center; gap: 2px; }
.taskbar__launcher {
  width: 32px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 1rem;
  transition: background .15s, transform .15s;
}
.taskbar__launcher:hover { background: var(--purple-dim); transform: translateY(-2px); }
.taskbar__sep { width: 1px; height: 20px; background: var(--border); margin: 0 .25rem; }
.taskbar__windows { display: flex; align-items: center; gap: 3px; flex: 1; overflow: hidden; }
.taskbar__win-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 5px;
  font-size: .72rem; color: var(--text-dim);
  max-width: 140px; overflow: hidden;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.taskbar__win-btn:hover { background: var(--purple-dim); color: var(--text-bright); }
.taskbar__win-btn.active { background: var(--purple-dim); color: var(--purple-light); border-color: var(--border-2); }
.taskbar__win-btn.minimized-btn { opacity: .5; }
.taskbar__spacer { flex: 1; }
.taskbar__tray { display: flex; align-items: center; gap: .5rem; padding-left: .5rem; border-left: 1px solid var(--border); }
.tray-icon { font-size: .9rem; cursor: pointer; opacity: .7; transition: opacity .15s; }
.tray-icon:hover { opacity: 1; }
.tray-clock { text-align: right; cursor: default; }
.tray-time { font-size: .78rem; font-weight: 600; color: var(--text-bright); line-height: 1.2; }
.tray-date { font-size: .62rem; color: var(--text-dim); }
.tray-power { font-size: 1rem; opacity: .7; transition: opacity .15s, color .15s; padding: .2rem; border-radius: 4px; }
.tray-power:hover { opacity: 1; color: var(--red); background: rgba(255,68,68,.1); }

/* ══════════════════════════════════════════════════════
   APP MENU
══════════════════════════════════════════════════════ */
.app-menu {
  position: absolute; bottom: calc(var(--taskbar-h) + 6px); left: 6px;
  width: 340px;
  background: rgba(18,18,28,.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: .75rem;
  z-index: 2000;
  box-shadow: 0 -8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  animation: menuSlideUp .2s var(--ease);
}
@keyframes menuSlideUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.app-menu__search-wrap { margin-bottom: .6rem; }
.app-menu__search {
  width: 100%; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 6px;
  padding: .5rem .75rem; color: var(--text-bright);
  font-size: .8rem; font-family: var(--font); outline: none;
  transition: border-color .2s;
}
.app-menu__search:focus { border-color: var(--purple-light); }
.app-menu__categories { display: flex; gap: .3rem; margin-bottom: .6rem; }
.app-menu__cat { padding: .25rem .65rem; border-radius: 20px; font-size: .7rem; color: var(--text-dim); border: 1px solid transparent; transition: all .15s; }
.app-menu__cat:hover { background: var(--purple-dim); color: var(--text-bright); }
.app-menu__cat.active { background: var(--purple-dim); color: var(--purple-light); border-color: var(--border-2); }
.app-menu__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .4rem; }
.app-menu__item { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .25rem; border-radius: 6px; cursor: pointer; transition: background .15s; }
.app-menu__item:hover { background: var(--purple-dim); }
.app-menu__icon { font-size: 1.6rem; }
.app-menu__item span { font-size: .65rem; color: var(--text-dim); text-align: center; }
.app-menu__item:hover span { color: var(--text-bright); }

/* ══════════════════════════════════════════════════════
   POWER MENU
══════════════════════════════════════════════════════ */
.power-menu {
  position: absolute; bottom: calc(var(--taskbar-h) + 6px); right: 6px;
  width: 220px;
  background: rgba(18,18,28,.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: .75rem;
  z-index: 2000;
  box-shadow: 0 -8px 40px rgba(0,0,0,.6);
  animation: menuSlideUp .2s var(--ease);
}
.power-menu__user { display: flex; align-items: center; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.power-menu__avatar { font-size: 1.8rem; }
.power-menu__user strong { display: block; font-size: .85rem; color: var(--text-bright); }
.power-menu__user span { font-size: .72rem; color: var(--text-dim); }
.power-menu__actions { display: flex; flex-direction: column; gap: .25rem; }
.power-btn { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: 5px; font-size: .8rem; color: var(--text); transition: background .15s, color .15s; width: 100%; text-align: left; }
.power-btn:hover { background: var(--purple-dim); color: var(--text-bright); }
.power-btn--red:hover { background: rgba(255,68,68,.12); color: var(--red); }

/* ══════════════════════════════════════════════════════
   WALLPAPER THEMES
══════════════════════════════════════════════════════ */
.wallpaper[data-wp="matrix"] {
  background: linear-gradient(135deg, #000 0%, #001a00 50%, #000 100%) !important;
}
.wallpaper[data-wp="purple"] {
  background: linear-gradient(135deg, #0d0015 0%, #2d0050 50%, #0d0015 100%) !important;
}
.wallpaper[data-wp="cyber"] {
  background: linear-gradient(135deg, #000a1a 0%, #001a3a 50%, #000a1a 100%) !important;
}
.wallpaper[data-wp="red"] {
  background: linear-gradient(135deg, #1a0000 0%, #3a0000 50%, #1a0000 100%) !important;
}