html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --brightness: 1;
  --glass-bg-light: rgba(255, 255, 255, 0.06);
  --glass-bg-dark: rgba(15, 15, 15, 0.20);
  --glass-border: 1px solid rgba(255, 255, 255, 0.15);
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.20), 0 12px 40px 0 rgba(0, 0, 0, 0.30);
  --glass-shadow-active: inset 0 1px 1.5px rgba(255, 255, 255, 0.40), 0 0 24px rgba(10, 132, 255, 0.18), 0 20px 50px 0 rgba(0, 0, 0, 0.45);
  --glass-blur: blur(25px) saturate(170%);
  --accent-blue: #0a84ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background: #08111e url("Images/Wallpaper.png") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(var(--brightness));
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   1. Menu Bar: Frosted Glass Panel
   ========================================================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 0 12px;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.18);
  z-index: 100000;
}

.left-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.center-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.center-menu:hover {
  background: rgba(255, 255, 255, 0.16);
}

.center-menu:active {
  transform: translateX(-50%) scale(0.96);
  background: rgba(255, 255, 255, 0.24);
}

.topbar-date-clock {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.right-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-dropdown {
  display: none;
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) scale(0.95) translateY(-6px);
  width: 290px;
  background: rgba(15, 15, 15, 0.28);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 18px;
  padding: 16px 14px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-direction: column;
  gap: 10px;
  transform-origin: top center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.calendar-dropdown.is-open {
  display: flex !important;
  opacity: 1;
  transform: translateX(-50%) scale(1) translateY(0);
}

.cal-dropdown-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}

.cal-live-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cal-time-main {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.cal-date-sub {
  font-size: 11px;
  font-weight: 500;
  color: #a1a1a6;
}

.cal-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.cal-month-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.cal-nav-arrows {
  display: flex;
  gap: 4px;
}

.cal-arrow-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cal-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.cal-arrow-btn:active {
  transform: scale(0.9);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  padding-bottom: 2px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.cal-day-cell {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #e5e5ea;
  border-radius: 7px;
  transition: background 0.15s ease;
}

.cal-day-cell:not(.empty):hover {
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.cal-day-cell.today {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
}

.cal-day-cell.other-month {
  opacity: 0.3;
}

.topbar-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-icon-wrap:hover {
  background: rgba(255, 255, 255, 0.14);
}

.topbar-icon-wrap:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.22);
}

.topbar-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  display: block;
}

.app-name {
  font-weight: 700;
  letter-spacing: -0.2px;
  padding-right: 4px;
}

.menu-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.menu-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 5px;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.menu-item:hover, .menu-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.menu-item:active, .menu-btn:active {
  background: rgba(255, 255, 255, 0.28);
}

@keyframes menuPopIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 32px;
  left: 10px;
  background: rgba(15, 15, 15, 0.20);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow);
  min-width: 190px;
  z-index: 100001;
  transform-origin: top left;
  animation: menuPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item {
  padding: 7px 12px;
  font-size: 13px;
  color: #f5f5f7;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

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

.control-center {
  display: none;
  position: absolute;
  top: 32px;
  right: 12px;
  width: 280px;
  background: rgba(15, 15, 15, 0.20);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow);
  z-index: 100001;
  flex-direction: column;
  gap: 12px;
  transform-origin: top right;
  animation: menuPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-row {
  display: flex;
  gap: 10px;
}

.cc-tile {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cc-tile:hover {
  background: rgba(255, 255, 255, 0.13);
}

.cc-tile:active {
  transform: scale(0.97);
}

.cc-tile.active {
  background: var(--accent-blue);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cc-tile small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.cc-slider-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-slider-box label {
  font-size: 11px;
  font-weight: 600;
  color: #e5e5ea;
  letter-spacing: 0.2px;
}

.cc-slider-box input[type="range"] {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* ==========================================================================
   2. Desktop Workspace & 60 FPS GPU Window Architecture
   ========================================================================== */
.desktop {
  position: fixed;
  top: 28px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 28px);
  overflow: hidden;
}

.window {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow);
  flex-direction: column;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease, 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  color: #f5f5f7;
}

.window.active-window {
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--glass-shadow-active);
}

.window.is-open {
  display: flex !important;
  opacity: 1;
}

.window.is-closing {
  display: flex !important;
  opacity: 0 !important;
  pointer-events: none;
}

.window.is-animating-state {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease, 
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-radius 0.25s ease !important;
}

.window.maximized {
  border-radius: 0 !important;
}

.window-header {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: grab;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.traffic-lights {
  display: flex;
  gap: 8px;
  z-index: 2;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.dot::after {
  content: '';
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.traffic-lights:hover .dot::after {
  opacity: 0.85;
}

.close { background: #ff5f56; border: 0.5px solid #e0443e; }
.close::after { content: '×'; transform: translateY(-0.5px); }

.minimize { background: #ffbd2e; border: 0.5px solid #dea123; }
.minimize::after { content: '–'; font-size: 8px; transform: translateY(-1px); }

.maximize { background: #27c93f; border: 0.5px solid #1aab29; }
.maximize::after { content: '+'; font-size: 9px; transform: translateY(-0.5px); }

.dot:active {
  filter: brightness(0.85);
  transform: scale(0.92);
}

.window:not(.active-window) .dot {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.window:not(.active-window) .traffic-lights:hover .dot.close { background: #ff5f56; border-color: #e0443e; }
.window:not(.active-window) .traffic-lights:hover .dot.minimize { background: #ffbd2e; border-color: #dea123; }
.window:not(.active-window) .traffic-lights:hover .dot.maximize { background: #27c93f; border-color: #1aab29; }

.window-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.window:not(.active-window) .window-title {
  opacity: 0.6;
}

.window-body {
  padding: 14px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Window Specifics */
.about-body {
  text-align: center;
  padding: 28px 20px;
}

.about-app-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

.about-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.about-body .version {
  font-size: 13px;
  color: #a1a1a6;
  margin-top: 4px;
}

.about-body .creator {
  font-size: 12px;
  color: #86868b;
  margin-top: 14px;
}

.finder-body {
  display: flex;
  flex-direction: row;
  padding: 0;
  height: 100%;
}

.finder-sidebar {
  width: 140px;
  background: rgba(15, 15, 15, 0.20);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 10px;
  font-size: 12px;
}

.sidebar-title {
  color: #8e8e93;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-item {
  padding: 6px 10px;
  border-radius: 6px;
  color: #e5e5ea;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
  background: rgba(10, 132, 255, 0.28);
  color: #64d2ff;
  border: 1px solid rgba(10, 132, 255, 0.35);
  font-weight: 600;
}

.finder-files {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
  background: rgba(0, 0, 0, 0.10);
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 10px;
  width: 82px;
  border: 1px solid transparent;
  transition: background 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.16s ease;
  will-change: transform;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.file-item:active {
  background: rgba(10, 132, 255, 0.3);
  transform: scale(0.96);
}

.file-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.file-item span {
  font-size: 11px;
  color: #f5f5f7;
  text-align: center;
  font-weight: 500;
}

.notes-textarea {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #f5f5f7;
  resize: none;
  user-select: text;
  -webkit-user-select: text;
  padding: 4px;
}

.calc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

#calc-display {
  height: 44px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 24px;
  text-align: right;
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.calc-buttons button {
  height: 38px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.12s ease;
}

.calc-buttons button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.calc-buttons button:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.08);
}

.calc-buttons button.orange {
  background: rgba(255, 159, 10, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.calc-buttons button.orange:hover {
  background: rgba(255, 170, 35, 0.95);
}

.calc-buttons button.orange:active {
  background: rgba(224, 139, 4, 0.95);
}

.zero-btn {
  grid-column: span 2;
}

.weather-body {
  padding: 16px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.16) 0%, rgba(0, 0, 0, 0.15) 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.weather-current-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weather-city-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-city {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.weather-refresh-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.15s ease;
}

.weather-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.weather-refresh-btn:active {
  transform: rotate(180deg) scale(0.92);
}

.weather-primary-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
}

.weather-display-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

.weather-temp-wrap {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.weather-desc {
  font-size: 12px;
  font-weight: 500;
  color: #c7c7cc;
  margin-top: 4px;
}

.weather-meta-row {
  display: flex;
  gap: 8px;
}

.weather-meta-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-meta-label {
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.weather-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.weather-hourly-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-hourly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: 0.5px;
}

.weather-hourly-status {
  font-size: 10px;
  color: #30d158;
  font-weight: 500;
}

.weather-hourly-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.weather-hourly-track::-webkit-scrollbar {
  height: 4px;
}

.weather-hourly-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.weather-hour-card {
  min-width: 58px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.weather-hour-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.weather-hour-card.is-now {
  background: rgba(10, 132, 255, 0.28);
  border-color: rgba(10, 132, 255, 0.45);
}

.weather-hour-card .hour-time {
  font-size: 11px;
  font-weight: 500;
  color: #e5e5ea;
}

.weather-hour-card .hour-icon {
  font-size: 18px;
  line-height: 1;
}

.weather-hour-card .hour-temp {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #f5f5f7;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-btn {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.settings-btn:active {
  transform: scale(0.94);
}

/* ==========================================================================
   3. Launchpad Overlay
   ========================================================================== */
#launchpad-overlay {
  display: none;
  position: fixed;
  top: 28px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 28px);
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 99990;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

#launchpad-overlay.is-open {
  display: flex !important;
  opacity: 1;
}

#launchpad-overlay.is-closing {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 130px);
  gap: 36px;
  text-align: center;
  transform: scale(0.92);
  opacity: 0.85;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

#launchpad-overlay.is-open .launchpad-grid {
  transform: scale(1);
  opacity: 1;
}

#launchpad-overlay.is-closing .launchpad-grid {
  transform: scale(0.92);
  opacity: 0;
}

.launchpad-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  will-change: transform;
}

.launchpad-app:hover {
  transform: scale(1.08);
}

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

.launchpad-app img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.24s ease;
}

.launchpad-app:hover img {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.launchpad-app span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   4. macOS Taskbar / Dock
   ========================================================================== */
.dock-container {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 99999;
}

.dock {
  pointer-events: auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  padding: 6px 14px 8px 14px;
  height: 64px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow);
  transform-origin: bottom center;
}

.dock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform-origin: bottom center;
  position: relative;
}

/* macOS Frosted Glass Dock Tooltip */
.dock-wrapper::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 74px;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.1px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.dock-wrapper::after {
  content: '';
  position: absolute;
  bottom: 69px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(15, 15, 15, 0.75);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.dock-wrapper:hover::before,
.dock-wrapper:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dock-wrapper.bouncing::before,
.dock-wrapper.bouncing::after {
  opacity: 0 !important;
}

@keyframes macosBounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-18px); }
  45%  { transform: translateY(0); }
  65%  { transform: translateY(-8px); }
  82%  { transform: translateY(0); }
  92%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.dock-wrapper.bouncing .dock-item {
  animation: macosBounce 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.dock-item {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transform-origin: bottom center;
  transition: transform 0.2s cubic-bezier(0.2, 1, 0.2, 1);
  will-change: transform;
}

.dock-item:hover {
  transform: scale(1.1);
}

.dock-item:active {
  transform: scale(0.92) !important;
}

.dock-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.dock-dot {
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  margin-top: 3px;
  opacity: 0;
  box-shadow: 0 0 6px #ffffff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dock-dot.active {
  opacity: 1;
}

/* ==========================================================================
   5. Lock Screen Overlay
   ========================================================================== */
#lock-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 17, 30, 0.45);
  backdrop-filter: blur(35px) brightness(0.9);
  -webkit-backdrop-filter: blur(35px) brightness(0.9);
  z-index: 1000000;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

#lock-screen.is-open {
  display: flex !important;
  transform: translateY(0);
  opacity: 1;
}

#lock-screen.is-unlocking {
  display: flex !important;
  transform: translateY(-100%);
  opacity: 0.95;
  pointer-events: none;
}

.lock-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 72vh;
  text-align: center;
  color: #ffffff;
}

#lock-time {
  font-size: 82px;
  font-weight: 300;
  letter-spacing: -2px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

#lock-date {
  font-size: 19px;
  font-weight: 500;
  margin-top: 6px;
  opacity: 0.9;
}

.lock-user-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lock-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-username {
  font-size: 18px;
  font-weight: 600;
}

.lock-form {
  position: relative;
  display: flex;
  align-items: center;
  will-change: transform;
}

@keyframes lockShake {
  0% { transform: translateX(0); }
  18% { transform: translateX(-14px); }
  36% { transform: translateX(12px); }
  54% { transform: translateX(-8px); }
  72% { transform: translateX(6px); }
  88% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.lock-form.shake {
  animation: lockShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

#lock-pass {
  width: 210px;
  height: 36px;
  padding: 0 34px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  outline: none;
  text-align: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lock-form.shake #lock-pass {
  border-color: rgba(255, 69, 58, 0.8);
  box-shadow: 0 0 14px rgba(255, 69, 58, 0.45);
}

.lock-submit-btn {
  position: absolute;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.lock-submit-btn:hover {
  background: #ffffff;
  transform: scale(1.06);
}

.lock-submit-btn:active {
  transform: scale(0.92);
}

.lock-hint {
  font-size: 11px;
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lock-hint.error {
  color: #ff6961;
  opacity: 1;
}

/* ==========================================================================
   6. Setup Assistant Window Overlay
   ========================================================================== */
#setup-modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(35px) brightness(0.85);
  -webkit-backdrop-filter: blur(35px) brightness(0.85);
  z-index: 1000001;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

#setup-modal-container.is-open {
  display: flex !important;
  opacity: 1;
}

#setup-modal-container.is-closing {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
}

.setup-window {
  width: 700px;
  height: 460px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow);
  display: flex;
  overflow: hidden;
  will-change: transform, opacity;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#setup-modal-container.is-closing .setup-window {
  transform: scale(0.9);
  opacity: 0;
}

.setup-sidebar {
  width: 210px;
  background: rgba(15, 15, 15, 0.20);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.setup-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.menu-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.setup-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  font-size: 13px;
  color: #8e8e93;
  padding: 7px 10px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item.active {
  background: rgba(10, 132, 255, 0.25);
  color: #64d2ff;
  border: 1px solid rgba(10, 132, 255, 0.3);
  font-weight: 600;
  transform: translateX(2px);
}

.setup-main {
  flex: 1;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@keyframes stepFadeIn {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.setup-step {
  display: none;
  flex-direction: column;
  height: 100%;
}

.setup-step.active {
  display: flex;
  animation: stepFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.setup-banner-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 10px;
}

.setup-banner-img.avatar-round {
  border-radius: 50%;
}

.setup-step h2 {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
}

.setup-subtitle {
  font-size: 13px;
  color: #a1a1a6;
  margin-top: 4px;
  margin-bottom: 18px;
}

.setup-list-box {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.15);
  max-height: 180px;
}

.setup-list-row {
  padding: 9px 14px;
  font-size: 13px;
  color: #f5f5f7;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}

.setup-list-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.setup-list-row.selected {
  background: var(--accent-blue);
  color: #ffffff;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #c7c7cc;
}

.input-group input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}

.setup-progress-container {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 26px;
}

.setup-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0a84ff, #30d158);
  border-radius: 4px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

.setup-status {
  font-size: 12px;
  color: #8e8e93;
  margin-top: 10px;
  text-align: center;
  transition: color 0.2s ease;
}

.setup-nav-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setup-btn {
  padding: 7px 18px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.setup-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.setup-btn:active {
  transform: scale(0.96);
}

.setup-btn.primary {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.setup-btn.primary:hover {
  background: #0071e3;
}