/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-chat: #0e0e14;
  --border: #2a2a3a;
  --border-hover: #3a3a4a;
  --text-primary: #e8e8f0;
  --text-secondary: #9090a8;
  --text-muted: #5a5a70;
  --accent: #FF8D00;
  --accent-dim: rgba(255, 141, 0, 0.1);
  --accent-border: rgba(255, 141, 0, 0.25);
  --syntax-keyword: #ff7b72;
  --syntax-string: #a5d6ff;
  --syntax-variable: #ffa657;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 150ms ease;
}

html, body {
  height: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ===== PAGE LAYOUT ===== */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

/* Window control hover symbols */
.header-dots .dot {
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
}

.header-dots .dot:hover {
  transform: scale(1.2);
}

.header-dots .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 900;
  opacity: 0;
  transition: opacity var(--transition);
  color: rgba(0, 0, 0, 0.7);
}

.header-dots .dot:hover::after {
  opacity: 1;
}

.header-dots .dot--red::after {
  content: '✕';
}

.header-dots .dot--yellow::after {
  content: '−';
}

.header-dots .dot--green::after {
  content: '⤢';
  font-size: 9px;
}

.header-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.header-nav a:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-tertiary);
}

.nav-download {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
  font-weight: 600;
}

.nav-download:hover {
  background: #e67e00 !important;
  color: #000 !important;
  border-color: #e67e00 !important;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ===== INTRO ===== */
.intro {
  padding: 2.5rem 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.intro-text h1 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.syntax-keyword { color: var(--syntax-keyword); }
.syntax-string { color: var(--syntax-string); }
.syntax-variable { color: var(--syntax-variable); }

.intro-role {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.intro-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ===== CHAT CONTAINER ===== */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-chat);
}

.chat-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2.5rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.chat-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.chat-tab-icon {
  font-size: 0.7rem;
}

.chat-model-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #febc2e;
  animation: pulse 2s infinite;
}

.status-dot.ready {
  background: #28c840;
}

.status-dot.error {
  background: #ff5f57;
}

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

/* ===== MODEL PROGRESS ===== */
.model-progress {
  padding: 0.5rem 2.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.model-progress.hidden {
  display: none;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== CHAT BODY ===== */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 400px;
}

.chat-message {
  display: flex;
  gap: 1rem;
  max-width: 800px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.chat-message.user .msg-avatar {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-color: var(--border);
}

.msg-content {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.7;
}

.chat-message.bot .msg-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.chat-message.user .msg-content {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
}

/* Typing cursor animation */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
}

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

/* ===== SUGGESTIONS ===== */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.suggestion {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.suggestion:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===== CHAT INPUT ===== */
.chat-input-bar {
  display: flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  gap: 0.75rem;
}

.input-prefix {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
}

#chat-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}

#chat-input:focus {
  border-color: var(--accent);
}

#chat-input::placeholder {
  color: var(--text-muted);
}

#chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chat-send {
  padding: 0.7rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), transform var(--transition);
}

#chat-send:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

#chat-send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* ===== FOOTER ===== */
.footer {
  padding: 0.75rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cache-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cache-label {
  color: var(--text-muted);
}

.cache-clear-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
}

.cache-clear-btn:hover {
  border-color: #ff5f57;
  color: #ff5f57;
  background: rgba(255, 95, 87, 0.1);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  padding: 0.75rem 2.5rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.disclaimer p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .header-nav {
    gap: 0.75rem;
  }

  .header-nav a {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .intro {
    padding: 1.5rem 1.25rem 1rem;
  }

  .intro-text h1 {
    font-size: 1.1rem;
  }

  .intro-role {
    font-size: 0.95rem;
  }

  .chat-chrome {
    padding: 0.6rem 1.25rem;
  }

  .chat-body {
    padding: 1.5rem 1.25rem;
    min-height: 300px;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-input-bar {
    padding: 0.75rem 1.25rem;
  }

  .model-progress {
    padding: 0.5rem 1.25rem;
  }

  .footer {
    padding: 0.75rem 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .disclaimer {
    padding: 0.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .intro-text h1 {
    font-size: 0.95rem;
  }

  .intro-sub {
    font-size: 0.7rem;
  }

  .header-name {
    font-size: 0.8rem;
  }

  .chat-model-badge {
    display: none;
  }

  .suggestions {
    gap: 0.4rem;
  }

  .suggestion {
    font-size: 0.7rem;
  }
}

/* ===== DESKTOP BACKGROUND (Easter Egg) ===== */
.desktop {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
}

.desktop.visible {
  display: block;
}

.desktop-bg {
  position: absolute;
  inset: 0;
  background: url('assets/wallpaper.jpeg') center center / cover no-repeat;
}

.desktop-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 2;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: default;
}

.icon-img {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-folder {
  background: linear-gradient(180deg, #5ac8fa 0%, #007aff 100%);
  border-radius: 6px 6px 4px 4px;
  position: relative;
  width: 40px;
  height: 32px;
}

.icon-folder::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 18px;
  height: 8px;
  background: linear-gradient(180deg, #5ac8fa 0%, #007aff 100%);
  border-radius: 4px 4px 0 0;
}

.icon-app-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.icon-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
  max-width: 80px;
}

/* Desktop Taskbar */
.desktop-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background: rgba(20, 20, 30, 0.95);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.taskbar-left {
  display: flex;
  gap: 0.25rem;
}

.taskbar-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
}

.taskbar-item.active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.taskbar-clock {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Desktop Windows */
.desktop-window {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.dw-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.dw-dots {
  display: flex;
  gap: 5px;
}

.dw-dots .dot {
  width: 8px;
  height: 8px;
}

.dw-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Spotify Window */
.spotify-window {
  top: 8%;
  left: 3%;
  width: 260px;
  background: #121212;
}

.spotify-content {
  padding: 0.75rem;
}

.spotify-now-playing {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.spotify-art {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1DB954, #191414);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.spotify-track {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.spotify-artist {
  font-size: 0.65rem;
  color: #b3b3b3;
  margin-top: 0.1rem;
}

.spotify-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.spotify-bar {
  flex: 1;
  height: 3px;
  background: #404040;
  border-radius: 2px;
}

.spotify-bar-fill {
  width: 72%;
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
}

.spotify-time {
  font-size: 0.6rem;
  color: #b3b3b3;
  font-family: var(--font-mono);
}

.spotify-queue {
  border-top: 1px solid #282828;
  padding-top: 0.75rem;
}

.spotify-queue-title {
  font-size: 0.65rem;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.spotify-queue-item {
  font-size: 0.72rem;
  color: #b3b3b3;
  padding: 0.3rem 0;
  border-bottom: 1px solid #1a1a1a;
}

/* Excel/Finances Window */
.excel-window {
  top: 12%;
  right: 15%;
  width: 360px;
  background: #ffffff;
}

.excel-titlebar {
  background: #217346;
  border-bottom: 1px solid #1a5c38;
}

.excel-title {
  color: #fff !important;
}

.excel-content {
  padding: 0;
}

.excel-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: #f3f3f3;
  border-bottom: 1px solid #d4d4d4;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.excel-cell-ref {
  background: #fff;
  border: 1px solid #d4d4d4;
  padding: 0.15rem 0.4rem;
  color: #333;
}

.excel-formula {
  color: #666;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  font-family: var(--font-mono);
}

.excel-table th {
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  text-align: center;
  color: #666;
  border: 1px solid #d4d4d4;
  font-weight: 400;
  font-size: 0.6rem;
}

.excel-col-a { width: 24px; }

.excel-table td {
  padding: 0.25rem 0.5rem;
  border: 1px solid #e0e0e0;
  color: #333;
}

.excel-row-num {
  background: #f0f0f0;
  color: #666;
  text-align: center;
  width: 24px;
  font-size: 0.6rem;
}

.excel-header-cell {
  font-weight: 600;
  background: #e8f5e9;
}

.cell-neg {
  color: #333;
}

.cell-red {
  color: #d32f2f;
  font-weight: 600;
}

.excel-total-row td {
  border-top: 2px solid #333;
  background: #fff3e0;
}

.excel-note-cell {
  font-style: italic;
  color: #888;
  font-size: 0.6rem;
}

/* Amazon Window */
.amazon-window {
  bottom: 15%;
  left: 8%;
  width: 320px;
  background: #ffffff;
}

.amazon-titlebar {
  background: #232f3e;
  border-bottom: 1px solid #1a252f;
}

.amazon-title {
  color: #fff !important;
}

.amazon-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.amazon-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem;
  background: #f8f8f8;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.amazon-icon {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.amazon-name {
  font-size: 0.72rem;
  color: #0f1111;
  font-weight: 500;
}

.amazon-price {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #b12704;
  font-weight: 700;
  margin-top: 0.15rem;
}

.amazon-note {
  font-size: 0.6rem;
  color: #565959;
  font-style: italic;
  margin-top: 0.15rem;
}

.amazon-checkout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #e8e8e8;
  margin-top: 0.25rem;
}

.amazon-subtotal {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0f1111;
}

.amazon-buy-btn {
  font-size: 0.65rem;
  padding: 0.3rem 0.75rem;
  background: #ffd814;
  border: 1px solid #fcd200;
  border-radius: 20px;
  color: #0f1111;
  font-weight: 500;
  cursor: default;
}

/* Restore hint */
.desktop-restore-hint {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(20, 20, 30, 0.8);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  animation: fadeIn 1s ease 0.5s both;
}

/* ===== QUIT DIALOG (Windows 95) ===== */
.quit-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.quit-dialog-overlay.visible {
  display: flex;
}

.win95-dialog {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 1px 1px 0 #000;
  width: 360px;
  max-width: 90vw;
  animation: scaleIn 0.15s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.win95-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
}

.win95-title-text {
  font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding-left: 3px;
}

.win95-close {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 9px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  font-weight: 700;
}

.win95-close:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.win95-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1rem;
}

.win95-warning-triangle {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}

.win95-warning-triangle::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: #ffff00;
  border: 2px solid #000;
}

.win95-warning-triangle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  font-size: 18px;
  font-weight: 900;
  color: #000;
  font-family: serif;
}

.win95-text {
  font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
  font-size: 13px;
  color: #000;
}

.win95-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 1.25rem 1.25rem;
}

.win95-btn {
  width: 80px;
  padding: 4px 0;
  font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
  font-size: 12px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  cursor: pointer;
  color: #000;
  text-align: center;
}

.win95-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.win95-btn-yes {
  border-style: dashed;
  border-color: #333 #333 #333 #333;
  outline: 1px solid;
  outline-color: #ffffff;
  outline-offset: -4px;
}

/* ===== APP WINDOW STATES ===== */
.page {
  position: relative;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.page.minimized {
  transform: scale(0.01) translateY(100vh);
  opacity: 0;
  pointer-events: none;
}

.page.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  border-radius: 0;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Hide desktop windows on mobile */
@media (max-width: 768px) {
  .desktop-window {
    display: none;
  }

  .desktop-restore-hint {
    bottom: 60px;
    font-size: 0.7rem;
  }

  .quit-dialog {
    width: 90vw;
  }
}
