/* ==========================================================================
   PROJECT CIPHER: TRUST NO ONE - RETRO CRT DESKTOP OS STYLES (FULL-SCREEN CRT)
   ========================================================================== */

:root {
  /* Default Phosphor: AMBER */
  --bg-color: #0c0804;
  --bg-desktop: rgba(14, 9, 4, 0.92);
  --bg-window: rgba(20, 14, 7, 0.94);
  --bg-window-dark: rgba(10, 6, 3, 0.96);
  --bg-titlebar: linear-gradient(90deg, #663d00, #331f00);
  --bg-titlebar-active: linear-gradient(90deg, #ffaa00, #995500);
  
  --border-color: rgba(255, 176, 0, 0.45);
  --border-bright: #ffb000;
  
  --text-main: #ffb000;
  --text-bright: #ffd359;
  --text-dim: #996a00;
  --text-ghost: rgba(255, 176, 0, 0.25);
  
  --accent-cyan: #00e5ff;
  --accent-red: #ff3344;
  --accent-green: #33ff66;
  --accent-purple: #c055ff;
  --accent-gold: #ffd700;
  
  /* Phosphor text-shadow with crisp glow */
  --glow-soft: 0 0 2px rgba(255, 176, 0, 0.4);
  --glow-hard: 0 0 8px rgba(255, 176, 0, 0.7), 0 0 16px rgba(255, 176, 0, 0.3);
  
  --font-mono: 'Share Tech Mono', 'VT323', 'Fira Code', monospace;
  --font-display: 'VT323', monospace;
  --font-code: 'Fira Code', monospace;
}

/* Green Phosphor Theme */
body.theme-green {
  --bg-color: #030c05;
  --bg-desktop: rgba(3, 16, 7, 0.92);
  --bg-window: rgba(4, 22, 10, 0.94);
  --bg-window-dark: rgba(2, 10, 4, 0.96);
  --bg-titlebar: linear-gradient(90deg, #005522, #00220e);
  --bg-titlebar-active: linear-gradient(90deg, #00ff66, #008833);
  --border-color: rgba(0, 255, 100, 0.45);
  --border-bright: #00ff66;
  --text-main: #00ff66;
  --text-bright: #a0ffc8;
  --text-dim: #009944;
  --text-ghost: rgba(0, 255, 100, 0.25);
  --glow-soft: 0 0 2px rgba(0, 255, 100, 0.4);
  --glow-hard: 0 0 8px rgba(0, 255, 100, 0.7), 0 0 16px rgba(0, 255, 100, 0.3);
}

/* Cyan Matrix Theme */
body.theme-cyan {
  --bg-color: #030b0f;
  --bg-desktop: rgba(3, 15, 22, 0.92);
  --bg-window: rgba(4, 20, 30, 0.94);
  --bg-window-dark: rgba(2, 8, 14, 0.96);
  --bg-titlebar: linear-gradient(90deg, #005577, #002233);
  --bg-titlebar-active: linear-gradient(90deg, #00e5ff, #006688);
  --border-color: rgba(0, 229, 255, 0.45);
  --border-bright: #00e5ff;
  --text-main: #00e5ff;
  --text-bright: #b3f7ff;
  --text-dim: #0099aa;
  --text-ghost: rgba(0, 229, 255, 0.25);
  --glow-soft: 0 0 2px rgba(0, 229, 255, 0.4);
  --glow-hard: 0 0 8px rgba(0, 229, 255, 0.7), 0 0 16px rgba(0, 229, 255, 0.3);
}

/* Red Alert Theme */
body.theme-red {
  --bg-color: #120303;
  --bg-desktop: rgba(22, 4, 4, 0.94);
  --bg-window: rgba(30, 6, 6, 0.96);
  --bg-window-dark: rgba(14, 2, 2, 0.98);
  --bg-titlebar: linear-gradient(90deg, #661111, #330505);
  --bg-titlebar-active: linear-gradient(90deg, #ff3344, #881122);
  --border-color: rgba(255, 51, 68, 0.55);
  --border-bright: #ff3344;
  --text-main: #ff3344;
  --text-bright: #ffb3bd;
  --text-dim: #aa2233;
  --text-ghost: rgba(255, 51, 68, 0.3);
  --glow-soft: 0 0 2px rgba(255, 51, 68, 0.4);
  --glow-hard: 0 0 8px rgba(255, 51, 68, 0.8), 0 0 16px rgba(255, 51, 68, 0.3);
}

/* Clinical Velvet Theme */
body.theme-velvet {
  --bg-color: #04090e;
  --bg-desktop: rgba(4, 12, 18, 0.94);
  --bg-window: rgba(6, 18, 26, 0.95);
  --bg-window-dark: rgba(3, 9, 14, 0.98);
  --bg-titlebar: linear-gradient(90deg, #113344, #05111a);
  --bg-titlebar-active: linear-gradient(90deg, #55ccff, #116688);
  --border-color: rgba(150, 220, 255, 0.5);
  --border-bright: #aee5ff;
  --text-main: #cceeff;
  --text-bright: #ffffff;
  --text-dim: #77b5d5;
  --text-ghost: rgba(150, 220, 255, 0.3);
  --glow-soft: 0 0 3px rgba(150, 220, 255, 0.4);
  --glow-hard: 0 0 12px rgba(200, 240, 255, 0.7);
}

body.velvet-sedated .terminal-workspace,
body.velvet-sedated .desktop-surface {
  filter: blur(1.5px) contrast(0.9) brightness(0.95);
  transition: filter 3s ease-in-out;
}

/* VIP Luxury Gold Theme */
body.theme-gold {
  --bg-color: #0e0a02;
  --bg-desktop: rgba(18, 14, 4, 0.94);
  --bg-window: rgba(28, 20, 6, 0.96);
  --bg-window-dark: rgba(14, 10, 2, 0.98);
  --bg-titlebar: linear-gradient(90deg, #664d00, #332600);
  --bg-titlebar-active: linear-gradient(90deg, #ffd700, #b8860b);
  --border-color: rgba(255, 215, 0, 0.6);
  --border-bright: #ffd700;
  --text-main: #ffd700;
  --text-bright: #fff3a8;
  --text-dim: #ccaa00;
  --text-ghost: rgba(255, 215, 0, 0.3);
  --glow-soft: 0 0 2px rgba(255, 215, 0, 0.4);
  --glow-hard: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* Stealth Matrix Theme */
body.theme-stealth {
  --bg-color: #010803;
  --bg-desktop: rgba(2, 12, 5, 0.96);
  --bg-window: rgba(3, 16, 8, 0.97);
  --bg-window-dark: rgba(1, 8, 3, 0.99);
  --bg-titlebar: linear-gradient(90deg, #003311, #001105);
  --bg-titlebar-active: linear-gradient(90deg, #00ee44, #005518);
  --border-color: rgba(0, 255, 80, 0.4);
  --border-bright: #00ff55;
  --text-main: #00ff55;
  --text-bright: #a8ffc4;
  --text-dim: #008833;
  --text-ghost: rgba(0, 255, 80, 0.2);
  --glow-soft: 0 0 2px rgba(0, 255, 80, 0.4);
  --glow-hard: 0 0 8px rgba(0, 255, 80, 0.7);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Canvas Background */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
}

/* ==========================================================================
   FULL-SCREEN CRT POST-PROCESSING OVERLAYS (OPTIMIZED FOR LEGIBILITY)
   ========================================================================== */

.crt-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

/* 1. Fine Raster Scanlines */
.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
  z-index: 1;
}

/* 2. Moving Electron Gun Refresh Sweep Beam */
.crt-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  background-size: 100% 70px;
  animation: crt-beam-sweep 7s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.45;
  z-index: 2;
}

@keyframes crt-beam-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

body.crt-enabled .crt-scanlines {
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0% { opacity: 0.52; }
  50% { opacity: 0.58; }
  100% { opacity: 0.54; }
}

/* 3. Subtle RGB Phosphor Shadow Mask */
.crt-shadow-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03) 0px,
    rgba(255, 0, 0, 0.03) 1px,
    rgba(0, 255, 0, 0.02) 1px,
    rgba(0, 255, 0, 0.02) 2px,
    rgba(0, 0, 255, 0.03) 2px,
    rgba(0, 0, 255, 0.03) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: 3;
}

/* 4. Light, Clear CRT Edge Bezel (Zero Dark Vignette Over Desktop Icons) */
.crt-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(20, 16, 12, 0.6);
  border-radius: 8px;
  z-index: 4;
}

/* 5. Subtle Glass Reflection */
.crt-glass-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 10%, 
    rgba(255, 255, 255, 0.04) 0%, 
    transparent 60%
  );
  mix-blend-mode: screen;
  z-index: 5;
}

/* 6. Somatic Pulse Flash */
.somatic-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(255, 51, 68, 0);
  transition: background 0.1s ease;
  z-index: 6;
}

.somatic-flash.flash-active {
  background: rgba(255, 51, 68, 0.55);
  animation: somatic-pulse 0.4s ease-out;
}

@keyframes somatic-pulse {
  0% { background: rgba(255, 51, 68, 0.85); }
  50% { background: rgba(255, 255, 255, 0.45); }
  100% { background: rgba(255, 51, 68, 0); }
}

/* 7. Screen Glitch Overlay */
.glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.08) 3px, transparent 3px);
  z-index: 7;
}

.glitch-overlay.glitching {
  opacity: 1;
  animation: glitch-anim 0.3s steps(2) infinite;
}

@keyframes glitch-anim {
  0% { transform: translate(2px, 1px) skewX(1deg); filter: hue-rotate(90deg); }
  25% { transform: translate(-3px, -2px) skewX(-2deg); filter: invert(0.2); }
  50% { transform: translate(1px, -1px) skewY(1deg); filter: hue-rotate(180deg); }
  75% { transform: translate(-2px, 2px) skewX(2deg); filter: contrast(1.5); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   DESKTOP SURFACE & WORKSPACE
   ========================================================================== */

.desktop-surface {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 40px);
  z-index: 10;
  overflow: hidden;
  background: transparent;
  pointer-events: auto;
}

/* Desktop Icon Grid */
.desktop-icon-grid {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.desktop-icon {
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  cursor: pointer;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 176, 0, 0.25);
  backdrop-filter: blur(4px);
  position: relative;
  transition: all 0.15s;
  user-select: none;
}

.desktop-icon:hover {
  background: rgba(255, 176, 0, 0.22);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 176, 0, 0.4);
}

.desktop-icon.selected { background: rgba(255, 176, 0, 0.25); border: 1px dashed var(--border-bright); }
.desktop-icon-graphic { font-size: 2.1rem; margin-bottom: 3px; filter: drop-shadow(0 0 6px var(--border-bright)); }
.desktop-icon-label { font-size: 0.76rem; color: var(--text-bright); line-height: 1.2; text-shadow: 0 0 4px #000, 0 0 8px #000; word-break: break-word; }

.icon-badge {
  position: absolute;
  top: 0;
  right: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 10px;
  box-shadow: 0 0 6px var(--accent-red);
  animation: pulse-glow 1s infinite;
}

/* OS Windowing System (Base z-index: 10, focused: 30+) */
.os-window {
  position: absolute;
  background: var(--bg-window);
  border: 2px solid var(--border-bright);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), var(--glow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 380px;
  min-height: 260px;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.os-window.active-focus {
  border-color: var(--border-bright);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), var(--glow-hard);
  z-index: 30;
}

.os-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 40px) !important;
  border-radius: 0;
}

.win-titlebar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--bg-titlebar); border-bottom: 1px solid var(--border-color); cursor: move; user-select: none; }
.os-window.active-focus .win-titlebar { background: var(--bg-titlebar-active); }
.win-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.82rem; color: #fff; letter-spacing: 1px; }
.win-icon { font-size: 1rem; }
.win-controls { display: flex; gap: 4px; }

.win-btn { width: 22px; height: 20px; background: var(--bg-window-dark); border: 1px solid var(--border-color); color: var(--text-bright); font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 2px; transition: all 0.15s; }
.win-btn:hover { background: var(--border-bright); color: var(--bg-color); }
.btn-win-close:hover { background: var(--accent-red); color: #fff; }

.win-body { flex: 1; display: flex; min-height: 0; overflow: hidden; background: var(--bg-window-dark); }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.4); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

/* Window 1: Terminal */
.terminal-win-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.terminal-output-container {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  font-family: var(--font-code);
  font-size: 0.92rem;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.6);
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-entry { word-break: break-word; white-space: pre-wrap; }
.log-cmd { color: var(--text-bright); font-weight: 600; margin-top: 6px; }
.log-res { color: var(--text-main); }
.log-res.info { color: var(--accent-cyan); }
.log-res.warn { color: #ffaa00; }
.log-res.error { color: var(--accent-red); font-weight: bold; }
.log-res.success { color: var(--accent-green); }
.log-res.secret { color: #ff66aa; font-style: italic; }
.log-res.gold { color: #ffd700; font-weight: bold; }
.log-res.corrupt { color: #ff3344; font-family: monospace; letter-spacing: 1px; }

.terminal-input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-window);
  border-top: 1px solid var(--border-color);
  gap: 8px;
}

.terminal-prompt { color: var(--border-bright); font-family: var(--font-code); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.terminal-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-bright); font-family: var(--font-code); font-size: 0.95rem; caret-color: var(--border-bright); text-shadow: var(--glow-soft); }
.terminal-input::placeholder { color: var(--text-ghost); }
.btn-send-cmd { background: rgba(255, 176, 0, 0.15); border: 1px solid var(--border-color); color: var(--text-bright); padding: 4px 10px; font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer; border-radius: 2px; transition: all 0.2s; }
.btn-send-cmd:hover { background: var(--border-bright); color: var(--bg-color); box-shadow: var(--glow-soft); }

.terminal-quick-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 176, 0, 0.3);
  overflow-x: auto;
  min-height: 36px;
  z-index: 5;
}

.quick-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}

.quick-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.quick-chip {
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 3px 8px;
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}

.quick-chip:hover {
  background: var(--border-bright);
  color: var(--bg-color);
  box-shadow: 0 0 8px var(--border-bright);
  transform: translateY(-1px);
}

/* Window 2: Neural Mail */
.mail-win-body { display: grid; grid-template-columns: 130px 220px minmax(0, 1fr); height: 100%; min-height: 0; width: 100%; overflow: hidden; }
.mail-sidebar { background: rgba(0, 0, 0, 0.5); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 8px 0; min-width: 130px; overflow-y: auto; overflow-x: hidden; }
.mail-folder-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 0.78rem; color: var(--text-dim); cursor: pointer; transition: all 0.15s; white-space: nowrap; user-select: none; }
.mail-folder-item:hover { color: var(--text-bright); background: rgba(255, 176, 0, 0.08); }
.mail-folder-item.active { color: var(--text-bright); background: rgba(255, 176, 0, 0.16); border-left: 3px solid var(--border-bright); font-weight: 600; }

.mail-inbox-col { background: rgba(0, 0, 0, 0.35); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; min-height: 0; min-width: 220px; overflow: hidden; }
.inbox-header-bar { display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-window); border-bottom: 1px solid var(--border-color); font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.tag-status { color: var(--text-dim); }

.mail-inbox-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.inbox-item { padding: 10px; border-bottom: 1px solid rgba(255, 176, 0, 0.12); cursor: pointer; position: relative; transition: all 0.15s; user-select: none; }
.inbox-item:hover { background: rgba(255, 176, 0, 0.08); }
.inbox-item.selected { background: rgba(255, 176, 0, 0.18); border-left: 3px solid var(--border-bright); }

.inbox-item-top { display: flex; justify-content: space-between; font-size: 0.74rem; margin-bottom: 2px; }
.sender-tag { font-weight: bold; }
.sender-vance { color: #ffaa00; }
.sender-thorne { color: #00e5ff; }
.sender-null { color: #ff3366; }
.sender-daemon { color: #c055ff; }

.item-time { font-size: 0.68rem; color: var(--text-dim); }
.item-subject { font-size: 0.82rem; font-weight: 600; color: var(--text-bright); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-snippet { font-size: 0.74rem; color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.unread-dot { position: absolute; top: 10px; right: 10px; color: var(--accent-cyan); font-size: 0.8rem; animation: pulse-glow 1.2s infinite; }
.inbox-empty { padding: 20px; text-align: center; font-size: 0.8rem; color: var(--text-dim); }

.mail-reader-pane { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 16px; background: rgba(0, 0, 0, 0.65); }
.email-view-placeholder { padding: 40px 20px; text-align: center; font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.email-view-header { border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 14px; min-width: 0; word-break: break-word; }
.classification-strip { display: inline-block; background: var(--accent-red); color: #fff; font-size: 0.68rem; font-weight: bold; padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; letter-spacing: 1px; }
.email-subject-line { font-size: 1.1rem; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; word-break: break-word; line-height: 1.3; }
.email-meta-grid { display: flex; flex-direction: column; gap: 4px; font-size: 0.76rem; }
.meta-row { display: flex; gap: 6px; flex-wrap: wrap; word-break: break-all; }
.meta-label { color: var(--text-dim); min-width: 45px; }
.meta-val { color: var(--text-bright); }
.email-body-content { flex: 1; font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; color: var(--text-main); margin-bottom: 16px; min-width: 0; }

.email-reply-section { border-top: 1px solid var(--border-color); padding-top: 12px; animation: slide-up 0.25s ease-out; min-width: 0; }
.reply-prompt-title { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 8px; }
.reply-button-group { display: flex; flex-direction: column; gap: 6px; }
.btn-email-reply { background: rgba(255, 176, 0, 0.1); border: 1px solid var(--border-color); color: var(--text-bright); padding: 8px 12px; font-family: var(--font-mono); font-size: 0.85rem; text-align: left; cursor: pointer; border-radius: 3px; transition: all 0.15s; }
.btn-email-reply:hover { background: var(--border-bright); color: var(--bg-color); transform: translateX(4px); box-shadow: var(--glow-soft); }

/* Window 3: Brain Diagnostics */
.brain-win-body { display: grid; grid-template-columns: 1fr 240px; height: 100%; }
.brain-diag-left { background: rgba(0, 0, 0, 0.75); border-right: 1px solid var(--border-color); position: relative; overflow: hidden; }
.brain-canvas-frame { width: 100%; height: 100%; position: relative; }
.brain-canvas { width: 100%; height: 100%; }
.brain-overlay-hud { position: absolute; bottom: 10px; left: 12px; right: 12px; pointer-events: none; }
.brain-sector-tag { font-size: 0.78rem; font-weight: bold; color: var(--text-bright); margin-bottom: 4px; }
.brain-integrity-meter { height: 8px; background: rgba(0, 0, 0, 0.8); border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.meter-bar-fill { height: 100%; background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); transition: width 0.4s ease, background 0.4s ease; }
.meter-bar-fill.warn { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }
.meter-bar-fill.danger { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.meter-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); }

.brain-diag-right { padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: rgba(0, 0, 0, 0.45); }
.telemetry-box { padding: 8px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 176, 0, 0.2); border-radius: 3px; }
.telemetry-label { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 4px; }
.telemetry-value { font-size: 1.15rem; font-weight: 700; color: var(--text-bright); display: flex; align-items: baseline; gap: 4px; }
.telemetry-value .unit { font-size: 0.75rem; color: var(--text-dim); }
.ecg-line-container { height: 24px; margin-top: 4px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 176, 0, 0.15); border-radius: 2px; overflow: hidden; }
.ecg-svg { width: 100%; height: 100%; }
.ecg-path { fill: none; stroke: var(--accent-green); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ecg-sweep 1.2s linear infinite; }

@keyframes ecg-sweep { to { stroke-dashoffset: 0; } }

.mini-bar-track { height: 6px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 176, 0, 0.2); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--border-bright); box-shadow: 0 0 6px var(--border-bright); transition: width 0.3s ease; }
.telemetry-sub { font-size: 0.7rem; color: var(--accent-red); margin-top: 2px; }
.objective-text { font-size: 0.8rem; line-height: 1.35; color: var(--text-bright); border-left: 2px solid var(--accent-cyan); padding-left: 6px; margin-top: 4px; }

/* Window 4: File Archives */
.files-win-body { flex-direction: column; }
.files-navbar { padding: 6px 12px; background: var(--bg-window); border-bottom: 1px solid var(--border-color); font-size: 0.78rem; }
.files-path { color: var(--text-bright); font-weight: 600; }
.files-content-split { flex: 1; display: grid; grid-template-columns: 140px 1fr 220px; min-height: 0; }
.files-tree-pane { background: rgba(0, 0, 0, 0.5); border-right: 1px solid var(--border-color); padding: 8px 0; }
.tree-node { display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 0.78rem; cursor: pointer; color: var(--text-dim); }
.tree-node:hover { color: var(--text-bright); background: rgba(255, 176, 0, 0.08); }
.tree-node.active { color: var(--text-bright); background: rgba(255, 176, 0, 0.16); font-weight: bold; }
.files-grid-pane { padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; overflow-y: auto; background: rgba(0, 0, 0, 0.35); align-content: start; }
.file-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; user-select: none; }
.file-card:hover { background: rgba(255, 176, 0, 0.08); border-color: var(--border-color); }
.file-card.selected { background: rgba(255, 176, 0, 0.2); border-color: var(--border-bright); }
.file-card-icon { font-size: 1.8rem; margin-bottom: 4px; }
.file-card-name { font-size: 0.72rem; word-break: break-all; color: var(--text-bright); }
.file-card-type { font-size: 0.65rem; color: var(--text-dim); }
.files-preview-pane { background: rgba(0, 0, 0, 0.6); border-left: 1px solid var(--border-color); padding: 12px; display: flex; flex-direction: column; overflow-y: auto; }
.preview-placeholder { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-top: 30px; }
.preview-title { font-weight: bold; color: var(--text-bright); font-size: 0.85rem; margin-bottom: 2px; }
.preview-type { font-size: 0.7rem; color: var(--accent-cyan); margin-bottom: 8px; }
.preview-text { font-family: var(--font-code); font-size: 0.75rem; white-space: pre-wrap; word-break: break-word; color: var(--text-main); line-height: 1.35; }
.btn-file-action { margin-top: 10px; padding: 6px 10px; background: var(--border-bright); color: var(--bg-color); border: none; font-family: var(--font-mono); font-weight: bold; cursor: pointer; border-radius: 2px; }

/* Window 5: Tactical Manual */
.help-win-body { padding: 16px 20px; overflow-y: auto; display: block; }
.help-win-body h3 { color: var(--text-bright); font-size: 1rem; margin: 14px 0 6px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.help-win-body h3:first-child { margin-top: 0; }
.cmd-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.cmd-list li { font-size: 0.82rem; }
.cmd-list code { color: var(--accent-cyan); font-family: var(--font-code); font-weight: bold; }

/* ==========================================================================
   HACKING MINI-GAMES MODAL STYLING
   ========================================================================== */

.minigame-overlay { z-index: 180; }
.minigame-window { max-width: 680px; width: 100%; border-color: var(--accent-cyan); box-shadow: 0 0 30px rgba(0, 229, 255, 0.6); }
.minigame-subtitle-bar { padding: 6px 16px; background: rgba(0, 0, 0, 0.6); border-bottom: 1px solid var(--border-color); font-size: 0.78rem; color: var(--text-dim); }
.minigame-body { padding: 16px; background: var(--bg-window-dark); }

/* Mini-Game 1: Signal Tuner */
.minigame-tuner-container { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tuner-canvas { background: #060402; border: 1px solid var(--border-bright); border-radius: 4px; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9); }
.tuner-status-bar { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.tuner-resonance-box { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: bold; }
.tuner-res-text { color: var(--accent-cyan); }
.tuner-meter-track { height: 8px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; }
.tuner-meter-fill { height: 100%; background: #ffaa00; transition: width 0.1s ease; }
.tuner-meter-fill.locked { background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }
.tuner-controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.slider-group { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; }
.retro-slider { accent-color: var(--border-bright); cursor: pointer; }
.tuner-actions { margin-top: 8px; }

/* Mini-Game 2: Hex Codebreaker */
.codebreaker-container { display: flex; flex-direction: column; gap: 12px; }
.codebreaker-history { background: rgba(0, 0, 0, 0.7); border: 1px solid var(--border-color); border-radius: 3px; padding: 8px; min-height: 140px; max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-code); font-size: 0.82rem; }
.cb-row { display: grid; grid-template-columns: 60px 220px 1fr; padding: 3px 6px; border-bottom: 1px solid rgba(255, 176, 0, 0.1); }
.cb-row.header { font-weight: bold; color: var(--text-bright); border-bottom: 1px solid var(--border-color); }
.cb-attempt-num { color: var(--text-dim); }
.cb-guess-val { color: var(--accent-cyan); font-weight: bold; }
.fb-exact { color: var(--accent-green); font-weight: bold; }
.fb-near { color: #ffaa00; }
.codebreaker-input-panel { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-color); border-radius: 3px; }
.cb-slots { display: flex; gap: 8px; }
.cb-select { background: var(--bg-window-dark); border: 1px solid var(--border-bright); color: var(--text-bright); font-family: var(--font-code); font-size: 0.95rem; padding: 4px 6px; border-radius: 2px; cursor: pointer; }

/* Mini-Game 3: Circuit Rerouter & Context Modes */
.circuit-container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.circuit-grid { display: grid; grid-template-columns: repeat(4, 70px); grid-template-rows: repeat(4, 70px); gap: 6px; background: rgba(0, 0, 0, 0.8); padding: 10px; border: 2px solid var(--border-color); border-radius: 4px; }
.circuit-tile { background: rgba(255, 176, 0, 0.08); border: 1px solid rgba(255, 176, 0, 0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 3px; transition: transform 0.15s, background 0.15s; user-select: none; position: relative; }
.circuit-tile:hover { background: rgba(255, 176, 0, 0.22); border-color: var(--border-bright); }
.tile-char { font-size: 2rem; color: var(--text-bright); text-shadow: 0 0 6px var(--border-bright); }
.tile-start { border: 2px solid var(--accent-cyan); background: rgba(0, 229, 255, 0.15); }
.tile-end { border: 2px solid var(--accent-green); background: rgba(51, 255, 102, 0.15); }
.circuit-tile.connected .tile-char { color: var(--accent-green); text-shadow: 0 0 12px var(--accent-green); }

/* Path 5: Stealth Tripwire Hazard Nodes */
.circuit-tile.tile-tripwire { border: 1px dashed var(--accent-red); background: rgba(255, 51, 68, 0.15); }
.circuit-tile.tile-tripwire::after { content: '⚠'; position: absolute; top: 2px; right: 4px; font-size: 0.7rem; color: var(--accent-red); }

.circuit-footer { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.ep-start { color: var(--accent-cyan); }
.ep-end { color: var(--accent-green); }

/* Mini-Game 4: Buffer Overflow */
.overflow-container { display: flex; flex-direction: column; gap: 14px; }
.overflow-timer-bar { display: flex; justify-content: space-between; font-size: 1rem; font-weight: bold; padding: 6px 12px; background: rgba(255, 51, 68, 0.2); border: 1px solid var(--accent-red); border-radius: 3px; }
.timer-text { color: var(--accent-red); animation: text-flicker 0.6s infinite; }
.overflow-target-sequence { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-color); border-radius: 3px; }
.seq-label { font-size: 0.78rem; color: var(--text-dim); }
.seq-display { display: flex; gap: 8px; }
.hex-slot { font-family: var(--font-code); font-size: 0.9rem; padding: 4px 8px; border: 1px dashed var(--text-dim); color: var(--text-dim); border-radius: 2px; }
.hex-slot.current { border-color: var(--accent-cyan); color: #fff; background: rgba(0, 229, 255, 0.2); box-shadow: 0 0 8px var(--accent-cyan); }
.hex-slot.completed { border-color: var(--accent-green); color: var(--accent-green); background: rgba(51, 255, 102, 0.15); }
.overflow-scrambler-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.btn-overflow-hex { padding: 10px; background: rgba(255, 176, 0, 0.1); border: 1px solid var(--border-color); color: var(--text-bright); font-family: var(--font-code); font-size: 1rem; cursor: pointer; border-radius: 3px; transition: all 0.15s; }
.btn-overflow-hex:hover { background: var(--border-bright); color: var(--bg-color); transform: scale(1.05); }

/* Notifications & Taskbar */
.toast-container { position: fixed; bottom: 50px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.notification-toast { width: 320px; background: var(--bg-window); border: 1px solid var(--border-bright); border-left: 4px solid var(--border-bright); border-radius: 4px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), var(--glow-soft); cursor: pointer; animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.25s ease; }

@keyframes toast-slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.notification-toast:hover { transform: translateX(-4px); box-shadow: var(--glow-hard); }
.toast-header { display: flex; justify-content: space-between; font-size: 0.74rem; margin-bottom: 4px; }
.toast-sender { font-weight: bold; color: var(--text-bright); }
.toast-time { color: var(--text-dim); }
.toast-subject { font-size: 0.85rem; font-weight: 700; color: var(--text-bright); margin-bottom: 2px; }
.toast-preview { font-size: 0.76rem; color: var(--text-main); }
.toast-null { border-left-color: #ff3366; background: rgba(30, 8, 14, 0.95); }
.toast-null .toast-sender { color: #ff6699; }
.toast-thorne { border-left-color: #00e5ff; }
.toast-vance { border-left-color: #ffaa00; }

.start-menu { position: fixed; bottom: 40px; left: 6px; width: 240px; background: var(--bg-window-dark); border: 2px solid var(--border-bright); border-radius: 4px 4px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.8), var(--glow-soft); z-index: 130; overflow: hidden; animation: start-menu-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes start-menu-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.start-menu-header { padding: 8px 12px; background: var(--bg-titlebar-active); color: #fff; font-weight: 700; font-size: 0.82rem; letter-spacing: 1px; }
.start-menu-list { display: flex; flex-direction: column; padding: 6px 0; }
.start-menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 0.82rem; color: var(--text-bright); cursor: pointer; transition: all 0.15s; }
.start-menu-item:hover { background: var(--border-bright); color: var(--bg-color); }
.start-menu-divider { height: 1px; background: var(--border-color); margin: 4px 0; }

.taskbar { position: fixed; bottom: 0; left: 0; width: 100vw; height: 40px; background: var(--bg-window-dark); border-top: 2px solid var(--border-bright); z-index: 100; display: flex; align-items: center; padding: 0 8px; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6); gap: 8px; }
.btn-start { background: var(--border-bright); color: var(--bg-color); border: none; padding: 5px 14px; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; cursor: pointer; border-radius: 2px; display: flex; align-items: center; gap: 6px; box-shadow: var(--glow-soft); transition: all 0.15s; }
.btn-start:hover, .btn-start.active { background: #fff; color: #000; box-shadow: 0 0 14px #fff; }
.taskbar-tabs { flex: 1; display: flex; gap: 6px; overflow-x: auto; }
.taskbar-tab { background: rgba(255, 176, 0, 0.08); border: 1px solid var(--border-color); color: var(--text-main); padding: 4px 12px; font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer; border-radius: 2px; display: flex; align-items: center; gap: 6px; transition: all 0.15s; white-space: nowrap; }
.taskbar-tab:hover { background: rgba(255, 176, 0, 0.18); color: var(--text-bright); }
.taskbar-tab.active { background: rgba(255, 176, 0, 0.28); border-color: var(--border-bright); color: var(--text-bright); font-weight: bold; }
.taskbar-tab.has-unread { border-color: var(--accent-red); animation: tab-blink 1s infinite; }

@keyframes tab-blink { 0%, 100% { background: rgba(255, 51, 68, 0.35); } 50% { background: rgba(255, 176, 0, 0.1); } }

.tab-unread-dot { color: var(--accent-red); font-weight: bold; display: none; }
.taskbar-tab.has-unread .tab-unread-dot { display: inline; }

.system-tray { display: flex; align-items: center; gap: 8px; }
.tray-chip { font-size: 0.74rem; padding: 3px 8px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 2px; }
.tray-chip .val { font-weight: 600; color: var(--text-bright); }
.val.alert-low { color: var(--accent-green); }
.val.alert-med { color: var(--text-bright); }
.val.alert-high { color: var(--accent-red); animation: text-flicker 0.6s infinite; }
.tray-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 3px 8px; font-family: var(--font-mono); font-size: 0.74rem; cursor: pointer; border-radius: 2px; }
.tray-btn:hover { background: var(--border-bright); color: var(--bg-color); }
.tray-clock { font-size: 0.8rem; font-weight: bold; color: var(--text-bright); padding: 2px 6px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-color); border-radius: 2px; }

/* Modals */
.boot-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 200; background: rgba(5, 3, 2, 0.95); display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(10px); }
.boot-modal { max-width: 620px; width: 100%; background: var(--bg-window-dark); border: 2px solid var(--border-bright); border-radius: 6px; padding: 24px; box-shadow: var(--glow-hard); animation: modal-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes modal-enter { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.boot-header { font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); color: var(--text-bright); }
.blink-dot { display: inline-block; width: 8px; height: 8px; background: var(--accent-red); border-radius: 50%; margin-right: 6px; animation: led-blink 0.8s infinite; }

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

.ascii-logo { font-family: var(--font-display); font-size: 1rem; line-height: 1.1; color: var(--text-bright); margin: 16px 0; text-align: center; text-shadow: var(--glow-hard); }
.boot-status { font-size: 0.9rem; margin-bottom: 6px; }
.boot-status .label { color: var(--text-dim); }
.highlight-text { color: var(--accent-cyan); letter-spacing: 2px; }
.boot-warning { margin: 16px 0; padding: 10px; background: rgba(255, 51, 68, 0.15); border: 1px solid var(--accent-red); color: #ff99aa; font-size: 0.85rem; border-radius: 4px; }
.boot-actions { display: flex; justify-content: center; margin: 20px 0 10px 0; }
.btn-retro { background: var(--border-bright); color: var(--bg-color); border: none; padding: 12px 24px; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; cursor: pointer; border-radius: 4px; box-shadow: var(--glow-hard); transition: all 0.2s; letter-spacing: 1px; }
.btn-retro:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 0 25px #ffffff, 0 0 50px var(--border-bright); }
.boot-footer { font-size: 0.7rem; color: var(--text-dim); text-align: center; margin-top: 14px; border-top: 1px solid rgba(255, 176, 0, 0.15); padding-top: 8px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 150; background: rgba(5, 3, 2, 0.85); display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(6px); }
.modal-window { max-width: 680px; width: 100%; max-height: 85vh; background: var(--bg-window-dark); border: 2px solid var(--border-bright); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--glow-hard); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--bg-titlebar-active); border-bottom: 1px solid var(--border-color); font-weight: 700; color: #fff; }
.modal-close-btn { background: transparent; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.modal-close-btn:hover { color: var(--accent-red); }

.ending-window { max-width: 760px; border-color: var(--accent-red); box-shadow: 0 0 35px rgba(255, 51, 68, 0.7); }
.ending-body { text-align: center; padding: 24px; }
.ending-title { font-size: 1.8rem; color: var(--text-bright); letter-spacing: 2px; margin-bottom: 6px; text-shadow: var(--glow-hard); }
.ending-subtitle { font-size: 1rem; color: var(--accent-cyan); margin-bottom: 20px; }
.ending-narrative { font-size: 0.95rem; line-height: 1.6; text-align: left; background: rgba(0, 0, 0, 0.6); padding: 16px; border: 1px solid var(--border-color); border-radius: 4px; margin-bottom: 20px; white-space: pre-wrap; }
.ending-stats { display: flex; justify-content: space-around; margin-bottom: 20px; font-size: 0.85rem; }

/* ==========================================================================
   PATH 7: BLUE SCREEN OF DEATH (BSOD) OVERLAY
   ========================================================================== */

.bsod-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 300;
  background: #0000aa;
  color: #ffffff;
  font-family: var(--font-code);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-shadow: none;
  overflow: hidden;
  animation: bsod-glitch 0.2s steps(2);
}

@keyframes bsod-glitch {
  0% { transform: scale(1.02); filter: invert(0.8); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.bsod-title {
  background: #aaaaaa;
  color: #0000aa;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.bsod-body {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}

.bsod-code {
  color: #ffff55;
  margin: 16px 0;
}

.bsod-reboot-btn {
  margin-top: 30px;
  padding: 10px 20px;
  background: #ffffff;
  color: #0000aa;
  border: none;
  font-family: var(--font-code);
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.bsod-reboot-btn:hover {
  background: #ffff55;
}

@keyframes pulse-glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.96); } }
@keyframes text-flicker { 0%, 100% { opacity: 1; } 33% { opacity: 0.4; } 66% { opacity: 0.8; } }

@media (max-width: 1200px) { .mail-win-body { grid-template-columns: 130px 180px 1fr; } }
@media (max-width: 800px) { .mail-win-body { grid-template-columns: 1fr; } .mail-sidebar, .mail-inbox-col { display: none; } }
