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

body.mac-desktop-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #030305;
  background-image: 
    radial-gradient(circle at 75% 25%, rgba(123, 44, 191, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(0, 119, 182, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(60, 9, 108, 0.45) 0%, transparent 70%);
  background-size: cover;
  background-position: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  color: #fff;
  user-select: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* MENUBAR */
.mac-menubar {
  height: 28px;
  background: rgba(15, 15, 22, 0.68);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 100;
  position: relative;
}

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.menu-item {
  color: #f1f5f9;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.menu-item:hover { opacity: 0.7; }
.menu-item.bold { font-weight: 700; }

.badge-safe {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* DROPDOWN MENU */
.mac-dropdown-menu {
  display: none;
  position: absolute;
  top: 28px;
  left: 10px;
  background: rgba(25, 22, 35, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0;
  min-width: 210px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.dropdown-item {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: #f1f5f9;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #0071e3;
  color: #ffffff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.3rem 0;
}

/* CANVAS */
.mac-desktop-canvas {
  flex: 1;
  position: relative;
  padding: 2.5rem;
}

/* NOTIFICATION */
.mac-notification {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 340px;
  background: rgba(22, 20, 32, 0.85);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(123, 44, 191, 0.2);
  animation: slideInNotif 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInNotif {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #9d4edd;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.notif-close {
  font-size: 1.1rem;
  cursor: pointer;
  color: #94a3b8;
}

.notif-close:hover { color: #fff; }

.notif-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.notif-body {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* DESKTOP ICON */
.desktop-item {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.desktop-icon-wrap {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}

.desktop-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  text-align: center;
}

/* DOCK */
.mac-dock-container {
  display: flex;
  justify-content: center;
  padding-bottom: 0.85rem;
}

.mac-dock {
  background: rgba(20, 18, 30, 0.65);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(123, 44, 191, 0.25);
}

.dock-app {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dock-app:hover {
  transform: scale(1.22) translateY(-8px);
}

.dock-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: 2px;
}

.dock-dot.active {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.dock-separator {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.2rem;
}

/* ABOUT MODAL */
.modal-backdrop {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.mac-window-modal {
  width: 420px;
  background: rgba(30, 26, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.mac-modal-header {
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.mac-modal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.mac-modal-content {
  padding: 2rem;
  text-align: center;
}

.mac-chip-logo {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.mac-modal-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.chip-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5e1;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-line span { color: #64748b; }
