:root {
  --glass-bg: rgba(15, 18, 30, 0.8);
  --glass-elev: rgba(20, 24, 40, 0.9);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-focus: rgba(192, 132, 252, 0.44);
  --glass-blur: 28px;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 72% 24%, #40145c 0%, #1d092e 38%, #0a0312 76%, #050209 100%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Noto Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.hidden { display: none !important; }
button, input, textarea { font-family: inherit; }

#wallpaper { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wallpaper-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 14% 88%, rgba(0,0,0,0.55) 0%, transparent 56%),
              radial-gradient(ellipse at 85% 12%, rgba(168,85,247,0.12) 0%, transparent 50%);
}

#desktop { position: fixed; inset: 0; z-index: 2; overflow: hidden; }
.desktop-icons { position: absolute; top: 18px; left: 16px; display: flex; flex-direction: column; gap: 14px; z-index: 5; }
.desktop-icon {
  width: 78px; padding: 8px 6px; border-radius: 12px; background: transparent;
  border: 1px solid transparent; color: #f8fafc; display: flex; flex-direction: column;
  align-items: center; gap: 6px; cursor: pointer; transition: background 0.14s, border-color 0.14s;
}
.desktop-icon:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.desktop-icon.selected { background: rgba(168,85,247,0.24); border-color: rgba(192,132,252,0.5); backdrop-filter: blur(8px); }
.desktop-icon .icon-wrap { width: 46px; height: 46px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.52)); }
.desktop-icon span { font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; text-shadow: 0 1px 5px rgba(0,0,0,0.9); }

.window-layer { position: absolute; inset: 0; pointer-events: none; z-index: 10; }

.win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  border-radius: 16px; background: transparent; isolation: isolate;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 70px rgba(0,0,0,0.64), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden; transition: opacity 0.16s ease, box-shadow 0.18s ease;
}
.win::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  pointer-events: none;
}
.win.focused { border-color: var(--glass-focus); box-shadow: 0 28px 86px rgba(0,0,0,0.78), 0 0 0 1px rgba(168,85,247,0.18); }
.win.minimized { opacity: 0; pointer-events: none; transform: scale(0.94) translateY(24px); }
.win.maximized { top: 10px !important; left: 10px !important; width: calc(100vw - 20px) !important; height: calc(100dvh - 86px) !important; border-radius: 14px; }

.win-titlebar {
  height: 42px; padding: 0 10px 0 14px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08); cursor: grab; flex-shrink: 0;
}
.win-titlebar:active { cursor: grabbing; }
.win-title-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.win-title-icon { width: 20px; height: 20px; flex-shrink: 0; }
.win-title-text { font-size: 13px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.win-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: #cbd5e1;
  display: grid; place-items: center; cursor: pointer; transition: background 0.14s, color 0.14s;
}
.win-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.win-btn.close:hover { background: rgba(239,68,68,0.85); color: #fff; }
.win-body { flex: 1; overflow: auto; user-select: text; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.win-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; z-index: 4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.08);
  color: #f8fafc; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 0.12s, background 0.14s, border-color 0.14s, opacity 0.14s;
}
.btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.24); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { width: 100%; background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%); border-color: rgba(216,180,254,0.35); box-shadow: 0 8px 20px rgba(109,40,217,0.35); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
.btn-auto { width: auto; }
.btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-color: rgba(167,243,208,0.35); }
.btn-green:hover:not(:disabled) { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); border-color: rgba(167,243,208,0.55); color: #ffffff; }
.btn-trip { background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%); border-color: rgba(147,197,253,0.45); }
.btn-trip:hover:not(:disabled) { background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%); border-color: rgba(147,197,253,0.7); color: #ffffff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; color: #e2e8f0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.11);
}
.dot-g { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.8); }
.dot-p { width: 7px; height: 7px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 8px rgba(192,132,252,0.8); }

.pane { padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; }
.kv-grid { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; }
.kv-key { color: var(--text-muted); }
.kv-val { color: #f8fafc; font-weight: 500; }
.input-dark, .textarea-dark {
  width: 100%; padding: 8px 11px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28); color: #f8fafc; font-size: 12.5px; outline: none;
}
.input-dark:focus, .textarea-dark:focus { border-color: rgba(168,85,247,0.55); }
.textarea-dark { resize: vertical; min-height: 74px; line-height: 1.5; }

/* Proton Mail */
.pm-shell { display: grid; grid-template-columns: 168px 1fr; height: 100%; min-height: 460px; }
.pm-side {
  padding: 14px 10px; background: rgba(15,12,28,0.68); border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 6px;
}
.pm-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-size: 13.5px; font-weight: 700; color: #ddd6fe; }
.pm-nav {
  border: 0; background: transparent; color: #cbd5e1; text-align: left; padding: 8px 10px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.pm-nav.active, .pm-nav:hover { background: rgba(124,58,237,0.25); color: #fff; }
.pm-main { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.pm-intro { padding: 11px 14px; border-radius: 12px; background: rgba(124,58,237,0.14); border: 1px solid rgba(167,139,250,0.26); }
.pm-intro h1 { margin: 0 0 3px; font-size: 16px; color: #fff; }
.pm-intro p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #cbd5e1; }
.pm-field { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 12.5px; }
.pm-field label { color: var(--text-muted); font-weight: 500; }
.pm-to-pill { padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: #d8b4fe; }
.pm-captcha-box {
  position: relative; isolation: isolate; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.turnstile-slot { min-height: 68px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.win:not(.focused) .pm-captcha-box { min-height: 144px; justify-content: flex-end; }
.win:not(.focused) .turnstile-slot { position: fixed; left: -9999px; top: -9999px; width: 300px; height: 65px; visibility: hidden; pointer-events: none; }
.turnstile-loading { font-size: 12px; color: var(--text-muted); padding: 10px 14px; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.16); }
.pm-status { margin: 0; font-size: 12px; text-align: center; color: var(--text-muted); min-height: 16px; }
.pm-status.error { color: #fca5a5; }
.pm-unlocked {
  padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(124,58,237,0.16));
  border: 1px solid rgba(110,231,183,0.38); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.pm-email-code { font-family: ui-monospace, monospace; font-size: 15px; font-weight: 700; color: #fff; padding: 7px 12px; border-radius: 8px; background: rgba(0,0,0,0.34); }
.pm-mail-item { padding: 12px; border-radius: 10px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); }
.pm-mail-item h4 { margin: 0 0 4px; font-size: 13px; color: #fff; }
.pm-mail-item p { margin: 0; font-size: 12px; color: var(--text-soft); line-height: 1.5; }

/* Microsoft Edge + Trip.com */
.edge-chrome { display: flex; flex-direction: column; height: 100%; }
.edge-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(12,16,28,0.75); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.edge-url {
  flex: 1; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: #e2e8f0;
}
.trip-page {
  flex: 1; padding: 20px; overflow: auto;
  background: linear-gradient(180deg, #0f2d6e 0%, #1d4ed8 32%, #0f172a 100%);
  display: flex; flex-direction: column; gap: 16px;
}
.trip-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.trip-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.trip-logo span { color: #fbbf24; }
.trip-card {
  padding: 18px; border-radius: 14px; background: rgba(255,255,255,0.97); color: #0f172a;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 14px;
}
.trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trip-box { padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1; background: #f8fafc; }
.trip-box label { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 4px; }
.trip-box input { width: 100%; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: #0f172a; outline: none; }
.trip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trip-chip { padding: 5px 10px; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.trip-chip:hover { background: #dbeafe; }

/* WeChat World Leaders */
.wc-layout { display: grid; grid-template-columns: 235px 1fr; height: 100%; min-height: 410px; }
.wc-side { background: rgba(10,12,20,0.62); border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; overflow: hidden; }
.wc-top-bar { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 6px; }
.wc-list { flex: 1; overflow: auto; }
.wc-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; width: 100%;
  border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.wc-row:hover, .wc-row.active { background: rgba(255,255,255,0.09); }
.wc-pic { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex-shrink: 0; position: relative; }
.wc-pic svg { width: 40px; height: 40px; display: block; }
.wc-unread { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.wc-chat { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.wc-head { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wc-msgs { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.wc-msg-row { display: flex; gap: 10px; align-items: flex-start; }
.wc-msg-row.me { flex-direction: row-reverse; }
.wc-bubble-wrap { max-width: 82%; display: flex; flex-direction: column; gap: 5px; }
.wc-bubble { padding: 10px 13px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); font-size: 13px; line-height: 1.5; color: #f1f5f9; }
.wc-bubble.me { background: rgba(7,193,96,0.28); border-color: rgba(43,229,119,0.38); }
.wc-trans { padding: 8px 11px; border-radius: 10px; background: rgba(15,23,42,0.7); border-left: 3px solid #22c55e; font-size: 12px; line-height: 1.45; color: #cbd5e1; }
.wc-trans-tag { font-size: 10.5px; color: #4ade80; font-weight: 600; display: block; margin-bottom: 2px; }
.wc-compose { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 8px; }

/* QQ Music */
.qq-wrap { display: flex; flex-direction: column; height: 100%; }
.qq-head {
  padding: 14px 18px; background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(15,23,42,0.85));
  border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.qq-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.qq-tab { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #cbd5e1; font-size: 12px; font-weight: 600; cursor: pointer; }
.qq-tab.active { background: #10b981; border-color: #34d399; color: #052e16; }
.qq-list { flex: 1; overflow: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 5px; }
.qq-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px;
  border-radius: 10px; text-decoration: none; color: inherit; background: rgba(255,255,255,0.035);
  border: 1px solid transparent; transition: background 0.14s, border-color 0.14s;
}
.qq-row:hover, .qq-row.active { background: rgba(16,185,129,0.16); border-color: rgba(52,211,153,0.35); }
.qq-yt { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(239,68,68,0.2); color: #fca5a5; white-space: nowrap; }
.qq-bar { padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(8,12,20,0.72); display: flex; align-items: center; justify-content: space-between; font-size: 12px; }

/* Proton VPN */
.vpn-card { padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.vpn-map { width: 100%; height: 170px; border-radius: 14px; background: rgba(8,12,24,0.65); border: 1px solid rgba(255,255,255,0.09); display: grid; place-items: center; position: relative; overflow: hidden; }
.vpn-pulse { animation: pulse 1.8s infinite; transform-origin: center; }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.45); } 100% { opacity: 0.9; transform: scale(1); } }

/* File Manager */
.fm-wrap { display: flex; flex-direction: column; height: 100%; }
.fm-bar { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 8px; background: rgba(10,12,22,0.5); font-size: 12px; }
.fm-body { flex: 1; display: grid; grid-template-columns: 150px 1fr; overflow: hidden; }
.fm-side { padding: 10px 8px; border-right: 1px solid rgba(255,255,255,0.08); background: rgba(10,12,20,0.45); display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.fm-nav { border: 0; background: transparent; color: #cbd5e1; text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.fm-nav.active, .fm-nav:hover { background: rgba(168,85,247,0.24); color: #fff; }
.fm-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
.fm-item {
  padding: 10px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  color: #f1f5f9; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 11.5px; text-align: center;
}
.fm-item:hover { background: rgba(255,255,255,0.1); border-color: rgba(192,132,252,0.42); }
.fm-preview { padding: 11px 13px; border-radius: 10px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.08); font-size: 12px; line-height: 1.5; color: #cbd5e1; white-space: pre-wrap; }

/* Calendar + Agenda */
.cal-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; height: 100%; min-height: 360px; }
.cal-left { padding: 16px; border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-dow { font-size: 11px; font-weight: 600; color: var(--text-muted); padding-bottom: 2px; }
.cal-day {
  padding: 7px 0; border-radius: 8px; font-size: 12.5px; border: 1px solid transparent; background: rgba(255,255,255,0.03);
  color: #e2e8f0; cursor: pointer; position: relative;
}
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.selected { border-color: #c084fc; background: rgba(168,85,247,0.22); }
.cal-day.today { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); color: #fff; font-weight: 700; }
.cal-ev-dot { width: 4px; height: 4px; border-radius: 50%; background: #38bdf8; margin: 2px auto 0; }
.cal-right { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }

/* Terminal, Calculator, Code */
.terminal-wrap { padding: 14px 16px; font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.55; background: rgba(8,10,18,0.74); min-height: 100%; display: flex; flex-direction: column; gap: 5px; }
.term-line { white-space: pre-wrap; word-break: break-word; color: #e2e8f0; }
.term-line.accent { color: #c084fc; }
.term-line.muted { color: #94a3b8; }
.term-prompt-row { display: flex; align-items: center; gap: 8px; }
.term-prompt { color: #38bdf8; font-weight: 600; white-space: nowrap; }
.term-input { flex: 1; background: transparent; border: 0; outline: none; color: #f8fafc; font-family: inherit; font-size: inherit; }

.calc-wrap { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.calc-display { padding: 14px; border-radius: 12px; background: rgba(0,0,0,0.36); text-align: right; font-family: ui-monospace, monospace; font-size: 25px; font-weight: 600; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-key { height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.06); color: #f8fafc; font-size: 15px; font-weight: 600; cursor: pointer; }
.calc-key.op { background: rgba(168,85,247,0.24); }
.calc-key.eq { background: linear-gradient(135deg, #f59e0b, #ea580c); }

/* Dock & Tray */
.dock-shell { position: fixed; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; z-index: 900; }
.dock {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 20px);
  padding: 5px 8px; border-radius: 18px; background: rgba(14,17,28,0.76);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 16px 46px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
}
.dock-apps { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.dock-apps::-webkit-scrollbar { display: none; }
.dock-item {
  position: relative; width: 30px; height: 30px; border: 0; padding: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform 0.15s, filter 0.15s;
}
.dock-item:hover { transform: translateY(-4px) scale(1.09); filter: drop-shadow(0 6px 12px rgba(168,85,247,0.4)); }
.dock-item svg { width: 28px; height: 28px; display: block; }
.dock-dot { position: absolute; bottom: -4px; left: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); background: #c084fc; box-shadow: 0 0 8px #a855f7; opacity: 0; }
.dock-item.open .dock-dot { opacity: 1; }
.dock-sep { width: 1px; height: 26px; background: rgba(255,255,255,0.14); flex-shrink: 0; }
.dock-tray { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.tray-btn { height: 28px; min-width: 24px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: #e2e8f0; font-size: 11px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tray-btn:hover { background: rgba(255,255,255,0.12); }
.tray-vpn-on { background: rgba(16,185,129,0.2) !important; color: #6ee7b7 !important; border: 1px solid rgba(52,211,153,0.35); }
.tray-clock { padding: 2px 6px; border-radius: 8px; border: 0; background: transparent; color: #f8fafc; text-align: right; cursor: pointer; display: flex; flex-direction: column; line-height: 1.15; }
.tray-clock:hover { background: rgba(255,255,255,0.12); }
.tray-time { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tray-date { font-size: 10px; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dock-ai { width: 30px; height: 30px; border: 0; padding: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.dock-tooltip { position: fixed; z-index: 950; padding: 5px 10px; border-radius: 8px; background: rgba(15,18,30,0.94); border: 1px solid rgba(255,255,255,0.16); color: #f8fafc; font-size: 11.5px; font-weight: 600; pointer-events: none; transform: translateX(-50%); }

/* Deepin 25 Launcher Popup */
.launcher-popup {
  position: fixed; left: 14px; bottom: 68px; width: min(690px, calc(100vw - 28px)); height: min(500px, calc(100dvh - 90px));
  z-index: 960; border-radius: 18px; background: rgba(14,17,28,0.88);
  backdrop-filter: blur(34px) saturate(165%); -webkit-backdrop-filter: blur(34px) saturate(165%);
  border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 28px 80px rgba(0,0,0,0.75);
  display: flex; flex-direction: column; overflow: hidden;
}
.launcher-popup.expanded { left: 16px; right: 16px; top: 16px; bottom: 72px; width: auto; height: auto; }
.ln-body { flex: 1; display: grid; grid-template-columns: 42px 190px 1fr; overflow: hidden; }
.ln-rail { padding: 12px 4px; border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.ln-rail-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #cbd5e1; cursor: pointer; font-size: 13px; }
.ln-rail-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ln-list { padding: 10px 8px; border-right: 1px solid rgba(255,255,255,0.08); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ln-list-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: #e2e8f0; font-size: 12.5px; cursor: pointer; text-align: left; }
.ln-list-item:hover { background: rgba(168,85,247,0.22); color: #fff; }
.ln-list-icon { width: 22px; height: 22px; flex-shrink: 0; }
.ln-right { padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.ln-sec-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: #cbd5e1; }
.ln-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ln-tile { border: 1px solid transparent; background: transparent; border-radius: 12px; padding: 10px 4px; color: #f8fafc; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 11.5px; text-align: center; }
.ln-tile:hover { background: rgba(255,255,255,0.09); border-color: rgba(192,132,252,0.35); }
.ln-tile-icon { width: 42px; height: 42px; }
.ln-foot { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; background: rgba(8,10,18,0.45); }

/* Search, Lock, Context, Popover */
.overlay-spotlight { position: fixed; inset: 0; z-index: 965; background: rgba(0,0,0,0.42); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; }
.spotlight-box { width: min(520px, calc(100vw - 24px)); border-radius: 16px; background: var(--glass-elev); backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 26px 70px rgba(0,0,0,0.7); overflow: hidden; }
.spotlight-input { width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: transparent; color: #fff; font-size: 15px; outline: none; }
.spotlight-list { max-height: 300px; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.spotlight-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: #f1f5f9; cursor: pointer; text-align: left; }
.spotlight-row:hover { background: rgba(168,85,247,0.24); }
.overlay-lock { position: fixed; inset: 0; z-index: 980; background: rgba(10,6,22,0.74); backdrop-filter: blur(34px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.lock-time { font-size: clamp(46px, 9vw, 72px); font-weight: 700; color: #fff; }
.lock-date { font-size: 16px; color: #d8b4fe; margin-bottom: 8px; }
.context-menu { position: fixed; z-index: 970; min-width: 196px; padding: 6px; border-radius: 12px; background: var(--glass-elev); backdrop-filter: blur(26px); border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 18px 46px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 2px; }
.ctx-item { border: 0; background: transparent; color: #f1f5f9; text-align: left; padding: 8px 11px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.ctx-item:hover { background: rgba(168,85,247,0.28); }
.tray-popover { position: fixed; right: 16px; bottom: 72px; width: min(320px, calc(100vw - 24px)); z-index: 940; padding: 15px; border-radius: 14px; background: var(--glass-elev); backdrop-filter: blur(28px); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 20px 54px rgba(0,0,0,0.65); font-size: 13px; line-height: 1.5; }

/* Deepin 25 Guest Login & Lock Screen */
body.login-locked #desktop, body.login-locked #dock-shell { opacity: 0; pointer-events: none; visibility: hidden; }
#desktop, #dock-shell { transition: opacity 0.35s ease; }

.login-screen {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(8, 4, 18, 0.24);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 48px 20px 24px; transition: opacity 0.32s ease, transform 0.32s ease;
}
.login-screen.leaving { opacity: 0; transform: scale(1.03); pointer-events: none; }

.login-clock { text-align: center; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.login-time { font-size: clamp(48px, 8vw, 76px); font-weight: 600; color: #ffffff; letter-spacing: -0.02em; text-shadow: 0 4px 20px rgba(0,0,0,0.65); line-height: 1.05; }
.login-date { font-size: 16px; font-weight: 500; color: #e9d5ff; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }

.login-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 340px; width: 100%; }
.wombat-avatar {
  width: 118px; height: 118px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.28);
  box-shadow: 0 18px 46px rgba(0,0,0,0.55), 0 0 0 6px rgba(168,85,247,0.16);
  overflow: hidden; background: #1e1b4b; flex-shrink: 0;
}
.wombat-avatar svg { width: 100%; height: 100%; display: block; }
.login-user { margin: 0; font-size: 22px; font-weight: 600; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.65); }
.login-sub { font-size: 12px; color: #d8b4fe; letter-spacing: 0.02em; margin-top: -6px; }
.login-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.login-pill {
  width: 100%; height: 46px; padding: 4px 5px 4px 16px; border-radius: 999px;
  background: rgba(15, 18, 32, 0.72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  display: flex; align-items: center; gap: 6px; transition: border-color 0.16s, box-shadow 0.16s;
}
.login-pill:focus-within { border-color: rgba(192,132,252,0.75); box-shadow: 0 0 0 3px rgba(168,85,247,0.22), 0 12px 32px rgba(0,0,0,0.45); }
.login-pill.shake { animation: loginShake 0.34s ease; }
@keyframes loginShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.login-input { flex: 1; min-width: 0; border: 0; background: transparent; color: #ffffff; font-size: 14px; outline: none; }
.login-input::placeholder { color: rgba(203,213,225,0.68); }
.login-icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  color: #cbd5e1; cursor: pointer; display: grid; place-items: center; font-size: 15px;
}
.login-icon-btn:hover { background: rgba(255,255,255,0.12); color: #ffffff; }
.login-go {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff; font-size: 16px; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0; transition: transform 0.14s, filter 0.14s;
}
.login-go:hover:not(:disabled) { transform: scale(1.06); filter: brightness(1.1); }
.login-go:disabled { opacity: 0.65; cursor: default; }
.login-msg { min-height: 18px; margin: 0; font-size: 12px; color: #cbd5e1; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.login-msg.error { color: #fca5a5; }

.login-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 12px; color: rgba(226,232,240,0.82); }
.login-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.02em; }
.login-actions { display: flex; align-items: center; gap: 8px; position: relative; }
.login-tool {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15,18,32,0.58); color: #f1f5f9; font-size: 12px; font-weight: 600;
  cursor: pointer; display: grid; place-items: center; transition: background 0.14s;
}
.login-tool:hover { background: rgba(255,255,255,0.16); }
.login-power-pop {
  position: absolute; right: 0; bottom: 44px; min-width: 156px; padding: 6px; border-radius: 12px;
  background: var(--glass-elev); backdrop-filter: blur(26px); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 44px rgba(0,0,0,0.65); display: flex; flex-direction: column; gap: 2px; z-index: 5;
}

@media (max-width: 768px) {
  .login-screen { padding: 28px 16px 18px; }
  .wombat-avatar { width: 96px; height: 96px; }
  .desktop-icons { flex-direction: row; top: 10px; left: 10px; gap: 8px; }
  .desktop-icon { width: 66px; padding: 6px 4px; }
  .desktop-icon .icon-wrap { width: 38px; height: 38px; }
  .win { left: 10px !important; right: 10px !important; width: auto !important; top: 78px !important; height: calc(100dvh - 152px) !important; }
  .win-resize, .tray-hide-mobile { display: none; }
  .pm-shell, .wc-layout, .fm-body, .cal-layout, .trip-grid { grid-template-columns: 1fr; }
  .pm-side, .wc-side, .fm-side, .cal-left { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ln-body { grid-template-columns: 1fr; }
  .ln-rail, .ln-list { display: none; }
  .ln-grid { grid-template-columns: repeat(3, 1fr); }
}
