/* ==========================================================================
   Alexander Ryan OS — Desktop Tech Blog  v3
   Dark theme · Emerald (#10B981) & Neon Navy (#4D7CFF)
   ========================================================================== */

:root {
  --bg:           #08080a;
  --bg-elevated:  #101012;
  --bg-card:      #151517;
  --bg-card-hover:#1a1a1d;
  --surface:      #1c1c1f;
  --border:       #232326;
  --border-light: #333338;

  --text:         #ececef;
  --text-muted:   #9d9da6;
  --text-dim:     #636370;

  --emerald:      #10B981;
  --emerald-dim:  #059669;
  --emerald-glow: rgba(16, 185, 129, 0.15);

  --coral:        #4D7CFF;
  --coral-dim:    #3A63E0;
  --coral-glow:   rgba(77, 124, 255, 0.15);

  --font:         'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --win-radius:   12px;
  --titlebar-h:   40px;
  --dock-h:       78px;
  --menubar-h:    30px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.35);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.45);
  --shadow-xl:    0 32px 80px rgba(0,0,0,0.55);

  /* Retro cursors (inline SVG data URIs) */
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M0 0 L0 19 L5 14 L9 22 L12 21 L8 13 L14 13 Z' fill='%2310B981' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 0 0, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Cpath d='M8 0 C8 0 8 9 8 9 L5 9 C5 9 5 12 5 12 L3 12 C3 12 3 15 3 15 L1 15 C1 15 1 19 1 19 L3 19 L3 21 L5 21 L5 23 L17 23 L17 21 L19 21 L19 19 L21 19 L21 13 L19 13 L19 11 L17 11 L17 9 L14 9 L14 5 L12 5 L12 9 L10 9 L10 0 Z' fill='%234D7CFF' stroke='%23000' stroke-width='0.8'/%3E%3C/svg%3E") 6 0, pointer;
  --cursor-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M4 0 H12 V2 H10 V4 H9 V11 H10 V11 H12 V13 H10 V13 H9 V20 H10 V22 H12 V24 H4 V22 H6 V20 H7 V13 H6 V13 H4 V11 H6 V11 H7 V4 H6 V2 H4 Z' fill='%2310B981' stroke='%23000' stroke-width='0.5'/%3E%3C/svg%3E") 8 12, text;
}

@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  cursor: var(--cursor-default);
  user-select: none;
}

a { color: inherit; text-decoration: none; }

/* Retro cursor — desktop, dock, folders only */
.folder, .dock-item, .menubar-item,
.menu-item { cursor: var(--cursor-pointer); }

/* Normal system cursors inside windows */
.window { cursor: default; }
.window a, .window button { cursor: pointer; }
.window input, .window textarea, .window [contenteditable] { cursor: text; }
.window-titlebar[data-drag="true"] { cursor: grab; }
.window-titlebar[data-drag="true"]:active { cursor: grabbing; }

/* ======================================================================
   PRELOADER / BOOT — Old School CLI
   ====================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 100000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
}
#preloader.done {
  opacity: 0; pointer-events: none;
}
#preloader.gone { visibility: hidden; }

/* CRT scanlines overlay */
.boot-scanlines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
}

/* Terminal container */
.boot-terminal {
  position: relative; z-index: 1;
  width: 620px; max-width: 90vw;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

/* Terminal output lines */
.boot-output {
  min-height: 200px;
  margin-bottom: 1.5rem;
}
.boot-line {
  color: #00ff41;
  opacity: 0;
  animation: bootLineIn 0.1s ease forwards;
  white-space: pre;
}
.boot-line--dim { color: #007a1e; }
.boot-line--accent { color: #4D7CFF; }
.boot-line--white { color: #aaa; }
.boot-line--bright { color: #00ff41; text-shadow: 0 0 8px rgba(0,255,65,0.4); }

@keyframes bootLineIn { to { opacity: 1; } }

/* Blinking cursor at the end */
.boot-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: #00ff41;
  vertical-align: text-bottom;
  animation: bootCursorBlink 0.7s step-end infinite;
  box-shadow: 0 0 6px rgba(0,255,65,0.5);
}
@keyframes bootCursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Progress bar */
.boot-progress-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.boot-progress-wrap.visible { opacity: 1; }

.boot-progress-track {
  flex: 1; height: 4px;
  background: #0a2a0a;
  border: 1px solid #003d00;
  border-radius: 2px;
  overflow: hidden;
}
.boot-progress-fill {
  height: 100%; width: 0%;
  background: #00ff41;
  box-shadow: 0 0 8px rgba(0,255,65,0.5);
  transition: width 0.08s linear;
}
.boot-progress-pct {
  color: #00ff41;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-width: 32px; text-align: right;
  text-shadow: 0 0 6px rgba(0,255,65,0.4);
}

@keyframes fadeIn { to { opacity: 1; } }

/* ======================================================================
   NOISE
   ====================================================================== */
.noise-overlay {
  position: fixed; inset: 0; z-index: 99998; pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}

/* ======================================================================
   DESKTOP
   ====================================================================== */
.desktop {
  position: fixed; inset: 0;
  padding-top: var(--menubar-h);
  padding-bottom: var(--dock-h);
  overflow: hidden;
}

.bg-canvas {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
}

.desktop-glow {
  position: absolute; border-radius: 50%; filter: blur(160px); pointer-events: none; z-index: 0;
}
.desktop-glow--1 { width: 500px; height: 500px; top: 5%; left: 60%; background: var(--emerald); opacity: 0.05; animation: glowDrift 25s ease-in-out infinite; }
.desktop-glow--2 { width: 420px; height: 420px; bottom: 10%; left: 8%; background: var(--coral); opacity: 0.04; animation: glowDrift 25s ease-in-out 8s infinite; }
.desktop-glow--3 { width: 300px; height: 300px; top: 40%; right: 5%; background: var(--emerald); opacity: 0.03; animation: glowDrift 25s ease-in-out 16s infinite; }
@keyframes glowDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  25%  { transform: translate(30px,-25px) scale(1.05); }
  50%  { transform: translate(-15px,35px) scale(0.95); }
  75%  { transform: translate(25px,15px) scale(1.02); }
}

/* ======================================================================
   DESKTOP FOLDERS
   ====================================================================== */
.desktop-folders {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
  z-index: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.desktop-folders.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 88px;
  color: var(--text);
  font-family: var(--font);
}

.folder:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.folder:active {
  transform: scale(0.95);
}

/* Folder icon — CSS folder shape */
.folder-icon {
  position: relative;
  width: 56px;
  height: 44px;
  transition: transform 0.25s var(--ease-spring);
}

.folder:hover .folder-icon {
  transform: translateY(-3px) scale(1.05);
}

/* Tab — the top flap of the folder */
.folder-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 10px;
  border-radius: 4px 6px 0 0;
  background: inherit;
}

/* Body — the main folder rectangle */
.folder-body {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 3px 6px 6px 6px;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.folder-emblem {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  stroke: rgba(255,255,255,0.85);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: opacity 0.2s ease;
}

.folder:hover .folder-emblem {
  opacity: 0.95;
}

/* Folder color variants */
.folder-icon--teal .folder-tab,
.folder-icon--teal .folder-body {
  background: linear-gradient(145deg, #178a6a, #0f6b52);
}

.folder-icon--coral .folder-tab,
.folder-icon--coral .folder-body {
  background: linear-gradient(145deg, #4D7CFF, #3A63E0);
}

.folder-icon--blue .folder-tab,
.folder-icon--blue .folder-body {
  background: linear-gradient(145deg, #2c6dd4, #1e55b0);
}

.folder-icon--slate .folder-tab,
.folder-icon--slate .folder-body {
  background: linear-gradient(145deg, #3e3e4a, #2c2c35);
}

.folder-icon--purple .folder-tab,
.folder-icon--purple .folder-body {
  background: linear-gradient(145deg, #7c4dc4, #5e3a9a);
}

.folder-icon--amber .folder-tab,
.folder-icon--amber .folder-body {
  background: linear-gradient(145deg, #c89520, #a57a18);
}

.folder-icon--signal .folder-tab,
.folder-icon--signal .folder-body {
  background: linear-gradient(145deg, #EC4899, #BE185D);
}

.folder-icon--crimson .folder-tab,
.folder-icon--crimson .folder-body {
  background: linear-gradient(145deg, #DC2626, #B91C1C);
}

.folder-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.folder:hover .folder-label {
  color: var(--text);
}

/* ======================================================================
   TOP MENU BAR
   ====================================================================== */
.menubar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  background: rgba(12,12,14,0.78);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; z-index: 10001; font-size: 0.8rem;
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 0; }
.menubar-right { gap: 1.5rem; }
.menubar-logo { font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; margin-right: 1.25rem; }
.menubar-logo .logo-bracket { color: var(--emerald); }

.menubar-dropdown-wrap { position: relative; }

.menubar-item {
  color: var(--text-muted); cursor: default; transition: all 0.12s ease;
  padding: 0 0.6rem; height: var(--menubar-h); display: flex; align-items: center;
  border-radius: 5px; font-size: 0.8rem;
}
.menubar-item:hover, .menubar-item.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

#menubar-clock { font-family: var(--font-mono); color: var(--text); font-weight: 500; font-size: 0.78rem; }
#menubar-date { color: var(--text-dim); font-size: 0.78rem; }

/* Dropdown menus */
.menubar-dropdown {
  position: absolute; top: calc(var(--menubar-h) + 4px); left: 0;
  min-width: 230px;
  background: rgba(22,22,26,0.94);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.3rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s var(--ease-out);
  z-index: 10002;
}
.menubar-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.4rem 0.7rem; border: none; border-radius: 6px;
  background: transparent; color: var(--text); font-family: var(--font);
  font-size: 0.8rem; cursor: pointer; transition: background 0.1s ease;
  text-align: left; gap: 1.5rem;
}
.menu-item:hover:not(.disabled) { background: var(--emerald); color: #000; }
.menu-item:hover:not(.disabled) kbd { color: rgba(0,0,0,0.5); }
.menu-item.disabled { color: var(--text-dim); cursor: default; }
.menu-item kbd { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); margin-left: auto; }
.menu-separator { height: 1px; background: rgba(255,255,255,0.06); margin: 0.25rem 0.5rem; }
.menu-check { display: inline-block; width: 16px; margin-right: 0.2rem; font-size: 0.7rem; }
.menu-check.visible::before { content: '✓'; color: var(--emerald); }

/* ======================================================================
   DOCK
   ====================================================================== */
.dock {
  position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  z-index: 10000;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s ease;
}
.dock.hidden { opacity: 0; transform: translateX(-50%) translateY(100%); visibility: hidden; }
.dock.dock-autohide { transform: translateX(-50%) translateY(calc(100% + 0.5rem)); opacity: 0; }
.dock.dock-autohide:hover { transform: translateX(-50%) translateY(0); opacity: 1; }

.dock-inner {
  display: flex; align-items: flex-end; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(12,12,16,0.75);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.3);
}
.dock-separator { width: 1px; height: 32px; background: rgba(255,255,255,0.08); margin: 0 0.45rem; align-self: center; }

.dock-item {
  position: relative; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 15px; border: none;
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.22s var(--ease-out);
}
.dock-icon-wrap {
  width: 100%; height: 100%; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; transition: all 0.22s var(--ease-out);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
}
.dock-item svg { width: 100%; height: 100%; transition: all 0.2s ease; }
.dock-item:hover {
  transform: translateY(-10px) scale(1.22);
}
.dock-item:hover .dock-icon-wrap {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dock-item:active { transform: translateY(-4px) scale(1.06); }
.dock-item.neighbor { transform: translateY(-4px) scale(1.1); }

/* Dock color variants */
.dock-item--emerald .dock-icon-wrap { background: rgba(16,185,129,0.12); color: #10B981; }
.dock-item--emerald:hover .dock-icon-wrap { background: rgba(16,185,129,0.22); box-shadow: 0 4px 20px rgba(16,185,129,0.2); }
.dock-item--coral .dock-icon-wrap { background: rgba(77,124,255,0.12); color: #4D7CFF; }
.dock-item--coral:hover .dock-icon-wrap { background: rgba(77,124,255,0.22); box-shadow: 0 4px 20px rgba(77,124,255,0.2); }
.dock-item--purple .dock-icon-wrap { background: rgba(139,92,246,0.12); color: #8B5CF6; }
.dock-item--purple:hover .dock-icon-wrap { background: rgba(139,92,246,0.22); box-shadow: 0 4px 20px rgba(139,92,246,0.2); }
.dock-item--green .dock-icon-wrap { background: rgba(34,197,94,0.12); color: #22C55E; }
.dock-item--green:hover .dock-icon-wrap { background: rgba(34,197,94,0.22); box-shadow: 0 4px 20px rgba(34,197,94,0.2); }
.dock-item--blue .dock-icon-wrap { background: rgba(59,130,246,0.12); color: #3B82F6; }
.dock-item--blue:hover .dock-icon-wrap { background: rgba(59,130,246,0.22); box-shadow: 0 4px 20px rgba(59,130,246,0.2); }
.dock-item--amber .dock-icon-wrap { background: rgba(245,158,11,0.12); color: #F59E0B; }
.dock-item--amber:hover .dock-icon-wrap { background: rgba(245,158,11,0.22); box-shadow: 0 4px 20px rgba(245,158,11,0.2); }
.dock-item--signal .dock-icon-wrap { background: rgba(236,72,153,0.12); color: #EC4899; }
.dock-item--signal:hover .dock-icon-wrap { background: rgba(236,72,153,0.22); box-shadow: 0 4px 20px rgba(236,72,153,0.2); }
.dock-item--crimson .dock-icon-wrap { background: rgba(220,38,38,0.12); color: #DC2626; }
.dock-item--crimson:hover .dock-icon-wrap { background: rgba(220,38,38,0.22); box-shadow: 0 4px 20px rgba(220,38,38,0.2); }
.dock-item--ryshe .dock-icon-wrap {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(77,124,255,0.2));
  border-color: rgba(77,124,255,0.15);
}
.dock-item--ryshe:hover .dock-icon-wrap {
  background: linear-gradient(135deg, rgba(16,185,129,0.35), rgba(77,124,255,0.35));
  box-shadow: 0 4px 20px rgba(77,124,255,0.25);
}
.dock-ryshe-logo {
  font-family: var(--font); font-size: 1.15rem; font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dock-dot {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--emerald);
  opacity: 0; transition: opacity 0.25s ease;
}
.dock-item.has-window .dock-dot { opacity: 1; }

.dock-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  background: rgba(22,22,26,0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px; font-size: 0.72rem; color: var(--text); white-space: nowrap;
  opacity: 0; visibility: hidden; transition: all 0.15s var(--ease-out);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.dock-item:hover .dock-tooltip { opacity: 1; visibility: visible; }

/* ======================================================================
   WINDOWS
   ====================================================================== */
.window {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--win-radius);
  box-shadow: var(--shadow-xl);
  display: none; flex-direction: column; overflow: hidden;
  z-index: 10; min-width: 320px; min-height: 200px;
  opacity: 0; transform: scale(0.92) translateY(8px);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.28s var(--ease-out),
    top 0.35s var(--ease-out),
    left 0.35s var(--ease-out),
    width 0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    box-shadow 0.3s ease;
}
.window.open { display: flex; opacity: 1; transform: scale(1) translateY(0); }
.window.closing { opacity: 0; transform: scale(0.95) translateY(6px); }
.window.maximized {
  top: var(--menubar-h) !important; left: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--menubar-h) - var(--dock-h) - 8px) !important;
  border-radius: 0;
}
.window.focused {
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 80px -20px rgba(16,185,129,0.06);
}

.window.snapped-left {
  top: var(--menubar-h) !important; left: 0 !important;
  width: 50% !important;
  height: calc(100vh - var(--menubar-h) - var(--dock-h) - 8px) !important;
  border-radius: 0;
}
.window.snapped-right {
  top: var(--menubar-h) !important; left: 50% !important;
  width: 50% !important;
  height: calc(100vh - var(--menubar-h) - var(--dock-h) - 8px) !important;
  border-radius: 0;
}

.window.dragging {
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out) !important;
}

/* Title Bar */
.window-titlebar {
  height: var(--titlebar-h); display: flex; align-items: center;
  padding: 0 0.85rem;
  background: rgba(18,18,22,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0; cursor: grab; gap: 0.5rem;
}
.window-titlebar:active { cursor: grabbing; }
.window-titlebar--dark { background: rgba(8,8,10,0.95); }

.window-controls { display: flex; gap: 8px; flex-shrink: 0; }
.win-btn {
  width: 13px; height: 13px; border-radius: 50%; border: none;
  cursor: pointer; transition: all 0.15s ease; position: relative;
}
.win-btn:hover { filter: brightness(1.25); transform: scale(1.1); }
.win-btn--close { background: #ff5f57; }
.win-btn--minimize { background: #febc2e; }
.win-btn--maximize { background: #28c840; }
.window:not(.focused) .win-btn { background: var(--border-light); }

.win-btn::after {
  content: ''; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; line-height: 1; opacity: 0; transition: opacity 0.12s ease;
}
.window-controls:hover .win-btn::after { opacity: 1; }
.win-btn--close::after { content: '✕'; color: #800; font-size: 7px; padding-top: 1px; padding-left: 0.5px; }
.win-btn--minimize::after { content: '−'; color: #805500; font-size: 10px; padding-bottom: 1px; }
.win-btn--maximize::after { content: '+'; color: #005500; font-size: 9px; }

.window-title {
  font-size: 0.78rem; font-weight: 500; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; flex: 1;
}
.window-title-spacer { width: 56px; flex-shrink: 0; }

/* Window Body */
.window-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 1.5rem; user-select: text;
}
.window-body::-webkit-scrollbar { width: 5px; }
.window-body::-webkit-scrollbar-track { background: transparent; }
.window-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.window-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ======================================================================
   SNAP PREVIEW
   ====================================================================== */
.snap-preview {
  position: fixed; z-index: 9999; pointer-events: none;
  background: rgba(16,185,129,0.06);
  border: 2px solid rgba(16,185,129,0.2);
  border-radius: 12px; opacity: 0;
  transition: all 0.25s var(--ease-out);
}
.snap-preview.visible { opacity: 1; }
.snap-preview.snap-left { top: var(--menubar-h); left: 6px; width: calc(50% - 6px); height: calc(100vh - var(--menubar-h) - var(--dock-h) - 14px); }
.snap-preview.snap-right { top: var(--menubar-h); left: 50%; width: calc(50% - 6px); height: calc(100vh - var(--menubar-h) - var(--dock-h) - 14px); }
.snap-preview.snap-top { top: var(--menubar-h); left: 6px; width: calc(100% - 12px); height: calc(100vh - var(--menubar-h) - var(--dock-h) - 14px); }

/* ======================================================================
   CONTEXT MENU
   ====================================================================== */
.context-menu {
  position: fixed; z-index: 100001; min-width: 210px;
  background: rgba(22,22,26,0.94);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.3rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: scale(0.96);
  transition: all 0.14s var(--ease-out);
}
.context-menu.open { opacity: 1; visibility: visible; transform: scale(1); }

.ctx-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.42rem 0.7rem; border: none; border-radius: 6px;
  background: transparent; color: var(--text); font-family: var(--font);
  font-size: 0.8rem; cursor: pointer; transition: background 0.1s ease; text-align: left;
}
.ctx-item:hover { background: var(--emerald); color: #000; }
.ctx-item:hover svg { stroke: #000; }
.ctx-item:hover kbd { color: rgba(0,0,0,0.5); }
.ctx-item svg { flex-shrink: 0; }
.ctx-item kbd { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); margin-left: auto; }
.ctx-separator { height: 1px; background: rgba(255,255,255,0.06); margin: 0.25rem 0.5rem; }

/* ======================================================================
   SPOTLIGHT SEARCH
   ====================================================================== */
.spotlight {
  position: fixed; inset: 0; z-index: 100002;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18vh; opacity: 0; visibility: hidden;
  transition: all 0.22s ease;
}
.spotlight.open { opacity: 1; visibility: visible; }
.spotlight-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

.spotlight-dialog {
  position: relative; width: 540px; max-width: 90vw;
  background: rgba(22,22,26,0.95);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.22s var(--ease-out);
  overflow: hidden;
}
.spotlight.open .spotlight-dialog { transform: scale(1) translateY(0); }

.spotlight-input-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spotlight-search-icon { flex-shrink: 0; color: var(--text-dim); }
.spotlight-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 1rem;
}
.spotlight-input::placeholder { color: var(--text-dim); }
.spotlight-kbd {
  font-family: var(--font-mono); font-size: 0.58rem;
  padding: 0.15rem 0.45rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 5px; color: var(--text-dim);
}

.spotlight-results { max-height: 320px; overflow-y: auto; }
.spotlight-results:empty { display: none; }

.spotlight-group-label {
  padding: 0.55rem 1.1rem 0.25rem; font-size: 0.62rem; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em;
}
.spotlight-result {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1.1rem; cursor: pointer; transition: background 0.1s ease;
  border-radius: 6px; margin: 0 0.3rem;
}
.spotlight-result:hover, .spotlight-result.selected { background: var(--emerald); color: #000; }
.spotlight-result:hover .sr-hint, .spotlight-result.selected .sr-hint { color: rgba(0,0,0,0.45); }
.spotlight-result:hover svg, .spotlight-result.selected svg { stroke: #000; }
.sr-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sr-icon svg { width: 100%; height: 100%; }
.sr-text { flex: 1; font-size: 0.85rem; }
.sr-hint { font-size: 0.68rem; color: var(--text-dim); margin-left: auto; }

/* ======================================================================
   NOTIFICATIONS
   ====================================================================== */
.notifications {
  position: fixed; top: calc(var(--menubar-h) + 0.75rem); right: 1rem;
  z-index: 100003; display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 1rem; min-width: 260px; max-width: 340px;
  background: rgba(22,22,26,0.94);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem; color: var(--text);
  pointer-events: auto; cursor: pointer;
  animation: toastIn 0.35s var(--ease-out) forwards;
}
.toast.leaving { animation: toastOut 0.3s ease forwards; }

.toast-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--emerald); }
.toast-icon svg { width: 100%; height: 100%; }
.toast-msg { flex: 1; line-height: 1.35; }
.toast-time { font-size: 0.62rem; color: var(--text-dim); flex-shrink: 0; }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(30px) scale(0.95); } }

/* ======================================================================
   ABOUT WINDOW
   ====================================================================== */
.about-hero-row { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(77,124,255,0.12));
  border: 2px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--emerald);
}
.avatar-img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}
.about-name { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.about-role { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.15rem; }
.about-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--emerald); margin-top: 0.4rem; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 6px rgba(16,185,129,0.4);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(16,185,129,0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 10px rgba(16,185,129,0.1); }
}
.about-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 1.25rem; }
.about-bio p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 0.75rem; }
.about-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  margin: 1.5rem 0; padding: 1.15rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.about-stat { text-align: center; }
.stat-val { display: block; font-size: 1.3rem; font-weight: 700; font-family: var(--font-mono); color: var(--emerald); }
.stat-lbl { display: block; font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.about-social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.about-social-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.4rem 0.75rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 8px;
  transition: all 0.2s ease;
}
.about-social-link:hover { color: var(--emerald); border-color: var(--emerald); background: var(--emerald-glow); }

/* ======================================================================
   BLOG WINDOW
   ====================================================================== */
.blog-toolbar { margin-bottom: 1.25rem; }
.blog-filters { display: flex; gap: 0.35rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.38rem 0.9rem; background: transparent;
  color: var(--text-dim); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.08em; transition: all 0.18s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); }
.filter-btn.active { color: var(--emerald); border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }

.blog-featured {
  position: relative; padding: 1.3rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(77,124,255,0.03));
  border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
  margin-bottom: 1.25rem; transition: all 0.25s ease;
}
.blog-featured:hover { border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-sm); }
.featured-badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  font-family: var(--font-mono); font-size: 0.58rem;
  padding: 0.22rem 0.6rem; background: rgba(16,185,129,0.1);
  color: var(--emerald); border: 1px solid rgba(16,185,129,0.2);
  border-radius: 5px; letter-spacing: 0.12em;
}
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.58rem; padding: 0.22rem 0.55rem;
  border-radius: 5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
}
.tag--emerald { background: rgba(16,185,129,0.1); color: var(--emerald); border: 1px solid rgba(16,185,129,0.18); }
.tag--coral { background: rgba(77,124,255,0.1); color: var(--coral); border: 1px solid rgba(77,124,255,0.18); }
.tag--muted { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.07); }
.post-date { font-size: 0.7rem; color: var(--text-dim); }
.post-title { font-size: 0.95rem; font-weight: 600; line-height: 1.45; margin-bottom: 0.4rem; }
.post-title--lg { font-size: 1.15rem; }
.post-excerpt { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.65rem; }
.read-link { font-size: 0.75rem; font-weight: 600; color: var(--emerald); transition: all 0.18s ease; }
.read-link:hover { color: var(--coral); letter-spacing: 0.02em; }

.blog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.85rem; }
.blog-card {
  position: relative; padding: 1.1rem; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 8px;
  overflow: hidden; transition: all 0.25s var(--ease-out);
}
.blog-card:hover {
  border-color: rgba(255,255,255,0.1); transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card .card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--coral));
  opacity: 0; transition: opacity 0.25s ease;
}
.blog-card:hover .card-accent { opacity: 1; }

/* ======================================================================
   PROJECTS WINDOW
   ====================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.85rem; }
.project-card {
  position: relative; border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: all 0.35s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-card);
}
/* Left accent bar */
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  opacity: 0.6; transition: opacity 0.3s ease, width 0.3s ease;
}
.project-card:hover::before { opacity: 1; width: 4px; }
.project-card:hover {
  border-color: rgba(255,255,255,0.1); transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.project-card:active { transform: translateY(-1px); }

/* Per-card accent colors */
.project-card--ryshe::before   { background: linear-gradient(180deg, #10B981, #4D7CFF); }
.project-card--cortex::before  { background: linear-gradient(180deg, #4D7CFF, #818CF8); }
.project-card--synthgraph::before { background: linear-gradient(180deg, #3B82F6, #06B6D4); }
.project-card--deepwatch::before  { background: linear-gradient(180deg, #A855F7, #EC4899); }
.project-card--lattice::before { background: linear-gradient(180deg, #10B981, #34D399); }
.project-card--prism::before   { background: linear-gradient(180deg, #F59E0B, #EF4444); }

/* Corner glow on hover */
.project-card-glow {
  position: absolute; top: -40px; right: -40px; width: 100px; height: 100px;
  border-radius: 50%; opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none; filter: blur(30px);
}
.project-card:hover .project-card-glow { opacity: 1; }
.project-card--ryshe .project-card-glow   { background: rgba(16,185,129,0.2); }
.project-card--cortex .project-card-glow  { background: rgba(77,124,255,0.2); }
.project-card--synthgraph .project-card-glow { background: rgba(59,130,246,0.2); }
.project-card--deepwatch .project-card-glow  { background: rgba(168,85,247,0.2); }
.project-card--lattice .project-card-glow { background: rgba(16,185,129,0.2); }
.project-card--prism .project-card-glow   { background: rgba(245,158,11,0.2); }

/* Card content */
.project-card-content {
  position: relative; z-index: 1;
  padding: 1.15rem 1.15rem 1rem 1.3rem;
  display: flex; flex-direction: column; height: 100%;
  min-height: 180px;
}
.project-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.project-card-top h4 {
  font-size: 0.95rem; font-weight: 700; transition: color 0.25s ease;
}
/* Per-card title hover color */
.project-card--ryshe:hover h4   { color: #10B981; }
.project-card--cortex:hover h4  { color: #4D7CFF; }
.project-card--synthgraph:hover h4 { color: #3B82F6; }
.project-card--deepwatch:hover h4  { color: #A855F7; }
.project-card--lattice:hover h4 { color: #34D399; }
.project-card--prism:hover h4   { color: #F59E0B; }

.project-status {
  font-family: var(--font-mono); font-size: 0.5rem; font-weight: 600;
  padding: 0.18rem 0.5rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.1em;
  flex-shrink: 0;
}
.project-status--live {
  background: rgba(16,185,129,0.12); color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.2);
}
.project-status--beta {
  background: rgba(77,124,255,0.12); color: var(--coral);
  border: 1px solid rgba(77,124,255,0.2);
}
.project-status--internal {
  background: rgba(255,255,255,0.05); color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.08);
}

.project-card-content > p {
  font-size: 0.76rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 0.6rem; flex: 1;
}
.project-card-stat {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 0.7rem; letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.project-card:hover .project-card-stat { color: var(--text-muted); }

.project-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.project-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.project-tags span {
  font-family: var(--font-mono); font-size: 0.55rem; padding: 0.2rem 0.45rem;
  background: rgba(255,255,255,0.04); color: var(--text-dim); border-radius: 4px;
  transition: all 0.25s ease;
}
.project-card:hover .project-tags span {
  background: rgba(255,255,255,0.07); color: var(--text-muted);
}
.project-card-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.04); flex-shrink: 0;
  opacity: 0; transform: translateX(-6px);
  transition: all 0.3s var(--ease-out);
}
.project-card-arrow svg { width: 13px; height: 13px; color: var(--text-muted); }
.project-card:hover .project-card-arrow {
  opacity: 1; transform: translateX(0);
}

/* Project Detail View */
.project-detail {
  animation: pdSlideIn 0.3s var(--ease-out);
}
@keyframes pdSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.project-detail-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; padding: 0.4rem 0; margin-bottom: 1rem;
  transition: color 0.2s ease;
}
.project-detail-back:hover { color: var(--emerald); }
.project-detail-back svg { width: 16px; height: 16px; }
.project-detail-header {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.project-detail-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
.project-detail-icon svg { width: 26px; height: 26px; }
.project-detail-title-wrap { display: flex; align-items: center; gap: 0.65rem; }
.project-detail-title-wrap h3 { font-size: 1.2rem; font-weight: 700; }
.project-detail-title-wrap .project-status { position: static; }
.project-detail-body { display: flex; flex-direction: column; gap: 1.1rem; }
.project-detail-section h5 {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--emerald); margin-bottom: 0.45rem;
}
.project-detail-section p {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.75;
}
.project-detail-section ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.project-detail-section ul li {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.6;
  padding-left: 1rem; position: relative;
}
.project-detail-section ul li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald); opacity: 0.7;
}
.project-detail-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.project-detail-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.project-detail-chips span {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  padding: 0.28rem 0.6rem; border-radius: 5px;
  letter-spacing: 0.04em;
}
.project-detail-chips--lang span {
  background: rgba(16,185,129,0.1); color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.18);
}
.project-detail-chips--stack span {
  background: rgba(77,124,255,0.1); color: var(--coral);
  border: 1px solid rgba(77,124,255,0.18);
}

/* ======================================================================
   TERMINAL WINDOW
   ====================================================================== */
.window-body--terminal {
  background: #0b0b0d; padding: 1rem; padding-bottom: 0;
  display: flex; flex-direction: column;
}
.terminal {
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.75;
  flex: 1; overflow-y: auto; padding-bottom: 0.5rem;
}
.term-line { margin-bottom: 0.15rem; }
.term-prompt { color: var(--emerald); font-weight: 600; }
.term-prompt::before { content: '❯ '; color: var(--coral); }
.term-cmd { color: var(--text); }
.term-output { color: var(--text-muted); margin-bottom: 0.5rem; display: flex; gap: 2rem; align-items: flex-start; }
.neofetch-wrap { display: flex; gap: 2rem; align-items: flex-start; }
.neofetch-art { font-size: 0.68rem; line-height: 1.35; color: var(--emerald); flex-shrink: 0; }
.neofetch-table { border-collapse: collapse; font-size: 0.72rem; margin-top: 0.25rem; }
.neofetch-table td { padding: 0.1rem 0; white-space: nowrap; }
.neofetch-table td:first-child { padding-right: 1.2rem; }
.term-key { color: var(--emerald); }
.term-key::after { content: ' ~'; color: var(--text-dim); }
.term-colors { display: flex; gap: 4px; margin-top: 0.4rem; }
.tc { width: 14px; height: 14px; border-radius: 3px; }
.tc1 { background: #1e1e2e; } .tc2 { background: #f38ba8; } .tc3 { background: #a6e3a1; } .tc4 { background: #f9e2af; }
.tc5 { background: #89b4fa; } .tc6 { background: #cba6f7; } .tc7 { background: #94e2d5; } .tc8 { background: #cdd6f4; }
.term-cursor { color: var(--emerald); animation: termBlink 1s step-end infinite; }
@keyframes termBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.terminal-input-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0; font-family: var(--font-mono); font-size: 0.78rem;
}
.term-prompt-input { color: var(--coral); white-space: nowrap; flex-shrink: 0; }
.term-prompt-dir { color: var(--emerald); }
.terminal-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono); font-size: 0.78rem;
  caret-color: var(--emerald);
}

/* ======================================================================
   TECH STACK WINDOW
   ====================================================================== */
.stack-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.85rem; }
.stack-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; padding: 1.25rem; transition: all 0.25s var(--ease-out);
  position: relative; overflow: hidden;
}
.stack-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--coral));
  opacity: 0; transition: opacity 0.25s ease;
}
.stack-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stack-card:hover::before { opacity: 1; }
.stack-card-header { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; }
.stack-svg { width: 26px; height: 26px; color: var(--emerald); flex-shrink: 0; }
.stack-card-header h4 { font-size: 0.95rem; font-weight: 600; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stack-tags span {
  font-family: var(--font-mono); font-size: 0.62rem; padding: 0.25rem 0.55rem;
  background: rgba(255,255,255,0.04); color: var(--text-muted); border-radius: 5px;
  letter-spacing: 0.04em; transition: all 0.18s ease;
}
.stack-tags span:hover { color: var(--emerald); background: rgba(16,185,129,0.1); }
.stack-desc { font-size: 0.72rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 0.85rem; }
.stack-tag--highlight {
  font-family: var(--font-mono); font-size: 0.62rem; padding: 0.25rem 0.55rem;
  background: rgba(16,185,129,0.12); color: var(--emerald); border-radius: 5px;
  letter-spacing: 0.04em; transition: all 0.18s ease; font-weight: 500;
  border: 1px solid rgba(16,185,129,0.2);
}
.stack-tag--highlight:hover { background: rgba(16,185,129,0.2); }
.stack-card--wide { grid-column: 1 / -1; }

/* ======================================================================
   CONTACT WINDOW
   ====================================================================== */
.contact-quick-links { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.5rem; }
.quick-link {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.55rem 0.85rem; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
  transition: all 0.2s ease;
}
.quick-link:hover { color: var(--emerald); border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.quick-link svg { flex-shrink: 0; color: var(--text-dim); transition: color 0.2s ease; }
.quick-link:hover svg { color: var(--emerald); }

.contact-form { display: flex; flex-direction: column; gap: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-field label {
  display: block; font-size: 0.68rem; font-weight: 500; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 0.65rem 0.9rem; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 6px; color: var(--text);
  font-family: var(--font); font-size: 0.85rem; outline: none;
  transition: all 0.2s ease; resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus, .form-field textarea:focus {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
  background: rgba(255,255,255,0.03);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.22s ease;
}
.btn--primary { background: var(--emerald); color: #000; }
.btn--primary:hover { background: var(--emerald-dim); box-shadow: 0 0 20px rgba(16,185,129,0.2); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--full { width: 100%; }

/* ======================================================================
   NEWSLETTER WINDOW — THE SIGNAL
   ====================================================================== */
.newsletter-window { display: flex; flex-direction: column; height: 100%; }
.newsletter-hero {
  text-align: center; padding: 1.8rem 1.5rem 1.2rem;
  background: linear-gradient(180deg, rgba(236,72,153,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.newsletter-icon {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(168,85,247,0.15));
  border: 1px solid rgba(236,72,153,0.2);
}
.newsletter-icon svg { width: 22px; height: 22px; color: #EC4899; }
.newsletter-hero h2 {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.newsletter-tagline {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 400;
}
.newsletter-body { padding: 1.3rem 1.5rem; overflow-y: auto; flex: 1; }
.newsletter-desc {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1.1rem;
}
.newsletter-what { margin-bottom: 1.2rem; }
.newsletter-what h4 {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--emerald); margin-bottom: 0.5rem;
}
.newsletter-what ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.newsletter-what li {
  font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.55rem;
}
.nl-bullet {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: #EC4899;
}
.newsletter-form { margin-bottom: 1.2rem; }
.newsletter-input-row {
  display: flex; gap: 0.5rem; margin-bottom: 0.4rem;
}
.newsletter-input-row input {
  flex: 1; padding: 0.6rem 0.85rem; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); font-family: var(--font); font-size: 0.8rem;
  outline: none; transition: border-color 0.2s ease;
}
.newsletter-input-row input:focus {
  border-color: #EC4899; box-shadow: 0 0 0 3px rgba(236,72,153,0.1);
}
.newsletter-input-row input::placeholder { color: var(--text-dim); }
.nl-submit-btn {
  padding: 0.6rem 1.1rem; border-radius: 8px; border: none;
  background: #EC4899; color: #fff; font-family: var(--font);
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.nl-submit-btn:hover { background: #DB2777; transform: translateY(-1px); }
.newsletter-fine {
  font-size: 0.65rem; color: var(--text-dim); text-align: center;
}
.newsletter-success {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1rem; border-radius: 8px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15);
  margin-bottom: 1.2rem;
}
.newsletter-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.newsletter-success p { font-size: 0.8rem; color: var(--emerald); font-weight: 500; }
.newsletter-past { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; }
.newsletter-past h4 {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 0.6rem;
}
.newsletter-issue {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.7rem; border-radius: 7px;
  cursor: pointer; transition: background 0.2s ease;
  margin-bottom: 0.25rem;
}
.newsletter-issue:hover { background: rgba(255,255,255,0.04); }
.newsletter-issue-num {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  color: #EC4899; min-width: 26px;
}
.newsletter-issue-title {
  font-size: 0.78rem; color: var(--text-muted); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.newsletter-issue:hover .newsletter-issue-title { color: var(--text); }
.newsletter-issue-tag {
  font-family: var(--font-mono); font-size: 0.5rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.12rem 0.4rem; border-radius: 3px;
  background: rgba(255,255,255,0.04); color: var(--text-dim);
  flex-shrink: 0;
}

/* ======================================================================
   BROWSER WINDOW
   ====================================================================== */
.window-titlebar--browser {
  background: #1a1a1e;
  padding-right: 0.5rem;
}
.browser-tabs {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: 0.75rem; flex: 1;
}
.browser-tab {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255,255,255,0.06);
  border-radius: 6px 6px 0 0;
  font-size: 0.72rem; color: var(--text-muted);
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-tab.active {
  background: var(--bg-card);
  color: var(--text);
}
.browser-tab svg { flex-shrink: 0; opacity: 0.6; }
.browser-toolbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.browser-nav-btns {
  display: flex; gap: 0.15rem;
}
.browser-nav-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 0.3rem; border-radius: 4px; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.browser-nav-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.browser-url-bar {
  flex: 1; display: flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}
.browser-url-bar:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.browser-url {
  color: var(--text-muted);
  font-family: var(--font);
  user-select: text;
}
.browser-actions {
  display: flex; gap: 0.15rem;
}
.window-body--browser {
  padding: 0 !important;
  overflow: hidden;
}

/* ===== Ryshe Embedded Site ===== */
.ryshe-site {
  width: 100%; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  background: #070710;
  scroll-behavior: smooth;
}
.ryshe-site::-webkit-scrollbar { width: 5px; }
.ryshe-site::-webkit-scrollbar-track { background: transparent; }
.ryshe-site::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Ryshe Nav */
.ryshe-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(7,7,16,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ryshe-nav-logo {
  font-family: var(--font); font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ryshe-nav-logo span { -webkit-text-fill-color: #fff; }
.ryshe-nav-links { display: flex; align-items: center; gap: 1.2rem; }
.ryshe-navlink {
  font-size: 0.75rem; color: var(--text-dim); text-decoration: none;
  transition: color 0.2s; font-weight: 500;
}
.ryshe-navlink:hover, .ryshe-navlink.active { color: #fff; }
.ryshe-nav-cta {
  font-size: 0.72rem; font-weight: 600; padding: 0.4rem 0.9rem;
  background: var(--coral); color: #fff; border-radius: 6px;
  text-decoration: none; transition: all 0.2s;
}
.ryshe-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(77,124,255,0.3); }

/* Ryshe Hero */
.ryshe-hero {
  position: relative; padding: 4rem 2rem 3rem;
  text-align: center; overflow: hidden;
}
.ryshe-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(77,124,255,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(16,185,129,0.1) 0%, transparent 55%);
}
.ryshe-hero-content { position: relative; max-width: 560px; margin: 0 auto; }
.ryshe-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: rgba(77,124,255,0.1); color: var(--coral);
  border: 1px solid rgba(77,124,255,0.2); margin-bottom: 1.2rem;
}
.ryshe-hero h1 {
  font-size: 2.2rem; font-weight: 700; line-height: 1.2;
  color: #fff; letter-spacing: -0.03em; margin-bottom: 1rem;
}
.ryshe-grad {
  background: linear-gradient(135deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ryshe-hero p {
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.7;
  margin-bottom: 1.5rem; max-width: 460px; margin-left: auto; margin-right: auto;
}
.ryshe-hero-ctas { display: flex; justify-content: center; gap: 0.65rem; }
.ryshe-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600; font-family: var(--font);
  text-decoration: none; transition: all 0.2s ease; cursor: pointer;
}
.ryshe-btn--primary {
  background: var(--coral); color: #fff;
  box-shadow: 0 4px 16px rgba(77,124,255,0.3);
}
.ryshe-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(77,124,255,0.4);
}
.ryshe-btn--ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.ryshe-btn--ghost:hover { border-color: rgba(255,255,255,0.2); color: #fff; }

/* Stats Bar */
.ryshe-stats-bar {
  display: flex; justify-content: center; gap: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ryshe-stat { text-align: center; }
.ryshe-stat strong {
  display: block; font-size: 1.4rem; font-weight: 700;
  color: var(--emerald); font-family: var(--font-mono);
}
.ryshe-stat span { font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* Sections */
.ryshe-section { padding: 3rem 2rem; }
.ryshe-section--dark { background: rgba(255,255,255,0.015); }
.ryshe-label {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--coral); letter-spacing: 0.12em; font-weight: 600;
  margin-bottom: 0.5rem; text-align: center;
}
.ryshe-section-title {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 2rem; letter-spacing: -0.02em;
}

/* Services Grid */
.ryshe-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; max-width: 600px; margin: 0 auto; }
.ryshe-service-card {
  padding: 1.3rem; background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 10px;
  transition: all 0.25s ease;
}
.ryshe-service-card:hover {
  border-color: rgba(77,124,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.ryshe-service-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(77,124,255,0.08); color: var(--coral);
}
.ryshe-service-card h3 { font-size: 0.88rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.ryshe-service-card p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; }

/* Work Grid */
.ryshe-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; max-width: 700px; margin: 0 auto; }
.ryshe-work-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; overflow: hidden; transition: all 0.25s ease;
}
.ryshe-work-card:hover { border-color: rgba(16,185,129,0.2); transform: translateY(-3px); }
.ryshe-work-preview {
  height: 80px; display: flex; align-items: center; justify-content: center;
}
.ryshe-work-preview--1 { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.03)); }
.ryshe-work-preview--2 { background: linear-gradient(135deg, rgba(77,124,255,0.15), rgba(77,124,255,0.03)); }
.ryshe-work-preview--3 { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.03)); }
.ryshe-work-info { padding: 0.9rem; }
.ryshe-work-info h4 { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.ryshe-work-info p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }
.ryshe-work-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.ryshe-work-tags span {
  font-family: var(--font-mono); font-size: 0.52rem; padding: 0.15rem 0.4rem;
  background: rgba(255,255,255,0.04); color: var(--text-dim); border-radius: 3px;
}

/* Founder */
.ryshe-founder-card {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 500px; margin: 0 auto;
  padding: 1.5rem; background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
}
.ryshe-founder-avatar {
  width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: #fff;
}
.ryshe-founder-info h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.15rem; }
.ryshe-founder-role { font-size: 0.72rem; color: var(--coral); font-weight: 500; margin-bottom: 0.5rem; }
.ryshe-founder-info p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.ryshe-founder-links { display: flex; gap: 0.6rem; margin-top: 0.65rem; }
.ryshe-founder-links a {
  font-size: 0.68rem; color: var(--text-dim); text-decoration: none;
  padding: 0.25rem 0.6rem; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px; transition: all 0.2s;
}
.ryshe-founder-links a:hover { color: var(--emerald); border-color: rgba(16,185,129,0.3); }

/* CTA Section */
.ryshe-cta-section {
  padding: 3rem 2rem; text-align: center;
  background: linear-gradient(135deg, rgba(77,124,255,0.06), rgba(16,185,129,0.04));
}
.ryshe-cta-section h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.ryshe-cta-section p { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1.2rem; }

/* Ryshe Footer */
.ryshe-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.2);
}
.ryshe-footer-inner { text-align: center; }
.ryshe-footer-logo {
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.4rem;
}
.ryshe-footer-logo span { -webkit-text-fill-color: #fff; }
.ryshe-footer p { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.ryshe-footer-links { display: flex; justify-content: center; gap: 1rem; }
.ryshe-footer-links a {
  font-size: 0.65rem; color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.ryshe-footer-links a:hover { color: var(--emerald); }

/* ======================================================================
   HIRING TERMINAL OVERLAY
   ====================================================================== */
.hiring-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.hiring-overlay.active { display: flex; opacity: 1; }

.hiring-terminal {
  width: min(720px, 90vw); max-height: 85vh;
  background: #0a0a0c;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(16,185,129,0.15), 0 0 120px rgba(16,185,129,0.05);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.hiring-overlay.active .hiring-terminal {
  transform: scale(1) translateY(0);
}

.hiring-titlebar {
  display: flex; align-items: center; padding: 0.65rem 1rem;
  background: #111113; border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.hiring-dots { display: flex; gap: 6px; }
.hiring-dot { width: 10px; height: 10px; border-radius: 50%; }
.hiring-dot--red { background: #ff5f57; }
.hiring-dot--yellow { background: #febc2e; }
.hiring-dot--green { background: #28c840; }
.hiring-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim);
}
.hiring-dot--red:hover { filter: brightness(1.3); transform: scale(1.15); }

.hiring-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text); line-height: 1.7;
  max-height: calc(85vh - 44px);
  overflow-y: auto;
}

.hiring-output .hire-line {
  display: block; margin-bottom: 0.1rem;
  opacity: 0; animation: hireFadeIn 0.08s ease forwards;
}
@keyframes hireFadeIn { to { opacity: 1; } }

.hiring-form { margin-top: 1rem; }
.hiring-field { margin-bottom: 0.85rem; }
.hiring-label {
  display: block; font-size: 0.72rem; color: var(--emerald);
  margin-bottom: 0.35rem;
}
.hiring-input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 0.6rem 0.8rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.hiring-input:focus { border-color: var(--emerald); }
.hiring-textarea { resize: vertical; min-height: 60px; }
.hiring-input::placeholder { color: var(--text-dim); }

.hiring-submit {
  display: inline-block; margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--emerald), var(--coral));
  border: none; border-radius: 6px;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: #000; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hiring-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}

.hiring-success { margin-top: 1rem; }

/* ======================================================================
   ACHIEVEMENT POPUP
   ====================================================================== */
.achievement-popup {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  z-index: 99998;
  background: linear-gradient(135deg, #111113, #1a1a1d);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px; padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 8px 40px rgba(16,185,129,0.15);
  opacity: 0; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  max-width: 360px;
}
.achievement-popup.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.achievement-icon { font-size: 1.8rem; flex-shrink: 0; }
.achievement-title { font-size: 0.6rem; color: var(--emerald); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.achievement-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0.1rem 0; }
.achievement-desc { font-size: 0.7rem; color: var(--text-dim); }

/* ======================================================================
   TROPHY BADGE (Menubar)
   ====================================================================== */
.trophy-wrap {
  position: relative;
}
.trophy-badge {
  font-family: var(--font-mono) !important;
  font-size: 0.6rem !important;
  cursor: pointer !important;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.trophy-badge:hover {
  background: rgba(255,255,255,0.08);
}
.trophy-dropdown {
  position: absolute;
  top: calc(var(--menubar-h) + 2px);
  right: 0;
  width: 260px;
  background: rgba(22,22,26,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease-out);
  z-index: 10003;
  overflow: hidden;
}
.trophy-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.trophy-dd-header {
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trophy-dd-count {
  color: var(--text-dim);
  font-weight: 400;
}
.trophy-dd-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.3rem 0;
}
.trophy-dd-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  transition: background 0.12s ease;
}
.trophy-dd-item.unlocked:hover {
  background: rgba(255,255,255,0.04);
}
.trophy-dd-item.locked {
  opacity: 0.4;
}
.trophy-dd-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
}
.trophy-dd-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.trophy-dd-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.trophy-dd-item.locked .trophy-dd-name {
  color: var(--text-dim);
}
.trophy-dd-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ======================================================================
   BLOG NOTIFICATION POPUPS
   ====================================================================== */
.blog-notif {
  position: fixed; top: calc(var(--menubar-h) + 0.75rem); right: 1rem;
  z-index: 9999;
  width: 300px;
  background: #151517;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.blog-notif.show { transform: translateX(0); opacity: 1; }
.blog-notif-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.blog-notif-icon { font-size: 0.85rem; }
.blog-notif-title { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; flex: 1; }
.blog-notif-close {
  background: none; border: none; color: var(--text-dim); font-size: 1rem;
  cursor: pointer; padding: 0; line-height: 1; transition: color 0.2s;
}
.blog-notif-close:hover { color: var(--text); }
.blog-notif-body {
  padding: 0.75rem 0.8rem;
  font-size: 0.78rem; color: var(--text); line-height: 1.5;
}

/* ======================================================================
   SYSTEM PREFERENCES WINDOW
   ====================================================================== */
.prefs-window { padding: 0.5rem; }
.prefs-heading {
  font-size: 0.75rem; color: var(--emerald); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
  margin: 1.25rem 0 0.6rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.prefs-heading:first-child { margin-top: 0.25rem; }
.prefs-section { margin-bottom: 0.85rem; }
.prefs-label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.prefs-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.prefs-btn {
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
  cursor: pointer; transition: all 0.2s ease;
}
.prefs-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.prefs-btn.active {
  color: var(--emerald); border-color: var(--emerald);
  background: rgba(16,185,129,0.1);
}
.prefs-theme-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem;
}
.prefs-theme-swatch {
  aspect-ratio: 1; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
.prefs-theme-swatch::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--swatch-a) 50%, var(--swatch-b) 50%);
  border-radius: 6px;
}
.prefs-theme-swatch.active { border-color: #fff; transform: scale(1.05); }
.prefs-theme-swatch:hover { transform: scale(1.08); }
.prefs-theme-name {
  display: block; font-size: 0.55rem; color: var(--text-dim); text-align: center;
  margin-top: 0.2rem;
}

/* ======================================================================
   SPEAKING & PUBLICATIONS WINDOW
   ====================================================================== */

/* ── Book Me Banner ── */
.sp-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(220,38,38,0.03));
  border: 1px solid rgba(220,38,38,0.12); border-radius: 8px;
  margin-bottom: 1.25rem;
}
.sp-banner-text {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.sp-banner-text svg { flex-shrink: 0; color: #DC2626; }
.sp-banner-btn {
  flex-shrink: 0; padding: 0.4rem 1rem;
  background: #DC2626; color: #fff; border: none; border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.sp-banner-btn:hover {
  background: #B91C1C; transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,0.25);
}

/* ── Featured (ENR) ── */
.sp-featured {
  display: block; position: relative; padding: 1.3rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.05), rgba(77,124,255,0.02));
  border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
  margin-bottom: 1.25rem; transition: all 0.25s ease;
  text-decoration: none; color: inherit;
}
.sp-featured:hover {
  border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.sp-featured-badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  font-family: var(--font-mono); font-size: 0.58rem;
  padding: 0.22rem 0.6rem; background: rgba(220,38,38,0.1);
  color: #DC2626; border: 1px solid rgba(220,38,38,0.2);
  border-radius: 5px; letter-spacing: 0.12em;
}

/* ── Crimson + Amber tag variants ── */
.tag--crimson { background: rgba(220,38,38,0.1); color: #DC2626; border: 1px solid rgba(220,38,38,0.18); }
.tag--amber { background: rgba(245,158,11,0.1); color: #F59E0B; border: 1px solid rgba(245,158,11,0.18); }
.read-link--crimson { color: #DC2626; }
.read-link--crimson:hover { color: #F87171; }

/* ── Filter toolbar ── */
.sp-toolbar { margin-bottom: 1rem; }

/* ── Card grid (reuses .blog-card) ── */
.sp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.85rem; }

/* ── Event card tweaks ── */
.sp-event-card { border-style: dashed; opacity: 0.65; }
.sp-event-card:hover { opacity: 0.8; }
.sp-event-card .card-accent { display: none; }
.card-accent--amber { background: linear-gradient(90deg, #F59E0B, #FBBF24) !important; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 768px) {
  .desktop-folders { display: none; }
  .window {
    width: calc(100vw - 1rem) !important; height: calc(100vh - var(--menubar-h) - var(--dock-h) - 1.5rem) !important;
    left: 0.5rem !important; top: calc(var(--menubar-h) + 0.5rem) !important;
    border-radius: var(--win-radius);
  }
  .window.maximized { border-radius: 0; }
  .blog-grid, .projects-grid, .stack-grid, .sp-grid { grid-template-columns: 1fr; }
  .sp-banner { flex-direction: column; gap: 0.6rem; text-align: center; }
  .sp-banner-text { justify-content: center; }
  .about-stats-row { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .dock-item { width: 38px; height: 38px; }
  .dock-icon-wrap { padding: 8px; border-radius: 10px; }
  .dock-inner { gap: 0.2rem; padding: 0.35rem 0.5rem; border-radius: 16px; }
  .dock-separator { height: 24px; margin: 0 0.15rem; }
  .menubar-dropdown-wrap:nth-child(n+4) { display: none; }
}
