* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Boot Sequence ── */
#boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: 'Tahoma', sans-serif;
}
#boot-sequence.hidden { display: none; }

.boot-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.boot-screen.active {
  opacity: 1;
  pointer-events: all;
}
.boot-blue {
  background: #5a7fc8;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,50,0.04) 0px, rgba(0,0,50,0.04) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,50,0.04) 0px, rgba(0,0,50,0.04) 1px, transparent 1px, transparent 3px);
  border-top: 4px solid #1a3a9a;
  border-bottom: 4px solid #1a3a9a;
}

/* Screen 1 — black boot */
#boot-black { background: #000; }
.boot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.boot-logo { width: 130px; height: 130px; object-fit: contain; }
.boot-brand { text-align: center; color: white; line-height: 1.2; }
.boot-name {
  font-size: 52px;
  font-weight: bold;
  font-family: 'Franklin Gothic Medium', 'Tahoma', sans-serif;
  letter-spacing: -0.5px;
}
.boot-xp {
  font-size: 22px;
  color: #ff6a00;
  font-style: italic;
  font-family: 'Times New Roman', serif;
  vertical-align: super;
  margin-left: 2px;
}
.boot-tagline, .login-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-top: 4px;
}
.boot-bar-wrap {
  margin-top: 20px;
}
.boot-bar {
  width: 160px;
  height: 16px;
  border: 1px solid #555;
  border-radius: 2px;
  background: #111;
  overflow: hidden;
  padding: 2px 3px;
}
.boot-bar-blocks {
  height: 100%;
  display: flex;
  gap: 3px;
  animation: xp-blocks 1.2s steps(1) infinite;
}
.boot-bar-blocks::before {
  content: '';
  display: block;
  width: 20px;
  height: 100%;
  background: #4a78d4;
  box-shadow: 23px 0 0 #4a78d4, 46px 0 0 #4a78d4;
  animation: xp-slide 1.2s linear infinite;
}
@keyframes xp-slide {
  0%   { transform: translateX(-69px); }
  100% { transform: translateX(160px); }
}
.boot-hint {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  line-height: 1.6;
}

/* Screen 2 — welcome */
.boot-welcome-text {
  color: white;
  font-size: 72px;
  font-style: italic;
  font-family: 'Franklin Gothic Medium', 'Georgia', serif;
  font-weight: normal;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: 3px;
}

/* Screen 3 — login */
.login-layout {
  display: flex;
  align-items: center;
  gap: 0;
  width: 860px;
  max-width: 92vw;
}
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-right: 60px;
  text-align: center;
}
.login-logo { width: 96px; height: 96px; object-fit: contain; }
.login-brand { color: white; line-height: 1.2; }
.login-name {
  font-size: 42px;
  font-weight: bold;
  font-family: 'Franklin Gothic Medium', 'Tahoma', sans-serif;
}
.boot-xp { font-size: 22px; }
.login-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
  font-style: italic;
}
.login-divider {
  width: 1px;
  height: 260px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 60px;
}
.login-user {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  border-radius: 4px;
  cursor: url('../assets/cursors/pointer.svg') 6 1, pointer;
  transition: background 0.2s;
}
.login-user:hover { background: rgba(255,255,255,0.15); }
.login-avatar {
  width: 96px;
  height: 96px;
  border: 3px solid white;
  border-radius: 2px;
  object-fit: cover;
}
.login-user-info strong {
  display: block;
  color: white;
  font-size: 22px;
  font-family: 'Franklin Gothic Medium', 'Tahoma', sans-serif;
}
.login-user-info span {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-style: italic;
}
.login-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #1a3a9a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.login-restart-btn {
  background: none;
  border: none;
  color: white;
  font-size: 12px;
  cursor: url('../assets/cursors/pointer.svg') 6 1, pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Tahoma', sans-serif;
  padding: 4px 8px;
  border-radius: 3px;
}
.login-restart-btn:hover { background: rgba(255,255,255,0.15); }
.login-footer-right {
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  text-align: right;
  line-height: 1.5;
}

/* Screen 4 — shutdown */
.shutdown-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  text-align: center;
}
.shutdown-msg {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-top: 6px;
  font-style: italic;
}

/* Desktop hidden until boot done */
#desktop.hidden { display: none; }

/* ── XP Cursors ── */
*, *::before, *::after {
  cursor: url('../assets/cursors/default.svg') 2 2, default;
}
a, button, [data-app], .desktop-icon, .start-item, .sf-btn,
.sr-item, .start-all-programs, .tb-btn, .wt-btn, .ps-icon,
.proj-card, .msg-contact, #toast-open, #toast-block, #toast-close,
.title-bar-controls button, #crt-toggle, .tray-icon {
  cursor: url('../assets/cursors/pointer.svg') 6 1, pointer;
}
input[type="text"], input[type="email"], textarea, .notepad-textarea, #cmd-input, #chat-input {
  cursor: url('../assets/cursors/text.svg') 6 11, text;
}
.resize-handle {
  cursor: url('../assets/cursors/resize-se.svg') 10 10, se-resize;
}

body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
  font-size: 11px;
}

/* ── Desktop ── */
#desktop {
  width: 100vw;
  height: 100vh;
  background: url('../assets/wallpaper.png') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* ── Desktop Icons ── */
#desktop-icons {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 4px;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.desktop-icon:hover  { background: rgba(49,106,197,.35); }
.desktop-icon.active { background: rgba(49,106,197,.55); }

.icon-img {
  width: 48px;
  height: 48px;
  image-rendering: auto;
  display: block;
}

.desktop-icon span {
  color: white;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
  font-size: 11px;
  text-align: center;
  margin-top: 3px;
  line-height: 1.2;
}

/* ── Windows Container ── */
#windows-container {
  position: absolute;
  inset: 0 0 30px 0;
  pointer-events: none;
}
#windows-container > .xp-window {
  pointer-events: all;
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 180px;
  overflow: visible;
}

/* Override XP.css window-body padding */
#windows-container .window-body {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Resize handle */
.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  z-index: 10;
  background-image: radial-gradient(circle, #999 1px, transparent 1px),
                    radial-gradient(circle, #999 1px, transparent 1px),
                    radial-gradient(circle, #999 1px, transparent 1px),
                    radial-gradient(circle, #999 1px, transparent 1px),
                    radial-gradient(circle, #999 1px, transparent 1px),
                    radial-gradient(circle, #999 1px, transparent 1px);
  background-size: 5px 5px;
  background-position: 10px 10px, 5px 10px, 10px 5px, 0px 10px, 5px 5px, 10px 0px;
  background-repeat: no-repeat;
}

/* ── Taskbar ── */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, #245edb 0%, #3b78e7 6%, #2357d5 12%, #1a4fc7 50%, #1850c8 100%);
  display: flex;
  align-items: center;
  z-index: 9999;
  border-top: 1px solid #4a7ae0;
  box-shadow: 0 -1px 3px rgba(0,0,0,.4);
}

#start-btn {
  height: 30px;
  padding: 0 10px 0 4px;
  background: linear-gradient(to bottom,
    #6cc800 0%, #5ab800 8%,
    #44a000 30%, #3a9000 50%,
    #2e7800 70%, #266800 88%,
    #3a9000 100%);
  border: none;
  border-top: 1px solid #78d820;
  border-right: 1px solid #285000;
  border-bottom: 1px solid #1e4000;
  border-radius: 0 12px 12px 0;
  color: white;
  font-size: 14px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  font-style: italic;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.6);
  box-shadow: 2px 0 6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25);
  letter-spacing: .5px;
  flex-shrink: 0;
}
#start-btn:hover {
  background: linear-gradient(to bottom,
    #80e000 0%, #6ccc00 8%,
    #58b800 30%, #4aaa00 50%,
    #3a9000 70%, #308000 88%,
    #4aaa00 100%);
}
#start-btn:active {
  background: linear-gradient(to bottom,
    #2e7000 0%, #3a8800 50%,
    #2e7000 100%);
  box-shadow: inset 1px 1px 4px rgba(0,0,0,.4);
}

.win-flag {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

#start-btn em {
  font-style: italic;
  font-size: 14px;
  letter-spacing: .3px;
}

.tb-divider {
  width: 2px;
  height: 24px;
  background: rgba(0,0,0,.2);
  margin: 0 3px;
  border-right: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}

#taskbar-apps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  overflow: hidden;
}

.tb-btn {
  height: 22px;
  padding: 0 8px;
  background: linear-gradient(to bottom, #3a6ec8 0%, #2a5ab8 100%);
  border: 1px solid #5070c0;
  border-radius: 2px;
  color: white;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tb-btn:hover  { background: linear-gradient(to bottom, #4a7ed8 0%, #3a6ac8 100%); }
.tb-btn.active {
  background: linear-gradient(to bottom, #1a3e98 0%, #2a58b8 100%);
  border-color: #7090d8;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,.3);
}

#system-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 100%;
  background: linear-gradient(to bottom, #1440a8 0%, #2060c0 40%, #1448a0 100%);
  border-left: 1px solid #3a60b0;
  flex-shrink: 0;
}
.tray-icon { font-size: 13px; cursor: pointer; }

#clock {
  color: white;
  font-size: 11px;
  white-space: nowrap;
  text-align: right;
  cursor: default;
}

/* ── Start Menu ── */
#start-menu {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 460px;
  background: white;
  border: 2px solid #0a54d4;
  border-bottom: none;
  box-shadow: 4px -3px 16px rgba(0,0,0,.55);
  z-index: 99998;
  font-size: 11px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  font-family: 'Tahoma', sans-serif;
}
#start-menu.hidden { display: none; }

.start-header {
  background: linear-gradient(to bottom, #2060d8 0%, #1848b0 50%, #1040a0 100%);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border-bottom: 2px solid #0830a0;
}
.start-header img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.start-header span {
  color: white;
  font-weight: bold;
  font-size: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,.7);
  font-family: 'Franklin Gothic Medium', 'Tahoma', sans-serif;
  letter-spacing: 0.3px;
}

.start-body { display: flex; height: 390px; }

.start-left {
  flex: 1;
  background: white;
  border-right: 1px solid #a0b8e8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  cursor: pointer;
  user-select: none;
}
.start-item:hover {
  background: linear-gradient(to right, #1648c8, #2e78f0);
  color: white;
}
.start-item:hover .si-name,
.start-item:hover .si-desc { color: white; }
.start-item.pinned { padding: 7px 10px; min-height: 48px; }

.si-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  image-rendering: auto;
}
.si-img.sm {
  width: 24px;
  height: 24px;
}
.si-emoji {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.si-cmd {
  font-size: 8px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: #000080;
  color: #c0c0c0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
  font-style: normal;
  padding: 0 1px;
}

.si-name { font-size: 12px; font-weight: bold; color: #111; line-height: 1.3; }
.si-desc { font-size: 10px; color: #666; margin-top: 1px; }

.start-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, #94b4e8 30%, #94b4e8 70%, transparent);
  margin: 4px 8px;
}

.start-all-programs {
  margin-top: auto;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  border-top: 1px solid #b0c8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f4ff;
  color: #111;
  user-select: none;
}
.start-all-programs:hover { background: linear-gradient(to right, #1648c8, #2e78f0); color: white; }
.ap-arrow { color: #2a8800; font-size: 13px; }
.start-all-programs:hover .ap-arrow { color: white; }

.start-right {
  width: 180px;
  background: linear-gradient(to bottom, #deeeff 0%, #ccdeff 100%);
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sr-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  color: #003399;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  user-select: none;
}
.sr-item:hover {
  background: linear-gradient(to right, #1648c8, #2e78f0);
  color: white;
}
.sr-item:hover .sr-icon,
.sr-item:hover .sr-icon * { color: white !important; }

.sr-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
}
.sr-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); color: white; font-size: 14px; }
.sr-github    { background: #1a1a1a; color: white; font-size: 13px; font-family: sans-serif; }
.sr-linkedin  { background: #0a66c2; color: white; font-size: 12px; font-style: italic; font-weight: bold; }
.sr-notepad   { background: none; font-size: 16px; }
.sr-cmd       { background: #000080; color: #c0c0c0; font-size: 7px; font-family: 'Courier New', monospace; font-weight: bold; padding: 0 1px; border-radius: 1px; }

.sr-sep { height: 1px; background: rgba(0,0,100,.18); margin: 5px 12px; }
.sr-label {
  padding: 3px 14px 2px;
  font-size: 11px;
  color: #223;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sr-arrow { color: #333; font-size: 11px; }

.start-footer {
  background: linear-gradient(to bottom, #b8ccf4, #a0b8ec);
  border-top: 2px solid #7088c8;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px 10px;
}
.sf-btn {
  padding: 4px 14px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #5870b8;
  border-radius: 4px;
  background: linear-gradient(to bottom, #ccdaf8, #b0c4f0);
  color: #111;
  font-weight: bold;
}
.sf-btn:hover {
  background: linear-gradient(to right, #1648c8, #2e78f0);
  color: white;
  border-color: #0830a0;
}

/* ── Window internals ── */
.win-menubar {
  display: flex;
  background: #ece9d8;
  border-bottom: 1px solid #c0b898;
  padding: 1px 2px;
  flex-shrink: 0;
}
.wm-item {
  padding: 2px 7px;
  cursor: pointer;
  font-size: 11px;
  border-radius: 2px;
  color: #333;
}
.wm-item:hover { background: #316ac5; color: white; }

.win-toolbar {
  display: flex;
  align-items: center;
  background: #ece9d8;
  border-bottom: 1px solid #c0b898;
  padding: 2px 4px;
  gap: 2px;
  flex-shrink: 0;
}
.wt-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
}
.wt-btn:hover  { border-color: #316ac5; background: #e4ecfc; }
.wt-btn:active { background: #c8d8f8; }
.wt-sep { width: 1px; height: 20px; background: #bbb; margin: 0 3px; }

.win-address {
  display: flex;
  align-items: center;
  background: #ece9d8;
  border-bottom: 1px solid #c0b898;
  padding: 2px 4px;
  gap: 5px;
  flex-shrink: 0;
}
.win-address label { font-size: 11px; font-weight: bold; color: #333; white-space: nowrap; }
.win-address input {
  flex: 1;
  height: 18px;
  border: 2px inset #808080;
  padding: 0 4px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  background: white;
}
.win-address button {
  padding: 1px 8px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
}

.win-status {
  border-top: 1px solid #808080;
  background: #ece9d8;
  padding: 2px 8px;
  font-size: 11px;
  color: #333;
  flex-shrink: 0;
}

/* ── About Me Window ── */
.about-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.about-sidebar {
  width: 185px;
  background: #d4e4f7;
  border-right: 1px solid #b0c8e8;
  overflow-y: auto;
  flex-shrink: 0;
}
.sb-section-hdr {
  background: linear-gradient(to bottom, #2060c0, #1850a8);
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.sb-section-body { padding: 3px 0; }
.sb-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  color: #003399;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
}
.sb-link:hover { background: rgba(49,106,197,.2); text-decoration: underline; }

.about-main {
  flex: 1;
  background: #6a6cc8;
  color: white;
  overflow-y: auto;
  padding: 14px;
}
.about-main h2 { font-size: 20px; font-family: 'Trebuchet MS', sans-serif; margin-bottom: 14px; }
.about-block {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.about-block img { width: 56px; height: 56px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.about-block p { font-size: 12px; line-height: 1.6; }

/* ── Projects Window ── */
.proj-layout {
  display: flex;
  flex: 1;
  background: #111;
  overflow: hidden;
}
.proj-sidebar {
  width: 48px;
  background: #1a1a1a;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 14px;
  flex-shrink: 0;
}
.ps-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  color: #777;
}
.ps-icon:hover, .ps-icon.on { background: #e8003d; color: white; }

.proj-main {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  color: white;
}
.proj-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.proj-logo {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}
.proj-logo span.red { color: #e8003d; }
.proj-search {
  flex: 1;
  background: #222;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 4px 14px;
  color: white;
  font-size: 11px;
  outline: none;
}
.proj-socials { display: flex; gap: 8px; }
.proj-socials a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #444;
  border-radius: 4px;
}
.proj-socials a:hover { color: white; border-color: #888; }

.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.proj-card {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  transition: transform .12s, border-color .12s;
}
.proj-card:hover { transform: scale(1.02); border-color: #555; }
.proj-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}
.proj-thumb .ptag {
  position: absolute;
  bottom: 5px;
  right: 7px;
  background: rgba(0,0,0,.65);
  color: #ccc;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}
.proj-info {
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.proj-avatar { font-size: 22px; flex-shrink: 0; }
.proj-meta strong { display: block; font-size: 12px; color: white; margin-bottom: 2px; }
.proj-meta span { font-size: 10px; color: #888; line-height: 1.4; display: block; }

/* ── Resume Window ── */
.resume-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* ── Contact Window ── */
.contact-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: white;
}
.contact-field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 4px 8px;
}
.contact-field label { width: 60px; font-weight: bold; color: #555; flex-shrink: 0; }
.contact-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  background: transparent;
}
.contact-msg {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Tahoma', sans-serif;
  font-size: 12px;
  background: white;
}

/* ── Messenger Window ── */
.msg-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 11px;
}
.msg-me {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #e8f0fc;
  border-bottom: 1px solid #ccc;
}
.msg-me img { width: 36px; height: 36px; border-radius: 2px; }
.msg-me-info strong { font-size: 12px; }
.msg-me-info span { font-size: 10px; color: #555; display: block; }
.msg-status-dot { width: 10px; height: 10px; border-radius: 50%; background: #00c000; margin-left: auto; }

.msg-contacts { flex: 1; overflow-y: auto; }
.msg-group-hdr {
  padding: 3px 6px;
  font-weight: bold;
  color: #336;
  font-size: 11px;
  background: #ddeeff;
  border-bottom: 1px solid #c8d8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.msg-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  cursor: pointer;
}
.msg-contact:hover { background: #ddeeff; }
.msg-contact img { width: 28px; height: 28px; border-radius: 2px; }
.msg-contact-info strong { font-size: 11px; display: block; }
.msg-contact-info span { font-size: 10px; color: #666; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: #00c000; }

/* MSG Chat panel */
.msg-chat-layout { display: flex; flex-direction: column; flex: 1; }
.msg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  background: white;
  font-size: 11px;
}
.msg-bubble { margin-bottom: 8px; }
.msg-bubble .sender { font-weight: bold; color: #003399; }
.msg-bubble .sender.me { color: #c00; }
.msg-bubble .text { margin-top: 1px; }
.msg-chat-input {
  display: flex;
  border-top: 1px solid #ccc;
  background: #ece9d8;
  padding: 4px;
  gap: 4px;
}
.msg-chat-input input {
  flex: 1;
  border: 1px solid #aaa;
  padding: 3px 6px;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  outline: none;
}
.msg-chat-input button {
  padding: 2px 10px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
}

/* ── Notepad ── */
.notepad-layout { display: flex; flex-direction: column; flex: 1; }
.notepad-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 4px;
  background: white;
}

/* ── CMD ── */
.cmd-layout {
  flex: 1;
  background: #000;
  color: #c0c0c0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 8px;
  overflow-y: auto;
  cursor: text;
  display: flex;
  flex-direction: column;
}
.cmd-output { flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.cmd-input-row { display: flex; align-items: center; margin-top: 4px; }
.cmd-prompt { color: #c0c0c0; white-space: nowrap; margin-right: 4px; }
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #c0c0c0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  caret-color: #c0c0c0;
}

/* ── Messenger Toast ── */
#messenger-toast {
  position: fixed;
  bottom: 36px;
  right: 10px;
  width: 270px;
  background: white;
  border: 1px solid #c0c0c0;
  box-shadow: 2px 2px 8px rgba(0,0,0,.35);
  z-index: 999999;
  font-size: 11px;
  display: none;
}
#messenger-toast.show { display: block; }

.toast-hdr {
  background: linear-gradient(to right, #0060d0, #0090f8);
  color: white;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
}
.toast-hdr button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
}
.toast-body {
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.toast-avatar { width: 38px; height: 38px; border-radius: 2px; flex-shrink: 0; object-fit: cover; }
.toast-text strong { display: block; margin-bottom: 3px; color: #003399; }
.toast-text p { color: #333; line-height: 1.4; }
.toast-ftr {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  border-top: 1px solid #e8e8e8;
}
.toast-ftr a { color: #0033cc; cursor: pointer; font-size: 10px; }
.toast-ftr a:hover { text-decoration: underline; }

/* ── CRT Effect ── */
#crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.06) 0px,
      rgba(0,0,0,0.06) 1px,
      transparent 1px,
      transparent 3px
    );
  box-shadow: inset 0 0 80px rgba(0,0,0,0.20);
}
#crt-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,20,0,0.02) 0px,
    rgba(0,255,20,0.02) 1px,
    rgba(0,20,255,0.02) 2px,
    transparent 3px
  );
}
#crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  animation: crt-flicker 8s infinite;
  background: transparent;
}
@keyframes crt-flicker {
  0%   { opacity: 1; }
  92%  { opacity: 1; }
  93%  { opacity: 0.95; }
  94%  { opacity: 1; }
  96%  { opacity: 0.98; }
  100% { opacity: 1; }
}
#crt-overlay.off { display: none; }

body.crt {
  filter: brightness(0.97) contrast(1.05) saturate(1.08) hue-rotate(-1deg);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #909090; border: 1px solid #d0d0d0; }
::-webkit-scrollbar-thumb:hover { background: #707070; }

/* Title bar cursor */
.title-bar { cursor: move; user-select: none; }
