.desktop {
  position: fixed;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 58%, rgba(102, 81, 242, 0.2), transparent 44%),
    linear-gradient(145deg, #050711, #10132b 58%, #070913),
    #0b0c15;
}

.desktop::before {
  position: absolute;
  z-index: 0;
  inset: -18px;
  background:
    url("/assets/shad-sameer-cyber-wallpaper.webp") center / cover no-repeat,
    url("/assets/shad-sameer-cyber-wallpaper-poster.jpg") center / cover no-repeat;
  content: "";
  filter: brightness(0.86) contrast(1.04) saturate(0.92);
  pointer-events: none;
  transform: translate3d(var(--wallpaper-shift-x), var(--wallpaper-shift-y), 0) scale(1.035);
  transition: transform 120ms linear;
  will-change: transform;
}

.desktop::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(124, 99, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(3, 5, 11, 0.08), transparent 55%, rgba(4, 5, 10, 0.42));
  content: "";
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  .desktop::before {
    background-image: url("/assets/shad-sameer-cyber-wallpaper-poster.jpg");
    transform: scale(1.02);
    will-change: auto;
  }
}

.menu-bar {
  position: relative;
  z-index: 9000;
  display: flex;
  height: var(--menu-height);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 14, 0.44);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
  padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-left));
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  user-select: none;
}

.menu-bar__left,
.menu-bar__right,
.desktop-nav {
  display: flex;
  height: 100%;
  align-items: center;
}

.menu-bar__left {
  gap: 12px;
}

.menu-brand {
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 7px;
  color: #fff;
  padding: 0 3px;
}

.menu-brand > span {
  color: var(--violet-bright);
  font-size: 13px;
  text-shadow: 0 0 14px rgba(156, 124, 255, 0.8);
}

.menu-brand strong {
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.desktop-nav {
  gap: 2px;
}

.desktop-nav button,
.live-clock {
  height: 25px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 520;
  padding: 0 9px;
  transition: background 150ms ease, color 150ms ease;
}

.desktop-nav button:hover,
.live-clock:hover,
.menu-icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-bar__right {
  gap: 3px;
}

.menu-status {
  display: inline-flex;
  height: 23px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(110, 231, 168, 0.16);
  border-radius: 99px;
  background: rgba(19, 112, 68, 0.11);
  color: #c9f9dd;
  font-size: 10px;
  font-weight: 600;
  padding: 0 9px;
  margin-right: 3px;
}

.menu-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.8);
}

.menu-icon-button {
  position: relative;
  display: grid;
  width: 29px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.menu-icon-button i {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 6px rgba(255, 133, 109, 0.8);
}

.live-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}

.desktop-surface {
  position: absolute;
  z-index: 2;
  inset: var(--menu-height) 0 0;
  overflow: hidden;
}

.desktop-icons {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 18px;
  display: grid;
  width: 88px;
  gap: 13px;
}

.desktop-shortcut {
  display: grid;
  justify-items: center;
  gap: 5px;
  border-radius: 9px;
  color: #fff;
  padding: 6px 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.desktop-shortcut:hover,
.desktop-shortcut:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.desktop-shortcut:active .app-icon {
  transform: scale(0.92);
}

.desktop-shortcut .app-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  transition: transform 160ms var(--ease-out);
}

.desktop-shortcut .app-icon__glyph {
  font-size: 21px;
}

.desktop-shortcut > span:last-child {
  max-width: 78px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-hint {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.desktop-hint kbd {
  margin-left: 5px;
  background: rgba(0, 0, 0, 0.24);
}

.dock-wrap {
  position: fixed;
  z-index: 8500;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.dock {
  display: flex;
  height: 75px;
  align-items: flex-end;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 9px 10px;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
}

.dock-apps {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.dock-launcher {
  position: relative;
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  place-items: center;
  transform-origin: center bottom;
  transition: transform 120ms ease;
  will-change: transform;
}

.dock-launcher::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  content: "";
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.dock-launcher.is-open::after {
  opacity: 1;
}

.dock-launcher::before {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(16, 17, 23, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.dock-launcher:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock-divider {
  width: 1px;
  height: 43px;
  align-self: center;
  background: rgba(255, 255, 255, 0.13);
  margin: 0 2px;
}

.dock-icon,
.app-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.3), transparent 33%),
    linear-gradient(145deg, var(--icon-a, #8e76ff), var(--icon-b, #4c34b6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -8px 18px rgba(0, 0, 0, 0.14),
    0 7px 14px rgba(0, 0, 0, 0.28);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.dock-icon::after,
.app-icon::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), transparent 44%);
  content: "";
  pointer-events: none;
}

.app-icon__glyph {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.launchpad-icon {
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 3px;
  place-content: center;
  place-items: center;
  padding: 0;
  background: linear-gradient(145deg, rgba(80, 82, 96, 0.96), rgba(35, 36, 45, 0.96));
}

.launchpad-icon i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
}

.dock-cta {
  background: linear-gradient(145deg, #f26f59, #ad3b65);
  font-size: 22px;
}

.overlay {
  position: fixed;
  z-index: 9200;
  inset: var(--menu-height) 0 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease-out), visibility 360ms;
}

.overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.launchpad {
  background: rgba(7, 8, 14, 0.4);
  -webkit-backdrop-filter: blur(42px) saturate(0.92);
  backdrop-filter: blur(42px) saturate(0.92);
}

.launchpad-inner {
  display: grid;
  width: min(920px, calc(100vw - 80px));
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 38px;
  margin: 0 auto;
  padding-bottom: 70px;
  transform: scale(1.06);
  transition: transform 420ms var(--ease-spring);
}

.launchpad.is-open .launchpad-inner {
  transform: scale(1);
}

.launchpad-toolbar {
  display: flex;
  width: min(376px, 100%);
  align-items: center;
  gap: 10px;
}

.launchpad-toolbar .overlay-search {
  width: auto;
  min-width: 0;
  flex: 1;
}

.launchpad-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(12, 13, 20, 0.46);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 25px;
  line-height: 1;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-spring);
}

.launchpad-close:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.13);
}

.launchpad-close:active {
  transform: scale(0.92);
}

.overlay-search {
  display: flex;
  width: min(320px, 100%);
  height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0 9px 0 12px;
}

.overlay-search > span:first-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.overlay-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.overlay-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.launchpad-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(7, 1fr);
  gap: 30px 22px;
}

.launchpad-app {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #fff;
  padding: 5px;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.7);
  transition: transform 180ms var(--ease-spring), opacity 180ms ease;
}

.launchpad-app:hover {
  transform: translateY(-5px) scale(1.04);
}

.launchpad-app:active {
  transform: scale(0.95);
}

.launchpad-app .app-icon {
  width: 62px;
  height: 62px;
  border-radius: 17px;
}

.launchpad-app .app-icon__glyph {
  font-size: 26px;
}

.launchpad-app > span:last-child {
  max-width: 100px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launchpad-tip {
  margin: -18px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.spotlight {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(4, 5, 9, 0.22);
  padding-top: 14vh;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.spotlight-dialog {
  width: min(680px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-24px) scale(0.97);
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-spring);
}

.spotlight.is-open .spotlight-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spotlight-input-wrap {
  display: flex;
  height: 66px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--stroke);
  padding: 0 18px;
}

.spotlight-input-wrap > span:first-child {
  color: var(--ink-muted);
  font-size: 30px;
  line-height: 1;
}

.spotlight-input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  font-weight: 420;
  letter-spacing: -0.025em;
}

.spotlight-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.spotlight-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-section-label {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  padding: 8px 10px 5px;
  text-transform: uppercase;
}

.spotlight-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border-radius: 11px;
  padding: 9px 10px;
  text-align: left;
  transition: background 120ms ease;
}

.spotlight-result:hover,
.spotlight-result.is-active {
  background: linear-gradient(90deg, rgba(121, 91, 237, 0.62), rgba(104, 85, 204, 0.45));
}

.spotlight-result .app-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
}

.spotlight-result .app-icon__glyph {
  font-size: 15px;
}

.spotlight-result__copy {
  min-width: 0;
  flex: 1;
}

.spotlight-result__copy strong,
.spotlight-result__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-result__copy strong {
  font-size: 12px;
}

.spotlight-result__copy span {
  color: var(--ink-muted);
  font-size: 10px;
}

.spotlight-result:hover .spotlight-result__copy span,
.spotlight-result.is-active .spotlight-result__copy span {
  color: rgba(255, 255, 255, 0.75);
}

.spotlight-result > span:last-child {
  color: var(--ink-muted);
  font-size: 16px;
}

.spotlight-dialog footer {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--stroke);
  color: var(--ink-muted);
  font-size: 9px;
  padding: 0 14px;
}

.spotlight-dialog footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spotlight-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--ink-muted);
  text-align: center;
}

.notification-center {
  position: fixed;
  z-index: 9100;
  top: calc(var(--menu-height) + 9px);
  right: 9px;
  width: 348px;
  max-height: calc(100vh - var(--menu-height) - 20px);
  overflow-y: auto;
  visibility: hidden;
  border-radius: 22px;
  opacity: 0;
  padding: 18px;
  pointer-events: none;
  transform: translateX(26px) scale(0.98);
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-spring), visibility 260ms;
}

.notification-center.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-header .eyebrow {
  margin-bottom: 3px;
  color: var(--ink-muted);
}

.panel-header h2 {
  margin: 0;
  font-size: 30px;
}

.calendar-card {
  border: 1px solid rgba(156, 124, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(156, 124, 255, 0.17), transparent 42%),
    rgba(255, 255, 255, 0.055);
  padding: 15px;
}

.calendar-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 11px;
}

.calendar-card__top span {
  color: var(--ink-muted);
}

.calendar-card__top strong {
  border-radius: 99px;
  background: rgba(110, 231, 168, 0.1);
  color: var(--green);
  padding: 4px 7px;
}

.calendar-card p {
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.calendar-card .text-action {
  font-size: 11px;
}

.notification-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.notification-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 11px;
}

.notification-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
}

.notification-icon.violet {
  background: linear-gradient(145deg, #9a78ff, #5840bd);
}

.notification-icon.cyan {
  background: linear-gradient(145deg, #5cdbea, #207e9e);
}

.notification-item strong,
.notification-item p {
  display: block;
  margin: 0;
}

.notification-item strong {
  font-size: 11px;
}

.notification-item p {
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.45;
}

.notification-item time {
  color: var(--ink-muted);
  font-size: 8px;
}

.context-menu {
  position: fixed;
  z-index: 9600;
  display: grid;
  width: 230px;
  visibility: hidden;
  border-radius: 12px;
  opacity: 0;
  padding: 5px;
  transform: scale(0.94);
  transform-origin: top left;
  transition: opacity 120ms ease, transform 160ms var(--ease-out), visibility 120ms;
}

.context-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.context-menu button {
  display: flex;
  width: 100%;
  height: 31px;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  padding: 0 9px;
  text-align: left;
}

.context-menu button:hover {
  background: rgba(125, 94, 234, 0.75);
  color: #fff;
}

.context-menu button:hover kbd {
  color: rgba(255, 255, 255, 0.74);
}

.context-menu hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--stroke);
  margin: 4px 0;
}

.toast-region {
  position: fixed;
  z-index: 10000;
  top: calc(var(--menu-height) + 14px);
  left: 50%;
  display: grid;
  width: min(360px, calc(100vw - 28px));
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(18, 19, 27, 0.86);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  opacity: 0;
  padding: 10px;
  transform: translateY(-16px) scale(0.96);
  transition: opacity 220ms ease, transform 340ms var(--ease-spring);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #8d6cff, #4c39af);
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 11px;
}

.toast span {
  color: var(--ink-muted);
  font-size: 9px;
}

.toast > button {
  color: var(--ink-muted);
  font-size: 16px;
  pointer-events: auto;
}
