/* ── Desktop OS Elements ────────────────────────────────────────────── */

body.desktop-mode {
  background: transparent;
  background-attachment: fixed;
  overflow: hidden; /* Desktop shouldn't scroll */
}

/* ── Skip Link (Accessibility) ─────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--acc, #00ff9d);
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  z-index: 999999;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 40px;
}

/* ── Graphical Boot Screen ─────────────────────────────────── */
#boot-screen {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000;
  z-index: 999999; /* Way above everything, including menubar */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#boot-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.boot-content {
  text-align: center;
  width: 200px;
}

.boot-logo {
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.boot-tagline {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.boot-progress-container {
  width: 100%;
  height: 4px;
  background: #424242;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

#boot-progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

/* ── Desktop Wallpaper ────────────────────────────────────────── */
#desktop-wallpaper {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../assets/background2.jpg');
  background-size: cover;
  background-position: center;
  /* animation removed to keep the static wallpaper clean */
}


.os-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ── Safari Toolbar ────────────────────────────────────────── */
.safari-toolbar {
  height: 48px;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
  z-index: 100;
  flex-shrink: 0;
}

.safari-nav, .safari-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.safari-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.safari-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.safari-address-bar {
  flex: 1;
  max-width: 600px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto;
}

.safari-address-bar span {
  letter-spacing: 0.2px;
}

.safari-address-bar input {
  background: transparent;
  border: none;
  color: white;
  font-size: 13px;
  width: 100%;
  text-align: center;
  outline: none;
}

.safari-address-bar input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* ── Browser View Stack ────────────────────────────────────── */
#safari-view-stack {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
}

.safari-view {
  display: none;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.safari-view.active {
  display: block;
}

#safari-external-view {
  overflow: auto;
}

#safari-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* ── Error Screen ────────────────────────────────────────── */
#safari-error-view {
  background: #f2f2f7;
  color: #1c1c1e;
  display: none;
  align-items: center;
  justify-content: center;
}

#safari-error-view.active {
  display: flex;
}

.safari-error-content {
  max-width: 400px;
  text-align: center;
  padding: 40px;
}

.safari-error-content h2 {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  font-weight: 600;
}

.safari-error-content p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #636366;
}

#error-url {
  font-weight: 600;
  word-break: break-all;
}

/* ── Desktop Folders ────────────────────────────────────────── */
#desktop-grid {
  position: absolute;
  top: 60px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 50;
}

.desktop-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.desktop-folder:hover {
  background: rgba(255, 255, 255, 0.1);
}

.folder-svg {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.desktop-folder:hover .folder-svg {
  transform: scale(1.1);
}

.desktop-folder span {
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
}

.desktop-folder:focus span, .desktop-folder:active span {
  background: var(--acc, #3b82f6);
}

/* ── Premium Top Menu Bar ────────────────────────────────────────── */
#top-menu-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 30px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  z-index: 100000;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar-item {
  padding: 2px 10px;
  border-radius: 4px;
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
}

.topbar-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.topbar-item.active {
  background: rgba(255, 255, 255, 0.2);
}

.topbar-item.brand-logo {
  padding: 0 8px;
  margin-right: 6px;
  font-weight: 900;
  font-size: 14.5px;
  letter-spacing: -0.5px;
}



.active-app-name {
  font-weight: 700;
  margin-right: 8px;
}

.status-icon {
  padding: 0 8px;
}

/* ── Dropdown Menus ───────────────────────────────────────────── */
.menu-dropdown {
  position: fixed;
  top: 32px;
  background: rgba(25, 25, 25, 0.6);
  backdrop-filter: blur(50px) saturate(210%);
  -webkit-backdrop-filter: blur(50px) saturate(210%);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  padding: 5px;
  min-width: 220px;
  z-index: 100001;
  animation: menuIn 0.15s cubic-bezier(0, 0, 0.2, 1);
  transform-origin: top left;
}

.menu-dropdown.appearance-mode {
  background: rgba(25, 25, 30, 0.55);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  padding: 6px;
  min-width: 260px;
}

@keyframes menuIn {
  from { opacity: 0; transform: scale(0.96) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-item {
  padding: 5px 12px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #eee;
  cursor: default;
  transition: background 0.1s;
}

.menu-item:hover {
  background: #0061d5;
  color: white;
}

.menu-item.disabled {
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
}

.menu-item.disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
}

.menu-item.divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.12);
  margin: 5px 8px;
  padding: 0;
}

.menu-item.divider:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-item .shortcut {
  opacity: 0.5;
  font-size: 11px;
}

/* ── Spotlight Search ─────────────────────────────────────────── */
#spotlight-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 200000;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.spotlight-container {
  margin-top: 20vh;
  width: 620px;
  max-width: 92vw;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(60px) saturate(210%);
  -webkit-backdrop-filter: blur(60px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 
    0 25px 60px 10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  height: max-content;
  display: flex;
  flex-direction: column;
  animation: spotlightIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightIn {
  from { opacity: 0; transform: scale(1.02) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-search-box {
  padding: 0;
  height: 60px;
  line-height: 60px;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.spotlight-search-box .spotlight-search-icon {
  position: absolute;
  left: 20px;
  pointer-events: none;
  opacity: 0.6;
}

.spotlight-search-box input {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: 300;
  width: 100%;
  height: 100%;
  padding: 0 60px;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.spotlight-hint {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

#spotlight-results {
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  max-height: 400px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.spotlight-result-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: default;
  transition: background 0.1s;
}

.spotlight-result-item:hover, .spotlight-result-item.selected {
  background: #0061d5;
}

.spotlight-result-item .result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-result-item .result-info {
  display: flex;
  flex-direction: column;
}

.spotlight-result-item .result-name {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.spotlight-result-item .result-type {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.spotlight-result-item:hover .result-type, .spotlight-result-item.selected .result-type {
  color: rgba(255,255,255,0.8);
}

/* ── OS Windows ────────────────────────────────────────────── */
.os-window {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 900px;
  max-width: 90vw;
  height: 65vh;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, border 0.3s ease;
  transform-origin: center bottom;
  opacity: 1;
}

.os-window.active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* State: Hidden / Minimized */
.os-window.hidden {
  display: none !important;
}

.os-window.minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px) scale(0.5);
}

/* ── Window Open/Close Animations ─────────────────────────── */
@keyframes windowOpen {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes windowClose {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.7); }
}

@keyframes windowMinimize {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to   { opacity: 0; transform: scale(0.4) translateY(200px); }
}

@keyframes windowRestore {
  from { opacity: 0; transform: scale(0.4) translateY(200px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.os-window.win-opening {
  animation: windowOpen 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.os-window.win-closing {
  animation: windowClose 0.2s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  pointer-events: none;
}

.os-window.win-minimizing {
  animation: windowMinimize 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  pointer-events: none;
}

.os-window.win-restoring {
  animation: windowRestore 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Window Snapping States ───────────────────────────────── */
.os-window.snapped-left {
  top: 32px !important;
  left: 0 !important;
  width: 50vw !important;
  max-width: none !important;
  height: calc(100vh - 32px - 80px) !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
}

.os-window.snapped-right {
  top: 32px !important;
  left: 50vw !important;
  width: 50vw !important;
  max-width: none !important;
  height: calc(100vh - 32px - 80px) !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
}

/* ── Snap Preview Indicator ───────────────────────────────── */
#snap-preview {
  position: fixed;
  z-index: 99990;
  background: rgba(0, 97, 213, 0.15);
  border: 2px solid rgba(0, 97, 213, 0.5);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, top 0.15s ease, left 0.15s ease, width 0.15s ease, height 0.15s ease;
}

#snap-preview.visible {
  opacity: 1;
}

#snap-preview.snap-left {
  top: 32px;
  left: 0;
  width: 50vw;
  height: calc(100vh - 32px - 80px);
}

#snap-preview.snap-right {
  top: 32px;
  left: 50vw;
  width: 50vw;
  height: calc(100vh - 32px - 80px);
}

#snap-preview.snap-top {
  top: 32px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 32px);
}

/* State: Maximized */
.os-window.maximized {
  top: 32px !important; /* Slightly offset from top-menu-bar */
  left: 12px !important;
  width: calc(100vw - 24px) !important;
  max-width: none !important;
  height: calc(100vh - 32px - 92px) !important; /* workspace height minus top bar and dock area */
  border-radius: 12px; /* Keep some rounding for premium feel */
  transform: none !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Title Bar */
.os-title-bar {
  display: flex;
  align-items: center;
  /* Padding reduced by 20% from .9rem */
  padding: .52rem 1rem;
  background: rgba(40, 40, 45, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  user-select: none;
  cursor: grab;
}

.os-title-bar:active {
  cursor: grabbing;
}

.traffic-lights {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.traffic-lights span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.7);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1);
}

.dot-red    { background: #ff5f57; border: 1px solid #e0443e; }
.dot-yellow { background: #febc2e; border: 1px solid #d89e24; }
.dot-green  { background: #28c840; border: 1px solid #1fa732; }

.traffic-lights span::before {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dot-red::before    { content: "×"; }
.dot-yellow::before { content: "−"; }
.dot-green::before  { content: "+"; }

.traffic-lights:hover span {
  transform: scale(1.15);
}

.traffic-lights:hover span::before {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.1s;
}

.os-title-text {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ccc;
  font-weight: 500;
  margin-right: 50px; /* Counterbalance for traffic lights */
}

/* Window Content */
.os-content {
  flex: 1;
  position: relative;
  padding: 16px;
  overflow: auto; /* Sub-scrollable */
}

#terminal {
  padding-bottom: 60px; /* Extra space for prompt visibility */
}

/* Frame specific sizing */
#portfolio-window {
  width: 1100px;
  height: 80vh;
}

/* ── Dock ────────────────────────────────────────────── */
/* ── Overhauled Dock ────────────────────────────────────────── */
.dock {
  display: flex;
  align-items: center;
  position: fixed;
  padding: 0.25rem 0.5rem;
  bottom: 12px;
  left: 50%;
  height: 64px;
  transform: translateX(-50%);
  background: rgba(30, 30, 35, 0.5);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 10000;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

.icon {
  position: relative;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  padding: 0;
  /* Smoother, standard cubic-bezier for magnification */
  transition: transform 0.3s cubic-bezier(0, 0.55, 0.45, 1), margin 0.3s cubic-bezier(0, 0.55, 0.45, 1);
  transform-origin: bottom center;
}

.icon:hover {
  transform: scale(2.0) translateY(2px);
  margin: 0 24px;
}

/* More subtle magnification for neighbors to keep it smooth */
.icon:hover + .icon, 
.icon:has(+ .icon:hover) {
  transform: scale(1.5) translateY(2px);
  /* margin: 0 12px; */
}

/* Tooltip / App Name */
.icon::after {
  content: attr(data-title);
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, top 0.2s;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.icon:hover::after {
  opacity: 1;
  top: -30px;
}

/* Active Indicators */
.point {
  position: absolute;
  bottom: -6px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  margin: 0;
  box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

.point.hidden {
  display: none !important;
}

/* Specialized Icons styles */
.icon-terminal-div {
  width: 36px;
  height: 36px;
  background: #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff9d;
  font-family: monospace;
  font-weight: bold;
  border: 1px solid #444;
}


/* ── Responsive Mobile Fixes ────────────────────────────────── */
@media (max-width: 768px) {
  /* Header Fixes */
  #top-menu-bar {
    padding: 0 8px;
    font-size: 12.5px;
  }

  .topbar-left, .topbar-right {
    gap: 1px;
  }

  /* Hide File, Window, Help menu triggers on mobile */
  .topbar-item.menu-trigger {
    display: none;
  }

  /* Keep brand logo and active app name compact */
  .topbar-item.brand-logo {
    padding: 0 6px;
    margin-right: 2px;
    font-size: 13px;
  }

  .topbar-item.active-app-name {
    margin-right: 0;
    font-size: 12px;
  }

  .topbar-item {
    padding: 2px 6px;
  }

  .status-icon {
    padding: 0 5px;
  }

  /* Keep time fully readable */
  #topbar-time {
    font-size: 11.5px;
    white-space: nowrap;
  }

  /* Window Fixes */
  .os-window:not(.maximized) {
    left: 2.5% !important;
    width: 95vw !important;
    height: 70vh !important;
    top: 40px !important;
  }

  #portfolio-window:not(.maximized) {
    width: 95vw !important;
  }

  /* Dock Fixes */
  .dock {
    height: 56px;
    padding: 0 10px;
    gap: 4px;
  }

  .icon {
    width: 44px;
    height: 44px;
  }

  .icon:hover {
    transform: scale(1.4) translateY(2px);
    margin: 0 12px;
  }

  /* Hide Settings and Calculator from dock on mobile */
  .dock .icon[data-target="sysprefs-window"],
  .dock .icon[data-target="calculator-window"] {
    display: none;
  }

  /* Spotlight Search Fixes */
  .spotlight-container {
    max-width: 94vw;
    width: 94vw;
    margin-top: 12vh;
  }

  .spotlight-search-box {
    height: 50px;
    line-height: 50px;
  }

  .spotlight-search-box input {
    font-size: 16px;
    padding: 0 16px 0 48px;
  }

  .spotlight-search-box .spotlight-search-icon {
    left: 14px;
  }

  .spotlight-hint {
    display: none;
  }

  /* Appearance / Theme Popover Fixes */
  .menu-dropdown.appearance-mode {
    min-width: auto;
    width: calc(100vw - 16px);
    max-width: 300px;
    right: 8px !important;
    left: auto !important;
  }

  /* Hide GitHub Stats from dock on mobile */
  .dock .icon[data-target="github-stats-window"] {
    display: none;
  }

}

/* Extra small screens — tighten spacing but keep all icons */
@media (max-width: 480px) {
  #top-menu-bar {
    padding: 0 6px;
    font-size: 11.5px;
  }

  .topbar-left, .topbar-right {
    gap: 0;
  }

  .topbar-item.brand-logo {
    font-size: 12px;
    padding: 0 4px;
    margin-right: 2px;
  }

  .topbar-item.active-app-name {
    font-size: 11px;
  }

  .topbar-item {
    padding: 2px 4px;
  }

  .status-icon {
    padding: 0 3px;
  }

  .status-icon svg {
    width: 14px;
    height: 14px;
  }

  #topbar-time {
    font-size: 10.5px;
  }
}

/* ── Desktop Files ─────────────────────────────────────────── */
.desktop-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.desktop-file:hover {
  background: rgba(255, 255, 255, 0.1);
}

.file-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.desktop-file:hover .file-icon {
  transform: scale(1.1);
}

.desktop-file span {
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
}

.desktop-file:focus span, .desktop-file:active span {
  background: var(--acc, #3b82f6);
}

/* ── PDF Preview Window ────────────────────────────────────── */
#resume-window {
  width: 800px;
  height: 90vh;
  left: 15%;
  top: 52px; /* Just below top bar */
}

.preview-toolbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-content {
  background: #323639 !important; /* Mac Preview dark theme */
  padding: 0 !important;
  overflow-y: auto !important;
  display: block !important;
}

#pdf-viewer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 24px;
  width: 100%;
}

.pdf-page {
  box-shadow: 0 15px 45px rgba(0,0,0,0.4);
  max-width: 100%;
  height: auto !important;
  background: white;
}

#pdf-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: white;
  width: 100%;
}

.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Mobile adjustments */
@media (max-width: 768px) {
  #resume-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
}

/* ── Premium Fullscreen Prompt ────────────────────────────── */
#mobile-fullscreen-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90vw;
  background: rgba(28, 28, 35, 0.7);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  z-index: 10000;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: modalEnter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#mobile-fullscreen-prompt h2 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
  letter-spacing: -0.5px;
}

#mobile-fullscreen-prompt p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}

.fs-button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#go-fullscreen-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

#go-fullscreen-btn:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

#go-fullscreen-btn:active {
  transform: translateY(0);
}

#close-fullscreen-prompt {
  background: transparent;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}

#close-fullscreen-prompt:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

#mobile-fullscreen-prompt.hidden { 
  display: none; 
}

/* App Iframe Styling */
.app-iframe-container {
  padding: 0 !important;
  overflow: hidden !important;
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#gitpilot-window {
  width: 900px;
  height: 600px;
  max-width: 95vw;
  max-height: 80vh;
  top: 15%;
  left: 15%;
}

@media (max-width: 768px) {
  #gitpilot-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
}

/* App Iframe Styling */
.app-iframe-container {
  padding: 0 !important;
  overflow: hidden !important;
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#gitpilot-window {
  width: 900px;
  height: 600px;
  max-width: 95vw;
  max-height: 80vh;
  top: 15%;
  left: 15%;
}

@media (max-width: 768px) {
  #gitpilot-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
}

#json-editor-window {
  width: 950px;
  height: 650px;
  max-width: 95vw;
  max-height: 80vh;
  top: 10%;
  left: 10%;
}

@media (max-width: 768px) {
  #json-editor-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
}


/* ── Final Maximization Overrides (High Specificity) ────────── */
.os-window.maximized {
  top: 28px !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  max-height: none !important;
  height: calc(100vh - 28px) !important;
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .os-window.maximized {
    top: 30px !important;
    height: calc(100vh - 30px - 70px) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    border-radius: 0 !important;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   NOTIFICATION CENTER
   ══════════════════════════════════════════════════════════════════════ */

#nc-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 99998;
  background: transparent;
}

#nc-overlay.hidden {
  display: none;
}

#notification-center {
  position: fixed;
  top: 40px;
  right: -392px;
  width: 360px;
  max-height: calc(100vh - 40px - 88px);
  background: rgba(25, 25, 30, 0.55);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}

#notification-center.hidden {
  pointer-events: none;
}

#notification-center.open {
  right: 8px;
}

#notification-center.closing {
  right: -392px;
}

.nc-header {
  padding: 16px 20px 12px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nc-widgets {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ── Widget Base ──────────────────────────────────────────── */
.nc-widget {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  transition: background 0.2s;
}

.nc-widget:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nc-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nc-widget-icon {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.nc-widget-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

/* ── Calendar Widget ──────────────────────────────────────── */
.nc-cal-hero {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-align: center;
}

.nc-cal-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 16px;
}

.nc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.nc-cal-head {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  padding: 4px 0;
}

.nc-cal-day {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.nc-cal-day.today {
  background: var(--acc, #00ff9d);
  color: #000;
  font-weight: 700;
}

.nc-cal-empty {
  padding: 4px 0;
}

/* ── Weather Widget ───────────────────────────────────────── */
.nc-weather-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nc-weather-temp {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.nc-weather-location {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.nc-weather-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.nc-weather-range {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

/* ── GitHub Widget ────────────────────────────────────────── */
.nc-github-body {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.nc-github-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.nc-github-num {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.nc-github-desc {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  display: block;
}

.nc-github-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--acc, #00ff9d);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nc-github-link:hover {
  opacity: 0.7;
}

/* ── Contribution Graph ───────────────────────────────────── */
.nc-contrib-container {
  margin: 10px 0 8px;
}

.nc-contrib-header {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

.nc-contrib-grid {
  display: flex;
  gap: 2px;
}

.nc-contrib-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nc-contrib-day {
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  transition: transform 0.1s;
}

.nc-contrib-day:hover {
  transform: scale(1.4);
}

/* ── Now Playing Widget ───────────────────────────────────── */
.nc-np-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.nc-np-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acc, #00ff9d), rgba(88, 166, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.nc-np-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.nc-np-artist {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.nc-np-progress {
  padding: 0 2px;
}

.nc-np-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.nc-np-fill {
  width: 48%;
  height: 100%;
  background: var(--acc, #00ff9d);
  border-radius: 2px;
  animation: npProgress 8s linear infinite;
}

@keyframes npProgress {
  0% { width: 48%; }
  100% { width: 100%; }
}

.nc-np-times {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

@media (max-width: 768px) {
  #notification-center {
    width: calc(100vw - 16px);
    right: calc(-100vw);
    border-radius: 16px;
  }
  #notification-center.open {
    right: 8px;
  }
  #notification-center.closing {
    right: calc(-100vw);
  }
}


/* ══════════════════════════════════════════════════════════════════════
   CONTEXT MENU
   ══════════════════════════════════════════════════════════════════════ */

#context-menu {
  position: fixed;
  z-index: 300000;
  background: rgba(25, 25, 25, 0.65);
  backdrop-filter: blur(50px) saturate(210%);
  -webkit-backdrop-filter: blur(50px) saturate(210%);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  padding: 5px;
  min-width: 220px;
  animation: ctxIn 0.12s cubic-bezier(0, 0, 0.2, 1);
}

#context-menu.hidden {
  display: none !important;
}

@keyframes ctxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.ctx-item {
  padding: 5px 12px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  color: #eee;
  cursor: default;
  transition: background 0.1s;
  gap: 24px;
}

.ctx-item:hover:not(.disabled) {
  background: #0061d5;
  color: white;
}

.ctx-item.disabled {
  color: rgba(255, 255, 255, 0.25);
}

.ctx-shortcut {
  opacity: 0.5;
  font-size: 11px;
}

.ctx-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.12);
  margin: 5px 8px;
}

/* ══════════════════════════════════════════════════════════════════════
   BATTERY POPOVER
   ══════════════════════════════════════════════════════════════════════ */

#battery-popover {
  position: fixed;
  z-index: 100001;
  width: 280px;
  background: rgba(25, 25, 30, 0.55);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  padding: 16px;
  animation: menuIn 0.15s cubic-bezier(0, 0, 0.2, 1);
}

#battery-popover.hidden {
  display: none !important;
}

.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bp-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bp-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.bp-bar-container {
  margin-bottom: 10px;
}

.bp-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.bp-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s ease;
}

.bp-status {
  margin-bottom: 14px;
}

.bp-charging {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #30d158;
  font-weight: 500;
}

.bp-remaining {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.bp-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.bp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.bp-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.bp-value {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.bp-footer {
  text-align: center;
  padding-top: 4px;
}

.bp-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   CLOCK POPOVER
   ══════════════════════════════════════════════════════════════════════ */

#clock-popover {
  position: fixed;
  z-index: 100001;
  width: 300px;
  background: rgba(25, 25, 30, 0.55);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  padding: 16px;
  animation: menuIn 0.15s cubic-bezier(0, 0, 0.2, 1);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#clock-popover.hidden {
  display: none !important;
}

/* ── Clock Section ────────────────────────────────────────── */
.cp-clock-section {
  text-align: center;
  padding-bottom: 4px;
}

.cp-analog-clock {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  display: block;
}

.cp-digital-time {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.cp-digital-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.cp-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

/* ── Calendar Section ─────────────────────────────────────── */
.cp-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cp-cal-month {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.cp-cal-arrow {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.cp-cal-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cp-cal-head {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  padding: 4px 0;
}

.cp-cal-day {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
  transition: background 0.15s;
}

.cp-cal-day:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cp-cal-day.today {
  background: var(--acc, #00ff9d);
  color: #000;
  font-weight: 700;
}

.cp-cal-empty {
  padding: 4px 0;
}

/* ── World Clock Section ──────────────────────────────────── */
.cp-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cp-wc-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  gap: 8px;
}

.cp-wc-city {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
}

.cp-wc-offset {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  min-width: 36px;
  text-align: right;
}

.cp-wc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 90px;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════════════
   GITHUB STATS APP
   ══════════════════════════════════════════════════════════════════════ */

#github-stats-window {
  width: 960px;
  height: 680px;
  max-width: 95vw;
  max-height: 85vh;
  top: 8%;
  left: 12%;
}

#github-stats-window .os-content { padding: 0 !important; }

.gs-content {
  background: #0d1117;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#github-stats-root {
  padding: 28px;
}

.gs-loading, .gs-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  gap: 12px;
}

.gs-fallback-link {
  color: var(--acc, #00ff9d);
  text-decoration: none;
  font-weight: 500;
}

/* ── Profile Header ───────────────────────────────────────── */
.gs-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.gs-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
}

.gs-profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.gs-profile-login {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.gs-profile-bio {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.gs-profile-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--acc, #00ff9d);
  text-decoration: none;
  font-weight: 500;
  margin-top: 6px;
  display: inline-block;
  transition: opacity 0.2s;
}

.gs-profile-link:hover { opacity: 0.7; }

/* ── Stats Row ────────────────────────────────────────────── */
.gs-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.gs-stat-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.gs-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.gs-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Sections ─────────────────────────────────────────────── */
.gs-section {
  margin-bottom: 24px;
}

.gs-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ── Heatmap ──────────────────────────────────────────────── */
.gs-heatmap-header {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.gs-heatmap-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  padding-bottom: 4px;
}

.gs-heatmap {
  display: flex;
  gap: 3px;
}

.gs-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gs-day {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  transition: transform 0.1s;
}

.gs-day:hover {
  transform: scale(1.5);
}

/* ── Two Column Layout ────────────────────────────────────── */
.gs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Languages ────────────────────────────────────────────── */
.gs-lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gs-lang-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.gs-lang-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.gs-lang-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.gs-lang-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  min-width: 50px;
  text-align: right;
}

/* ── Recent Repos ─────────────────────────────────────────── */
.gs-repo-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.gs-repo-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.gs-repo-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--acc, #00ff9d);
}

.gs-repo-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gs-repo-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.gs-repo-lang {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gs-empty {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  padding: 12px 0;
}

@media (max-width: 768px) {
  #github-stats-window:not(.maximized) {
    width: 94vw !important;
    height: 80vh !important;
    left: 3vw !important;
    top: 50px !important;
  }
  .gs-stats-row { grid-template-columns: repeat(2, 1fr); }
  .gs-two-col { grid-template-columns: 1fr; }
}


/* ── Wallpaper Settings Window ────────────────────────────── */
.wallpaper-settings-layout {
  padding: 0 !important;
}

.settings-main {
  padding: 24px;
}

.settings-header {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}


/* ══════════════════════════════════════════════════════════════════════
   CALCULATOR
   ══════════════════════════════════════════════════════════════════════ */

#calculator-window {
  width: 280px;
  height: 420px;
  max-width: 90vw;
  top: 20%;
  left: 35%;
}

#calculator-window .os-content {
  padding: 0 !important;
}

.calc-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1c1c1e;
}

.calc-display-area {
  padding: 16px 20px 12px;
  text-align: right;
  flex-shrink: 0;
}

.calc-sub-display {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  min-height: 20px;
}

.calc-display {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  flex: 1;
  padding: 1px;
}

.calc-btn {
  background: #333;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  user-select: none;
  -webkit-user-select: none;
}

.calc-btn:hover {
  background: #444;
}

.calc-btn:active {
  background: #555;
}

.calc-btn.calc-fn {
  background: #a5a5a5;
  color: #000;
  font-weight: 500;
}

.calc-btn.calc-fn:hover {
  background: #bbb;
}

.calc-btn.calc-fn:active {
  background: #ccc;
}

.calc-btn.calc-op {
  background: #ff9f0a;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
}

.calc-btn.calc-op:hover {
  background: #ffb340;
}

.calc-btn.calc-op:active {
  background: #ffc566;
}

.calc-zero {
  grid-column: span 2;
  justify-content: flex-start;
  padding-left: 28px;
}

@media (max-width: 768px) {
  #calculator-window:not(.maximized) {
    width: 280px !important;
    height: 420px !important;
    left: calc(50% - 140px) !important;
    top: 15% !important;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   iMESSAGE
   ══════════════════════════════════════════════════════════════════════ */

#imessage-window {
  width: 700px;
  height: 500px;
  max-width: 95vw;
  max-height: 80vh;
  top: 12%;
  left: 18%;
}

#imessage-window .os-content {
  padding: 0 !important;
}

.imsg-content {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.imsg-sidebar {
  width: 220px;
  background: rgba(30, 30, 35, 0.6);
  border-right: 0.5px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  overflow-y: auto;
}

.imsg-sidebar-header {
  padding: 14px 16px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.imsg-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: default;
  border-radius: 8px;
  margin: 0 8px;
  transition: background 0.15s;
}

.imsg-contact.active {
  background: rgba(0, 97, 213, 0.6);
}

.imsg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc, #00ff9d), #58a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}

.imsg-contact-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.imsg-contact-preview {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ── Main Chat ────────────────────────────────────────────── */
.imsg-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.imsg-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.imsg-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc, #00ff9d), #58a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #000;
}

.imsg-chat-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.imsg-chat-status {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.imsg-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.imsg-time {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  margin: 8px 0 4px;
}

.imsg-bubble {
  max-width: 75%;
  padding: 8px 14px;
  border-radius: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}

.imsg-them {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.imsg-me {
  background: #0b84fe;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

/* Typing indicator */
.imsg-typing {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  align-items: center;
}

.imsg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: imsgBounce 1.4s infinite ease-in-out;
}

.imsg-dot:nth-child(2) { animation-delay: 0.2s; }
.imsg-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes imsgBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Input Bar ────────────────────────────────────────────── */
.imsg-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

#imsg-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

#imsg-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#imsg-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.imsg-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b84fe;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.imsg-send:hover {
  background: #3a9dff;
  transform: scale(1.05);
}

.imsg-send:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  #imessage-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
  .imsg-sidebar {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   MISSION CONTROL
   ══════════════════════════════════════════════════════════════════════ */

#mission-control-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 500000;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

#mission-control-overlay.hidden {
  display: none !important;
}

#mission-control-overlay.active {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.os-window.mission-control-item {
  cursor: default;
  pointer-events: none;
}

.mc-window-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════════════
   LOCK SCREEN
   ══════════════════════════════════════════════════════════════════════ */

#lock-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 500000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#lock-screen.hidden { display: none !important; }

#lock-screen.unlock-animation {
  opacity: 0;
  transform: scale(1.1);
}

.lock-wallpaper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../assets/background2.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.5) saturate(1.5);
  transform: scale(1.1);
}

.lock-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  animation: lockFadeIn 0.8s ease;
}

@keyframes lockFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.lock-time-display { text-align: center; }

#lock-time {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 96px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -3px;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

#lock-date {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.lock-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lock-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.lock-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

#lock-form { margin: 0; }

#lock-password {
  width: 220px; height: 36px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

#lock-password::placeholder { color: rgba(255,255,255,0.4); }
#lock-password:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.18); }

#lock-password.shake { animation: lockShake 0.5s ease; }

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(6px); }
}

.lock-hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  #lock-time { font-size: 56px; }
  #lock-date { font-size: 16px; }
  .lock-content { gap: 40px; }
}


/* ══════════════════════════════════════════════════════════════════════
   ABOUT THE DEVELOPER WINDOW
   ══════════════════════════════════════════════════════════════════════ */

#about-window {
  width: 900px;
  height: 620px;
  max-width: 95vw;
  max-height: 85vh;
  top: 10%;
  left: 15%;
}

#about-window .os-content { padding: 0 !important; }

.about-content {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.about-sidebar {
  width: 160px;
  background: rgba(30, 30, 35, 0.6);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.about-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.about-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.about-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.about-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
}

.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.about-name {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.about-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  line-height: 1.5;
}

.about-bio {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 18px;
  text-align: left;
}

.about-version {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  #about-window:not(.maximized) {
    width: 95vw !important;
    height: 80vh !important;
    left: 2.5vw !important;
    top: 40px !important;
  }

  .about-content {
    flex-direction: column;
  }

  .about-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    gap: 4px;
    overflow-x: auto;
  }

  .about-link {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .about-main {
    padding: 24px 20px;
  }

  .about-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
  }

  .about-name {
    font-size: 22px;
  }

  .about-tagline {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .about-bio {
    font-size: 14px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   NOTIFICATION TOASTS
   ══════════════════════════════════════════════════════════════════════ */

#toast-container {
  position: fixed;
  top: 40px;
  right: 12px;
  z-index: 400000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
  width: 100%;
}

.toast {
  background: rgba(30, 30, 35, 0.7);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  cursor: pointer;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateX(120%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.dismissing {
  animation: toastSlideOut 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-app {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.toast-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.toast-message {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.toast-time {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  #toast-container {
    right: 8px;
    left: 8px;
    max-width: none;
    width: auto;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   ENHANCED SPOTLIGHT SEARCH
   ══════════════════════════════════════════════════════════════════════ */

.spotlight-category-header {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px 4px;
}

.spotlight-result-item .result-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.spotlight-result-item:hover .result-subtitle,
.spotlight-result-item.selected .result-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.spotlight-result-item .result-icon.icon-app {
  background: linear-gradient(135deg, rgba(0, 97, 213, 0.4), rgba(0, 97, 213, 0.2));
}

.spotlight-result-item .result-icon.icon-command {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(0, 255, 157, 0.1));
}

.spotlight-result-item .result-icon.icon-skill {
  background: linear-gradient(135deg, rgba(189, 147, 249, 0.3), rgba(189, 147, 249, 0.1));
}

.spotlight-result-item .result-icon.icon-project {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.3), rgba(255, 159, 10, 0.1));
}

.spotlight-result-item .result-icon.icon-contact {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.3), rgba(88, 166, 255, 0.1));
}

.spotlight-result-item .result-icon.icon-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}


/* ══════════════════════════════════════════════════════════════════════
   FINDER APP
   ══════════════════════════════════════════════════════════════════════ */

#finder-window {
  width: 860px;
  height: 560px;
  max-width: 95vw;
  max-height: 80vh;
  top: 12%;
  left: 14%;
}

#finder-window .os-content { padding: 0 !important; }

.finder-content {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Finder Sidebar ───────────────────────────────────────── */
.finder-sidebar {
  width: 200px;
  background: rgba(30, 30, 35, 0.6);
  border-right: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.finder-sidebar-section {
  margin-bottom: 16px;
}

.finder-sidebar-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px 6px;
}

.finder-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin: 0 8px;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.finder-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.finder-sidebar-item.active {
  background: rgba(0, 97, 213, 0.5);
  color: #fff;
}

.finder-item-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.finder-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Finder Main Panel ────────────────────────────────────── */
.finder-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.finder-detail {
  max-width: 560px;
}

.finder-detail-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.finder-detail-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.finder-detail-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 24px;
}

.finder-detail-section {
  margin-bottom: 20px;
}

.finder-detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.finder-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finder-tech-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.finder-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finder-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: var(--acc, #00ff9d);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.finder-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.finder-highlights {
  list-style: none;
  padding: 0;
}

.finder-highlights li {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.finder-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--acc, #00ff9d);
}

@media (max-width: 768px) {
  #finder-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
  .finder-sidebar {
    width: 110px;
    padding: 8px 0;
  }
  .finder-sidebar-label {
    font-size: 9px;
    padding: 3px 10px 4px;
  }
  .finder-sidebar-item {
    padding: 5px 10px;
    margin: 0 4px;
    font-size: 11px;
    gap: 5px;
  }
  .finder-item-icon {
    font-size: 12px;
  }
  .finder-item-name {
    font-size: 11px;
  }
  .finder-main {
    padding: 16px;
  }
  .finder-detail-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .finder-detail-name {
    font-size: 18px;
  }
  .finder-detail-desc {
    font-size: 12px;
  }
  .finder-tech-pill {
    font-size: 10px;
    padding: 3px 8px;
  }
  .finder-action-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  .finder-highlights li {
    font-size: 11px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   SYSTEM PREFERENCES
   ══════════════════════════════════════════════════════════════════════ */

#sysprefs-window {
  width: 680px;
  height: 520px;
  max-width: 95vw;
  max-height: 80vh;
  top: 14%;
  left: 20%;
}

#sysprefs-window .os-content {
  padding: 0 !important;
  overflow-y: auto;
}

.sysprefs-content {
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ── Home Grid ────────────────────────────────────────────── */
.sp-home {
  padding: 24px;
}

.sp-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 24px;
}

.sp-search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.sp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sp-pane-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.2s, border-color 0.15s;
}

.sp-pane-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.sp-pane-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.sp-pane-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Pane Layout ──────────────────────────────────────────── */
.sp-pane {
  padding: 24px;
}

.sp-back-btn {
  background: none;
  border: none;
  color: var(--acc, #00ff9d);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: opacity 0.15s;
}

.sp-back-btn:hover {
  opacity: 0.7;
}

.sp-pane-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.sp-section {
  margin-bottom: 24px;
}

.sp-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ── Theme Grid ───────────────────────────────────────────── */
.sp-theme-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.15s;
}

.sp-theme-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sp-theme-option.active {
  border-color: var(--acc, #00ff9d);
  background: rgba(255, 255, 255, 0.04);
}

.sp-theme-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.sp-theme-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Preview Box ──────────────────────────────────────────── */
.sp-preview-box {
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.sp-preview-bar {
  height: 28px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.sp-preview-content {
  padding: 16px;
}

.sp-preview-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.sp-preview-accent {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s;
}

/* ── Wallpaper Grid ───────────────────────────────────────── */
.sp-wp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sp-wp-item {
  cursor: pointer;
  text-align: center;
}

.sp-wp-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sp-wp-item:hover .sp-wp-thumb {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.sp-wp-item.active .sp-wp-thumb {
  border-color: var(--acc, #00ff9d);
  box-shadow: 0 0 0 1px var(--acc, #00ff9d), 0 8px 20px rgba(0,0,0,0.4);
}

.sp-wp-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.sp-wp-item.active .sp-wp-name {
  color: #fff;
  font-weight: 600;
}

/* ── About Card ───────────────────────────────────────────── */
.sp-about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.sp-about-logo {
  font-size: 48px;
  margin-bottom: 12px;
}

.sp-about-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.sp-about-version {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.sp-about-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.sp-about-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.sp-about-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.sp-about-value {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

@media (max-width: 768px) {
  #sysprefs-window:not(.maximized) {
    width: 94vw !important;
    height: 75vh !important;
    left: 3vw !important;
    top: 60px !important;
  }
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-wp-grid { grid-template-columns: repeat(2, 1fr); }
}
