#dock {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 4px;
  padding: 6px 8px;
  background: var(--bg-dock);
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
  border: 0.5px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-dock);
  z-index: 900;
  max-width: 92vw;
}
.dock-item {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom;
}
.dock-item .icon-wrap {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transition: transform 0.18s;
}
.dock-item:hover .icon-wrap { transform: translateY(-12px) scale(1.35); }
.dock-item:hover + .dock-item .icon-wrap,
.dock-item:has(+ .dock-item:hover) .icon-wrap { transform: translateY(-4px) scale(1.12); }
.dock-item .icon-wrap > * { width: 100%; height: 100%; border-radius: 12px; }
.dock-item.running::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--text);
  opacity: 0.7;
}
.dock-tooltip {
  position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%);
  background: var(--bg-window);
  backdrop-filter: blur(20px);
  border: 0.5px solid var(--border);
  border-radius: 6px; padding: 4px 10px; font-size: 12px;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
  white-space: nowrap;
}
.dock-item:hover .dock-tooltip { opacity: 1; }
.dock-sep {
  width: 1px; height: 40px; align-self: center;
  background: var(--border-strong); margin: 0 4px;
}

/* App icon art (rounded-square, gradient) */
.app-icon {
  width: 100%; height: 100%; border-radius: 22%;
  display: grid; place-items: center; color: #fff;
  font-size: 28px; font-weight: 700;
  position: relative; overflow: hidden;
}
.app-icon::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 35%);
  pointer-events: none;
}
.icon-finder { background: linear-gradient(180deg, #5fb7ff, #007aff); }
.icon-safari { background: radial-gradient(circle at 50% 50%, #fff 30%, #1da1f2 30%, #0d6cb0 100%); color: #d0021b; font-size: 22px; }
.icon-mail   { background: linear-gradient(180deg, #6cc6ff, #0867d8); }
.icon-messages { background: linear-gradient(180deg, #5af277, #1ec96a); }
.icon-maps   { background: linear-gradient(180deg, #f1f3f5, #c5cad1); color: #2b6df0; }
.icon-photos { background: conic-gradient(from 90deg, #ffd400, #ff5d00, #ff006e, #b400ff, #00b4ff, #00ffae, #ffd400); }
.icon-music  { background: linear-gradient(180deg, #ff5d6c, #d6004f); }
.icon-calc   { background: linear-gradient(180deg, #5e5e5e, #1c1c1e); color: #ff9f0a; font-size: 26px; }
.icon-notes  { background: linear-gradient(180deg, #fff7b1, #ffd84a); color: #6f5200; font-size: 22px; }
.icon-term   { background: linear-gradient(180deg, #555, #1c1c1e); color: #2bff64; font-family: var(--font-mono); }
.icon-cal    { background: #fff; color: #ff3b30; font-size: 16px; flex-direction: column; gap: 0; padding-top: 4px; font-weight: 800; }
.icon-cal small { color: #ff3b30; font-size: 9px; font-weight: 700; }
.icon-cal big { color: #1d1d1f; font-size: 26px; line-height: 1; font-weight: 300; }
.icon-clock  { background: #1c1c1e; color: #fff; }
.icon-weather { background: linear-gradient(180deg, #5cd0ff, #0d77c2); }
.icon-settings { background: radial-gradient(circle at 30% 30%, #d0d4dc, #6b7280); color: #1c1c1e; font-size: 26px; }
.icon-store  { background: linear-gradient(180deg, #2bb1ff, #0073e0); color: #fff; font-size: 24px; }
.icon-textedit { background: #fff; color: #007aff; font-size: 26px; border: 1px solid var(--border); }
.icon-preview { background: linear-gradient(180deg, #80a8ff, #1f5dd6); }
.icon-trash  { background: rgba(255,255,255,0.3); color: var(--text); font-size: 26px; }
.icon-about  { background: linear-gradient(180deg, #b9bcc2, #5f6368); color: #fff; }
.icon-launchpad { background: rgba(255,255,255,0.3); color: var(--text); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 8px; gap: 4px; }
.icon-launchpad i { background: var(--accent); border-radius: 4px; display: block; }
.icon-game   { background: linear-gradient(180deg, #6c5ce7, #2d3436); color: #fff; }
