/**
 * AX OS Applications Styles v4.0
 * Complete window system, apps, and cyberpunk desktop effects
 */

/* ══════════════════════════════════════════════
   WINDOW SYSTEM — Animations & Effects
   ══════════════════════════════════════════════ */

/* Window open animation */
@keyframes ax-win-appear {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  60% { transform: scale(1.01) translateY(-1px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes ax-win-minimize {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.7) translateY(100px); opacity: 0; }
}

@keyframes ax-win-maximize {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ax-win-restore {
  0% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ax-win-glitch {
  0%, 100% { clip-path: inset(0 0 0 0); }
  10% { clip-path: inset(2% 0 8% 0); }
  20% { clip-path: inset(80% 0 1% 0); }
  30% { clip-path: inset(15% 0 60% 0); }
  40% { clip-path: inset(45% 0 30% 0); }
  50% { clip-path: inset(5% 0 70% 0); }
  60% { clip-path: inset(30% 0 20% 0); }
  70% { clip-path: inset(90% 0 5% 0); }
}

.ax-os-win {
  animation: ax-win-appear 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(8, 8, 12, 0.92) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    0 8px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(230, 0, 45, 0.05),
    inset 0 0 60px rgba(230, 0, 45, 0.02) !important;
  transition:
    left 0.08s ease,
    top 0.08s ease,
    width 0.08s ease,
    height 0.08s ease,
    box-shadow 0.2s ease !important;
  overflow: visible !important;
}

.ax-os-win::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(
    135deg,
    rgba(230, 0, 45, 0.06) 0%,
    transparent 30%,
    transparent 70%,
    rgba(230, 0, 45, 0.06) 100%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ax-os-win:hover::before {
  opacity: 1;
}

.ax-os-win:focus-within,
.ax-os-win.is-focused {
  box-shadow:
    0 12px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(230, 0, 45, 0.12),
    0 0 40px rgba(230, 0, 45, 0.04),
    inset 0 0 60px rgba(230, 0, 45, 0.03) !important;
  border-color: rgba(230, 0, 45, 0.15) !important;
}

.ax-os-win.is-minimized {
  animation: ax-win-minimize 0.2s ease forwards;
  pointer-events: none;
}

.ax-os-win.is-maximizing {
  animation: ax-win-maximize 0.2s ease forwards;
}

.ax-os-win.is-restoring {
  animation: ax-win-restore 0.2s ease forwards;
}

.ax-os-win.is-glitching {
  animation: ax-win-glitch 0.3s ease;
}

/* Window header glow */
.ax-os-win-header {
  background: linear-gradient(90deg,
    rgba(15, 15, 20, 0.95),
    rgba(20, 20, 28, 0.95)
  ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  position: relative;
  overflow: visible !important;
}

.ax-os-win-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 45, 0.15), transparent);
}

.ax-os-win-controls button {
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.ax-os-win-close:hover {
  background: rgba(230, 0, 45, 0.3) !important;
  color: #ff4466 !important;
  transform: scale(1.1);
}

.ax-os-win-min:hover {
  background: rgba(255, 200, 40, 0.2) !important;
  color: #ffc828 !important;
  transform: scale(1.1);
}

.ax-os-win-max:hover {
  background: rgba(0, 255, 136, 0.15) !important;
  color: #00ff88 !important;
  transform: scale(1.1);
}

/* Window resize handle - all edges */
.ax-os-win-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(230, 0, 45, 0.08) 50%);
  z-index: 10;
}

.ax-os-win-resize::before {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(230, 0, 45, 0.25);
  border-bottom: 2px solid rgba(230, 0, 45, 0.25);
}

/* Edge resize zones */
.ax-os-win-resize-n,
.ax-os-win-resize-s,
.ax-os-win-resize-e,
.ax-os-win-resize-w,
.ax-os-win-resize-ne,
.ax-os-win-resize-nw,
.ax-os-win-resize-se,
.ax-os-win-resize-sw {
  position: absolute;
  z-index: 9;
}

.ax-os-win-resize-n { top: -3px; left: 4px; right: 4px; height: 6px; cursor: n-resize; }
.ax-os-win-resize-s { bottom: -3px; left: 4px; right: 4px; height: 6px; cursor: s-resize; }
.ax-os-win-resize-e { right: -3px; top: 4px; bottom: 4px; width: 6px; cursor: e-resize; }
.ax-os-win-resize-w { left: -3px; top: 4px; bottom: 4px; width: 6px; cursor: w-resize; }
.ax-os-win-resize-ne { top: -3px; right: -3px; width: 10px; height: 10px; cursor: ne-resize; }
.ax-os-win-resize-nw { top: -3px; left: -3px; width: 10px; height: 10px; cursor: nw-resize; }
.ax-os-win-resize-se { bottom: -3px; right: -3px; width: 10px; height: 10px; cursor: se-resize; }
.ax-os-win-resize-sw { bottom: -3px; left: -3px; width: 10px; height: 10px; cursor: sw-resize; }

/* Snap overlay preview */
.ax-snap-overlay {
  position: fixed;
  z-index: 2147483646;
  pointer-events: none;
  background: rgba(230, 0, 45, 0.04);
  border: 2px solid rgba(230, 0, 45, 0.15);
  transition: all 0.15s ease;
  display: none;
}

.ax-snap-overlay.left {
  left: 0; top: 0; width: 50%; height: 100%;
}

.ax-snap-overlay.right {
  left: 50%; top: 0; width: 50%; height: 100%;
}

.ax-snap-overlay.top {
  left: 0; top: 0; width: 100%; height: 50%;
}

.ax-snap-overlay.bottom {
  left: 0; top: 50%; width: 100%; height: 50%;
}

.ax-snap-overlay.top-left {
  left: 0; top: 0; width: 50%; height: 50%;
}

.ax-snap-overlay.top-right {
  left: 50%; top: 0; width: 50%; height: 50%;
}

.ax-snap-overlay.bottom-left {
  left: 0; top: 50%; width: 50%; height: 50%;
}

.ax-snap-overlay.bottom-right {
  left: 50%; top: 50%; width: 50%; height: 50%;
}

/* ══════════════════════════════════════════════
   TASKBAR ENHANCEMENTS
   ══════════════════════════════════════════════ */
.ax-os-taskbar {
  background: rgba(6, 6, 10, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.ax-os-taskbar-item {
  transition: all 0.2s ease;
  position: relative;
}

.ax-os-taskbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: rgba(230, 0, 45, 0.6);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.ax-os-taskbar-item.is-active::after {
  transform: scaleX(1);
}

.ax-os-taskbar-item:hover::after {
  transform: scaleX(0.6);
}

.ax-os-taskbar-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ══════════════════════════════════════════════
   START MENU ENHANCEMENTS
   ══════════════════════════════════════════════ */
.ax-os-startmenu {
  background: rgba(6, 6, 10, 0.96) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  animation: ax-win-appear 0.2s ease;
}

.ax-os-startmenu-item {
  transition: all 0.15s ease;
}

.ax-os-startmenu-item:hover {
  background: rgba(230, 0, 45, 0.1) !important;
  padding-left: 24px !important;
  border-left: 2px solid rgba(230, 0, 45, 0.4);
}

.ax-os-startmenu-lock {
  cursor: pointer;
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.ax-os-startmenu-lock:hover {
  background: rgba(0, 255, 255, 0.08);
  color: rgba(0, 255, 255, 0.7);
}

/* ══════════════════════════════════════════════
   CONTEXT MENU
   ══════════════════════════════════════════════ */
.ax-os-ctxmenu {
  background: rgba(6, 6, 10, 0.96) !important;
  backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  animation: ax-win-appear 0.12s ease;
}

.ax-os-ctxmenu-item:hover {
  background: rgba(230, 0, 45, 0.12) !important;
}

/* ══════════════════════════════════════════════
   DIGITAL RAIN EFFECT
   ══════════════════════════════════════════════ */
.ax-digital-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ax-digital-rain-col {
  position: absolute;
  top: -100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0, 255, 136, 0.08);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: -2px;
  animation: ax-rain-fall linear infinite;
}

@keyframes ax-rain-fall {
  0% { transform: translateY(-10vh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* Desktop icon enhancement */
.ax-os-icon {
  transition: all 0.2s ease;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px;
}

.ax-os-icon:hover {
  background: rgba(230, 0, 45, 0.06);
  border-color: rgba(230, 0, 45, 0.1);
  transform: translateY(-2px);
}

.ax-os-icon:active {
  transform: scale(0.95);
}

/* Wallpaper overlay */
.ax-os-wallpaper {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 0, 45, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 100, 255, 0.02) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Desktop clock enhancement */
.ax-os-clock-time {
  text-shadow:
    0 0 20px rgba(230, 0, 45, 0.15),
    0 0 40px rgba(230, 0, 45, 0.05);
}

/* ══════════════════════════════════════════════
   SYSTEM MONITOR APP
   ══════════════════════════════════════════════ */
.ax-monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.ax-monitor-card {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 0;
  transition: all 0.2s ease;
}

.ax-monitor-card:hover {
  border-color: rgba(230, 0, 45, 0.12);
}

.ax-monitor-card-header {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
}

.ax-monitor-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #c4c4cc;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 4px;
}

.ax-monitor-card-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 8px;
  overflow: hidden;
}

.ax-monitor-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(230, 0, 45, 0.6), rgba(230, 0, 45, 0.3));
  transition: width 0.5s ease;
}

.ax-monitor-card-bar-fill.blue {
  background: linear-gradient(90deg, rgba(0, 136, 255, 0.6), rgba(0, 136, 255, 0.3));
}

.ax-monitor-card-bar-fill.green {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.6), rgba(0, 255, 136, 0.3));
}

.ax-monitor-card-bar-fill.yellow {
  background: linear-gradient(90deg, rgba(255, 200, 40, 0.6), rgba(255, 200, 40, 0.3));
}

.ax-monitor-process-list {
  grid-column: 1 / -1;
  max-height: 120px;
  overflow-y: auto;
}

.ax-monitor-process {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.ax-monitor-process:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ax-monitor-pname {
  color: rgba(255, 255, 255, 0.7);
}

.ax-monitor-pcpu {
  color: rgba(255, 255, 255, 0.5);
  width: 60px;
  text-align: right;
}

.ax-monitor-pmem {
  color: rgba(255, 255, 255, 0.5);
  width: 80px;
  text-align: right;
}

/* ══════════════════════════════════════════════
   NETWORK SCANNER APP
   ══════════════════════════════════════════════ */
.ax-net-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ax-net-header-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
}

.ax-net-header-value {
  font-size: 12px;
  color: #c4c4cc;
  font-family: 'JetBrains Mono', monospace;
}

.ax-net-list {
  padding: 6px 0;
  max-height: calc(100% - 60px);
  overflow-y: auto;
}

.ax-net-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
  cursor: pointer;
}

.ax-net-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ax-net-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ax-net-status-dot.online {
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

.ax-net-status-dot.secure {
  background: #4488ff;
  box-shadow: 0 0 6px rgba(68, 136, 255, 0.4);
}

.ax-net-status-dot.warn {
  background: #ffaa00;
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
}

.ax-net-status-dot.encrypted {
  background: #e6002d;
  box-shadow: 0 0 6px rgba(230, 0, 45, 0.4);
}

.ax-net-item-info {
  flex: 1;
  min-width: 0;
}

.ax-net-item-name {
  font-size: 11px;
  color: #c4c4cc;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}

.ax-net-item-detail {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ax-net-item-action {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.15s ease;
}

.ax-net-item:hover .ax-net-item-action {
  color: rgba(230, 0, 45, 0.3);
}

.ax-net-empty {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

/* ══════════════════════════════════════════════
   QUICK SETTINGS PANEL
   ══════════════════════════════════════════════ */
.ax-quick-settings {
  position: fixed;
  right: 0;
  bottom: 42px;
  width: 280px;
  background: rgba(6, 6, 10, 0.97);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-right: none;
  border-bottom: none;
  z-index: 2147483645;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 16px;
}

.ax-quick-settings.is-open {
  transform: translateX(0);
}

.ax-qs-header {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ax-qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ax-qs-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ax-qs-toggle:hover {
  background: rgba(230, 0, 45, 0.06);
  border-color: rgba(230, 0, 45, 0.12);
}

.ax-qs-toggle.is-active {
  background: rgba(230, 0, 45, 0.08);
  border-color: rgba(230, 0, 45, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.ax-qs-icon {
  font-size: 18px;
}

.ax-qs-label {
  font-size: 8px;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════
   NOTIFICATION TOASTS
   ══════════════════════════════════════════════ */
.ax-notification-container {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ax-notification {
  pointer-events: all;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(230, 0, 45, 0.4);
  padding: 14px 16px;
  max-width: 320px;
  min-width: 240px;
  transform: translateX(120%);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.ax-notification.is-visible {
  transform: translateX(0);
}

.ax-notification.is-dismissing {
  transform: translateX(120%);
  opacity: 0;
}

.ax-notification-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ax-notification-msg {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

/* ══════════════════════════════════════════════
   LOCK SCREEN
   ══════════════════════════════════════════════ */
.ax-os-lock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ax-os-lock-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,255,0.015) 2px, rgba(0,255,255,0.015) 4px);
  pointer-events: none;
}
.ax-os-lock-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.ax-os-lock-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.ax-os-lock-icon {
  font-size: 48px;
  color: rgba(0, 255, 255, 0.5);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(0,255,255,0.2);
  animation: ax-lock-pulse 2s ease-in-out infinite;
}
@keyframes ax-lock-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.ax-os-lock-time {
  font-size: 96px;
  font-weight: 300;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(0,255,255,0.15);
}
.ax-os-lock-date {
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  letter-spacing: 0.2em;
}
.ax-os-lock-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.4), transparent);
  margin: 24px auto;
}
.ax-os-lock-msg {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(0, 255, 255, 0.5);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.ax-os-lock-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ax-os-lock-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.ax-os-lock-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 4px;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  width: 200px;
  text-align: center;
  letter-spacing: 0.3em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ax-os-lock-input:focus {
  border-color: rgba(0,255,255,0.6);
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
}
.ax-os-lock-input::placeholder { color: rgba(255,255,255,0.15); letter-spacing: 0.1em; }
.ax-os-lock-btn {
  background: rgba(0,255,255,0.1);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 16px;
  color: rgba(0,255,255,0.7);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.ax-os-lock-btn:hover {
  background: rgba(0,255,255,0.2);
  border-color: rgba(0,255,255,0.6);
}
.ax-os-lock-error {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 0, 80, 0.8);
  margin-top: 12px;
  min-height: 14px;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}
.ax-os-lock-hint {
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.12);
  margin-top: 16px;
  letter-spacing: 0.15em;
}
@keyframes ax-lock-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.ax-os-lock-input.is-error {
  border-color: rgba(255,0,80,0.6);
  box-shadow: 0 0 20px rgba(255,0,80,0.15);
  animation: ax-lock-shake 0.4s ease;
}

/* ══════════════════════════════════════════════
   DESKTOP WIDGETS — Mini Panel + Ticker
   ══════════════════════════════════════════════ */
.ax-desktop-widgets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.ax-dw-mini-panel {
  position: absolute;
  top: 80px;
  right: 16px;
  background: rgba(6, 6, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 120px;
  pointer-events: auto;
}
.ax-dw-mini-header {
  font-size: 7px;
  letter-spacing: 0.25em;
  color: rgba(0, 255, 255, 0.35);
  margin-bottom: 8px;
  text-align: center;
}
.ax-dw-mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.ax-dw-mini-label {
  color: rgba(255,255,255,0.3);
  width: 24px;
}
.ax-dw-mini-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.ax-dw-mini-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0,255,255,0.5), rgba(0,255,255,0.8));
  transition: width 0.5s ease;
}
.ax-dw-mini-val {
  width: 28px;
  text-align: right;
  color: rgba(255,255,255,0.4);
}
.ax-dw-net-dot {
  font-size: 6px;
  color: rgba(0, 255, 100, 0.5);
  animation: ax-dw-pulse 1.5s ease-in-out infinite;
}
@keyframes ax-dw-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.ax-dw-net-val {
  color: rgba(255,255,255,0.25);
  margin-left: auto;
}
.ax-dw-ticker {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 6, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 4px;
  padding: 4px 20px;
  overflow: hidden;
  white-space: nowrap;
  max-width: 70%;
  pointer-events: none;
}
.ax-dw-ticker-text {
  font-size: 7px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(0, 255, 255, 0.2);
  letter-spacing: 0.2em;
  animation: ax-dw-scroll 30s linear infinite;
}
@keyframes ax-dw-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════════
   SCORPION ICON — cyberpunk branding
   ══════════════════════════════════════════════ */
.ax-scorpion-icon {
  font-size: inherit;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(230,0,45,0.4));
}
.ax-scorpion-glow {
  font-size: 48px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 0 20px rgba(230,0,45,0.5)) brightness(1.2);
  animation: ax-scorpion-pulse 2.2s ease-in-out infinite;
}
.ax-scorpion-boot {
  font-size: 60px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 0 30px rgba(230,0,45,0.4)) brightness(1.1);
  animation: ax-scorpion-pulse 2.5s ease-in-out infinite;
}
.ax-scorpion-sm {
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  display: inline;
  filter: drop-shadow(0 0 6px rgba(230,0,45,0.3));
}
@keyframes ax-scorpion-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ══════════════════════════════════════════════
   LOGO IMAGE — brand mark
   ══════════════════════════════════════════════ */
.ax-os-logo-img {
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  display: inline;
  object-fit: contain;
  filter: brightness(1.15) contrast(1.1);
}

/* ══════════════════════════════════════════════
   KEYBOARD SHORTCUT HINT
   ══════════════════════════════════════════════ */
.ax-key-hint {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 100;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  line-height: 1.8;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.ax-key-hint.is-hidden { opacity: 0; }

/* ──── TEXT EDITOR ──── */
.ax-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(20, 20, 25, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.ax-editor-path {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ax-editor-actions {
  display: flex;
  gap: 8px;
}

.ax-editor-status {
  padding: 8px 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ax-editor-textarea {
  width: 100%;
  height: calc(100% - 90px);
  background: rgba(10, 10, 15, 0.95);
  border: none;
  color: #c4c4cc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 16px;
  resize: none;
  outline: none;
  line-height: 1.6;
}

.ax-editor-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ──── PROCESS MANAGER ──── */
.ax-proc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(20, 20, 25, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

.ax-proc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ax-proc-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ax-proc-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #00ff88;
  font-family: 'JetBrains Mono', monospace;
}

.ax-proc-actions {
  display: flex;
  gap: 8px;
}

.ax-proc-list-header {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 100px 80px;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(30, 30, 35, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ax-proc-list {
  overflow-y: auto;
  max-height: calc(100% - 120px);
}

.ax-proc-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 100px 80px;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  transition: background 0.15s ease;
}

.ax-proc-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ax-proc-pid {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
}

.ax-proc-name {
  font-size: 12px;
  color: #c4c4cc;
  font-family: 'JetBrains Mono', monospace;
}

.ax-proc-cpu {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
}

.ax-proc-mem {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
}

.ax-proc-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ax-proc-kill {
  font-size: 10px;
  padding: 4px 12px;
  background: rgba(230, 0, 45, 0.2);
  border: 1px solid rgba(230, 0, 45, 0.3);
  color: #ff4466;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ax-proc-kill:hover {
  background: rgba(230, 0, 45, 0.4);
  border-color: rgba(230, 0, 45, 0.5);
}

/* ──── SYSTEM LOGS ──── */
.ax-log-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(20, 20, 25, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.ax-log-filters {
  display: flex;
  gap: 8px;
}

.ax-log-select {
  padding: 6px 12px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c4c4cc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  outline: none;
}

.ax-log-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.ax-log-actions {
  display: flex;
  gap: 8px;
}

.ax-log-list {
  overflow-y: auto;
  max-height: calc(100% - 60px);
  padding: 8px 0;
}

.ax-log-row {
  display: grid;
  grid-template-columns: 80px 80px 120px 1fr;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  align-items: center;
  font-size: 11px;
  transition: background 0.15s ease;
}

.ax-log-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ax-log-time {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

.ax-log-level {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.ax-log-source {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
}

.ax-log-message {
  color: #c4c4cc;
}

.ax-log-empty {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* ──── SECURITY DASHBOARD ──── */
.ax-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

.ax-security-card {
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  transition: all 0.2s ease;
}

.ax-security-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.ax-security-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ax-security-icon {
  font-size: 20px;
}

.ax-security-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ax-security-status {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.ax-security-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ax-security-stat {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

.ax-security-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(20, 20, 25, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ax-security-log {
  padding: 12px 16px;
  background: rgba(10, 10, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 200px;
  overflow-y: auto;
}

.ax-security-log-entry {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.ax-security-log-entry:last-child {
  border-bottom: none;
}

.ax-log-msg {
  color: rgba(255, 255, 255, 0.7);
}

/* ──── FILE EXPLORER ENHANCEMENTS ──── */
.ax-files-error {
  padding: 40px;
  text-align: center;
  color: rgba(255, 68, 68, 0.8);
  font-size: 12px;
}

.ax-files-empty {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.ax-file-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ax-file-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ──── RESPONSIVE ──── */
@media (max-width: 768px) {
  .ax-security-grid {
    grid-template-columns: 1fr;
  }
  
  .ax-proc-list-header,
  .ax-proc-row {
    grid-template-columns: 50px 1fr 60px 60px 60px;
    gap: 8px;
  }
  
  .ax-log-row {
    grid-template-columns: 60px 60px 100px 1fr;
    gap: 8px;
  }
}
