body.modern-theme {
  --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  /* Vista-style blue aurora desktop background */
  --desktop-bg: linear-gradient(135deg,
    #102e63 0%,
    #1a458a 35%,
    #1f58b1 65%,
    #123c7a 100%);
  --desktop-pattern: none;
  --boot-bg: #000000;
  --boot-progress: linear-gradient(90deg, #3EBCE5, #0A5A9E);

  /* Windows Vista Aero color palette - warmer, more vibrant blues with green tint */
  --aero-blue: #06538A;
  --aero-light-blue: #2A8AD4;
  --aero-cyan-tint: rgba(150, 200, 255, 0.25);
  --aero-blue-tint: rgba(6, 83, 138, 0.18);
  --aero-glass-base: rgba(255, 255, 255, 0.25);
  --aero-glass-overlay: rgba(255, 255, 255, 0.75);
  
  /* Window Colors - Vista Aero Glass with stronger saturation */
  --window-bg: linear-gradient(180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(235, 248, 255, 0.95) 30%,
    rgba(220, 240, 255, 0.93) 70%,
    rgba(255, 255, 255, 0.92) 100%);
  --window-content-bg: rgba(255, 255, 255, 0.99);
  --window-border-light: rgba(255, 255, 255, 0.9);
  --window-border-dark: rgba(6, 83, 138, 0.4);
  --window-titlebar: linear-gradient(180deg,
    rgba(6, 83, 138, 0.98) 0%,
    rgba(15, 110, 180, 0.95) 30%,
    rgba(42, 138, 212, 0.90) 70%,
    rgba(6, 83, 138, 0.98) 100%);
  --window-text: #1a1a1a;
  --window-text-light: #8a8a8a;
  
  /* Button Colors - Vista style with more gloss */
  --btn-bg: linear-gradient(180deg, #ffffff, #e8f4fc);
  --btn-border-light: rgba(255, 255, 255, 0.95);
  --btn-border-dark: rgba(0, 0, 0, 0.15);
  --btn-active-bg: linear-gradient(180deg, #d0e8f7, #c0d8e8);
  
  /* Taskbar Colors - Vista's more opaque glass */
  --taskbar-bg: rgba(255, 255, 255, 0.15);
  --taskbar-border: rgba(255, 255, 255, 0.25);
  --taskbar-button-bg: rgba(255, 255, 255, 0.15);
  --taskbar-button-active: rgba(42, 138, 212, 0.85);
  --clock-bg: rgba(255, 255, 255, 0.2);
  --clock-border: 1px solid rgba(255, 255, 255, 0.4);
  --taskbar-h: 60px;
  
  /* Special Elements - Vista style */
  --highlight-bg: #3EBCE5;
  --highlight-text: #fff;
  --dotted-border: rgba(0, 0, 0, 0.35);
  --tab-active-bg: rgba(255, 255, 255, 0.95);
  
  /* Effects - Vista's softer shadows and rounder corners */
  --window-shadow: 0 12px 35px rgba(0,0,0,0.25), 0 5px 15px rgba(0,0,0,0.15);
  --border-radius: 10px;
}
body.modern-theme .desktop {
  display: grid;                   /* explicit 2-column grid */
  grid-template-columns: repeat(2, 120px);
  grid-auto-rows: max-content;
  gap: 18px 24px;
  align-content: start;
  justify-content: start;
}
body.modern-theme .icon {
  position: static !important;    /* participate in grid flow */
  top: auto !important;
  left: auto !important;
  width: 96px;
  display: flex;                   /* use flex to center content */
  flex-direction: column;
  align-items: center;
  margin: 0;                       /* spacing handled by grid gap */
}
body.modern-theme .icon .icon-image { display: none; }
body.modern-theme .icon .icon-modern { 
  display: block; 
  color: #1e293b; 
  filter: drop-shadow(0 1px 2px rgba(255,255,255,0.4)) drop-shadow(0 3px 6px rgba(0,0,0,0.3)); 
  position: relative;
  z-index: 3;
}
body.modern-theme .icon-label { 
  color: white; 
  text-shadow: 
    0 0 4px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 1),
    1px 1px 1px rgba(0, 0, 0, 0.9),
    -1px -1px 1px rgba(0, 0, 0, 0.8); 
  font-weight: 600; 
  position: relative;
  z-index: 3;
  /* Keep single line in modern theme */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.modern-theme .window {
  background: linear-gradient(180deg,
    var(--aero-glass-base) 0%,
    var(--aero-cyan-tint) 25%,
    var(--aero-blue-tint) 50%,
    var(--aero-cyan-tint) 75%,
    var(--aero-glass-base) 100%),
    var(--window-bg);
  /* Vista's signature strong glass blur */
  -webkit-backdrop-filter: blur(30px) saturate(250%) brightness(110%);
  backdrop-filter: blur(30px) saturate(250%) brightness(110%);
  border: 3px solid var(--window-border-light);
  box-shadow:
    0 0 0 1px var(--window-border-dark),
    inset 0 2px 0 var(--aero-glass-overlay),
    0 12px 35px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.15);
}
@supports not (backdrop-filter: blur(20px)) {
  body.modern-theme .window {
    background: linear-gradient(180deg,
      rgba(240, 248, 255, 0.92) 0%,
      rgba(220, 240, 255, 0.88) 50%,
      rgba(240, 248, 255, 0.90) 100%);
  }

  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(220, 240, 255, 0.85) 0%,
      rgba(240, 248, 255, 0.90) 50%,
      rgba(255, 255, 255, 0.85) 100%);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(20, 32, 48, 0.9) 0%,
      rgba(64, 140, 220, 0.3) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(64, 140, 220, 0.3) 80%,
      rgba(20, 32, 48, 0.9) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.modern-theme .start-menu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.95) 0%,
      rgba(64, 140, 220, 0.25) 25%,
      rgba(64, 140, 220, 0.2) 75%,
      rgba(20, 32, 48, 0.95) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.modern-theme .start-submenu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.95) 0%,
      rgba(64, 140, 220, 0.2) 25%,
      rgba(64, 140, 220, 0.15) 75%,
      rgba(20, 32, 48, 0.95) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
body.modern-theme .window-header {
  background: linear-gradient(180deg,
    rgba(6, 83, 138, 0.98) 0%,
    rgba(15, 110, 180, 0.95) 20%,
    rgba(42, 138, 212, 0.90) 50%,
    rgba(15, 110, 180, 0.95) 80%,
    rgba(6, 83, 138, 0.98) 100%) !important;
  backdrop-filter: blur(25px) saturate(250%) brightness(115%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(250%) brightness(115%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(6, 83, 138, 0.6) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 3px 12px rgba(0, 0, 0, 0.25) !important;
  color: white !important;
  padding: 5px !important;
  min-height: 30px;
}
body.modern-theme .window-header::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60% !important;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent 100%) !important;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
body.modern-theme .window-title {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  z-index: 2 !important;
  position: relative !important;
}
body.modern-theme .window-button {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease-out;
  width: 18px;
  height: 16px;
}
body.modern-theme .window-button:hover {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.5) 100%);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 2px 5px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
body.modern-theme .window-button:active {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.8) 100%);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}
  body.modern-theme .taskbar,
  body.modern-theme .window,
  body.modern-theme .start-menu,
  body.modern-theme .start-submenu {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(20, 32, 48, 0.9) 0%,
      rgba(64, 140, 220, 0.3) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(64, 140, 220, 0.3) 80%,
      rgba(20, 32, 48, 0.9) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.modern-theme .start-menu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.95) 0%,
      rgba(64, 140, 220, 0.25) 25%,
      rgba(64, 140, 220, 0.2) 75%,
      rgba(20, 32, 48, 0.95) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg, 
      rgba(20, 32, 48, 0.95) 0%, 
      rgba(64, 140, 220, 0.2) 25%, 
      rgba(64, 140, 220, 0.15) 75%, 
      rgba(20, 32, 48, 0.95) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
body.modern-theme .taskbar {
  background: linear-gradient(0deg,
    var(--aero-glass-base) 0%,
    var(--aero-cyan-tint) 15%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 0.5) 60%,
    var(--aero-cyan-tint) 85%,
    var(--aero-glass-base) 100%);
  backdrop-filter: blur(35px) saturate(280%) brightness(118%);
  -webkit-backdrop-filter: blur(35px) saturate(280%) brightness(118%);
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 3px 0 var(--aero-glass-overlay),
    inset 0 -1px 0 rgba(6, 83, 138, 0.25),
    0 -10px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(6, 83, 138, 0.35);
  position: relative;
}
body.modern-theme .taskbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to bottom,
    var(--aero-glass-overlay) 0%,
    rgba(255, 255, 255, 0.6) 25%,
    rgba(255, 255, 255, 0.3) 60%,
    transparent 100%);
  pointer-events: none;
  border-radius: 0;
  z-index: 0;
}
body.modern-theme .start-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, 
    rgba(62, 188, 229, 1) 0%,
    rgba(42, 138, 212, 0.95) 25%,
    rgba(10, 90, 158, 0.92) 60%,
    rgba(6, 68, 122, 0.95) 100%);
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 3px 12px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(62, 188, 229, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  margin: 0 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease-out;
  z-index: 10;
}
body.modern-theme .start-button::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  background: radial-gradient(ellipse at 28% 18%, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.4) 35%,
    rgba(255, 255, 255, 0.1) 65%, 
    transparent 100%);
  pointer-events: none;
}
body.modern-theme .start-button:hover {
  background: radial-gradient(circle at 30% 20%, 
    rgba(72, 198, 239, 1) 0%,
    rgba(52, 148, 222, 0.95) 25%,
    rgba(20, 100, 168, 0.92) 60%,
    rgba(16, 78, 132, 0.95) 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.5),
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(72, 198, 239, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}
body.modern-theme .start-button:active {
  background: radial-gradient(circle at 30% 20%, 
    rgba(42, 168, 209, 1) 0%,
    rgba(32, 118, 192, 0.95) 25%,
    rgba(8, 80, 148, 0.92) 60%,
    rgba(4, 58, 112, 0.95) 100%) !important;
  transform: translateY(0) scale(0.97) !important;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.65),
    inset 0 3px 8px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5) !important;
}
body.modern-theme .start-button.active {
  background: radial-gradient(circle at 30% 20%, 
    rgba(82, 208, 249, 1) 0%,
    rgba(62, 158, 232, 0.95) 25%,
    rgba(30, 110, 188, 0.92) 60%,
    rgba(26, 88, 152, 0.95) 100%) !important;
  border: 3px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 0 25px rgba(62, 188, 229, 0.7),
    0 6px 20px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
}
body.modern-theme .start-button span {
  display: inline-flex;
}
body.modern-theme .icon {
  border-radius: 6px;
  width: 96px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 1.25rem;
  box-shadow: none;
  transition: all 0.25s ease-out;
  position: relative;
}
body.modern-theme .icon:hover {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
body.modern-theme .icon.selected {
  background: rgba(62, 188, 229, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 6px;
  border: 2px solid rgba(62, 188, 229, 0.7);
  box-shadow: 0 0 15px rgba(62, 188, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.modern-theme .icon::after {
  display: none;
}

@supports not (backdrop-filter: blur(2px)) {
  body.modern-theme .icon { background: transparent; }

  body.modern-theme .start-menu,
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.75) 25%,
      rgba(255, 255, 255, 0.65) 75%,
      rgba(255, 255, 255, 0.55) 100%);
  }

  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.7) 20%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0.7) 80%,
      rgba(255, 255, 255, 0.6) 100%);
  }
}
  body.modern-theme .icon { background: transparent; }
  body.modern-theme .start-menu,
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg, 
      rgba(255, 255, 255, 0.85) 0%, 
      rgba(255, 255, 255, 0.75) 25%, 
      rgba(255, 255, 255, 0.65) 75%, 
      rgba(255, 255, 255, 0.55) 100%);
  }
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.7) 20%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0.7) 80%,
      rgba(255, 255, 255, 0.6) 100%);
  }
body.modern-theme .icon svg { 
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.35)) drop-shadow(0 2px 4px rgba(0,0,0,0.35)); 
}
body.modern-theme .file-icon {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
body.modern-theme .file-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
body.modern-theme .clock {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.35) 0%, 
    rgba(255, 255, 255, 0.25) 50%, 
    rgba(255, 255, 255, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 11px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 7px 14px;
  margin-left: auto;
  margin-right: 6px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  transition: all 0.2s ease-out;
}
body.modern-theme .clock:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.45) 0%, 
    rgba(255, 255, 255, 0.35) 50%, 
    rgba(255, 255, 255, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
body.modern-theme .taskbar-windows .task-button {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: #1a1a1a;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 7px 14px;
  margin: 0 3px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease-out;
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}
body.modern-theme .taskbar-windows .task-button:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
}
body.modern-theme .taskbar-windows .task-button:active {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 100%);
  transform: translateY(0);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
}
body.modern-theme .taskbar-windows .task-button.active {
  background: linear-gradient(180deg, 
    rgba(62, 188, 229, 0.95) 0%, 
    rgba(42, 138, 212, 0.9) 50%, 
    rgba(10, 90, 158, 0.95) 100%);
  border: 1px solid rgba(62, 188, 229, 0.95);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 0 12px rgba(62, 188, 229, 0.4);
}
body.modern-theme .start-menu {
  background: linear-gradient(180deg,
    var(--aero-glass-base) 0%,
    var(--aero-cyan-tint) 20%,
    var(--aero-blue-tint) 50%,
    var(--aero-cyan-tint) 80%,
    var(--aero-glass-base) 100%);
  backdrop-filter: blur(35px) saturate(280%) brightness(118%);
  -webkit-backdrop-filter: blur(35px) saturate(280%) brightness(118%);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--aero-glass-overlay);
  border-radius: 10px;
  box-shadow:
    inset 0 3px 0 var(--aero-glass-overlay),
    inset 0 -2px 0 rgba(6, 83, 138, 0.25),
    0 18px 55px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(6, 83, 138, 0.35);
  color: #1a1a1a;
  width: 300px;
}
body.modern-theme .start-menu-header {
  background: linear-gradient(180deg, 
    rgba(62, 188, 229, 0.95) 0%, 
    rgba(42, 138, 212, 0.92) 50%,
    rgba(10, 90, 158, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px 10px 0 0;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
  padding: 14px 18px;
}
body.modern-theme .start-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}
body.modern-theme .start-logo {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@supports not (backdrop-filter: blur(20px)) {
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(220, 240, 255, 0.85) 0%,
      rgba(240, 248, 255, 0.90) 50%,
      rgba(255, 255, 255, 0.85) 100%) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
  }

  body.modern-theme .start-menu,
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg,
      rgba(240, 248, 255, 0.92) 0%,
      rgba(220, 240, 255, 0.88) 50%,
      rgba(240, 248, 255, 0.90) 100%);
  }
}
body.modern-theme .start-item {
  border-radius: 5px;
  transition: all 0.2s ease-out;
  margin: 3px 6px;
  background: transparent;
  color: #1a1a1a;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 9px 14px;
}
body.modern-theme .start-item:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.35) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
body.modern-theme .start-item:active {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
body.modern-theme .start-separator {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  margin: 4px 8px;
  border: none;
}
body.modern-theme .start-icon {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5));
}
body.modern-theme .start-arrow {
  color: #2c3e50;
  opacity: 0.7;
  font-size: 10px;
  transform: translateX(2px);
}
body.modern-theme .start-menu-items {
  padding: 8px 4px;
}
body.modern-theme .start-menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to bottom,
    var(--aero-glass-overlay) 0%,
    rgba(255, 255, 255, 0.5) 35%,
    rgba(255, 255, 255, 0.25) 65%,
    transparent 100%);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}
body.modern-theme .start-submenu {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.45) 0%, 
    rgba(255, 255, 255, 0.3) 25%, 
    rgba(255, 255, 255, 0.2) 75%, 
    rgba(255, 255, 255, 0.15) 100%);
  backdrop-filter: blur(20px) saturate(250%);
  -webkit-backdrop-filter: blur(20px) saturate(250%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 
    0 14px 38px rgba(0, 0, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  left: 304px;
  width: 240px;
}
body.modern-theme .start-icon {
  background: linear-gradient(135deg, #4a90e2, #2c5282);
  color: white;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
  body.modern-theme .icon {
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
  }
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(20, 32, 48, 0.85) 0%,
      rgba(64, 140, 220, 0.25) 20%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(64, 140, 220, 0.25) 80%,
      rgba(20, 32, 48, 0.85) 100%) !important;
    /* Optimized blur for mobile performance and reduced WebGL warnings */
    backdrop-filter: blur(10px) saturate(160%) brightness(108%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(160%) brightness(108%) !important;
    /* Improve rendering performance */
    will-change: auto !important;
    transform: translateZ(0) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 -4px 16px rgba(0, 0, 0, 0.2) !important;
    height: 50px !important;
    padding: 8px !important;
  }
    body.modern-theme .taskbar,
    body.modern-theme .start-menu,
    body.modern-theme .start-submenu {
      /* Disable backdrop filters on very low-end devices */
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    body.modern-theme .taskbar {
      background: linear-gradient(0deg,
        rgba(20, 32, 48, 0.95) 0%,
        rgba(64, 140, 220, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(64, 140, 220, 0.4) 80%,
        rgba(20, 32, 48, 0.95) 100%) !important;
    }
    body.modern-theme .start-menu {
      background: linear-gradient(180deg,
        rgba(20, 32, 48, 0.98) 0%,
        rgba(64, 140, 220, 0.3) 25%,
        rgba(64, 140, 220, 0.25) 75%,
        rgba(20, 32, 48, 0.98) 100%) !important;
    }
@media (max-width: 768px) {
  body.modern-theme .start-button {
    width: 60px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    background: radial-gradient(circle at 35% 25%,
      rgba(74, 144, 226, 0.95) 0%,
      rgba(44, 82, 130, 0.9) 40%,
      rgba(30, 60, 110, 0.85) 70%,
      rgba(20, 45, 85, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    /* Ensure text is visible on mobile */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
    font-weight: 600 !important;
    /* Better touch target */
    touch-action: manipulation;
    transform: none !important;
  }
  body.modern-theme .start-button-label {
    display: inline !important;
    font-size: 10px !important;
    margin-left: 4px !important;
  }
  body.modern-theme .start-button-icon {
    display: inline-flex !important;
  }
  body.modern-theme .start-button:hover {
    background: radial-gradient(circle at 35% 25%,
      rgba(84, 154, 236, 0.95) 0%,
      rgba(54, 92, 140, 0.9) 40%,
      rgba(40, 70, 120, 0.85) 70%,
      rgba(30, 55, 95, 0.9) 100%) !important;
    transform: none !important;
    box-shadow:
      0 3px 10px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  }
  body.modern-theme .start-button:active,
  body.modern-theme .start-button.active {
    background: radial-gradient(circle at 35% 25%,
      rgba(94, 164, 246, 0.95) 0%,
      rgba(64, 102, 150, 0.9) 40%,
      rgba(50, 80, 130, 0.85) 70%,
      rgba(40, 65, 105, 0.9) 100%) !important;
    transform: none !important;
    box-shadow:
      0 1px 4px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }
  body.modern-theme .clock {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.15) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 6px !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    padding: 6px 10px !important;
    margin-left: auto !important;
    margin-right: 4px !important;
    box-shadow:
      0 2px 6px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
  }
  body.modern-theme .start-menu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.85) 0%,
      rgba(64, 140, 220, 0.18) 25%,
      rgba(64, 140, 220, 0.15) 75%,
      rgba(20, 32, 48, 0.85) 100%) !important;
    /* Reduced blur for better mobile performance */
    backdrop-filter: blur(12px) saturate(160%) brightness(108%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) brightness(108%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(0, 120, 212, 0.2) !important;
    color: white !important;
    width: auto !important;
    bottom: 58px !important;
    left: 8px !important;
    right: 8px !important;
    max-height: 60vh !important;
  }
  body.modern-theme .start-menu-header {
    background: linear-gradient(180deg,
      rgba(74, 144, 226, 0.9) 0%,
      rgba(44, 82, 130, 0.9) 100%) !important;
    padding: 12px !important;
    border-radius: 8px 8px 0 0 !important;
  }
  body.modern-theme .start-item {
    color: white !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7) !important;
    padding: 12px 16px !important;
    margin: 2px 4px !important;
  }
  body.modern-theme .start-item:hover {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transform: none !important;
  }
  body.modern-theme .start-arrow {
    color: white !important;
    opacity: 0.8 !important;
  }
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.85) 0%,
      rgba(64, 140, 220, 0.15) 25%,
      rgba(64, 140, 220, 0.1) 75%,
      rgba(20, 32, 48, 0.85) 100%) !important;
    backdrop-filter: blur(15px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    color: white !important;
    width: auto !important;
    bottom: 58px !important;
    left: 8px !important;
    right: 8px !important;
    max-height: 60vh !important;
  }
  body.modern-theme .start-button {
    width: 64px !important;
    height: 48px !important;
    margin: 0 6px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    background: radial-gradient(circle at 35% 25%,
      rgba(74, 144, 226, 0.95) 0%,
      rgba(44, 82, 130, 0.9) 40%,
      rgba(30, 60, 110, 0.85) 70%,
      rgba(20, 45, 85, 0.9) 100%) !important;
    font-size: 11px !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
  }
  body.modern-theme .start-button-label {
    display: inline !important;
    font-size: 11px !important;
    margin-left: 4px !important;
  }
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(20, 32, 48, 0.8) 0%,
      rgba(64, 140, 220, 0.22) 20%,
      rgba(255, 255, 255, 0.38) 50%,
      rgba(64, 140, 220, 0.22) 80%,
      rgba(20, 32, 48, 0.8) 100%) !important;
    backdrop-filter: blur(18px) saturate(200%) brightness(112%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(200%) brightness(112%) !important;
  }
  body.modern-theme .clock {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.18) 50%,
      rgba(255, 255, 255, 0.12) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 5px !important;
    color: #2c3e50 !important;
    font-size: 12px !important;
  }
  body.modern-theme .start-menu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.8) 0%,
      rgba(64, 140, 220, 0.2) 25%,
      rgba(64, 140, 220, 0.18) 75%,
      rgba(20, 32, 48, 0.8) 100%) !important;
    backdrop-filter: blur(22px) saturate(200%) brightness(112%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(200%) brightness(112%) !important;
    width: auto !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 58px !important;
  }
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg,
      rgba(20, 32, 48, 0.8) 0%,
      rgba(64, 140, 220, 0.18) 25%,
      rgba(64, 140, 220, 0.12) 75%,
      rgba(20, 32, 48, 0.8) 100%) !important;
    width: auto !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 58px !important;
  }
}
body.modern-theme .player-controls {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
body.modern-theme .album-art {
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
body.modern-theme .player-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #4a5568;
}
body.modern-theme .player-btn:active {
  border: none;
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
body.modern-theme .player-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
body.modern-theme .play-btn {
  width: 60px;
  height: 60px;
  font-size: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}
body.modern-theme .play-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
body.modern-theme .play-btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
body.modern-theme .connect-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
body.modern-theme .connect-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
body.modern-theme .connect-btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
body.modern-theme .album-item {
  gap: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
body.modern-theme .album-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
}
body.modern-theme .album-item:active {
  border: 1px solid rgba(255, 255, 255, 0.3);
}
body.modern-theme .album-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
body.modern-theme .album-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}
body.modern-theme .song-item {
  gap: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
body.modern-theme .song-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
}
body.modern-theme .song-item:active {
  border: 1px solid rgba(255, 255, 255, 0.3);
}
body.modern-theme .song-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
body.modern-theme .song-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}
body.modern-theme .song-artist {
  font-size: 11px;
  color: #718096;
  font-weight: 500;
  margin-bottom: 4px;
}
body.modern-theme .song-description {
  font-size: 10px;
  color: #a0aec0;
  font-weight: normal;
}
body.modern-theme .song-cover img {
  border-radius: 8px;
}
body.modern-theme .library-tabs {
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 25px;
  padding: 6px;
  border-bottom: none;
  margin-bottom: 20px;
}
body.modern-theme .tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  color: #666;
  font-weight: 500;
  font-size: 13px;
  margin-right: 0;
}
body.modern-theme .tab-btn.active {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  position: static;
  z-index: auto;
}
body.modern-theme .tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: #333;
}
body.modern-theme .tab-btn:active {
  border: none;
}
body.modern-theme .book-item {
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
body.modern-theme .book-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
}
body.modern-theme .book-item:active {
  border: 1px solid rgba(255, 255, 255, 0.3);
}
body.modern-theme .book-cover {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
}
body.modern-theme .book-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #2d3748;
}
body.modern-theme .book-author {
  color: #718096;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}
body.modern-theme .book-rating {
  color: #f6ad55;
  font-size: 13px;
  font-weight: 500;
}
body.modern-theme .reading-progress {
  margin-top: 12px;
}
body.modern-theme .progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  border: none;
  margin-bottom: 6px;
}
body.modern-theme .progress-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}
body.modern-theme .progress-text {
  font-size: 11px;
  color: #718096;
  font-weight: 500;
}
body.modern-theme .weather-app {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
body.modern-theme .weather-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body.modern-theme .location-name {
  color: #2d3748;
  font-weight: 600;
}
body.modern-theme .last-updated {
  color: #718096;
}
body.modern-theme .refresh-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 6px 10px;
  transition: all 0.2s ease;
}
body.modern-theme .refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
body.modern-theme .refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
body.modern-theme .temperature {
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.modern-theme .weather-description {
  color: #718096;
}
body.modern-theme .weather-details {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(5px);
}
body.modern-theme .detail-label {
  color: #718096;
}
body.modern-theme .detail-value {
  color: #2d3748;
}
body.modern-theme .retry-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  color: white;
  transition: all 0.2s ease;
}
body.modern-theme .retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
body.modern-theme .weather-note {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: #718096;
}
body.modern-theme .tv-remote {
  transform: scale(1.1);
}
body.modern-theme .remote-body {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
body.modern-theme .channel-display {
  color: #4299e1;
  text-shadow: 0 0 5px #4299e1;
}
body.modern-theme .remote-label {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
  body.modern-theme .tv-remote {
    transform: scale(1.0);
  }
body.modern-theme .taskbar {
  background: linear-gradient(0deg,
    var(--aero-glass-base) 0%,
    var(--aero-cyan-tint) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    var(--aero-cyan-tint) 80%,
    var(--aero-glass-base) 100%) !important;
  backdrop-filter: blur(20px) saturate(220%) brightness(115%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(220%) brightness(115%) !important;
  border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    inset 0 2px 0 var(--aero-glass-overlay),
    inset 0 -1px 0 rgba(0, 120, 212, 0.2),
    0 -8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 120, 212, 0.3) !important;
  position: relative;
  /* Performance optimizations */
  will-change: auto;
  transform: translate3d(0, 0, 0);
  contain: strict;
  /* optional: faint noise texture over glass */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.02'/></svg>");
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 26%, rgba(0,0,0,0.08) 100%),
    linear-gradient(0deg, var(--aero-tint), var(--aero-tint)),
    var(--aero-base),
    var(--noise) !important;
  background-blend-mode: screen, normal, normal, normal !important;
}
body.modern-theme .taskbar::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 60% !important;
  background: linear-gradient(to bottom,
    var(--aero-glass-overlay) 0%,
    rgba(255, 255, 255, 0.5) 30%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent 100%) !important;
  pointer-events: none !important;
  border-radius: 0 !important;
  display: block !important;
}
body.modern-theme .taskbar-windows {
  display: flex;
  align-items: center;
  gap: 0;
}
body.modern-theme .taskbar-windows .task-button {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.08) 55%,
    rgba(0,0,0,0.06) 100%) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: 4px !important;
  color: var(--text-on-glass) !important;
  text-shadow: 0 1px 1px var(--shadow-on-glass) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 1px 2px rgba(0,0,0,0.25) !important;
  margin: 0 3px;
  padding: 6px 12px !important;
  transform: none !important;                /* no translateY */
  transition: box-shadow .12s ease, background .12s ease, border-color .12s ease !important;
}
body.modern-theme .taskbar-windows .task-button:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.30) 0%,
    rgba(255,255,255,0.12) 55%,
    rgba(0,0,0,0.06) 100%) !important;
  box-shadow:
    0 0 8px var(--aero-glow),
    inset 0 1px 0 rgba(255,255,255,0.45) !important;
  transform: none !important; /* remove lift */
}
body.modern-theme .taskbar-windows .task-button:active,
body.modern-theme .taskbar-windows .task-button.active {
  background: linear-gradient(180deg,
    rgba(120,200,255,0.35) 0%,
    rgba(80,160,230,0.22) 55%,
    rgba(0,0,0,0.08) 100%) !important;
  border-color: rgba(120,200,255,0.8) !important;
  box-shadow:
    0 0 10px var(--aero-glow),
    inset 0 1px 0 rgba(255,255,255,0.5) !important;
  color: #fff !important;
}
body.modern-theme .taskbar-windows .task-button + .task-button {
  position: relative;
}
body.modern-theme .taskbar-windows .task-button + .task-button::before {
  content: "";
  position: absolute;
  left: -3px; top: 3px; bottom: 3px; width: 1px;
  background: linear-gradient(180deg, var(--aero-sep-light), var(--aero-sep-dark));
  opacity: .6;
}
body.modern-theme .taskbar-windows .task-button.progress::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px; height: 3px;
  background: linear-gradient(180deg, #7be27b, var(--win7-green));
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(123,226,123,0.8);
}
body.modern-theme .start-button {
  width: 54px !important; height: 54px !important; margin: 0 6px !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(110,170,240,1) 0%, rgba(45,95,150,.95) 42%, rgba(20,45,85,.95) 78%),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,.14), transparent 60%) !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
  box-shadow:
    0 0 14px rgba(110,170,240,0.35),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -2px 4px rgba(0,0,0,0.25) !important;
  transition: box-shadow .12s ease, background .12s ease !important;
  transform: none !important;
}
body.modern-theme .start-button::after {
  /* crescent highlight */
  background: radial-gradient(ellipse at 28% 22%,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.12) 55%,
    transparent 72%);
}
body.modern-theme .start-button:hover {
  box-shadow:
    0 0 18px var(--aero-glow),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.2) !important;
  transform: none !important; /* no scale */
}
body.modern-theme .start-button:active {
  filter: brightness(.96);
  box-shadow:
    0 0 10px rgba(110,170,240,0.5),
    inset 0 2px 5px rgba(0,0,0,0.35);
}
body.modern-theme .start-menu {
  color: var(--text-on-glass);
  text-shadow: 0 1px 1px var(--shadow-on-glass);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.10)),
    var(--aero-base);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  overflow: hidden;
}
body.modern-theme .start-menu::after { display: none; }
body.modern-theme .start-item {
  color: var(--text-on-glass);
  background: transparent;
  border: 1px solid transparent;
  text-shadow: 0 1px 1px var(--shadow-on-glass);
}
body.modern-theme .start-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 0 8px var(--aero-glow);
  transform: none;
}
body.modern-theme .clock {
  background: transparent !important;
  border: 0 !important;
  color: var(--text-on-glass) !important;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-shadow: 0 1px 2px var(--shadow-on-glass);
  padding: 0 8px;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.modern-theme .icon.selected {
  background: rgba(173, 216, 255, 0.35) !important;
  border: none !important;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(120,200,255,0.55);
}
body.modern-theme .icon:hover {
  transform: none; /* remove lift */
}
body.modern-theme .taskbar-windows .task-button,
body.modern-theme .start-button,
body.modern-theme .start-item {
  transition-duration: .12s;
}
  body.modern-theme .taskbar {
    background: linear-gradient(0deg,
      rgba(220, 240, 255, 0.85) 0%,
      rgba(240, 248, 255, 0.90) 50%,
      rgba(255, 255, 255, 0.85) 100%) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
  }
  body.modern-theme .start-menu,
  body.modern-theme .start-submenu {
    background: linear-gradient(180deg,
      rgba(240, 248, 255, 0.92) 0%,
      rgba(220, 240, 255, 0.88) 50%,
      rgba(240, 248, 255, 0.90) 100%);
  }
body.modern-theme .email-client {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}
body.modern-theme .email-toolbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240,240,240,0.9) 100%);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(192,192,192,0.6);
}
body.modern-theme .toolbar-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(240,240,240,0.8) 100%);
  border: 1px solid rgba(160,160,160,0.6);
  backdrop-filter: blur(3px);
}
body.modern-theme .email-sidebar {
  background: rgba(248,248,248,0.9);
  backdrop-filter: blur(5px);
  border-right: 1px solid rgba(192,192,192,0.6);
}
body.modern-theme .email-preview {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(5px);
}
body.modern-theme .email-preview-header {
  background: rgba(248,248,248,0.9);
  border-bottom: 1px solid rgba(224,224,224,0.6);
  backdrop-filter: blur(3px);
}
body.modern-theme .folder-item.selected {
  background: rgba(25,118,210,0.8);
  backdrop-filter: blur(3px);
}
body.modern-theme .email-item.selected {
  background: rgba(25,118,210,0.8);
  backdrop-filter: blur(3px);
}

/* === Modern taskbar & start menu redesign === */
body.modern-theme .taskbar {
  height: var(--taskbar-h);
  padding: 10px 24px;
  gap: 18px;
  background: linear-gradient(135deg,
    rgba(18, 22, 33, 0.84) 0%,
    rgba(24, 32, 48, 0.86) 55%,
    rgba(12, 16, 28, 0.9) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 -12px 30px rgba(3, 6, 10, 0.55) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  position: fixed;
}
body.modern-theme .taskbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.05));
  pointer-events: none;
}
body.modern-theme .taskbar::after {
  content: none !important;
  display: none !important;
}

body.modern-theme .start-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 120px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 21px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0f172a 120%) !important;
  color: #f6f9ff !important;
  font-family: 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  box-shadow:
    0 10px 24px rgba(10, 45, 120, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
body.modern-theme .start-button-icon {
  width: 18px !important;
  height: 18px !important;
  color: #fbfdff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.modern-theme .start-button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
body.modern-theme .start-button-label {
  display: inline-block !important;
  color: inherit !important;
  line-height: 1;
}
body.modern-theme .start-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 35%, #0f172a 120%) !important;
  box-shadow:
    0 14px 26px rgba(12, 42, 110, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
body.modern-theme .start-button:active,
body.modern-theme .start-button.active {
  transform: translateY(0);
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #0b1120 120%) !important;
  box-shadow:
    0 8px 16px rgba(9, 32, 72, 0.6),
    inset 0 2px 6px rgba(0, 0, 0, 0.28) !important;
}
body.modern-theme .start-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.6),
    0 0 0 6px rgba(56, 189, 248, 0.35) !important;
}

body.modern-theme .taskbar-windows {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-right: 12px;
  scrollbar-width: none;
}
body.modern-theme .taskbar-windows::-webkit-scrollbar { display: none; }

body.modern-theme .taskbar-windows .task-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 238, 247, 0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: none !important;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
body.modern-theme .taskbar-windows .task-button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
body.modern-theme .taskbar-windows .task-button:active,
body.modern-theme .taskbar-windows .task-button.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(125, 211, 252, 0.75));
  border-color: rgba(120, 190, 255, 0.9);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(33, 94, 187, 0.45);
}

body.modern-theme .clock {
  margin-left: auto;
  padding: 10px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 30, 60, 0.75), rgba(36, 74, 140, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fbff !important;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 10px 24px rgba(9, 20, 45, 0.32);
  font-variant-numeric: tabular-nums;
}

body.modern-theme .start-menu {
  left: 16px !important;
  right: auto !important;
  bottom: calc(var(--taskbar-h) + 12px) !important;
  width: 240px !important;
  max-height: 70vh !important;
  background: linear-gradient(145deg, rgba(12, 24, 48, 0.94), rgba(30, 58, 112, 0.92)) !important;
  border: 1px solid rgba(102, 178, 255, 0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 60px rgba(3, 10, 25, 0.55);
  color: rgba(235, 242, 255, 0.95) !important;
  text-shadow: none !important;
  overflow: hidden;
  overflow-y: auto;
}
body.modern-theme .start-menu::after { display: none; }
body.modern-theme .start-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, rgba(46, 132, 255, 0.95), rgba(16, 52, 112, 0.95)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f5fbff !important;
}
body.modern-theme .start-logo {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
body.modern-theme .start-title {
  font-size: 13px !important;
  font-weight: 600 !important;
}
body.modern-theme .start-menu-items {
  padding: 8px 0 10px !important;
}
body.modern-theme .start-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  gap: 10px !important;
  color: inherit !important;
  border-radius: 12px !important;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
body.modern-theme .start-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.2)) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}
body.modern-theme .start-icon {
  width: 18px !important;
  text-align: center;
}
body.modern-theme .start-arrow {
  font-size: 10px;
  color: rgba(185, 209, 255, 0.7) !important;
}
body.modern-theme .start-item:hover .start-arrow {
  color: #ffffff !important;
}
body.modern-theme .start-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  margin: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

body.modern-theme .start-submenu {
  left: calc(16px + 240px + 12px) !important;
  right: auto !important;
  bottom: calc(var(--taskbar-h) + 12px) !important;
  width: 220px !important;
  max-height: 60vh !important;
  background: linear-gradient(145deg, rgba(10, 18, 36, 0.96), rgba(27, 48, 88, 0.94)) !important;
  border: 1px solid rgba(120, 192, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 48px rgba(3, 12, 28, 0.55);
  padding: 8px 0 !important;
  color: rgba(233, 240, 255, 0.94) !important;
  overflow-y: auto;
}

@supports not (backdrop-filter: blur(10px)) {
  body.modern-theme .taskbar {
    background: #1c2438 !important;
    box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.5) !important;
  }
  body.modern-theme .start-menu,
  body.modern-theme .start-submenu {
    background: #1f2a3f !important;
  }
}

  body.modern-theme .window,
  body.modern-theme .taskbar,
  body.modern-theme .start-menu {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

body.modern-theme .start-button {
  width: auto !important;
  min-width: 120px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 21px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0f172a 120%) !important;
  box-shadow:
    0 10px 24px rgba(10, 45, 120, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #f6f9ff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  line-height: 1 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.modern-theme .start-button::after {
  content: none !important;
}

body.modern-theme .start-button-icon {
  width: 18px !important;
  height: 18px !important;
  color: #fbfdff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.modern-theme .start-button:hover {
  background: linear-gradient(90deg,
    rgba(18, 72, 150, 0.95) 0%,
    rgba(46, 126, 216, 0.95) 55%,
    rgba(122, 193, 255, 0.95) 100%) !important;
}

body.modern-theme .start-button:active,
body.modern-theme .start-button.active {
  background: linear-gradient(90deg,
    rgba(12, 54, 113, 0.95) 0%,
    rgba(34, 102, 188, 0.95) 55%,
    rgba(90, 157, 235, 0.95) 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important,
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
