:root {
  --bg: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.15);
  --accent: #00aaff;
  --text: #f0f4f8;
}

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

html, body {
  height: 100%;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.desktop {
  height: 100vh;
  position: relative;
}

/* Pull-down shade */
.shade {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 40%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: top 0.3s ease;
  z-index: 50;
}

.shade.open {
  top: 0;
}

.shade-content {
  padding: 1rem;
}

/* Taskbar */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 40;
}

.start {
  background: var(--accent);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.taskbar-apps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.taskbar-icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  font-size: 0.8rem;
}

.taskbar-icon:hover {
  background: rgba(255,255,255,0.12);
}

.taskbar-icon .icon-glyph {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.taskbar-spacer {
  flex: 1;
}

.clock-tray {
  font-size: 0.9rem;
}

/* Start Menu */
.start-menu {
  position: absolute;
  bottom: 56px;
  left: 10px;
  width: 260px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: none;
  z-index: 60;
}

.start-menu h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  opacity: 0.85;
}

.start-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem 0;
}

.start-menu li {
  margin: 0.3rem 0;
}

.start-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.4rem;
  display: block;
  border-radius: 6px;
  font-size: 0.9rem;
}

.start-menu a:hover {
  background: var(--glass);
}

/* App window */
.window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 80;
}

.window-header {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.window-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.window iframe {
  width: 100%;
  height: calc(100% - 40px);
  border: none;
  background: #05070a;
}