/* ==========================================================================
   TWEEDLEX — OS X MAVERICKS (10.9) PIXEL-PERFECT STYLES
   Exact replica of Apple OS X 10.9 Mavericks with REAL ICONS
   ========================================================================== */

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

:root {
  --osx-blue-highlight: #3875d7;
  --osx-blue-active-tag: #3b82f6;
  --osx-sidebar-bg: #e8ecf1;
  --osx-sidebar-border: #d1d5db;
  --osx-titlebar-top: #ededed;
  --osx-titlebar-bottom: #c6c6c6;
  --osx-toolbar-top: #fbfbfb;
  --osx-toolbar-bottom: #dcdcdc;
  --osx-statusbar-top: #e2e2e2;
  --osx-statusbar-bottom: #cccccc;
  --osx-text-dark: #222222;
  --osx-text-muted: #666666;
  --osx-font: -apple-system, BlinkMacSystemFont, "Lucida Grande", "Helvetica Neue", "Inter", Arial, sans-serif;
  --osx-mono: "JetBrains Mono", Menlo, Monaco, monospace;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--osx-font);
  user-select: none;
  -webkit-user-select: none;
}

/* --- DESKTOP WORKSPACE & ORIGINAL MAVERICKS WALLPAPER --- */
.osx-desktop {
  background: url('./assets/wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* --- TOP APPLE MENU BAR --- */
.osx-menubar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.88) 0%, rgba(225, 225, 225, 0.82) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
  color: #000;
  z-index: 1000;
}

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.menubar-item {
  background: transparent;
  border: none;
  padding: 0 10px;
  height: 22px;
  display: flex;
  align-items: center;
  color: #000;
  font-family: var(--osx-font);
  font-size: 13px;
  cursor: default;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.menubar-item:hover, .menu-item-dropdown.active .menubar-item {
  background: var(--osx-blue-highlight);
  color: #fff;
  text-shadow: none;
}

.apple-logo-btn {
  font-size: 14px;
  padding: 0 10px;
}

.app-title {
  font-weight: 700;
}

.tray-item {
  background: transparent;
  border: none;
  padding: 0 7px;
  height: 22px;
  display: flex;
  align-items: center;
  color: #000;
  font-size: 12px;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tray-item:hover {
  background: var(--osx-blue-highlight);
  color: #fff;
  text-shadow: none;
}

.menubar-clock {
  font-weight: 500;
  font-size: 12.5px;
  padding: 0 8px;
}

/* Menu Dropdown */
.menu-item-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.osx-dropdown {
  position: absolute;
  top: 22px;
  left: 0;
  min-width: 210px;
  background: rgba(246, 246, 246, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 4px 0;
  display: none;
  z-index: 1010;
}

.menu-item-dropdown.active .osx-dropdown {
  display: block;
}

.dropdown-item {
  padding: 4px 16px;
  font-size: 13px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: default;
  white-space: nowrap;
}

.dropdown-item i, .mini-menu-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dropdown-item:hover {
  background: var(--osx-blue-highlight);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 4px 0;
}

.shortcut {
  font-size: 11px;
  color: #888;
  margin-left: auto;
  padding-left: 16px;
}
.dropdown-item:hover .shortcut {
  color: #eee;
}

/* --- DESKTOP AREA & ICONS --- */
.desktop-area {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.desktop-icons {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 5;
}

.desktop-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.desktop-shortcut:hover {
  background: rgba(255, 255, 255, 0.2);
}

.desktop-shortcut.active-shortcut {
  background: rgba(56, 117, 215, 0.7);
}

.desktop-shortcut-placeholder {
  width: 80px;
  height: 70px;
  visibility: hidden;
  pointer-events: none;
}

.real-desktop-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
  margin-bottom: 4px;
}

.shortcut-label {
  font-size: 11px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px #000;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 3px;
}

/* --- OS X MAVERICKS WINDOWS --- */
.osx-window {
  position: absolute;
  width: 800px;
  max-width: 95vw;
  height: 540px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 5px 5px 4px 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}

.osx-window.active-window {
  z-index: 50;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.osx-window.minimized {
  transform: scale(0.1) translate(0, 700px);
  opacity: 0;
  pointer-events: none;
}

.hidden-window {
  display: none !important;
}

/* Titlebar */
.window-titlebar {
  height: 38px;
  background: linear-gradient(to bottom, var(--osx-titlebar-top) 0%, var(--osx-titlebar-bottom) 100%);
  border-bottom: 1px solid #ababab;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: grab;
}

.window-titlebar:active {
  cursor: grabbing;
}

/* Traffic Light Buttons */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.traffic-btn::before {
  display: none !important;
}

.traffic-close {
  background: radial-gradient(circle at 50% 30%, #ff6e65, #e0382f);
  border-color: #ba231a;
}
.traffic-minimize {
  background: radial-gradient(circle at 50% 30%, #ffdc58, #e5a713);
  border-color: #b07e0c;
}
.traffic-zoom {
  background: radial-gradient(circle at 50% 30%, #6ce463, #28b823);
  border-color: #199415;
}

.traffic-lights:hover .traffic-close::after {
  content: '×';
  font-size: 10px;
  color: #4a0000;
  font-weight: 800;
  margin-top: -1px;
}
.traffic-lights:hover .traffic-minimize::after {
  content: '–';
  font-size: 10px;
  color: #573e00;
  font-weight: 800;
  margin-top: -1px;
}
.traffic-lights:hover .traffic-zoom::after {
  content: '+';
  font-size: 10px;
  color: #0d4a0a;
  font-weight: 800;
  margin-top: -1px;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mini-title-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.titlebar-tag-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.tag-green { background: #34c759; box-shadow: 0 0 2px #34c759; }
.tag-blue { background: #007aff; }
.tag-yellow { background: #ffcc00; }
.tag-orange { background: #ff9500; }
.tag-red { background: #ff3b30; }
.tag-purple { background: #af52de; }

.window-fullscreen-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
}
.window-fullscreen-btn:hover {
  color: #111;
}

/* Toolbar */
.window-toolbar {
  height: 38px;
  background: linear-gradient(to bottom, var(--osx-toolbar-top) 0%, var(--osx-toolbar-bottom) 100%);
  border-bottom: 1px solid #b8b8b8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.segmented-control {
  display: flex;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.segment-btn {
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
  border: 1px solid #ababab;
  padding: 3px 9px;
  font-size: 11px;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.segment-btn:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.segment-btn:last-child { border-radius: 0 4px 4px 0; }
.segment-btn:not(:first-child):not(:last-child) { border-right: none; }

.segment-btn.active {
  background: linear-gradient(to bottom, #b4b4b4 0%, #cacaca 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  color: #111;
}
.segment-btn.disabled { color: #aaa; cursor: default; }

.toolbar-pill-btn {
  background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
  border: 1px solid #ababab;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.toolbar-pill-btn:hover {
  background: linear-gradient(to bottom, #f5f5f5 0%, #dadada 100%);
}
.mini-caret { font-size: 9px; }

.toolbar-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}
.toolbar-search input {
  background: #ffffff;
  border: 1px solid #ababab;
  border-radius: 12px;
  padding: 2px 10px 2px 24px;
  font-size: 11.5px;
  outline: none;
  width: 150px;
}
.toolbar-search input:focus {
  border-color: var(--osx-blue-highlight);
  box-shadow: 0 0 3px rgba(56, 117, 215, 0.5);
  width: 170px;
}
.search-icon {
  position: absolute;
  left: 8px;
  font-size: 10px;
  color: #888;
}

/* Mavericks Tabs Bar */
.finder-tabbar {
  height: 24px;
  background: #bfbfbf;
  border-bottom: 1px solid #a8a8a8;
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
  gap: 2px;
}

.finder-tab {
  background: #b0b0b0;
  border: 1px solid #999;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 3px 12px;
  font-size: 11px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.finder-tab.active {
  background: #e8ecf1;
  border-color: #999;
  color: #111;
  font-weight: 600;
}
.tab-close {
  font-size: 12px;
  color: #777;
}
.tab-close:hover { color: #000; }
.finder-tab-new {
  padding: 2px 8px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}

/* Window Body (Sidebar + Content) */
.window-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: #ffffff;
}

/* Finder Sidebar */
.finder-sidebar {
  width: 180px;
  background: var(--osx-sidebar-bg);
  border-right: 1px solid var(--osx-sidebar-border);
  padding: 10px 6px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #7d858e;
  letter-spacing: 0.5px;
  padding: 6px 8px 3px;
}

.sidebar-list {
  list-style: none;
  margin-bottom: 10px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  font-size: 12px;
  color: #333;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
}
.sidebar-item:hover {
  background: rgba(0, 0, 0, 0.05);
}
.sidebar-item.active {
  background: linear-gradient(to bottom, #4c8fee 0%, #2f6fd8 100%);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.sidebar-item.active-tag {
  background: linear-gradient(to bottom, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.sidebar-icon, .mini-sidebar-img {
  font-size: 13px;
  width: 16px;
  height: 16px;
  object-fit: contain;
  color: #5c6b79;
}
.sidebar-item.active .sidebar-icon, .sidebar-item.active-tag .sidebar-icon {
  color: #ffffff;
}

.sidebar-eject {
  margin-left: auto;
  font-size: 10px;
  color: #777;
}
.badge-count {
  margin-left: auto;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 5px;
  border-radius: 8px;
}
.sidebar-item.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
}

.tag-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Main Content Area */
.finder-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #ffffff;
}

.finder-tab-pane {
  display: none;
}
.finder-tab-pane.active {
  display: block;
}

/* Profile Info Banner */
.profile-info-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.banner-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.banner-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.avatar-tick {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #007aff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 2px solid #fff;
}

.banner-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}
.banner-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}
.status-pill-osx {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 10px;
}
.green-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.banner-desc {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.banner-tags {
  display: flex;
  gap: 6px;
}
.badge-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10.5px;
  color: #475569;
}

/* Mavericks Blue Folders Grid */
.mavericks-grid-container.icons-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.mavericks-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.mavericks-item:hover, .mavericks-item:focus {
  background: rgba(56, 117, 215, 0.15);
  outline: none;
}
.mavericks-item.selected {
  background: var(--osx-blue-highlight);
}
.mavericks-item.selected .item-text {
  color: #fff;
}

/* Real Folders with Badges */
.mavericks-folder-wrapper {
  position: relative;
  width: 66px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform 0.15s;
}

.mavericks-folder-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}

.folder-badge-overlay {
  position: absolute;
  bottom: 8px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Document Icon */
.mavericks-doc-wrapper {
  position: relative;
  width: 54px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mavericks-doc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.doc-badge-exec {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #222;
  color: #4ade80;
  font-family: var(--osx-mono);
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 2px;
}

.mavericks-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #222;
  font-weight: 500;
  max-width: 100%;
}
.tag-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-action-hover {
  display: none;
  gap: 4px;
  margin-top: 6px;
}
.mavericks-item:hover .item-action-hover {
  display: flex;
}
.action-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
}
.action-chip:hover {
  background: #e2e8f0;
}

/* Contacts Table (Tab 2) */
.contacts-table-header { margin-bottom: 12px; }
.contacts-table-header h3 { font-size: 15px; color: #111; }
.contacts-table-header p { font-size: 12px; color: #666; }

.osx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
}
.osx-table th {
  background: linear-gradient(to bottom, #f6f6f6 0%, #e6e6e6 100%);
  border-bottom: 1px solid #ccc;
  padding: 6px 12px;
  text-align: left;
  font-weight: 600;
  color: #444;
}
.osx-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  color: #333;
}
.table-mini-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
.mono-txt { font-family: var(--osx-mono); font-size: 11.5px; }

.btn-osx {
  background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 100%);
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}
.btn-osx:hover { background: #dedede; }

/* Statusbar */
.window-statusbar {
  height: 20px;
  background: linear-gradient(to bottom, var(--osx-statusbar-top) 0%, var(--osx-statusbar-bottom) 100%);
  border-top: 1px solid #b8b8b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: #555;
}
.statusbar-slider-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.statusbar-slider {
  width: 70px;
  height: 4px;
  cursor: pointer;
}
.slider-mini-icon { font-size: 9px; color: #666; }

/* --- CLASSIC COMPACT "ABOUT THIS MAC" (SCREENSHOT 2 LEFT) --- */
.classic-about-window {
  background: #ececec;
  border-radius: 6px;
}
.classic-about-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.classic-apple-3d-logo {
  font-size: 56px;
  color: #b0b5bc;
  text-shadow: 0 1px 0 #ffffff, 0 3px 8px rgba(0, 0, 0, 0.22);
  margin-bottom: 2px;
}
.classic-osx-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 1px;
}
.classic-osx-version {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
}
.btn-classic-bevel {
  background: linear-gradient(to bottom, #ffffff 0%, #e2e2e2 100%);
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.btn-classic-bevel:hover { background: #dcdcdc; }

.classic-specs-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 12px 0;
  width: 100%;
  font-size: 11px;
}
.c-spec-row {
  display: flex;
  justify-content: space-between;
}
.c-spec-name { font-weight: 700; color: #333; }
.c-spec-val { color: #555; }

.classic-copyright {
  font-size: 8.5px;
  color: #888;
  line-height: 1.35;
  margin-top: 10px;
}
.classic-copyright a { color: #555; text-decoration: none; }

/* --- THUNDERBOLT DISPLAY "ABOUT THIS MAC" --- */
.about-mac-window {
  background: #f8f9fa;
}
.about-mac-tabs {
  height: 28px;
  background: linear-gradient(to bottom, #ebebeb 0%, #dcdcdc 100%);
  border-bottom: 1px solid #b5b5b5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}
.about-tab {
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: #444;
  padding: 4px 8px;
  cursor: pointer;
}
.about-tab.active {
  font-weight: 700;
  color: #000;
  border-bottom: 2px solid #555;
}

.about-mac-body {
  padding: 24px 28px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.monitor-mockup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 190px;
}

.real-mac-display-img {
  width: 100%;
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.mac-specs-column { flex: 1; }
.mac-model-name { font-size: 26px; font-weight: 700; color: #111; margin-bottom: 12px; }
.specs-grid {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 6px 10px;
  font-size: 12px;
  margin-bottom: 18px;
}
.spec-label { font-weight: 700; color: #222; }
.spec-value { color: #444; }

.about-buttons-row { display: flex; gap: 10px; }
.btn-osx-bevel {
  background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
  border: 1px solid #ababab;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.btn-osx-bevel:hover { background: #dadada; }

/* --- TERMINAL WINDOW --- */
.terminal-window {
  background: rgba(22, 24, 30, 0.96);
  backdrop-filter: blur(20px);
  color: #f1f1f1;
}
.terminal-window .window-titlebar {
  background: linear-gradient(to bottom, #383b44 0%, #252830 100%);
  border-bottom: 1px solid #18191f;
}
.terminal-window .window-title { color: #e2e8f0; text-shadow: none; }
.terminal-body {
  padding: 12px 14px;
  font-family: var(--osx-mono);
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
  overflow-y: auto;
}
.terminal-history { margin-bottom: 6px; }
.t-line { margin-bottom: 3px; }
.t-cyan { color: #38bdf8; }
.t-yellow { color: #facc15; }
.terminal-input-row { display: flex; align-items: center; gap: 8px; }
.t-prompt { color: #4ade80; font-weight: 700; }
.terminal-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--osx-mono);
  font-size: 12px;
  outline: none;
  flex: 1;
}

/* --- LAUNCHPAD FULL-SCREEN OVERLAY (SCREENSHOT 1) --- */
.launchpad-overlay {
  position: fixed;
  inset: 0;
  background: url('./assets/wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px 50px;
  backdrop-filter: blur(25px) brightness(0.65);
  -webkit-backdrop-filter: blur(25px) brightness(0.65);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s;
}

.launchpad-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.45);
  pointer-events: none;
}

.hidden-launchpad {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}

.launchpad-search-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}
.launchpad-search {
  position: relative;
  display: flex;
  align-items: center;
}
.launchpad-search input {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 4px 14px 4px 30px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  width: 220px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.launchpad-search input::placeholder { color: rgba(255, 255, 255, 0.6); }
.launchpad-search i {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.launchpad-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 28px 24px;
  max-width: 960px;
  width: 100%;
  margin: auto;
}

.lp-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.lp-app-item:hover {
  transform: scale(1.1);
}
.lp-app-item span {
  font-size: 12px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 5px #000;
  margin-top: 6px;
  font-weight: 500;
}

.real-lp-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.lp-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-badge-num {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.launchpad-pagination {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.lp-dot.active { background: #ffffff; }

/* --- 3D GLASS DOCK (MAVERICKS AUTHENTIC) --- */
.dock-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 900;
}

.dock-container {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 4px 22px 10px;
  background: transparent;
}

/* 3D Glass Floor/Shelf */
.dock-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(235, 245, 255, 0.68) 25%,
    rgba(200, 220, 240, 0.78) 75%,
    rgba(165, 190, 220, 0.92) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -1px 2px rgba(255, 255, 255, 0.8), 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom center;
  transform: perspective(350px) rotateX(24deg);
  z-index: 1;
  pointer-events: none;
}

/* Front Beveled Edge */
.dock-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 5px;
  background: linear-gradient(to bottom, #dbe4ee 0%, #9cb0c5 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.dock-item {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  transform-origin: bottom center;
}

.real-dock-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  -webkit-box-reflect: below -2px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.36));
  transition: all 0.15s;
}

.dock-active-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px #ffffff, 0 1px 2px rgba(0, 0, 0, 0.9);
  position: absolute;
  bottom: -4px;
  z-index: 10;
}
.hidden-dot { display: none; }

.dock-separator {
  position: relative;
  z-index: 5;
  width: 1px;
  height: 46px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  margin: 0 3px;
  margin-bottom: 2px;
}

.dock-item::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -34px;
  background: rgba(20, 25, 35, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.15s;
  pointer-events: none;
  z-index: 20;
}
.dock-item:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes dock-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-26px); }
  60% { transform: translateY(-12px); }
}
.dock-bounce-anim {
  animation: dock-bounce 0.6s ease-in-out;
}

/* --- OS X NOTIFICATION BANNER --- */
.osx-notif-container {
  position: fixed;
  top: 32px;
  right: 14px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.osx-banner {
  pointer-events: auto;
  width: 300px;
  background: rgba(246, 246, 246, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transform: translateX(340px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.osx-banner.active { transform: translateX(0); }
.banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--osx-blue-highlight);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.banner-title { font-size: 12.5px; font-weight: 700; color: #111; margin-bottom: 2px; }
.banner-desc { font-size: 11.5px; color: #555; }

/* --- SPOTLIGHT SEARCH POPUP --- */
.spotlight-popup {
  position: fixed;
  top: 30px;
  right: 60px;
  width: 380px;
  background: rgba(246, 246, 246, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  z-index: 2500;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hidden-popup {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
}
.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
}
.spotlight-glass-icon {
  font-size: 16px;
  color: #64748b;
}
.spotlight-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: #1e293b;
  font-family: inherit;
}
.spotlight-results {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
}
.spotlight-category {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  padding: 4px 14px;
  letter-spacing: 0.5px;
}
.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.spotlight-item:hover {
  background: linear-gradient(to bottom, #4c8fee 0%, #2f6fd8 100%);
  color: #ffffff;
}
.spotlight-item:hover .spotlight-item-sub {
  color: rgba(255, 255, 255, 0.8);
}
.spotlight-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.spotlight-item-info {
  display: flex;
  flex-direction: column;
}
.spotlight-item-title {
  font-size: 13px;
  font-weight: 600;
}
.spotlight-item-sub {
  font-size: 11px;
  color: #64748b;
}

/* --- NOTIFICATION CENTER DRAWER --- */
.nc-drawer {
  position: fixed;
  top: 22px;
  right: 0;
  width: 320px;
  height: calc(100vh - 22px);
  background: rgba(30, 35, 45, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  padding: 14px;
  color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hidden-drawer {
  transform: translateX(330px);
  pointer-events: none;
}
.nc-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 14px;
}
.nc-seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}
.nc-seg-btn.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.nc-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.nc-pane.active {
  display: flex;
}
.nc-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
}
.nc-card-header {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.nc-status-line {
  font-size: 13px;
  color: #f1f5f9;
}
.nc-cal-event {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}
.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  margin-top: 4px;
}
.cal-event-text span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}
.nc-actions-grid {
  display: flex;
  gap: 8px;
}
.nc-quick-btn {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nc-quick-btn:hover { background: rgba(255, 255, 255, 0.28); }

.nc-notif-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}
.nc-notif-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.mini-nc-icon { width: 14px; height: 14px; object-fit: contain; }
.nc-time { margin-left: auto; color: #94a3b8; font-size: 10px; }
.nc-notif-body { font-size: 12px; color: #f1f5f9; line-height: 1.4; }

/* --- LOCK SCREEN OVERLAY --- */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  background: url('./assets/wallpaper.jpg') center/cover no-repeat;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(35px) brightness(0.7);
  -webkit-backdrop-filter: blur(35px) brightness(0.7);
  transition: opacity 0.3s;
}
.hidden-lock {
  display: none !important;
}
.lock-screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.lock-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}
.lock-username {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.lock-input-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 4px 6px 4px 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.lock-input-row input {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  width: 180px;
}
.lock-input-row input::placeholder { color: rgba(255, 255, 255, 0.7); }
.lock-input-row button {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.lock-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- QUICK LOOK HUD PREVIEW --- */
.quicklook-hud {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  background: rgba(25, 30, 40, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  padding: 16px;
  color: #ffffff;
}
.hidden-hud {
  display: none !important;
}
.ql-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.ql-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.ql-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.ql-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.ql-large-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}
.ql-details h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ql-details p { font-size: 12.5px; color: #cbd5e1; margin-bottom: 6px; }
.ql-size { font-size: 11px; color: #94a3b8; }
.ql-footer {
  display: flex;
  justify-content: flex-end;
}

/* --- ACTION GEAR MENU --- */
.action-gear-wrapper {
  position: relative;
}
.finder-action-dropdown {
  left: 0;
  top: 26px;
  min-width: 190px;
}

/* --- FINDER VIEW MODES --- */
.finder-list-view {
  padding: 6px 0;
}
.list-row {
  cursor: pointer;
}
.list-row:hover {
  background: rgba(59, 130, 246, 0.12);
}
.list-row.selected {
  background: linear-gradient(to bottom, #4c8fee 0%, #2f6fd8 100%);
  color: #ffffff;
}

.finder-columns-view {
  display: flex;
  height: 320px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}
.finder-col {
  width: 170px;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  padding: 4px 0;
}
.col-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}
.col-item:hover { background: rgba(0, 0, 0, 0.04); }
.col-item.active {
  background: linear-gradient(to bottom, #4c8fee 0%, #2f6fd8 100%);
  color: #ffffff;
}
.col-icon { width: 16px; height: 16px; object-fit: contain; }
.col-arrow { margin-left: auto; font-size: 9px; opacity: 0.7; }
.col-preview-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.col-large-preview-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
}
.col-preview-pane h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.col-preview-pane p { font-size: 12px; color: #64748b; margin-bottom: 10px; }
.col-details-list { font-size: 11px; color: #64748b; line-height: 1.6; }

/* Cover Flow */
.finder-coverflow-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111827;
  border-radius: 6px;
  padding: 24px 16px 12px;
  overflow: hidden;
}
.coverflow-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 170px;
  perspective: 600px;
}
.coverflow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.coverflow-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  -webkit-box-reflect: below 2px linear-gradient(transparent 60%, rgba(255, 255, 255, 0.25));
}
.coverflow-card span {
  display: none;
}
.coverflow-card.prev {
  transform: rotateY(45deg) scale(0.75) translateX(-20px);
  opacity: 0.6;
}
.coverflow-card.next {
  transform: rotateY(-45deg) scale(0.75) translateX(20px);
  opacity: 0.6;
}
.coverflow-card.active {
  transform: scale(1.15) translateZ(30px);
  opacity: 1;
}
.coverflow-info-label {
  margin-top: 24px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- ABOUT MAC STORAGE & MEMORY TABS --- */
.storage-bar {
  display: flex;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}
.storage-segment { height: 100%; }
.seg-apps { background: #3b82f6; }
.seg-photos { background: #eab308; }
.seg-audio { background: #ef4444; }
.seg-system { background: #8b5cf6; }
.seg-free { background: #e2e8f0; }
.storage-legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: #475569;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.ram-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ram-stick {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 6px;
  text-align: center;
}
.ram-icon { font-size: 20px; color: #3b82f6; margin-bottom: 6px; }
.ram-stick span { font-size: 13px; font-weight: 700; color: #1e293b; }
.ram-stick small { font-size: 9.5px; color: #64748b; margin-top: 2px; }



/* --- TRAY POPUP DROPDOWNS (VOLUME, WI-FI, BATTERY) --- */
.tray-popup-dropdown {
  position: absolute;
  top: 24px;
  right: 0;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 0 0 6px 6px;
}
.tray-popup-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.tray-popup-sub {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 4px;
}
.vol-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: #475569;
}
.osx-range-slider {
  flex: 1;
  height: 4px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* --- DESKTOP CONTEXT MENU --- */
.desktop-ctx-menu {
  position: fixed;
  z-index: 5000;
  min-width: 190px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* --- DESKTOP MARQUEE SELECTION --- */
.desktop-marquee {
  position: fixed;
  border: 1px solid rgba(59, 130, 246, 0.85);
  background: rgba(59, 130, 246, 0.22);
  pointer-events: none;
  z-index: 800;
}
.hidden-marquee { display: none !important; }

/* --- CAMERA FLASH OVERLAY --- */
.camera-flash-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.4s ease-out;
}
.camera-flash-overlay.flash-anim {
  opacity: 0.85;
  transition: none;
}

/* --- TEXTEDIT APP WINDOW --- */
.textedit-window {
  background: #ffffff;
}
.textedit-toolbar {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(to bottom, #f6f6f6 0%, #e5e5e5 100%);
  border-bottom: 1px solid #c8c8c8;
}
.te-select {
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  background: #ffffff;
  margin-right: 6px;
}
.textedit-content-area {
  padding: 24px 28px;
  font-family: 'Lucida Grande', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1e293b;
  outline: none;
  height: calc(100% - 75px);
  overflow-y: auto;
}
.textedit-content-area h2 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.textedit-content-area h3 { font-size: 14px; margin-top: 14px; margin-bottom: 6px; font-weight: 700; }
.textedit-content-area ul { padding-left: 18px; margin-bottom: 10px; }
.textedit-content-area code { background: #f1f5f9; padding: 2px 6px; border-radius: 3px; font-family: monospace; font-size: 12px; }

/* --- BRAUN CALCULATOR APP WINDOW --- */
.calculator-window {
  background: #23272a;
}
.calculator-body {
  padding: 10px;
  background: #1e2124;
}
.calc-screen {
  height: 48px;
  background: #2f3136;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.calc-btn {
  height: 38px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: filter 0.1s, transform 0.05s;
}
.calc-btn:active {
  transform: translateY(1px);
  filter: brightness(0.85);
}
.btn-num {
  background: #5865f2;
  background: linear-gradient(to bottom, #4f545c 0%, #36393f 100%);
  color: #ffffff;
}
.btn-func {
  background: linear-gradient(to bottom, #72767d 0%, #4f545c 100%);
  color: #ffffff;
}
.btn-op {
  background: linear-gradient(to bottom, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}
.btn-zero {
  grid-column: span 2;
}
.btn-equals {
  background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
}

/* --- FORCE QUIT APPLICATIONS DIALOG --- */
.force-quit-window {
  background: #f6f6f6;
}
.force-quit-body {
  padding: 14px 16px;
}
.force-quit-list {
  height: 120px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 2px 0;
}
.fq-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.fq-item:hover { background: rgba(0, 0, 0, 0.05); }
.fq-item.active {
  background: linear-gradient(to bottom, #4c8fee 0%, #2f6fd8 100%);
  color: #ffffff;
}
.mini-fq-icon { width: 16px; height: 16px; object-fit: contain; }
.fq-buttons {
  display: flex;
  justify-content: flex-end;
}

/* ==============================================
   20. DASHBOARD OVERLAY & AUTHENTIC WIDGETS
   ============================================== */
.dashboard-overlay {
  position: fixed;
  inset: 0;
  background-color: #1a1a1a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 15%, transparent 16%);
  background-size: 14px 14px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s;
}
.hidden-dash {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}
.dashboard-topbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}
.dash-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}
.widgets-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 20px;
}
.dash-widget {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}
.dash-widget:hover {
  transform: translateY(-4px);
}

/* Clock Widget */
.widget-clock {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #dcdcdc 100%);
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.9), 0 12px 35px rgba(0, 0, 0, 0.7);
}
.clock-face {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  border: 2px solid #333333;
}
.clock-brand {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #555555;
}
.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 4px;
}
.hour-hand { width: 4px; height: 42px; background: #111111; margin-left: -2px; }
.minute-hand { width: 3px; height: 62px; background: #222222; margin-left: -1.5px; }
.second-hand { width: 1.5px; height: 70px; background: #e11d48; margin-left: -0.75px; }
.center-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #e11d48;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.clock-city {
  position: absolute;
  bottom: 22px;
  font-size: 11px;
  font-weight: 600;
  color: #333333;
}

/* Weather Widget */
.widget-weather {
  width: 220px;
  height: 210px;
  background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.weather-top { display: flex; justify-content: space-between; align-items: center; }
.weather-city { font-size: 15px; font-weight: 700; }
.weather-cond { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.weather-sun-icon { color: #fde047; }
.weather-temp { font-size: 52px; font-weight: 300; line-height: 1; margin: 10px 0; }
.weather-sub { font-size: 11px; color: rgba(255, 255, 255, 0.85); }

/* Sticky Note Widget */
.widget-stickynote {
  width: 230px;
  height: 210px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 100%);
  border-radius: 2px 2px 14px 2px;
  padding: 16px;
  color: #451a03;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.08);
  font-family: 'Reenie Beanie', cursive, -apple-system, sans-serif;
  position: relative;
}
.sticky-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ef4444, #991b1b);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.sticky-content h4 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.sticky-content p { font-size: 18px; line-height: 1.35; margin-bottom: 4px; }

/* Calendar Widget */
.widget-cal {
  width: 180px;
  height: 210px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.widget-cal-header {
  background: #ef4444;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 0;
}
.widget-cal-day {
  font-size: 76px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
  margin-top: 10px;
}
.widget-cal-weekday {
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
}

/* ==============================================
   21. SAFARI BROWSER WINDOW
   ============================================== */
.safari-window {
  background: #f8fafc;
}
.safari-toolbar {
  height: 42px;
  background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.safari-url-bar {
  flex: 1;
  height: 28px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.url-lock-icon { font-size: 11px; color: #16a34a; margin-right: 6px; }
.url-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  color: #334155;
  background: transparent;
}
.url-reload-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}
.safari-bookmarks-bar {
  height: 26px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 11.5px;
}
.bookmark-item {
  color: #475569;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
}
.bookmark-item:hover, .bookmark-item.active {
  background: rgba(0, 0, 0, 0.06);
  color: #1e293b;
}
.mini-bm-icon { width: 13px; height: 13px; object-fit: contain; }
.safari-content-area {
  padding: 24px;
  height: calc(100% - 106px);
  overflow-y: auto;
}
.safari-hero-banner {
  text-align: center;
  margin-bottom: 24px;
}
.safari-hero-banner h1 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.safari-hero-banner p { font-size: 13px; color: #64748b; }
.safari-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.safari-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.card-badge {
  align-self: flex-start;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.card-icon-header {
  font-size: 24px;
  color: #3b82f6;
  margin-bottom: 8px;
}
.safari-card h3 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.safari-card p { font-size: 12px; color: #64748b; line-height: 1.5; }

/* ==============================================
   22. MISSION CONTROL OVERLAY
   ============================================== */
.mission-control-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  z-index: 9200;
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s, transform 0.25s;
}
.hidden-mc {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}
.mc-top-spaces {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.mc-space-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mc-space-card.active {
  background: rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}
.mini-mc-icon { width: 16px; height: 16px; object-fit: contain; }
.mc-windows-grid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 30px;
}
.mc-win-preview {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 12px;
  width: 240px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s;
}
.mc-win-preview:hover { transform: scale(1.05); }
.mc-win-title { font-size: 12px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 6px; }
.mc-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  padding-bottom: 16px;
}

/* ==============================================
   23. AUTHENTIC OS X BOOT SCREEN OVERLAY
   ============================================== */
.osx-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.45s ease;
}

.osx-boot-overlay.hidden-boot {
  opacity: 0;
  pointer-events: none;
}

/* Black Screen Stage (1 second) */
.osx-boot-overlay.boot-stage-black {
  background-color: #000000;
}
.osx-boot-overlay.boot-stage-black .boot-apple-content {
  opacity: 0;
  pointer-events: none;
}

/* Grey Apple Screen Stage (5 seconds) */
.osx-boot-overlay.boot-stage-grey {
  background-color: #bfbfbf;
}
.osx-boot-overlay.boot-stage-grey .boot-apple-content {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.boot-apple-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.boot-apple-logo {
  font-size: 92px;
  color: #6e6e6e;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
  margin-bottom: 44px;
}

/* Authentic 12-blade OS X Stepping Gear Spinner */
.boot-spinner {
  position: relative;
  width: 26px;
  height: 26px;
  animation: osx-boot-spin 1s steps(12) infinite;
}

.boot-spinner div {
  position: absolute;
  width: 2.5px;
  height: 6.5px;
  background: #6e6e6e;
  left: 11.75px;
  top: 0;
  border-radius: 1.5px;
  transform-origin: 1.25px 13px;
}

.boot-spinner div:nth-child(1)  { transform: rotate(0deg);   opacity: 1.0; }
.boot-spinner div:nth-child(2)  { transform: rotate(30deg);  opacity: 0.91; }
.boot-spinner div:nth-child(3)  { transform: rotate(60deg);  opacity: 0.83; }
.boot-spinner div:nth-child(4)  { transform: rotate(90deg);  opacity: 0.75; }
.boot-spinner div:nth-child(5)  { transform: rotate(120deg); opacity: 0.66; }
.boot-spinner div:nth-child(6)  { transform: rotate(150deg); opacity: 0.58; }
.boot-spinner div:nth-child(7)  { transform: rotate(180deg); opacity: 0.50; }
.boot-spinner div:nth-child(8)  { transform: rotate(210deg); opacity: 0.41; }
.boot-spinner div:nth-child(9)  { transform: rotate(240deg); opacity: 0.33; }
.boot-spinner div:nth-child(10) { transform: rotate(270deg); opacity: 0.25; }
.boot-spinner div:nth-child(11) { transform: rotate(300deg); opacity: 0.16; }
.boot-spinner div:nth-child(12) { transform: rotate(330deg); opacity: 0.08; }

@keyframes osx-boot-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==============================================
   24. NOTES (ЗАМЕТКИ) SKEUOMORPHIC STYLES
   ============================================== */
.notes-window {
  background: #fdf6b2;
}
.notes-toolbar {
  height: 38px;
  background: linear-gradient(to bottom, #f3f4f6 0%, #e5e7eb 100%);
  border-bottom: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.notes-body {
  display: flex;
  height: calc(100% - 66px);
}
.notes-sidebar {
  width: 220px;
  background: rgba(255, 255, 255, 0.65);
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}
.note-list-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.note-list-item:hover { background: rgba(254, 240, 138, 0.4); }
.note-list-item.active {
  background: linear-gradient(to bottom, #fde047 0%, #eab308 100%);
  color: #1e293b;
}
.note-item-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.note-item-date { font-size: 11px; color: #64748b; margin-bottom: 2px; }
.note-item-snippet { font-size: 11.5px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-editor-pane {
  flex: 1;
  background: #fffbeb;
  background-image: repeating-linear-gradient(transparent, transparent 27px, #e2e8f0 28px);
  padding: 16px 24px;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 28px;
}
.notes-paper-header {
  text-align: center;
  margin-bottom: 12px;
}
.notes-date-stamp {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}
.notes-content {
  outline: none;
  font-size: 13.5px;
  color: #1f2937;
}

/* ==============================================
   25. REMINDERS (НАПОМИНАНИЯ)
   ============================================== */
.reminders-window { background: #ffffff; }
.reminders-body { display: flex; height: calc(100% - 28px); }
.reminders-sidebar {
  width: 200px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 12px 8px;
}
.rem-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin-bottom: 4px;
}
.rem-list-item.active { background: #e2e8f0; color: #0f172a; }
.rem-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-orange { background: #ea580c; }
.dot-blue { background: #2563eb; }
.dot-green { background: #16a34a; }
.rem-count { margin-left: auto; font-size: 11px; background: rgba(0,0,0,0.08); padding: 2px 6px; border-radius: 10px; }
.reminders-content-pane { flex: 1; padding: 20px 24px; overflow-y: auto; }
.reminders-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rem-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.rem-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #ea580c; }
.rem-checkbox-row.checked span { text-decoration: line-through; color: #94a3b8; }

/* ==============================================
   26. CONTACTS (КОНТАКТЫ)
   ============================================== */
.contacts-window { background: #f8fafc; }
.contacts-body { display: flex; height: calc(100% - 28px); }
.contacts-card-sidebar { width: 220px; background: #ffffff; border-right: 1px solid #e2e8f0; padding: 12px 8px; }
.c-card-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; cursor: pointer; }
.c-card-item.active { background: #eff6ff; }
.c-mini-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.c-item-text strong { display: block; font-size: 13px; color: #1e293b; }
.c-item-text span { font-size: 11px; color: #64748b; }
.contacts-card-detail { flex: 1; padding: 24px; overflow-y: auto; background: #ffffff; }
.c-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.c-large-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid #cbd5e1; }
.c-badge-pill { font-size: 11px; color: #16a34a; background: #f0fdf4; padding: 2px 8px; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.c-fields-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.c-field-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.c-field-label { width: 110px; color: #64748b; font-weight: 600; }
.c-field-val { color: #0f172a; text-decoration: none; font-weight: 500; }

/* ==============================================
   27. MESSAGES (iMESSAGE)
   ============================================== */
.messages-window { background: #ffffff; }
.messages-body { display: flex; height: calc(100% - 28px); }
.messages-dialogs-sidebar { width: 220px; background: #f8fafc; border-right: 1px solid #e2e8f0; }
.msg-dialog-item { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.msg-dialog-item.active { background: #e0f2fe; }
.msg-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.msg-dialog-top { display: flex; justify-content: space-between; font-size: 12.5px; }
.msg-time { font-size: 10.5px; color: #94a3b8; }
.msg-dialog-preview { font-size: 11.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.messages-chat-pane { flex: 1; display: flex; flex-direction: column; background: #ffffff; }
.chat-bubbles-flow { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 75%; padding: 8px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; word-wrap: break-word; }
.bubble-incoming { align-self: flex-start; background: #e2e8f0; color: #0f172a; border-bottom-left-radius: 4px; }
.bubble-outgoing { align-self: flex-end; background: #0284c7; color: #ffffff; border-bottom-right-radius: 4px; }
.chat-input-row { height: 44px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f8fafc; }
.chat-input-row input { flex: 1; height: 28px; border: 1px solid #cbd5e1; border-radius: 14px; padding: 0 12px; font-size: 12.5px; outline: none; }

/* ==============================================
   28. MAIL (ПОЧТА)
   ============================================== */
.mail-window { background: #ffffff; }
.mail-toolbar { height: 38px; background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%); border-bottom: 1px solid #cbd5e1; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.mail-body { display: flex; height: calc(100% - 66px); }
.mail-folders-col { width: 170px; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 8px; }
.mail-f-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12px; border-radius: 4px; color: #334155; cursor: pointer; }
.mail-f-item.active { background: #cbd5e1; font-weight: 600; }
.mail-list-col { width: 240px; background: #ffffff; border-right: 1px solid #e2e8f0; overflow-y: auto; }
.mail-list-row { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.mail-list-row.active { background: #e0f2fe; }
.mail-row-sender { font-size: 12.5px; font-weight: 700; color: #0f172a; }
.mail-row-subject { font-size: 12px; font-weight: 600; color: #1e293b; margin-bottom: 2px; }
.mail-row-preview { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-view-pane { flex: 1; padding: 20px 24px; overflow-y: auto; }
.mail-view-header { border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 14px; }
.mail-meta { font-size: 11.5px; color: #64748b; margin-top: 4px; }
.mail-view-content { font-size: 13px; color: #334155; line-height: 1.6; }

/* ==============================================
   29. CALENDAR (КАЛЕНДАРЬ)
   ============================================== */
.calendar-window { background: #ffffff; }
.calendar-toolbar { height: 38px; background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%); border-bottom: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.cal-month-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.calendar-grid-body { padding: 14px; height: calc(100% - 66px); display: flex; flex-direction: column; }
.cal-weekdays-row { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 700; color: #64748b; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.cal-days-matrix { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding-top: 8px; }
.cal-day-cell { border: 1px solid #f1f5f9; border-radius: 4px; padding: 4px; font-size: 12px; font-weight: 600; color: #334155; cursor: pointer; transition: background 0.15s; }
.cal-day-cell:hover { background: #eff6ff; }
.cal-day-cell.today { background: #3b82f6; color: #ffffff; }

/* ==============================================
   30. PHOTOS / iPHOTO
   ============================================== */
.photos-window { background: #1e293b; color: #ffffff; }
.photos-body { display: flex; height: calc(100% - 28px); }
.photos-sidebar { width: 170px; background: #0f172a; border-right: 1px solid rgba(255,255,255,0.1); padding: 8px; }
.p-side-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12px; border-radius: 4px; color: #94a3b8; cursor: pointer; }
.p-side-item.active { background: rgba(255,255,255,0.15); color: #ffffff; font-weight: 600; }
.photos-grid-pane { flex: 1; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; overflow-y: auto; }
.photo-thumb-card { background: #334155; border-radius: 6px; overflow: hidden; cursor: pointer; transition: transform 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.photo-thumb-card:hover { transform: scale(1.05); }
.photo-thumb-card img { width: 100%; height: 95px; object-fit: cover; }
.photo-thumb-card span { display: block; font-size: 11px; padding: 4px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e2e8f0; }

/* ==============================================
   31. PHOTO BOOTH
   ============================================== */
.photobooth-window { background: #18181b; color: #ffffff; }
.photobooth-body { display: flex; flex-direction: column; height: calc(100% - 28px); }
.pb-viewfinder { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; background: #000000; overflow: hidden; }
.pb-camera-image { max-height: 100%; max-width: 100%; object-fit: contain; transition: filter 0.2s; }
.pb-countdown { position: absolute; font-size: 72px; font-weight: 800; color: #ffffff; text-shadow: 0 4px 12px rgba(0,0,0,0.8); }
.pb-countdown.hidden-cd { display: none; }
.pb-effects-bar { height: 42px; background: #27272a; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; }
.pb-effect-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #ffffff; border-radius: 4px; padding: 4px 8px; font-size: 11px; cursor: pointer; }
.pb-effect-btn.active { background: #ef4444; border-color: #ef4444; }
.pb-bottom-strip { height: 48px; background: #18181b; display: flex; align-items: center; justify-content: center; }
.pb-snap-btn { width: 36px; height: 36px; border-radius: 50%; background: #ef4444; color: #ffffff; border: 2px solid #ffffff; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* ==============================================
   32. iTUNES / MUSIC
   ============================================== */
.itunes-window { background: #f1f5f9; display: flex; flex-direction: column; }
.itunes-lcd-bar { height: 72px; background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%); border-bottom: 1px solid #94a3b8; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 12px; }
.itunes-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.itunes-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #94a3b8; background: #ffffff; cursor: pointer; font-size: 11px; color: #334155; display: flex; align-items: center; justify-content: center; transition: all 0.1s; }
.itunes-btn:hover { background: #f8fafc; border-color: #64748b; }
.itunes-play-btn { width: 34px; height: 34px; background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%); color: #ffffff; border-color: #1d4ed8; font-size: 13px; box-shadow: 0 2px 4px rgba(37,99,235,0.3); }
.itunes-play-btn:hover { background: linear-gradient(to bottom, #2563eb 0%, #1e40af 100%); color: #ffffff; }
.itunes-lcd-screen { flex: 1; max-width: 360px; background: #0f172a; border-radius: 6px; padding: 6px 12px; color: #38bdf8; text-align: center; box-shadow: inset 0 2px 5px rgba(0,0,0,0.6); border: 1px solid #334155; }
.lcd-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.lcd-track-title { font-size: 12px; font-weight: 700; color: #38bdf8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.itunes-vis-canvas { width: 90px; height: 16px; flex-shrink: 0; }
.lcd-track-artist { font-size: 10px; color: #94a3b8; margin-bottom: 4px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-progress-wrap { display: flex; align-items: center; gap: 6px; }
.lcd-time { font-size: 9.5px; font-family: 'JetBrains Mono', monospace; color: #64748b; }
.lcd-seek-slider { flex: 1; height: 4px; accent-color: #38bdf8; cursor: pointer; }
.itunes-vol-wrap { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #475569; flex-shrink: 0; }
.itunes-slider { width: 65px; height: 4px; accent-color: #3b82f6; cursor: pointer; }
.itunes-upload-btn { font-size: 11px; padding: 3px 8px; cursor: pointer; }

/* Authentic Apple 3D Cover Flow Stage */
.itunes-coverflow-box {
  height: 210px;
  background: radial-gradient(ellipse at 50% 30%, #1e293b 0%, #030712 85%);
  position: relative;
  overflow: hidden;
  perspective: 900px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
}
.cf-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  padding-top: 10px;
}
.cf-card {
  width: 130px;
  height: 130px;
  position: absolute;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.25, 1), filter 0.42s ease, opacity 0.42s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, filter;
}
.cf-jewel-case {
  width: 130px;
  height: 130px;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: #0f172a;
}
.cf-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}
.cf-art-title {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-art-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 40%, rgba(0,0,0,0.5) 100%);
  border-right: 1px solid rgba(0,0,0,0.4);
}
.cf-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 45%, transparent 46%);
  pointer-events: none;
}
.cf-reflection {
  position: absolute;
  top: 132px;
  left: 0;
  width: 130px;
  height: 60px;
  border-radius: 4px;
  transform: scaleY(-1);
  opacity: 0.35;
  background: inherit;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 80%);
  pointer-events: none;
  filter: blur(0.5px);
}
.cf-caption-overlay {
  text-align: center;
  z-index: 100;
  margin-top: -8px;
  height: 32px;
}
.cf-caption-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.cf-caption-artist {
  font-size: 11px;
  color: #94a3b8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.cf-scrubber-bar {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  margin-top: 2px;
}
.cf-slider {
  width: 100%;
  height: 4px;
  accent-color: #38bdf8;
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.itunes-content { flex: 1; overflow-y: auto; background: #ffffff; }
.itunes-table th, .itunes-table td { padding: 7px 12px; font-size: 12px; }
.itunes-row { cursor: pointer; transition: background 0.1s; }
.itunes-row:hover { background: #f1f5f9; }
.itunes-row.active { background: #e0f2fe; color: #0284c7; font-weight: 600; }
.itunes-row-icon { margin-right: 6px; font-size: 11px; }

/* ==============================================
   33. MAPS (КАРТЫ)
   ============================================== */
.maps-window { background: #f8fafc; }
.maps-toolbar { height: 38px; background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%); border-bottom: 1px solid #cbd5e1; display: flex; align-items: center; padding: 0 12px; }
.maps-view-container { height: calc(100% - 66px); position: relative; overflow: hidden; background: #e2e8f0; }
.maps-mock-canvas { width: 100%; height: 100%; background-image: radial-gradient(#cbd5e1 15%, transparent 16%); background-size: 20px 20px; display: flex; align-items: center; justify-content: center; }
.maps-pin-marker { display: flex; flex-direction: column; align-items: center; }
.maps-pin-bubble { background: #0f172a; color: #ffffff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); margin-bottom: 6px; }
.maps-pin-dot { width: 14px; height: 14px; border-radius: 50%; background: #ef4444; border: 2px solid #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }

/* ==============================================
   34. SYSTEM PREFERENCES (СИСТЕМНЫЕ НАСТРОЙКИ)
   ============================================== */
.sysprefs-window { background: #f8fafc; }
.sysprefs-body { padding: 18px 24px; height: calc(100% - 28px); overflow-y: auto; }
.sysprefs-section-title { font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: 0.5px; margin-bottom: 10px; }
.wallpaper-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.wp-card { background: #ffffff; border: 2px solid #e2e8f0; border-radius: 8px; overflow: hidden; cursor: pointer; text-align: center; transition: all 0.15s; }
.wp-card:hover { transform: translateY(-2px); border-color: #94a3b8; }
.wp-card.active { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3); }
.wp-card img { width: 100%; height: 75px; object-fit: cover; }
.wp-card span { display: block; font-size: 11px; font-weight: 600; padding: 4px; color: #1e293b; }
.sysprefs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.syspref-item { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; padding: 8px 4px; border-radius: 6px; }
.syspref-item:hover { background: rgba(0,0,0,0.04); }
.syspref-item img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 4px; }
.syspref-item span { font-size: 11px; color: #1e293b; }

/* ==============================================
   35. MAC APP STORE
   ============================================== */
.appstore-window { background: #f8fafc; }
.appstore-body { padding: 20px 24px; height: calc(100% - 28px); overflow-y: auto; }
.appstore-hero { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: #ffffff; padding: 24px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 4px 14px rgba(37,99,235,0.25); }
.appstore-hero h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.appstore-hero p { font-size: 12.5px; opacity: 0.9; }
.appstore-apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.as-app-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.as-app-card img { width: 44px; height: 44px; object-fit: contain; }
.as-app-info strong { display: block; font-size: 13px; color: #0f172a; }
.as-app-info span { display: block; font-size: 11px; color: #64748b; margin-bottom: 6px; }
.as-btn { font-size: 11px; padding: 2px 10px; }

/* ==============================================
   36. DICTIONARY & PREVIEW
   ============================================== */
.dict-window { background: #ffffff; }
.dict-toolbar { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.dict-toolbar input { width: 100%; height: 28px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 10px; font-size: 12.5px; outline: none; }
.dict-body { padding: 20px 24px; font-family: Georgia, serif; line-height: 1.6; }
.dict-phonetic { font-size: 12px; color: #64748b; font-style: italic; margin-bottom: 12px; }

.preview-window { background: #1e293b; }
.preview-body { height: calc(100% - 28px); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.preview-main-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* ==============================================
   37. GAME CENTER & RETRO GAMES
   ============================================== */
.games-window { background: #f8fafc; }
.games-body { display: flex; height: calc(100% - 28px); }

/* Sidebar */
.games-sidebar { width: 220px; background: #f1f5f9; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.gc-profile-mini { padding: 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e2e8f0; background: #ffffff; }
.gc-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #38bdf8; object-fit: cover; }
.gc-profile-info strong { display: block; font-size: 13px; color: #0f172a; }
.gc-player-level { font-size: 11px; color: #f59e0b; font-weight: 600; }
.gc-nav-list { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gc-nav-btn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: none; background: transparent; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: #334155; cursor: pointer; text-align: left; transition: all 0.15s; }
.gc-nav-btn:hover { background: #e2e8f0; color: #0f172a; }
.gc-nav-btn.active { background: #3b82f6; color: #ffffff; font-weight: 600; box-shadow: 0 2px 6px rgba(59,130,246,0.35); }
.gc-counter-badge { margin-left: auto; font-size: 10px; background: rgba(0,0,0,0.1); padding: 2px 6px; border-radius: 10px; }
.gc-nav-btn.active .gc-counter-badge { background: rgba(255,255,255,0.3); color: #ffffff; }

/* Content Pane */
.games-content-pane { flex: 1; display: flex; flex-direction: column; background: #ffffff; overflow-y: auto; }
.gc-tab-pane { display: none; height: 100%; padding: 16px; box-sizing: border-box; }
.gc-tab-pane.active { display: flex; flex-direction: column; }

/* Shared Game Box */
.game-box-wrap { display: flex; gap: 20px; align-items: flex-start; justify-content: center; height: 100%; }
.tetris-canvas-wrap, .snake-canvas-wrap { position: relative; background: #0f172a; border-radius: 8px; border: 3px solid #334155; box-shadow: inset 0 2px 10px rgba(0,0,0,0.6); overflow: hidden; display: flex; align-items: center; justify-content: center; }
#tetris-canvas { background: #090d16; display: block; }
#snake-canvas { background: #090d16; display: block; }

.game-overlay-msg { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #ffffff; z-index: 10; }
.game-overlay-msg.hidden-overlay { display: none; }
.game-overlay-msg h3 { font-size: 20px; font-weight: 800; }

.game-side-panel { width: 190px; display: flex; flex-direction: column; gap: 10px; }
.game-stat-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 12px; text-align: center; }
.stat-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
.stat-val { font-size: 16px; font-weight: 800; color: #0f172a; font-family: 'JetBrains Mono', monospace; }
.stat-val.highlight { color: #2563eb; }
.game-btn-row { display: flex; gap: 6px; }
.btn-game-action { flex: 1; padding: 7px 10px; font-size: 12px; font-weight: 600; }

/* Touch D-Pad */
.game-touch-dpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.dpad-btn { height: 36px; border: 1px solid #cbd5e1; background: #f1f5f9; border-radius: 6px; cursor: pointer; color: #334155; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.1s; }
.dpad-btn:hover { background: #e2e8f0; border-color: #94a3b8; }
.dpad-btn:active { background: #3b82f6; color: #ffffff; }
.dpad-wide { grid-column: span 3; font-size: 11.5px; font-weight: 600; }

.snake-dpad { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dpad-mid-row { display: flex; gap: 6px; }

/* MINESWEEPER */
.minesweeper-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #e2e8f0; border: 3px solid; border-color: #ffffff #94a3b8 #94a3b8 #ffffff; padding: 16px; border-radius: 6px; margin: auto; }
.ms-header-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 280px; background: #cbd5e1; border: 2px solid; border-color: #94a3b8 #ffffff #ffffff #94a3b8; padding: 6px 10px; }
.ms-lcd-digit { background: #000000; color: #ef4444; font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 900; letter-spacing: 2px; padding: 2px 6px; border: 1px solid #64748b; }
.ms-face-btn { width: 34px; height: 34px; font-size: 18px; border: 2px solid; border-color: #ffffff #64748b #64748b #ffffff; background: #e2e8f0; cursor: pointer; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.ms-face-btn:active { border-color: #64748b #ffffff #ffffff #64748b; }

.ms-board-wrap { border: 3px solid; border-color: #94a3b8 #ffffff #ffffff #94a3b8; background: #cbd5e1; padding: 4px; }
.ms-grid { display: grid; grid-template-columns: repeat(9, 28px); grid-template-rows: repeat(9, 28px); gap: 1px; }
.ms-cell { width: 28px; height: 28px; border: 2px solid; border-color: #ffffff #718096 #718096 #ffffff; background: #cbd5e0; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 900; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; box-sizing: border-box; }
.ms-cell:active:not(.revealed) { border: 1px solid #718096; background: #cbd5e0; }
.ms-cell.revealed { border: 1px solid #a0aec0; background: #e2e8f0; cursor: default; }
.ms-cell.c-1 { color: #2563eb; }
.ms-cell.c-2 { color: #16a34a; }
.ms-cell.c-3 { color: #dc2626; }
.ms-cell.c-4 { color: #7c3aed; }
.ms-cell.c-5 { color: #b91c1c; }
.ms-cell.mine { background: #ef4444; border-color: #991b1b; color: #000000; }
.ms-cell.flagged { color: #dc2626; }
.ms-footer-controls { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.ms-tip-text { color: #64748b; font-size: 11px; margin-left: 6px; }

/* ACHIEVEMENTS */
.achievements-container { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.achievements-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.achievements-header h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.achievements-header p { font-size: 11.5px; color: #64748b; }
.ach-progress-box { width: 140px; text-align: right; }
.ach-progress-bar { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.ach-progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #10b981); transition: width 0.3s; }
.ach-progress-text { font-size: 11px; font-weight: 700; color: #0f172a; }

.achievements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; overflow-y: auto; padding-right: 4px; }
.ach-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; transition: all 0.2s; opacity: 0.6; filter: grayscale(0.8); }
.ach-card.unlocked { opacity: 1; filter: none; background: #ffffff; border-color: #bfdbfe; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
.ach-icon { width: 44px; height: 44px; border-radius: 10px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #64748b; flex-shrink: 0; }
.ach-card.unlocked .ach-icon { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; }
.ach-info { flex: 1; min-width: 0; }
.ach-info strong { display: block; font-size: 12.5px; color: #0f172a; margin-bottom: 2px; }
.ach-info p { font-size: 11px; color: #64748b; line-height: 1.3; }
.ach-status-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #e2e8f0; color: #64748b; flex-shrink: 0; }
.ach-card.unlocked .ach-status-tag { background: #dcfce7; color: #16a34a; }

/* ==============================================
   38. MACPAINT STUDIO
   ============================================== */
.paint-window { background: #f1f5f9; display: flex; flex-direction: column; }
.paint-body { height: calc(100% - 28px); display: flex; flex-direction: column; }
.paint-toolbar { background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%); border-bottom: 1px solid #cbd5e1; padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.paint-tools-group { display: flex; align-items: center; gap: 4px; }
.paint-tool-btn { width: 28px; height: 28px; border: 1px solid #cbd5e1; background: #ffffff; border-radius: 4px; cursor: pointer; font-size: 12px; color: #334155; display: flex; align-items: center; justify-content: center; }
.paint-tool-btn:hover { background: #f1f5f9; }
.paint-tool-btn.active { background: #3b82f6; border-color: #2563eb; color: #ffffff; }

.paint-size-group { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #475569; }
.paint-label { font-size: 11px; font-weight: 600; }
#paint-size-val { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; width: 26px; }

.paint-palette { display: flex; align-items: center; gap: 4px; }
.paint-swatch { width: 18px; height: 18px; border-radius: 3px; cursor: pointer; transition: transform 0.1s; }
.paint-swatch:hover { transform: scale(1.15); }
.paint-swatch.active { box-shadow: 0 0 0 2px #3b82f6; transform: scale(1.1); }
.paint-color-input { width: 22px; height: 22px; border: none; padding: 0; background: none; cursor: pointer; border-radius: 3px; }

.paint-actions-group { display: flex; align-items: center; gap: 6px; }

.paint-canvas-container { flex: 1; background: #94a3b8; padding: 12px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.paint-main-canvas { background: #ffffff; box-shadow: 0 4px 16px rgba(0,0,0,0.35); border-radius: 2px; cursor: crosshair; }

/* ==============================================
   39. DESKTOP CONTEXT MENU (AQUA MAVERICKS)
   ============================================== */
.osx-context-menu { position: fixed; z-index: 99999; width: 210px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0,0,0,0.15); padding: 4px 0; font-size: 12.5px; color: #1e293b; user-select: none; }
.osx-context-menu.hidden-ctx { display: none; }
.ctx-item { display: flex; align-items: center; gap: 8px; padding: 6px 14px; cursor: pointer; transition: all 0.05s; }
.ctx-item:hover { background: #388bfd; color: #ffffff; }
.ctx-item i, .ctx-item img { width: 14px; text-align: center; }
.ctx-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }

/* ==============================================
   40. TEXTEDIT UPGRADE ACTIONS
   ============================================== */
.btn-te-action { font-size: 11px; padding: 3px 8px; }

/* ==============================================
   41. JUST MONIKA EASTER EGG SYSTEM (DDLC)
   ============================================== */
body.monika-mode {
  --monika-red: #7f1d1d;
  --monika-blood: #450a0a;
  --monika-crimson: #991b1b;
}

body.monika-mode .osx-desktop {
  background-image: url('./assets/monika.png'), url('./assets/monika.jpg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

body.monika-mode .menubar {
  background: linear-gradient(to bottom, #450a0a 0%, #1f0202 100%) !important;
  border-bottom: 1px solid #991b1b !important;
  color: #fecaca !important;
}
body.monika-mode .menu-btn,
body.monika-mode .clock-widget,
body.monika-mode .menubar-icon-btn,
body.monika-mode .tag-indicator {
  color: #fecaca !important;
}
body.monika-mode .dropdown-menu {
  background: rgba(45, 6, 6, 0.96) !important;
  border-color: #991b1b !important;
  color: #fca5a5 !important;
}
body.monika-mode .dropdown-item {
  color: #fecaca !important;
}
body.monika-mode .dropdown-item:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

body.monika-mode .dock-container {
  background: rgba(69, 10, 10, 0.85) !important;
  border-top: 1px solid #ef4444 !important;
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.45) !important;
}
body.monika-mode .dock-tooltip {
  background: rgba(127, 29, 29, 0.95) !important;
  color: #fee2e2 !important;
  border: 1px solid #ef4444 !important;
}

/* Fullscreen Monika Takeover Overlay (Locked Screen) */
.monika-fullscreen-takeover {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647 !important;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: none;
}
.monika-fullscreen-img {
  max-width: 440px;
  max-height: 440px;
  width: 50vmin;
  height: 50vmin;
  object-fit: contain;
  filter: none;
  animation: none;
}

/* Monika Picture Viewer Window (Opened on Any Program Click) */
.monika-app-window {
  position: fixed;
  z-index: 999999 !important;
  width: 480px;
  height: 380px;
  background: #180303;
  border: 2px solid #ef4444;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.6), 0 0 25px rgba(220, 38, 38, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  animation: monikaAppShake 0.4s ease infinite alternate;
}
@keyframes monikaAppShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 1px); }
  100% { transform: translate(-1px, -1px); }
}
.monika-app-titlebar {
  height: 28px;
  background: linear-gradient(to bottom, #991b1b 0%, #7f1d1d 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #fee2e2;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #ef4444;
}
.monika-app-body {
  flex: 1;
  background: radial-gradient(circle at center, #2e0505 0%, #0d0101 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.monika-app-img {
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}
.monika-app-footer {
  margin-top: 10px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(239,68,68,0.8);
}

/* Monika Glitch Error Window */
.monika-popup-window {
  position: fixed;
  z-index: 999999 !important;
  width: 380px;
  background: #1c0404;
  border: 2px solid #ef4444;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.6), 0 0 20px rgba(220, 38, 38, 0.8);
  overflow: hidden;
  user-select: none;
  animation: monikaGlitchShake 0.35s ease infinite alternate;
}

@keyframes monikaGlitchShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(1px, 1px); }
}

.monika-popup-titlebar {
  height: 28px;
  background: linear-gradient(to bottom, #991b1b 0%, #7f1d1d 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #fee2e2;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #ef4444;
}

.monika-popup-body {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: radial-gradient(circle at center, #2d0606 0%, #0f0202 100%);
}

.monika-popup-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
  flex-shrink: 0;
}

.monika-popup-info {
  flex: 1;
}

.monika-popup-info h4 {
  font-size: 13.5px;
  color: #fca5a5;
  margin-bottom: 4px;
  font-weight: 800;
}

.monika-popup-info p {
  font-size: 12px;
  color: #fee2e2;
  line-height: 1.4;
  margin-bottom: 8px;
}

.monika-btn {
  background: linear-gradient(to bottom, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: 1px solid #f87171;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.monika-btn:hover {
  background: #ef4444;
}

/* Red Boot Screen for Monika mode */
.boot-stage-monika {
  background: #3b0000 !important;
}
.boot-stage-monika .apple-logo-icon {
  color: #ef4444 !important;
  filter: drop-shadow(0 0 15px #dc2626);
}
.boot-stage-monika .boot-spinner-gear i {
  color: #fca5a5 !important;
}

/* Monika Fullscreen Takeover (After Reboot) */
.monika-fullscreen-takeover {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.monika-fullscreen-img {
  max-width: 440px;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
  box-shadow: none !important;
}

/* Error Logs in Top-Left Corner (Authentic Darwin Kernel Panic console style) */
.monika-error-logs {
  position: absolute;
  top: 18px;
  left: 20px;
  max-width: 620px;
  max-height: calc(100vh - 36px);
  font-family: 'JetBrains Mono', Consolas, Menlo, Monaco, monospace;
  font-size: 10px;
  line-height: 1.38;
  color: #ffffff;
  pointer-events: none;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 10;
}

.monika-error-logs .log-crit {
  color: #ffffff;
  font-weight: 700;
}

.monika-error-logs .log-sub {
  color: #d1d5db;
  opacity: 0.92;
}

.monika-error-logs .log-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #ffffff;
  vertical-align: middle;
  margin-left: 2px;
  animation: monikaBlink 0.8s infinite;
}

@keyframes monikaBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==============================================
   42. WELCOME BETA ALERT MODAL (OS X AQUA DIALOG)
   ============================================== */
.welcome-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
}
.welcome-modal-overlay.hidden-modal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.welcome-modal-dialog {
  width: 480px;
  background: linear-gradient(to bottom, #fdfdfd 0%, #ececec 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  animation: welcomePopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes welcomePopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.welcome-modal-body {
  padding: 24px 22px 16px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.welcome-modal-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  flex-shrink: 0;
}
.welcome-modal-content {
  flex: 1;
}
.welcome-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1e40af;
  margin-bottom: 6px;
}
.welcome-modal-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.3;
}
.welcome-modal-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 12px;
}
.welcome-modal-tips {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tip-item {
  font-size: 11px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}
.welcome-modal-footer {
  background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%);
  border-top: 1px solid #94a3b8;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.welcome-dont-show-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.welcome-dont-show-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: #2563eb;
}
.welcome-ok-btn {
  min-width: 80px;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 20px;
  background: linear-gradient(to bottom, #60a5fa 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 2px 4px rgba(37,99,235,0.3) !important;
  cursor: pointer;
}
.welcome-ok-btn:hover {
  background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%) !important;
}





