
/* ════════════════════════════════════════════════
   BOOT SCREEN — SkaaiOS loader
════════════════════════════════════════════════ */

#bootScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s ease, filter 1.4s ease;
}
#bootScreen.boot-out {
  opacity: 0;
  filter: blur(22px);
  pointer-events: none;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ── Spinner orbits ── */
@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(359deg); }
}
@keyframes spin3D {
  from { transform: rotate3d(.5,.5,.5, 360deg); }
  to   { transform: rotate3d(.5,.5,.5, 0deg); }
}

@keyframes bootOrbitReveal {
  0%   { filter: blur(18px); opacity: 0; transform: scale(.85); }
  60%  { opacity: 1; }
  100% { filter: blur(0);    opacity: 1; transform: scale(1); }
}
.spinner-box {
  width: 440px;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  position: relative;
  filter: blur(18px);
  opacity: 0;
  animation: bootOrbitReveal 1.4s ease .1s forwards;
}

.leo {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.blue-orbit {
  width: 330px;
  height: 330px;
  border: 1px solid #91daffa5;
  -webkit-animation: spin3D 3s linear .2s infinite;
  animation: spin3D 3s linear .2s infinite;
}
.green-orbit {
  width: 240px;
  height: 240px;
  border: 1px solid #91ffbfa5;
  -webkit-animation: spin3D 2s linear 0s infinite;
  animation: spin3D 2s linear 0s infinite;
}
.red-orbit {
  width: 180px;
  height: 180px;
  border: 1px solid #ffca91a5;
  -webkit-animation: spin3D 1s linear 0s infinite;
  animation: spin3D 1s linear 0s infinite;
}
.white-orbit {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255,255,255,.7);
  -webkit-animation: spin3D 10s linear 0s infinite;
  animation: spin3D 10s linear 0s infinite;
}
.w1 { transform: rotate3d(1, 1, 1, 90deg); }
.w2 { transform: rotate3d(1, 2, .5, 90deg); }
.w3 { transform: rotate3d(.5, 1, 2, 90deg); }

/* ── OS name ── */
@keyframes bootNameReveal {
  0%   { filter: blur(14px); opacity: 0; letter-spacing: .8em; }
  60%  { opacity: 1; }
  100% { filter: blur(0);    opacity: 1; letter-spacing: .4em; }
}
.boot-osname {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: 2.6rem;
  font-weight: 200;
  letter-spacing: .4em;
  color: #fff;
  filter: blur(14px);
  opacity: 0;
  animation: bootNameReveal 1.6s ease .6s forwards;
}
.boot-os-cap {
  font-weight: 600;
  letter-spacing: .2em;
}

/* ── Boot log ── */
.boot-log {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 9.5px;
  color: #5a2d7a;
  width: 360px;
  max-width: 40vw;
  height: 200px;
  overflow: hidden;
  line-height: 1.7;
  text-align: right;
}
@keyframes bootLineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
.boot-line {
  opacity: 0;
  white-space: pre;
  animation: bootLineIn .18s ease forwards;
}
.boot-line.ok    { color: #3a6644; }
.boot-line.warn  { color: #664400; }
.boot-line.final { color: #9955cc; font-weight: bold; }


/* ════════════════════════════════════
   WALLPAPER SHINE SWEEP
════════════════════════════════════ */
@keyframes wallShine {
  0%   { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  4%   { opacity: 1; }
  28%  { transform: translateX(180%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(180%) skewX(-18deg); opacity: 0; }
}
.xp-desktop::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,.03) 42%,
    rgba(255,255,255,.11) 50%,
    rgba(255,255,255,.03) 58%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
  animation: wallShine 8s ease-in-out infinite;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  height: 100vh;
  background: #000;
  user-select: none;
}

/* ════════════════════════════════════
   DESKTOP + WALLPAPER
════════════════════════════════════ */
.xp-desktop {
  position: fixed;
  inset: 0 0 44px 0;
  background: url('./assets/wallpaper-cyber.jpg') center/cover no-repeat;
  overflow: hidden;
}


/* ════════════════════════════════════
   DESKTOP ICONS
════════════════════════════════════ */
.desktop-icons {
  position: absolute;
  top: 16px; left: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}
.desktop-icon {
  display: flex; flex-direction: column; align-items: center;
  width: 72px; cursor: pointer; gap: 4px;
  border-radius: 4px; padding: 4px;
  transition: background .15s;
}
.desktop-icon:hover  { background: rgba(180,80,255,.22); }
.desktop-icon:active { background: rgba(180,80,255,.38); }
.icon-img { font-size: 36px; line-height: 1; filter: drop-shadow(0 0 6px #c060ff); }
.desktop-icon span {
  font-size: 11px; color: #f0d0ff;
  text-shadow: 0 0 8px #a040ff, 0 1px 3px #000;
  text-align: center; word-break: break-word;
}

/* ════════════════════════════════════
   NEON ANIMATIONS
════════════════════════════════════ */
@keyframes neonPulse {
  0%, 100% {
    box-shadow:
      0 0 6px #b040ff,
      0 0 20px #8800ff,
      0 0 40px rgba(180,0,255,.4),
      inset 0 0 12px rgba(180,0,255,.08);
  }
  50% {
    box-shadow:
      0 0 12px #ff40ff,
      0 0 35px #cc00ff,
      0 0 70px rgba(255,0,255,.45),
      inset 0 0 18px rgba(255,0,255,.1);
  }
}

@keyframes borderGlow {
  0%   { opacity: 1; filter: hue-rotate(0deg) brightness(1.2); }
  33%  { opacity: .8; filter: hue-rotate(40deg) brightness(1.5); }
  66%  { opacity: 1; filter: hue-rotate(-20deg) brightness(1.1); }
  100% { opacity: 1; filter: hue-rotate(0deg) brightness(1.2); }
}

@keyframes electricJitter {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  10%  { clip-path: polygon(0 0, 100% 0, 99.5% 100%, 0.5% 100%); }
  20%  { clip-path: polygon(0.3% 0, 100% 0, 100% 99.5%, 0 100%); }
  30%  { clip-path: polygon(0 0, 100% 0.3%, 99.7% 100%, 0 100%); }
  40%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* ════════════════════════════════════
   GENERIC WINDOW
════════════════════════════════════ */
.win-window {
  position: absolute;
  display: flex; flex-direction: column;
  border-radius: 8px 8px 4px 4px;
  overflow: visible;
  min-width: 320px; min-height: 220px;
  z-index: 10;
  animation: neonPulse 3s ease-in-out infinite;
}

/* Electric gradient border via pseudo-element */
.win-window::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(
    135deg,
    #ff00ff 0%,
    #9b00ff 20%,
    #4400cc 35%,
    #00ccff 50%,
    #9b00ff 65%,
    #ff00ff 80%,
    #cc00ff 100%
  );
  background-size: 300% 300%;
  z-index: -1;
  animation: borderGlow 2.5s ease-in-out infinite;
  filter: blur(1px) brightness(1.4);
}

/* Sharp inner cut to make it look like a border */
.win-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px 8px 4px 4px;
  box-shadow: inset 0 0 0 1px rgba(255,100,255,.35);
  z-index: 0;
  pointer-events: none;
}

.win-window.focused {
  z-index: 20;
  animation: neonPulse 1.8s ease-in-out infinite;
}
.win-window.focused::before {
  filter: blur(1.5px) brightness(1.8);
  animation: borderGlow 1.6s ease-in-out infinite;
}
.win-window.hidden { display: none; }
.win-window.minimized { display: none; }
.win-window.maximized {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
  border-radius: 0;
}
.win-window.maximized::before { display: none; }

/* ════════════════════════════════════
   PURPLE GLASS TITLEBAR
════════════════════════════════════ */
.aero-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 32px; padding: 0 6px 0 8px;
  flex-shrink: 0; cursor: move;
  position: relative; z-index: 1;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg,
      rgba(180,60,255,.65) 0%,
      rgba(120,0,200,.55) 40%,
      rgba(80,0,160,.60) 70%,
      rgba(60,0,140,.70) 100%);
  backdrop-filter: blur(14px) saturate(200%);
  -webkit-backdrop-filter: blur(14px) saturate(200%);
  border-bottom: 1px solid rgba(200,80,255,.4);
  box-shadow:
    inset 0 1px 0 rgba(255,120,255,.5),
    inset 0 -1px 0 rgba(100,0,180,.3);
}

.titlebar-left {
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; min-width: 0;
}
.window-icon { font-size: 14px; flex-shrink: 0; filter: drop-shadow(0 0 4px #ff80ff); }
.window-title {
  font-size: 12px; font-weight: 600;
  color: #f0c0ff;
  text-shadow: 0 0 8px #cc40ff, 0 1px 2px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.window-controls { display: flex; gap: 3px; flex-shrink: 0; }
.control-btn {
  width: 21px; height: 21px;
  border: none; border-radius: 4px;
  font-size: 11px; font-weight: bold; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: filter .1s;
}
.control-min  { background: linear-gradient(180deg,#9040d0,#6020a0); color:#e0c0ff; }
.control-max  { background: linear-gradient(180deg,#9040d0,#6020a0); color:#e0c0ff; }
.control-close{ background: linear-gradient(180deg,#dd44ff,#9900cc); color:#fff; }
.control-btn:hover { filter: brightness(1.35) drop-shadow(0 0 4px #ff80ff); }
.control-btn:active { filter: brightness(.85); }

/* ════════════════════════════════════
   WINDOW BODY
════════════════════════════════════ */
.win-body {
  flex: 1; display: flex; flex-direction: column;
  background: rgba(10,0,25,.92);
  backdrop-filter: blur(10px);
  overflow: hidden;
  min-height: 0;
  position: relative; z-index: 1;
  border-radius: 0 0 4px 4px;
}

/* ════════════════════════════════════
   RESIZE HANDLE
════════════════════════════════════ */
.resize-handle {
  position: absolute; bottom: 0; right: 0;
  width: 16px; height: 16px;
  cursor: se-resize;
  z-index: 2;
  background:
    linear-gradient(135deg,
      transparent 50%,
      rgba(200,80,255,.6) 50%,
      rgba(200,80,255,.6) 60%,
      transparent 60%,
      transparent 70%,
      rgba(200,80,255,.6) 70%,
      rgba(200,80,255,.6) 80%,
      transparent 80%);
}

/* ════════════════════════════════════
   FOTOVERKENNER INTERNALS
════════════════════════════════════ */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; gap: 8px;
  background: rgba(80,0,140,.3);
  border-bottom: 1px solid rgba(180,60,255,.2);
  flex-shrink: 0;
}
.nav-btn {
  background: rgba(140,40,255,.2); border: 1px solid rgba(180,80,255,.35);
  color: #d8a0ff; border-radius: 4px; padding: 3px 12px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.nav-btn:hover { background: rgba(180,80,255,.32); box-shadow: 0 0 8px rgba(180,80,255,.4); }
.viewer-meta { text-align: center; min-width: 0; flex: 1; }
.meta-title  { display: block; font-size: 12px; color: #cc88ff; font-weight: 600; text-shadow: 0 0 6px #9900cc; }
.meta-count  { font-size: 11px; color: #664488; }

.viewer-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.photo-frame {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; margin: 0;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.6), 0 0 30px rgba(150,0,255,.25);
}
.stage-hit {
  position: absolute; top: 0; bottom: 0; width: 48px;
  background: none; border: none;
  font-size: 36px; color: rgba(200,120,255,.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.stage-hit:hover { color: #cc80ff; background: rgba(140,40,255,.12); }
.stage-hit-left  { left: 0; }
.stage-hit-right { right: 0; }

.filmstrip-shell {
  height: 72px; border-top: 1px solid rgba(180,60,255,.2);
  background: rgba(10,0,30,.5); flex-shrink: 0;
}
.filmstrip {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  padding: 6px; gap: 5px;
  scroll-behavior: smooth;
}
.filmstrip::-webkit-scrollbar { height: 4px; }
.filmstrip::-webkit-scrollbar-thumb { background: rgba(180,80,255,.4); border-radius: 2px; }
.thumb {
  flex-shrink: 0; border: 2px solid transparent;
  background: transparent; border-radius: 3px;
  cursor: pointer; padding: 1px; transition: border-color .12s;
  height: 56px; width: 56px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; image-rendering: pixelated; }
.thumb:hover  { border-color: rgba(200,100,255,.5); }
.thumb.active { border-color: #cc40ff; box-shadow: 0 0 8px #9900cc; }

/* ════════════════════════════════════
   ABOUT / DEZE COMPUTER
════════════════════════════════════ */
.about-body {
  display: flex; gap: 24px; padding: 24px; align-items: flex-start;
}
.about-avatar img {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid rgba(180,80,255,.6);
  box-shadow: 0 0 20px rgba(150,0,255,.5), 0 0 40px rgba(255,0,255,.2);
  flex-shrink: 0;
}
.about-content { flex: 1; min-width: 0; }
.about-content h2 {
  font-size: 24px; color: #e8c0ff;
  text-shadow: 0 0 20px rgba(200,80,255,.7);
  margin-bottom: 4px;
}
.about-tagline { font-size: 12px; color: #9966bb; margin-bottom: 14px; }
.about-divider { border: none; border-top: 1px solid rgba(180,80,255,.2); margin: 12px 0; }
.about-content p { font-size: 13px; color: #c8a0dd; line-height: 1.6; margin-bottom: 10px; }
.about-specs { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.spec-row { display: flex; gap: 12px; font-size: 12px; }
.spec-label { color: #cc60ff; min-width: 70px; font-weight: 600; }
.spec-val   { color: #d8b0ee; }

/* ════════════════════════════════════
   FLIP 3D OVERLAY (ALT+TAB)
════════════════════════════════════ */
.flip3d-overlay {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(10,0,30,.75);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  perspective: 1200px;
}
.flip3d-overlay[hidden] { display: none !important; }
.flip3d-scene {
  position: relative;
  width: 560px; height: 380px;
  transform-style: preserve-3d;
}
.flip3d-card {
  position: absolute; inset: 0;
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(200,80,255,.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 30px rgba(150,0,255,.3);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), opacity .35s, filter .35s;
  cursor: pointer;
  backface-visibility: hidden;
}
.flip3d-card canvas, .flip3d-card .card-preview {
  width: 100%; height: 100%; object-fit: cover;
}
.flip3d-card .card-preview {
  background: rgba(15,0,35,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.flip3d-label {
  margin-top: 28px;
  font-size: 18px; font-weight: 600; color: #e0b0ff;
  text-shadow: 0 0 12px #aa40ff, 0 2px 8px rgba(0,0,0,.8);
}
.flip3d-hint {
  margin-top: 6px;
  font-size: 11px; color: rgba(200,150,255,.5);
}

/* ════════════════════════════════════
   TASKBAR
════════════════════════════════════ */
.xp-taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 44px;
  display: flex; align-items: center; gap: 0;
  background: linear-gradient(180deg,
    rgba(60,0,100,.96) 0%,
    rgba(30,0,70,.98) 50%,
    rgba(20,0,55,1) 100%);
  border-top: 1px solid rgba(180,60,255,.4);
  box-shadow: 0 -2px 20px rgba(140,0,255,.4), 0 -1px 6px rgba(255,0,255,.15);
  z-index: 8000; padding: 0 4px;
}
.start-btn {
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(180deg,#cc44ff,#8800cc,#6600aa);
  border: none; border-radius: 0 12px 12px 0;
  padding: 6px 14px 6px 10px; height: 34px;
  font-size: 14px; font-style: italic; font-weight: 900;
  color: #fff; text-shadow: 0 0 8px #ff80ff, 0 1px 2px rgba(0,0,0,.5);
  cursor: pointer;
  box-shadow: 2px 0 12px rgba(180,0,255,.5), inset 0 1px 0 rgba(255,180,255,.3);
  margin-right: 4px;
}
.start-btn:hover { filter: brightness(1.2) drop-shadow(0 0 8px #ff00ff); }
.start-logo { font-size: 16px; filter: drop-shadow(0 0 4px #ff80ff); }

.taskbar-divider {
  width: 1px; height: 28px;
  background: rgba(180,80,255,.3); margin: 0 4px;
}
.taskbar-tasks {
  flex: 1; display: flex; gap: 3px; overflow: hidden;
  align-items: center; height: 100%;
}
.taskbar-app {
  display: flex; align-items: center; gap: 5px;
  background: rgba(120,40,200,.2); border: 1px solid rgba(180,80,255,.25);
  border-radius: 3px; padding: 3px 10px; height: 28px;
  font-size: 12px; color: #d8a0ff; cursor: pointer;
  white-space: nowrap; max-width: 180px; overflow: hidden;
  text-overflow: ellipsis; transition: background .12s;
}
.taskbar-app:hover  { background: rgba(160,60,255,.28); box-shadow: 0 0 8px rgba(160,60,255,.3); }
.taskbar-app.active { background: rgba(180,80,255,.32); border-color: rgba(220,100,255,.5); box-shadow: 0 0 10px rgba(180,60,255,.35); }

.taskbar-tray {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px;
  border-left: 1px solid rgba(180,80,255,.25);
}
.tray-icon { font-size: 14px; cursor: default; filter: drop-shadow(0 0 3px #cc60ff); }
.tray-clock { color: #d8a0ff; font-size: 12px; font-weight: 600; white-space: nowrap; text-shadow: 0 0 6px #aa40ff; }

/* ════════════════════════════════════
   START MENU
════════════════════════════════════ */
.start-menu {
  position: fixed; bottom: 44px; left: 0;
  width: 280px; z-index: 8500;
  background: linear-gradient(135deg, rgba(40,0,80,.97), rgba(20,0,60,.99));
  border: 1px solid rgba(180,60,255,.4);
  border-radius: 0 8px 0 0;
  box-shadow: 4px -4px 24px rgba(140,0,255,.5), 0 0 40px rgba(255,0,255,.1);
  overflow: hidden;
}
.start-menu[hidden] { display: none; }
.start-menu-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(60,0,100,.95), rgba(120,0,200,.85));
  border-bottom: 1px solid rgba(200,80,255,.3);
}
.start-user-icon { font-size: 28px; filter: drop-shadow(0 0 6px #cc40ff); }
.start-menu-header span { color:#e8c0ff; font-weight:700; font-size:14px; text-shadow: 0 0 8px #aa40ff; }
.start-menu-body { padding: 8px 0; }
.start-col { display: flex; flex-direction: column; }
.start-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px; color: #c8a0ee; font-size: 13px; cursor: pointer;
  transition: background .12s;
}
.start-item:hover { background: rgba(160,60,255,.22); }
.start-item span { font-size: 16px; filter: drop-shadow(0 0 3px #cc60ff); }
hr { border-color: rgba(180,80,255,.2); margin: 4px 0; }
.start-menu-footer {
  padding: 8px 12px;
  border-top: 1px solid rgba(180,80,255,.2);
  display: flex; justify-content: flex-end;
}
.start-menu-footer button {
  background: none; border: 1px solid rgba(180,80,255,.35);
  color: #c8a0ee; border-radius: 4px; padding: 4px 10px;
  font-size: 12px; cursor: pointer;
}
.start-menu-footer button:hover { background: rgba(160,60,255,.2); }

/* ════════════════════════════════════
   BODY DRAG CURSOR
════════════════════════════════════ */
body.dragging { cursor: move !important; }
body.resizing { cursor: se-resize !important; }

/* YouTube body */
.youtube-body {
  padding: 0;
  flex-direction: row !important;
}
.yt-player {
  flex: 1;
  display: flex;
  min-width: 0;
}
.yt-player iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.yt-sidebar {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(180,60,255,.2);
  background: rgba(10,0,30,.6);
  overflow: hidden;
}
.yt-sidebar-head {
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #664488;
  border-bottom: 1px solid rgba(180,60,255,.15);
  flex-shrink: 0;
}
.yt-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}
.yt-list::-webkit-scrollbar { width: 4px; }
.yt-list::-webkit-scrollbar-thumb { background: rgba(180,80,255,.4); border-radius: 2px; }
.yt-thumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(180,60,255,.08);
  transition: background .12s;
}
.yt-thumb:hover { background: rgba(140,40,255,.15); }
.yt-thumb.yt-active { background: rgba(140,40,255,.28); border-left: 2px solid #cc80ff; }
.yt-thumb img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.yt-title {
  font-size: 10px;
  color: #c090ee;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .youtube-body { flex-direction: column !important; }
  .yt-sidebar { width: 100%; height: 160px; border-left: none; border-top: 1px solid rgba(180,60,255,.2); }
  .yt-list { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .yt-thumb { flex-direction: column; min-width: 100px; }
  .yt-thumb img { width: 100%; height: 56px; }
}

/* ════════════════════════════════════
   MOBILE / SMALL SCREEN
   Vensters schalen naar volledig scherm
════════════════════════════════════ */
@media (max-width: 768px) {

  /* Elk venster vult het desktop-vlak volledig */
  .win-window {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  /* Geen glow-border op mobiel (performance) */
  .win-window::before { display: none !important; }
  .win-window::after  { display: none !important; }
  .win-window { animation: none !important; box-shadow: none !important; }

  /* Titlebar: geen sleepkursor, scherpe hoeken */
  .aero-bar { cursor: default !important; border-radius: 0 !important; }

  /* Resize-handle verbergen */
  .resize-handle { display: none !important; }


  /* Taskbar: grotere touch targets */
  .xp-taskbar { height: 48px; }
  .xp-desktop { inset: 0 0 48px 0; }
  .start-btn  { padding: 0 12px; font-size: 13px; }
  .taskbar-app {
    font-size: 11px;
    padding: 4px 10px;
    max-width: 120px;
  }
  .tray-clock { font-size: 11px; }

  /* Filmstrip iets groter voor aanraakbediening */
  .filmstrip-shell { height: 80px; }
  .thumb { height: 64px; width: 64px; }

  /* Stage-hit knoppen breder */
  .stage-hit { width: 52px; font-size: 40px; }

  /* Toolbar nav-knoppen ruimer */
  .nav-btn { padding: 5px 14px; font-size: 13px; }

  /* YouTube iframe vult venster */
  .youtube-body iframe { min-height: 0; }

  /* Startmenu volledig breed */
  .start-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  .start-menu-body { flex-direction: column; }
}

/* ════════════════════════════════════
   WALLPAPER SWITCHER
════════════════════════════════════ */
.xp-desktop.wp-bliss {
  background-image: url('./assets/bliss.jpg');
}
.xp-desktop.wp-cyber {
  background-image: url('./assets/wallpaper-cyber.jpg');
}

.wp-switch {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(20,0,40,.65);
  border: 1px solid rgba(180,60,255,.45);
  color: #cc80ff;
  font-size: 13px;
  font-family: 'Segoe UI', monospace;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, box-shadow .15s;
  user-select: none;
}
.wp-switch:hover {
  background: rgba(120,0,200,.5);
  box-shadow: 0 0 10px rgba(180,60,255,.5);
}

/* ════════════════════════════════════
   MIRROR (webcam)
════════════════════════════════════ */
/* OnlyCam / mirror window */
#mirrorWindow .win-body {
  background: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mirror-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transform: scaleX(-1) !important;
  z-index: 10 !important;
  opacity: 1 !important;
}
.mirror-err {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  font-size: 13px; color: #f87171;
  background: rgba(10,0,25,.9);
}

/* ════════════════════════════════════
   PRULLENBAK
════════════════════════════════════ */
.trash-body {
  display: flex; flex-direction: column;
}
.trash-toolbar {
  padding: 6px 14px;
  font-size: 11px; color: #664488;
  background: rgba(80,0,140,.2);
  border-bottom: 1px solid rgba(180,60,255,.15);
  flex-shrink: 0;
}
.trash-list {
  list-style: none;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}
.trash-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(180,60,255,.08);
  cursor: default;
  transition: background .12s;
}
.trash-item:hover { background: rgba(140,40,255,.12); }
.trash-icon { font-size: 26px; flex-shrink: 0; filter: grayscale(40%); }
.trash-name { font-size: 13px; color: #d0a0ff; font-weight: 600; }
.trash-meta { font-size: 11px; color: #553366; margin-top: 2px; }

/* ════════════════════════════════════════════════
   SKAAI.NET BROWSER WINDOW
════════════════════════════════════════════════ */

.browser-body {
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Chrome toolbar */
.browser-chrome {
  flex-shrink: 0;
  background: rgba(8,0,20,.95);
  border-bottom: 1px solid rgba(150,50,255,.25);
  padding: 6px 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.browser-nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-navbtn {
  background: rgba(80,20,140,.4);
  border: 1px solid rgba(150,50,255,.3);
  color: #cc88ff;
  width: 28px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}
.browser-navbtn:hover { background: rgba(120,40,200,.5); }
.browser-navbtn:disabled { opacity: .3; cursor: default; }

.browser-urlbar {
  flex: 1;
  background: rgba(5,0,15,.8);
  border: 1px solid rgba(120,40,220,.3);
  border-radius: 12px;
  padding: 3px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.browser-scheme {
  color: #6633aa;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
}
.browser-urltext {
  color: #d0a0ff;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SkaaiSearch */
.browser-searchrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skaaisearch-brand {
  font-size: 10px;
  font-weight: 700;
  color: #9944dd;
  letter-spacing: .08em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.skaaisearch-input {
  flex: 1;
  background: rgba(5,0,15,.8);
  border: 1px solid rgba(120,40,220,.25);
  border-radius: 10px;
  color: #d0a0ff;
  font-size: 11px;
  padding: 3px 10px;
  outline: none;
}
.skaaisearch-input::placeholder { color: #553366; }
.skaaisearch-input:focus { border-color: rgba(180,80,255,.5); }

/* Content area */
.browser-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: rgba(6,0,18,.9);
}
.browser-content::-webkit-scrollbar { width: 5px; }
.browser-content::-webkit-scrollbar-thumb { background: rgba(150,50,255,.3); border-radius: 3px; }

/* ── Projects overview grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.projects-grid-title {
  grid-column: 1/-1;
  font-size: 11px;
  color: #553366;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 4px;
}

.project-card {
  background: rgba(20,5,40,.7);
  border: 1px solid rgba(120,40,220,.2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.project-card:hover {
  border-color: rgba(180,80,255,.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(120,40,255,.2);
}

.project-thumb {
  width: 100%;
  height: 130px;
  position: relative;
  overflow: hidden;
}
.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.thumb-bar  { height: 8px;  border-radius: 2px; opacity: .7; }
.thumb-hero { flex: 1; border-radius: 3px; opacity: .5; }
.thumb-row  { display: flex; gap: 4px; height: 20px; }
.thumb-col  { flex: 1; border-radius: 2px; opacity: .4; }

.project-card-info {
  padding: 10px 12px 12px;
}
.project-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0b0ff;
  margin-bottom: 4px;
}
.project-card-desc {
  font-size: 10.5px;
  color: #7744aa;
  line-height: 1.5;
}
.project-card-tag {
  margin-top: 7px;
  font-size: 9.5px;
  color: #9944dd;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Project detail page ── */
.project-detail {
  max-width: 820px;
  margin: 0 auto;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9944dd;
  cursor: pointer;
  margin-bottom: 16px;
  transition: color .12s;
}
.detail-back:hover { color: #cc80ff; }

.detail-header {
  margin-bottom: 20px;
}
.detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0d0ff;
  margin-bottom: 6px;
}
.detail-subtitle {
  font-size: 12px;
  color: #7744aa;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.meta-card {
  background: rgba(20,5,40,.7);
  border: 1px solid rgba(120,40,220,.2);
  border-radius: 6px;
  padding: 12px 14px;
}
.meta-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7744aa;
  margin-bottom: 5px;
}
.meta-value {
  font-size: 12.5px;
  color: #d0a0ff;
  line-height: 1.5;
}

.detail-duration {
  grid-column: 1/-1;
}
.duration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.duration-item {
  background: rgba(80,20,140,.2);
  border-radius: 4px;
  padding: 6px 8px;
  text-align: center;
}
.duration-label { font-size: 9px; color: #553366; text-transform: uppercase; }
.duration-val   { font-size: 12px; color: #cc88ff; font-weight: 600; margin-top: 2px; }

/* Slideshow */
.detail-slideshow-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7744aa;
  margin-bottom: 10px;
}
.slideshow {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(120,40,220,.2);
  height: 260px;
}
.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.slide.active { display: flex; flex-direction: column; gap: 5px; padding: 12px; }
.slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.slide-btn {
  background: rgba(80,20,140,.4);
  border: 1px solid rgba(150,50,255,.3);
  color: #cc88ff;
  padding: 5px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: background .12s;
}
.slide-btn:hover { background: rgba(120,40,200,.6); }
.slide-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(150,50,255,.3);
  cursor: pointer;
  transition: background .12s;
}
.slide-dot.active { background: #cc88ff; }
.slide-caption {
  font-size: 10px;
  color: #553366;
  text-align: center;
}

/* Slide mockup elements */
.sm-navbar { height: 14px; border-radius: 2px; opacity: .6; width: 100%; }
.sm-hero   { flex: 2; border-radius: 4px; opacity: .45; }
.sm-cards  { display: flex; gap: 6px; flex: 1; }
.sm-card   { flex: 1; border-radius: 3px; opacity: .35; }
.sm-footer { height: 18px; border-radius: 2px; opacity: .3; width: 100%; }

@media (max-width: 768px) {
  .detail-meta { grid-template-columns: 1fr; }
  .duration-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
