* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

:root {
  --aqua-blue: #3B82F6;
  --aqua-highlight: #60A5FA;
  --menubar-bg: rgba(30, 30, 30, 0.72);
  --window-bg: #ECECEC;
  --window-toolbar: #D4D4D8;
  --window-border: #999;
  --title-bar-active: linear-gradient(180deg, #E8E8EC 0%, #D0D0D6 50%, #C4C4CA 100%);
  --title-bar-inactive: linear-gradient(180deg, #F0F0F0 0%, #E0E0E0 100%);
  --dock-bg: rgba(255, 255, 255, 0.2);
  --dock-border: rgba(255, 255, 255, 0.45);
  --btn-close: #FF5F57;
  --btn-minimize: #FEBC2E;
  --btn-maximize: #28C840;
  --spotlight-bg: rgba(0, 0, 0, 0.75);
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Lucida Grande', sans-serif;
  font-size: 13px;
  color: #222;
}

/* ========== BOOT SCREEN ========== */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#boot-apple-logo {
  margin-bottom: 40px;
}

#boot-progress-container {
  width: 200px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

#boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6DB3F2, #A8D8FF);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ========== DESKTOP ========== */
#desktop {
  position: fixed;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"><defs><linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop offset="0%25" stop-color="%230a0e27"/><stop offset="25%25" stop-color="%231a1040"/><stop offset="50%25" stop-color="%230d2847"/><stop offset="75%25" stop-color="%23063b3b"/><stop offset="100%25" stop-color="%230a0e27"/></linearGradient><radialGradient id="aurora1" cx="30%25" cy="40%25" r="40%25"><stop offset="0%25" stop-color="%2300d2ff" stop-opacity="0.3"/><stop offset="100%25" stop-color="transparent"/></radialGradient><radialGradient id="aurora2" cx="70%25" cy="60%25" r="35%25"><stop offset="0%25" stop-color="%237b2ff7" stop-opacity="0.25"/><stop offset="100%25" stop-color="transparent"/></radialGradient></defs><rect fill="url(%23bg)" width="1920" height="1080"/><rect fill="url(%23aurora1)" width="1920" height="1080"/><rect fill="url(%23aurora2)" width="1920" height="1080"/></svg>') center/cover;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* ========== MENU BAR ========== */
#menu-bar {
  height: 25px;
  background: var(--menubar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 10000;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

#menu-bar-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.menu-item {
  padding: 0 10px;
  height: 25px;
  display: flex;
  align-items: center;
  cursor: default;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
}

.menu-item:first-child {
  padding: 0 8px;
}

.menu-bold {
  font-weight: 600;
}

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

#menu-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-bar-icon {
  padding: 0 6px;
  height: 25px;
  display: flex;
  align-items: center;
  cursor: default;
  border-radius: 4px;
  font-size: 12px;
  color: white;
}

.menu-bar-icon:hover {
  background: rgba(255,255,255,0.15);
}

#menu-clock {
  font-size: 13px;
  font-weight: 400;
  padding: 0 8px;
}

/* ========== DESKTOP AREA ========== */
#desktop-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#desktop-widget {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

#widget-time {
  font-size: 96px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -2px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

#widget-date {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Y2K Glitch Animation */
@keyframes y2kGlitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  10% { transform: translate(-5px, 3px); filter: hue-rotate(90deg) saturate(2); }
  20% { transform: translate(5px, -3px); filter: hue-rotate(180deg); }
  30% { transform: translate(-3px, 5px); filter: hue-rotate(270deg) saturate(3); }
  40% { transform: translate(3px, -5px); filter: hue-rotate(360deg); }
  50% { transform: translate(0); filter: hue-rotate(0deg) brightness(1.5); }
  60% { transform: translate(5px, 3px); filter: hue-rotate(90deg); }
  70% { transform: translate(-5px, -3px); filter: hue-rotate(180deg) saturate(2); }
  80% { transform: translate(3px, 5px); filter: hue-rotate(270deg); }
  90% { transform: translate(-3px, -5px); filter: hue-rotate(360deg); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

#windows-container {
  position: absolute;
  inset: 0;
}

/* ========== WINDOW ========== */
.window {
  position: absolute;
  background: var(--window-bg);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 300px;
  min-height: 200px;
  transition: box-shadow 0.2s ease;
}

.window.active {
  box-shadow: 0 16px 50px rgba(0,0,0,0.45), 0 0 0 0.5px rgba(0,0,0,0.25);
}

.window.maximized {
  border-radius: 0 !important;
  transition: all 0.25s ease;
}

.window.minimizing {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(0.1);
  opacity: 0;
}

.window-titlebar {
  height: 32px;
  background: var(--title-bar-active);
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: default;
  flex-shrink: 0;
  position: relative;
  border-bottom: 1px solid #bbb;
}

.window.inactive .window-titlebar {
  background: var(--title-bar-inactive);
}

.window-titlebar.pinstripe {
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 1px,
    rgba(0,0,0,0.03) 1px,
    rgba(0,0,0,0.03) 2px
  );
  background-color: #D6D6DA;
}

.window.inactive .window-titlebar.pinstripe {
  background-color: #E8E8E8;
}

.window-controls {
  display: flex;
  gap: 6px;
  z-index: 2;
}

.window-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.15);
  cursor: pointer;
  position: relative;
  transition: filter 0.15s ease;
}

.window-btn.close {
  background: radial-gradient(circle at 30% 30%, #FF7A75, #FF5F57);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1);
}

.window-btn.minimize {
  background: radial-gradient(circle at 30% 30%, #FFD44E, #FEBC2E);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1);
}

.window-btn.maximize {
  background: radial-gradient(circle at 30% 30%, #5CD86A, #28C840);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1);
}

.window-btn:hover {
  filter: brightness(1.1);
}

.window.inactive .window-btn {
  background: #CCC;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08);
}

.window-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  pointer-events: none;
}

.window.inactive .window-title {
  color: #999;
}

.window.discord-window .window-titlebar {
  background: #1a1025 !important;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.window.discord-window .window-title {
  color: rgba(255,255,255,0.7) !important;
}

.window.discord-window.inactive .window-title {
  color: rgba(255,255,255,0.3) !important;
}

.window-body {
  flex: 1;
  overflow: auto;
  position: relative;
}

.window-resize {
  position: absolute;
  z-index: 5;
}
.window-resize.n { top: -4px; left: 8px; right: 8px; height: 8px; cursor: n-resize; }
.window-resize.s { bottom: -4px; left: 8px; right: 8px; height: 8px; cursor: s-resize; }
.window-resize.e { right: -4px; top: 8px; bottom: 8px; width: 8px; cursor: e-resize; }
.window-resize.w { left: -4px; top: 8px; bottom: 8px; width: 8px; cursor: w-resize; }
.window-resize.ne { top: -4px; right: -4px; width: 12px; height: 12px; cursor: ne-resize; }
.window-resize.nw { top: -4px; left: -4px; width: 12px; height: 12px; cursor: nw-resize; }
.window-resize.se { bottom: -4px; right: -4px; width: 12px; height: 12px; cursor: se-resize; }
.window-resize.sw { bottom: -4px; left: -4px; width: 12px; height: 12px; cursor: sw-resize; }

/* ========== DOCK ========== */
#dock {
  position: fixed;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding-bottom: 4px;
}

#dock-container {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 3px 8px;
  background: var(--dock-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--dock-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.dock-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.dock-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
}

.dock-icon-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 10px 10px 50% 50%;
  pointer-events: none;
}

.dock-label {
  position: absolute;
  top: -30px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  backdrop-filter: blur(10px);
}

.dock-item:hover .dock-label {
  opacity: 1;
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.dock-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 0 4px;
  align-self: center;
}

/* Dock icon colors */
.finder-icon { background: linear-gradient(180deg, #5AC8FA, #2196F3); }
.safari-icon { background: linear-gradient(180deg, #42A5F5, #1565C0); }
.discord-icon { background: linear-gradient(180deg, #5865F2, #4752C4); }
.youtube-icon { background: linear-gradient(180deg, #FF0000, #CC0000); }
.chatgpt-icon { background: linear-gradient(180deg, #10A37F, #0D8C6C); }
.mail-icon { background: linear-gradient(180deg, #42A5F5, #1E88E5); }
.messages-icon { background: linear-gradient(180deg, #66BB6A, #2E7D32); }
.terminal-icon { background: linear-gradient(180deg, #222, #111); }
.calculator-icon { background: linear-gradient(180deg, #F4511E, #BF360C); }
.gallery-icon { background: linear-gradient(180deg, #AB47BC, #7B1FA2); }
.notes-icon { background: linear-gradient(180deg, #FFF176, #F9A825); color: #333; }
.photos-icon { background: linear-gradient(180deg, #FF7043, #D84315); }
.launchpad-icon { background: linear-gradient(180deg, #546E7A, #263238); }
.prefs-icon { background: linear-gradient(180deg, #78909C, #37474F); }

/* ========== SPOTLIGHT ========== */
#spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  justify-content: center;
  padding-top: 22vh;
}

#spotlight-box {
  width: 540px;
  background: rgba(30, 30, 30, 0.88);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  max-height: 400px;
}

#spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 18px;
}

#spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  outline: none;
}

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

#spotlight-results {
  max-height: 340px;
  overflow-y: auto;
  color: white;
}

.spotlight-result {
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.spotlight-result:hover, .spotlight-result.selected {
  background: rgba(255,255,255,0.1);
}

.spotlight-result i {
  width: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.spotlight-category {
  padding: 6px 16px 2px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========== LAUNCHPAD ========== */
#launchpad {
  position: fixed;
  inset: 0;
  z-index: 40000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#launchpad.show {
  opacity: 1;
}

#launchpad-grid {
  display: grid;
  grid-template-columns: repeat(7, 100px);
  gap: 24px 20px;
  padding: 40px;
}

.launchpad-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.launchpad-icon-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.launchpad-item span {
  color: white;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  text-align: center;
}

/* ========== CONTEXT MENU ========== */
#context-menu {
  position: fixed;
  background: rgba(36, 36, 36, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  padding: 4px 0;
  z-index: 60000;
  min-width: 200px;
  color: white;
  font-size: 13px;
}

.ctx-item {
  padding: 4px 16px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctx-item:hover {
  background: #3478F6;
  border-radius: 4px;
  margin: 0 4px;
  padding: 4px 12px;
}

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

.ctx-shortcut {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  margin-left: 20px;
}

/* ========== CONTROL CENTER ========== */
#control-center {
  position: fixed;
  top: 28px;
  right: 8px;
  width: 300px;
  background: rgba(30, 30, 30, 0.88);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  padding: 14px;
  z-index: 45000;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-tile {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

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

.cc-tile i {
  font-size: 16px;
  color: white;
}

.cc-tile span {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.cc-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s ease;
}

.cc-toggle.active {
  background: #34C759;
}

.cc-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
}

.cc-toggle.active::after {
  transform: translateX(12px);
}

.cc-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
}

.cc-slider-row i {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.cc-slider-row input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}

.cc-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* ========== APP: FINDER ========== */
.finder-sidebar {
  width: 180px;
  background: rgba(0,0,0,0.04);
  border-right: 1px solid #ccc;
  padding: 8px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.finder-sidebar-section {
  padding: 4px 12px 2px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.finder-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #333;
  border-radius: 4px;
  margin: 1px 6px;
}

.finder-sidebar-item:hover {
  background: rgba(0,0,0,0.06);
}

.finder-sidebar-item.active {
  background: #3478F6;
  color: white;
}

.finder-sidebar-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.finder-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}

.finder-item {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.finder-item:hover {
  background: rgba(0,0,0,0.06);
}

.finder-item i {
  font-size: 36px;
}

.finder-item span {
  font-size: 11px;
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}

.finder-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #E8E8EC;
  border-bottom: 1px solid #ccc;
}

.finder-toolbar-btn {
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #555;
}

.finder-toolbar-btn:hover {
  background: rgba(0,0,0,0.08);
}

.finder-path {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ========== APP: SAFARI ========== */
.safari-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #E8E8EC;
  border-bottom: 1px solid #ccc;
}

.safari-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
}

.safari-nav-btn:hover {
  background: rgba(0,0,0,0.08);
}

.safari-nav-btn:disabled {
  color: #bbb;
  cursor: default;
}

.safari-url-bar {
  flex: 1;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: white;
  padding: 0 10px;
  font-size: 12px;
  color: #333;
  outline: none;
}

.safari-url-bar:focus {
  border-color: #3478F6;
  box-shadow: 0 0 0 2px rgba(52,120,246,0.2);
}

.safari-content {
  flex: 1;
  background: white;
  overflow: auto;
}

.safari-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.safari-homepage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(180deg, #f5f5f7, #e8e8ed);
  gap: 16px;
  padding: 40px;
}

.safari-homepage h2 {
  font-size: 22px;
  font-weight: 300;
  color: #555;
}

.safari-favorites {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.safari-fav-item {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.safari-fav-item:hover {
  background: rgba(0,0,0,0.05);
}

.safari-fav-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.safari-fav-item span {
  font-size: 10px;
  color: #555;
}

/* ========== APP: TERMINAL ========== */
.terminal-body {
  background: rgba(0, 0, 0, 0.85);
  color: #00FF00;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  padding: 12px;
  height: 100%;
  overflow-y: auto;
  line-height: 1.4;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

.terminal-prompt {
  color: #3478F6;
  font-weight: 600;
  margin-right: 6px;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00FF00;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  caret-color: #00FF00;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #00FF00;
  animation: blink 1s step-end infinite;
}

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

/* ========== APP: CALCULATOR ========== */
.calculator-display {
  background: #222;
  color: white;
  text-align: right;
  padding: 16px 20px;
  font-size: 36px;
  font-weight: 300;
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #555;
  flex: 1;
}

.calc-btn {
  background: #333;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s ease;
}

.calc-btn:hover {
  background: #444;
}

.calc-btn:active {
  background: #555;
}

.calc-btn.fn {
  background: #666;
  color: white;
}

.calc-btn.fn:hover {
  background: #777;
}

.calc-btn.op {
  background: #FF9500;
  color: white;
}

.calc-btn.op:hover {
  background: #FFA520;
}

.calc-btn.op.active {
  background: white;
  color: #FF9500;
}

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

/* ========== APP: NOTES ========== */
.notes-sidebar {
  width: 200px;
  background: #F5F0E0;
  border-right: 1px solid #D4C8A8;
  overflow-y: auto;
  flex-shrink: 0;
}

.notes-sidebar-header {
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  border-bottom: 1px solid #D4C8A8;
}

.notes-list-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #E8DFC8;
}

.notes-list-item:hover {
  background: #EDE8D8;
}

.notes-list-item.active {
  background: #D4C8A8;
}

.notes-list-item .note-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.notes-list-item .note-preview {
  font-size: 11px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-editor {
  flex: 1;
  background: #FFFDF5;
  padding: 16px;
  overflow-y: auto;
}

.notes-editor textarea {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  resize: none;
  line-height: 1.6;
}

/* ========== APP: SYSTEM PREFERENCES ========== */
.prefs-sidebar {
  width: 220px;
  background: #F0F0F0;
  border-right: 1px solid #CCC;
  overflow-y: auto;
  padding: 8px 0;
  flex-shrink: 0;
}

.prefs-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  border-radius: 6px;
  margin: 1px 6px;
}

.prefs-sidebar-item:hover {
  background: rgba(0,0,0,0.06);
}

.prefs-sidebar-item.active {
  background: #3478F6;
  color: white;
}

.prefs-sidebar-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.prefs-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.prefs-content h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.prefs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #E8E8E8;
}

.prefs-row label {
  font-size: 13px;
  color: #333;
}

/* ========== APP: MAIL ========== */
.mail-sidebar {
  width: 220px;
  background: #F0F0F0;
  border-right: 1px solid #CCC;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.mail-sidebar-folders {
  padding: 8px 0;
}

.mail-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  border-radius: 6px;
  margin: 1px 6px;
}

.mail-folder:hover {
  background: rgba(0,0,0,0.06);
}

.mail-folder.active {
  background: #3478F6;
  color: white;
}

.mail-folder .badge {
  margin-left: auto;
  background: #FF3B30;
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.mail-list {
  flex: 1;
  overflow-y: auto;
}

.mail-list-item {
  padding: 10px 14px;
  border-bottom: 1px solid #E8E8E8;
  cursor: pointer;
}

.mail-list-item:hover {
  background: #F5F5F5;
}

.mail-list-item.active {
  background: #E8F0FE;
}

.mail-sender {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.mail-subject {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}

.mail-preview {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.mail-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.mail-content h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
}

.mail-content .mail-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}

.mail-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* ========== APP: MESSAGES ========== */
.messages-sidebar {
  width: 220px;
  background: #F0F0F0;
  border-right: 1px solid #CCC;
  flex-shrink: 0;
  overflow-y: auto;
}

.messages-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #E8E8E8;
}

.messages-contact:hover {
  background: #F5F5F5;
}

.messages-contact.active {
  background: #E8F0FE;
}

.messages-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.messages-contact-info {
  flex: 1;
  min-width: 0;
}

.messages-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.messages-contact-msg {
  font-size: 11px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.messages-chat-header {
  padding: 10px 16px;
  border-bottom: 1px solid #E8E8E8;
  font-weight: 600;
  font-size: 14px;
}

.messages-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-bubble {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.message-bubble.received {
  background: #E8E8E8;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-bubble.sent {
  background: #3478F6;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.messages-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #E8E8E8;
}

.messages-chat-input input {
  flex: 1;
  border: 1px solid #CCC;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}

.messages-chat-input input:focus {
  border-color: #3478F6;
}

.messages-chat-input button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #3478F6;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== APP: YOUTUBE (TUNE IN, HOOK UP) ========== */
.yt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: #F5F5F5;
  border-bottom: 1px solid #CCC;
  flex-shrink: 0;
}

.yt-logo-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.yt-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.yt-logo-you {
  color: #333;
}

.yt-logo-tube {
  background: #CC0000;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 18px;
}

.yt-tagline {
  font-size: 11px;
  color: #888;
  font-style: italic;
}

.yt-nav {
  display: flex;
  gap: 2px;
}

.yt-nav-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  transition: background 0.1s;
}

.yt-nav-btn:hover {
  background: rgba(0,0,0,0.06);
}

.yt-nav-btn.active {
  background: #E8E8E8;
  border-color: #CCC;
  font-weight: 600;
}

.yt-search-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-search-input {
  width: 180px;
  height: 26px;
  border: 1px solid #BBB;
  border-radius: 3px;
  padding: 0 8px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.yt-search-input:focus {
  border-color: #3478F6;
}

.yt-search-btn {
  padding: 4px 10px;
  background: #F0F0F0;
  border: 1px solid #BBB;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.yt-search-btn:hover {
  background: #E0E0E0;
}

/* Home Tab */
.yt-home {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.yt-home-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.yt-home-sidebar {
  width: 200px;
  background: #F9F9F9;
  border-left: 1px solid #E0E0E0;
  padding: 12px;
  overflow-y: auto;
  flex-shrink: 0;
  font-size: 12px;
}

.yt-sidebar-section {
  margin-bottom: 16px;
}

.yt-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #DDD;
}

.yt-sidebar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  cursor: pointer;
  color: #0033CC;
  border-radius: 3px;
  margin: 1px 0;
}

.yt-sidebar-link:hover {
  background: #E8F0FE;
}

.yt-sidebar-link i {
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: #888;
}

.yt-sidebar-badge {
  margin-left: auto;
  background: #CC0000;
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 600;
}

.yt-online-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  border-radius: 3px;
}

.yt-online-user:hover {
  background: #E8F0FE;
}

.yt-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

.yt-online-time {
  margin-left: auto;
  color: #999;
  font-size: 10px;
}

/* Login / Preference Box */
.yt-login-box {
  background: #FFFDE7;
  border: 1px solid #E0D8A0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.yt-login-box h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.yt-login-box p {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.yt-pref-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #333;
}

.yt-pref-select {
  padding: 4px 8px;
  border: 1px solid #BBB;
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  background: white;
}

.yt-pref-btn {
  padding: 5px 16px;
  background: #CC0000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-left: 8px;
}

.yt-pref-btn:hover {
  background: #AA0000;
}

/* Section Headers */
.yt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.yt-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.yt-section-more {
  font-size: 11px;
  color: #0033CC;
  cursor: pointer;
}

.yt-section-more:hover {
  text-decoration: underline;
}

/* Video Profile Cards Grid */
.yt-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.yt-video-card {
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
}

.yt-video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.yt-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}

.yt-card-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 500;
}

.yt-card-online {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  border: 1.5px solid white;
}

.yt-card-info {
  padding: 8px 10px;
}

.yt-card-username {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-card-age {
  font-size: 10px;
  color: #888;
  font-weight: 400;
}

.yt-card-title {
  font-size: 11px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.yt-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #999;
}

.yt-card-smiles {
  color: #CC0000;
}

/* Smile Button */
.yt-smile-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  border-radius: 10px;
  font-size: 10px;
  color: #CC0000;
  cursor: pointer;
  transition: background 0.1s;
}

.yt-smile-btn:hover {
  background: #FFE0E0;
}

.yt-smile-btn.smiled {
  background: #CC0000;
  color: white;
  border-color: #AA0000;
}

/* Video Player View */
.yt-player-view {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.yt-player-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.yt-player-sidebar {
  width: 240px;
  background: #F9F9F9;
  border-left: 1px solid #E0E0E0;
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.yt-player-container {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.yt-player-video {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 48px;
  position: relative;
}

.yt-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #222;
}

.yt-player-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.yt-player-play:hover {
  background: rgba(255,255,255,0.25);
}

.yt-player-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.yt-player-progress-fill {
  height: 100%;
  background: #CC0000;
  border-radius: 2px;
  width: 35%;
  transition: width 0.3s;
}

.yt-player-time {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-family: monospace;
}

.yt-player-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.yt-player-views {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

/* Profile Sidebar in Player */
.yt-profile-card {
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}

.yt-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.yt-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid #E0E0E0;
  flex-shrink: 0;
}

.yt-profile-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.yt-profile-location {
  font-size: 11px;
  color: #888;
}

.yt-profile-bio {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 8px;
  background: #F9F9F9;
  border-radius: 4px;
  border-left: 3px solid #CC0000;
}

.yt-profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.yt-interest-tag {
  padding: 2px 8px;
  background: #F0F0F0;
  border-radius: 10px;
  font-size: 10px;
  color: #555;
  border: 1px solid #DDD;
}

.yt-profile-joined {
  font-size: 10px;
  color: #999;
  margin-bottom: 10px;
}

.yt-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  font-family: inherit;
  transition: background 0.1s;
}

.yt-action-smile {
  background: #CC0000;
  color: white;
  border-color: #AA0000;
}

.yt-action-smile:hover {
  background: #AA0000;
}

.yt-action-message {
  background: white;
  color: #0033CC;
  border-color: #BBB;
}

.yt-action-message:hover {
  background: #F0F5FF;
}

.yt-action-fav {
  background: white;
  color: #FF9500;
  border-color: #BBB;
}

.yt-action-fav:hover {
  background: #FFF8F0;
}

/* Comments / Flirts */
.yt-comments-section {
  margin-top: 16px;
}

.yt-comments-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.yt-comment {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #F0F0F0;
}

.yt-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: white;
}

.yt-comment-body {
  flex: 1;
}

.yt-comment-user {
  font-size: 12px;
  font-weight: 600;
  color: #0033CC;
  cursor: pointer;
}

.yt-comment-text {
  font-size: 12px;
  color: #333;
  margin-top: 2px;
}

.yt-comment-time {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.yt-comment-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.yt-comment-input {
  flex: 1;
  height: 30px;
  border: 1px solid #CCC;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.yt-comment-input:focus {
  border-color: #3478F6;
}

.yt-comment-post {
  padding: 4px 12px;
  background: #F0F0F0;
  border: 1px solid #BBB;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.yt-comment-post:hover {
  background: #E0E0E0;
}

/* Upload Tab */
.yt-upload-area {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.yt-upload-area h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.yt-upload-area p {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.yt-upload-dropzone {
  border: 2px dashed #CCC;
  border-radius: 8px;
  padding: 40px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 20px;
}

.yt-upload-dropzone:hover {
  border-color: #CC0000;
  background: #FFF5F5;
}

.yt-upload-dropzone i {
  font-size: 40px;
  color: #CCC;
  margin-bottom: 12px;
}

.yt-upload-dropzone h4 {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.yt-upload-dropzone span {
  font-size: 11px;
  color: #999;
}

.yt-upload-form {
  text-align: left;
}

.yt-form-group {
  margin-bottom: 14px;
}

.yt-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.yt-form-group input,
.yt-form-group textarea,
.yt-form-group select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #CCC;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.yt-form-group textarea {
  height: 80px;
  resize: vertical;
}

.yt-form-group input:focus,
.yt-form-group textarea:focus {
  border-color: #3478F6;
}

.yt-upload-submit {
  padding: 8px 24px;
  background: #CC0000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
}

.yt-upload-submit:hover {
  background: #AA0000;
}

/* Profile Tab */
.yt-my-profile {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 20px;
}

.yt-my-profile h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.yt-my-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #F9F9F9;
  border-radius: 8px;
}

.yt-my-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid #DDD;
}

.yt-my-avatar-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.yt-my-avatar-info p {
  font-size: 12px;
  color: #888;
}

/* Messages Tab */
.yt-messages-view {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.yt-msg-list {
  width: 220px;
  border-right: 1px solid #E0E0E0;
  overflow-y: auto;
  flex-shrink: 0;
}

.yt-msg-list-header {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #E0E0E0;
}

.yt-msg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #F5F5F5;
}

.yt-msg-item:hover {
  background: #F5F5F5;
}

.yt-msg-item.active {
  background: #E8F0FE;
}

.yt-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
}

.yt-msg-info {
  flex: 1;
  min-width: 0;
}

.yt-msg-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.yt-msg-preview {
  font-size: 11px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-msg-unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CC0000;
  flex-shrink: 0;
}

.yt-msg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yt-msg-chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid #E0E0E0;
  font-weight: 600;
  font-size: 13px;
}

.yt-msg-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-msg-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.yt-msg-bubble.sent {
  background: #CC0000;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.yt-msg-bubble.received {
  background: #F0F0F0;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.yt-msg-chat-input {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid #E0E0E0;
}

.yt-msg-chat-input input {
  flex: 1;
  height: 30px;
  border: 1px solid #CCC;
  border-radius: 15px;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.yt-msg-chat-input input:focus {
  border-color: #CC0000;
}

.yt-msg-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #CC0000;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Toast Notification */
.yt-toast {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 100;
  animation: ytToastIn 0.3s ease, ytToastOut 0.3s ease 1.7s forwards;
  white-space: nowrap;
}

@keyframes ytToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes ytToastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ========== APP: CHATGPT Y2K EDITION ========== */

.gpt-app {
  display: flex;
  height: 100%;
  font-family: 'Söhne', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #212121;
  color: #ececec;
}

.gpt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gpt-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.gpt-msg {
  display: flex;
  gap: 16px;
  padding: 24px 0;
}

.gpt-msg-bot {
  background: #2f2f2f;
}

.gpt-msg-user {
  background: transparent;
  padding-left: 60px;
  padding-right: 60px;
}

.gpt-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 60px;
  margin-top: 2px;
}

.gpt-msg-bot .gpt-msg-avatar {
  background: #19c37d;
  color: #fff;
}

.gpt-msg-content {
  flex: 1;
  min-width: 0;
  max-width: 768px;
}

.gpt-msg-name {
  font-size: 14px;
  font-weight: 600;
  color: #ececec;
  margin-bottom: 4px;
}

.gpt-msg-text {
  font-size: 16px;
  line-height: 1.7;
  color: #d1d5db;
}

.gpt-msg-user .gpt-msg-text {
  color: #ececec;
}

.gpt-msg-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.gpt-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #8e8ea0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.gpt-action-btn:hover {
  background: #424242;
  color: #ececec;
}

.gpt-typing {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  background: #2f2f2f;
}

.gpt-typing .gpt-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #19c37d;
  color: #fff;
  flex-shrink: 0;
  margin-left: 60px;
}

.gpt-typing-dots {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.gpt-typing-dots span {
  width: 8px;
  height: 8px;
  background: #8e8ea0;
  border-radius: 50%;
  animation: gptTyping 1.4s ease-in-out infinite;
}

.gpt-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.gpt-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes gptTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.gpt-input-area {
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gpt-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 768px;
  padding: 0 16px;
  background: #40414f;
  border-radius: 12px;
  transition: background 0.15s;
}

.gpt-input-wrapper:focus-within {
  background: #40414f;
}

.gpt-input {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #ececec;
  outline: none;
  padding: 0;
}

.gpt-input::placeholder {
  color: #8e8ea0;
}

.gpt-send-btn {
  width: 32px;
  height: 32px;
  background: #67677a;
  color: #171717;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.gpt-send-btn:hover {
  background: #8e8ea0;
}

.gpt-disclaimer {
  font-size: 12px;
  color: #6b6b7b;
  text-align: center;
  margin-top: 12px;
}

/* Debug Panel */
.gpt-debug {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #171717;
  border-left: 1px solid #424242;
  z-index: 50;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #ececec;
  overflow: hidden;
}

.gpt-debug-header {
  padding: 12px 16px;
  background: #171717;
  border-bottom: 1px solid #424242;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gpt-debug-close {
  cursor: pointer;
  color: #8e8ea0;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
}

.gpt-debug-close:hover {
  background: #424242;
}

.gpt-debug-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.gpt-debug-entry {
  padding: 12px;
  border-bottom: 1px solid #424242;
  margin-bottom: 8px;
  background: #2f2f2f;
  border-radius: 8px;
}

.gpt-debug-label {
  color: #8e8ea0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.gpt-debug-value {
  color: #d1d5db;
  word-break: break-all;
}

.gpt-debug-match {
  color: #19c37d;
  font-weight: 600;
}

.gpt-debug-fail {
  color: #ef4444;
}
/* ========== APP: PHOTOS ========== */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2px;
  padding: 2px;
  overflow-y: auto;
}

.photo-item {
  aspect-ratio: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  transition: opacity 0.15s ease;
}

.photo-item:hover {
  opacity: 0.85;
}

/* ========== APP: DISCORD Y2K ========== */
.y2k-discord-layout {
  display: flex;
  height: 100%;
  font-family: 'Trebuchet MS', 'Lucida Grande', 'Tahoma', sans-serif;
  background: #E8E0D0;
}

.y2k-discord-sidebar {
  width: 200px;
  background: linear-gradient(180deg, #D4C8B0 0%, #C8BC9C 100%);
  border-right: 1px solid #A09078;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.y2k-sidebar-header {
  padding: 8px 10px;
  background: linear-gradient(180deg, #6888A8 0%, #4A6888 100%);
  border-bottom: 1px solid #3A5878;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.y2k-logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.y2k-logo-row i {
  font-size: 16px;
}

.y2k-version {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
}

.y2k-my-status {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #A09078;
  background: rgba(255,255,255,0.15);
}

.y2k-my-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.y2k-my-info {
  flex: 1;
  min-width: 0;
}

.y2k-my-name {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.y2k-status-input {
  width: 100%;
  border: 1px solid #B0A088;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
  color: #555;
  background: white;
  outline: none;
  font-family: inherit;
  margin-top: 2px;
}

.y2k-status-input:focus {
  border-color: #6888A8;
}

.y2k-buddy-header {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border-bottom: 1px solid #A09078;
  display: flex;
  justify-content: space-between;
}

.y2k-buddy-count {
  font-weight: 400;
  color: #888;
}

.y2k-buddy-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.y2k-buddy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.1s;
}

.y2k-buddy:hover {
  background: rgba(255,255,255,0.3);
}

.y2k-buddy.offline {
  opacity: 0.4;
}

.y2k-buddy-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.15);
}

.y2k-buddy-status-dot.online { background: #4CAF50; }
.y2k-buddy-status-dot.away { background: #FFC107; }
.y2k-buddy-status-dot.offline { background: #999; }

.y2k-buddy-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}

.y2k-buddy-info {
  flex: 1;
  min-width: 0;
}

.y2k-buddy-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.y2k-buddy-msg {
  font-size: 10px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: italic;
}

.y2k-sidebar-footer {
  padding: 6px 10px;
  border-top: 1px solid #A09078;
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.1);
}

.y2k-discord-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #A09078;
  margin: 3px;
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}

.y2k-chat-toolbar {
  padding: 4px 8px;
  background: linear-gradient(180deg, #E8E0D0 0%, #D4C8B0 100%);
  border-bottom: 1px solid #A09078;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.y2k-chat-room-name {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  display: flex;
  align-items: center;
  gap: 5px;
}

.y2k-chat-room-name i {
  color: #6888A8;
}

.y2k-chat-toolbar-btns {
  display: flex;
  gap: 3px;
}

.y2k-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  background: #FAFAF5;
}

.y2k-chat-msg {
  padding: 1px 0;
}

.y2k-chat-user {
  font-weight: 700;
  cursor: pointer;
}

.y2k-chat-user:hover {
  text-decoration: underline;
}

.y2k-chat-time {
  font-size: 10px;
  color: #AAA;
  margin: 0 4px;
}

.y2k-chat-text {
  color: #333;
  word-break: break-word;
}

.y2k-chat-emoticons {
  padding: 4px 8px;
  border-top: 1px solid #E0D8C8;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: #F5F0E8;
  flex-shrink: 0;
}

.y2k-emoji-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  transition: background 0.1s;
}

.y2k-emoji-btn:hover {
  background: #E0D8C8;
}

.y2k-chat-input-area {
  padding: 6px 8px;
  display: flex;
  gap: 6px;
  border-top: 1px solid #A09078;
  background: linear-gradient(180deg, #E8E0D0 0%, #D8D0C0 100%);
  flex-shrink: 0;
}

.y2k-chat-input {
  flex: 1;
  border: 2px solid #A09078;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  background: white;
}

.y2k-chat-input:focus {
  border-color: #6888A8;
}

/* Y2K Gel Buttons */
.y2k-gel-btn {
  border: 1px solid #888;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  background: linear-gradient(180deg, #F8F4EC 0%, #E0D8C8 50%, #D0C8B8 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: all 0.1s;
}

.y2k-gel-btn:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8E0D0 50%, #D8D0C0 100%);
}

.y2k-gel-btn:active {
  background: linear-gradient(180deg, #D0C8B8 0%, #C8C0B0 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.y2k-btn-tiny {
  padding: 2px 6px;
  font-size: 10px;
}

.y2k-btn-small {
  padding: 3px 8px;
  font-size: 10px;
}

.y2k-btn-send {
  background: linear-gradient(180deg, #78A8D0 0%, #5888B0 50%, #4878A0 100%);
  color: white;
  border-color: #3A5878;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  padding: 4px 14px;
  font-size: 12px;
}

.y2k-btn-send:hover {
  background: linear-gradient(180deg, #88B8E0 0%, #6898C0 50%, #5888B0 100%);
}

.y2k-btn-send:active {
  background: linear-gradient(180deg, #5888B0 0%, #4878A0 100%);
}

/* Y2K Add Buddy Dialog */
.y2k-add-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  background: linear-gradient(180deg, #E8E0D0, #D8D0C0);
  border: 2px solid #888;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  z-index: 100;
  animation: y2k-dialog-in 0.15s ease;
}

@keyframes y2k-dialog-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.y2k-add-dialog-titlebar {
  background: linear-gradient(180deg, #6888A8 0%, #4A6888 100%);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid #3A5878;
}

.y2k-add-dialog-titlebar i:first-child {
  font-size: 14px;
}

.y2k-add-dialog-titlebar span {
  flex: 1;
}

.y2k-dialog-close {
  background: linear-gradient(180deg, #D88888, #C06060);
  border: 1px solid #A04040;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.y2k-dialog-close:hover {
  background: linear-gradient(180deg, #E09898, #D07070);
}

.y2k-add-dialog-body {
  padding: 16px;
  display: flex;
  gap: 14px;
}

.y2k-add-dialog-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #78A8D0, #5888B0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
  border: 1px solid #4878A0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.y2k-add-dialog-form {
  flex: 1;
}

.y2k-add-dialog-text {
  font-size: 12px;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.4;
}

.y2k-add-field {
  margin-bottom: 8px;
}

.y2k-add-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  margin-bottom: 3px;
}

.y2k-add-field input,
.y2k-add-field select {
  width: 100%;
  border: 2px solid #A09078;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  background: white;
  color: #333;
}

.y2k-add-field input:focus,
.y2k-add-field select:focus {
  border-color: #6888A8;
}

.y2k-add-field input::placeholder {
  color: #AAA;
}

.y2k-add-dialog-buttons {
  padding: 8px 16px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid #A09078;
}

.y2k-buddy-notif {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(104,136,168,0.08);
  border: 1px solid rgba(104,136,168,0.2);
  border-radius: 4px;
  margin: 6px 0;
}

.y2k-notif-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #78A8D0, #5888B0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.y2k-notif-text {
  font-size: 12px;
  color: #444;
  line-height: 1.4;
}

.y2k-notif-text b {
  color: #4A6888;
}

.y2k-notif-time {
  font-size: 10px;
  color: #AAA;
}

/* ========== APP: GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  background: #1a1a2e;
  height: 100%;
}

.gallery-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.gallery-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: rgba(255,255,255,0.85);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.gallery-card-title {
  font-size: 13px;
  font-weight: 600;
}

.gallery-card-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.gallery-viewer {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(20px);
}

.gallery-viewer-icon {
  font-size: 120px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.gallery-viewer-title {
  color: white;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.gallery-viewer-meta {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-bottom: 24px;
}

.gallery-viewer-close {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gallery-viewer-close:hover {
  background: rgba(255,255,255,0.15);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.35);
}

/* ========== ANIMATIONS ========== */
@keyframes windowOpen {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.window-opening {
  animation: windowOpen 0.2s ease forwards;
}

/* ========== WALLPAPER Y2K ========== */
.y2k-wallpaper {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 210, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(123, 47, 247, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 255, 128, 0.08), transparent 50%),
    linear-gradient(135deg, #0a0e27, #1a1040, #0d2847, #063b3b);
  z-index: -1;
}
