:root {
  --red-accent: #ff1a3c;
  --red-glow: rgba(255, 26, 60, 0.4);
  --card-bg: rgba(14, 18, 28, 0.96);
  --text-main: #f1f5f9;
  --text-muted: #8e9bb0;
  --msn-blue-text: #389fff;
  --msn-green: #00ff66;
  --msn-orange: #ffaa00;
  --msn-red: #ff3344;
  --msn-gray: #778899;
}

* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

body {
  width: 100vw; height: 100vh;
  overflow: hidden; background: #0f172a;
  display: flex; justify-content: center; align-items: center;
  padding-bottom: 40px;
}

#sky-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 1;
}

/* POPUP MSN */
.msn-toast {
  position: fixed; bottom: -120px; right: 20px; z-index: 2000;
  width: min(340px, calc(100vw - 40px));
  background: rgba(14, 20, 32, 0.98); border: 1px solid var(--red-accent);
  border-radius: 12px; padding: 14px 14px 12px;
  display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--red-glow);
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
  opacity: 0;
}
.msn-toast.active { bottom: 60px; opacity: 1; }

.toast-avatar {
  width: 38px; height: 38px; background: #000;
  border: 1px solid var(--red-accent); border-radius: 6px;
  display: flex; justify-content: center; align-items: center; overflow: hidden;
}

.toast-content { display: flex; flex-direction: column; }
.toast-header {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; gap: 12px;
}
.toast-title {
  font-size: 0.78rem; font-weight: 700; color: var(--red-accent);
  display: inline-block;
}
.toast-close {
  border: none; background: transparent;
  color: var(--text-muted); font-size: 1.1rem;
  width: 24px; height: 24px; line-height: 24px;
  border-radius: 50%; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.toast-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.toast-msg {
  display: block;
  font-size: 0.78rem; color: #e7e9f0; line-height: 1.5;
  margin-top: 6px;
}
.toast-msg.tutorial {
  font-size: 0.78rem;
}

/* WORKSPACE */
.desktop-workspace {
  position: relative; z-index: 10;
  min-height: calc(100vh - 40px);
  max-width: 95vw; width: 100%;
}

.msn-window {
  position: absolute;
  min-width: 280px;
  min-height: 260px;
  background: var(--card-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--red-accent); border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--red-glow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, width 0.2s ease, height 0.2s ease, left 0.2s ease, top 0.2s ease;
}

/* MINIMIZADO */
.msn-window.minimized {
  transform: scale(0.7) translateY(400px); 
  opacity: 0; 
  pointer-events: none;
}

/* MAXIMIZADO */
.msn-window.maximized {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 50px !important;
  width: calc(100vw - 20px) !important;
  height: calc(100vh - 60px) !important;
  z-index: 999 !important;
}

.contact-window { width: 320px; height: 600px; left: 40px; top: 40px; }
.chat-window { width: 540px; height: 600px; left: 400px; top: 40px; }

#cat-window { left: 80px; top: 320px; }

.chat-window.shake { animation: msnNudge 0.4s ease-in-out; }

@keyframes msnNudge {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-14px, 10px); }
  40% { transform: translate(14px, -10px); }
  60% { transform: translate(-10px, -6px); }
  80% { transform: translate(10px, 6px); }
  100% { transform: translate(0, 0); }
}

/* TITLEBAR & BOTÕES */
.msn-titlebar {
  background: rgba(8, 11, 18, 0.95); padding: 6px 10px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255, 26, 60, 0.3); font-size: 0.72rem; color: var(--text-muted);
  cursor: grab;
}

.msn-titlebar.dragging,
.cat-titlebar.dragging {
  cursor: grabbing;
}

.resize-handle {
  position: absolute;
  z-index: 20;
  background: transparent;
}

.resize-handle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.resize-handle.n { top: 0; left: 10px; right: 10px; height: 8px; cursor: n-resize; }
.resize-handle.s { bottom: 0; left: 10px; right: 10px; height: 8px; cursor: s-resize; }
.resize-handle.e { right: 0; top: 10px; bottom: 10px; width: 8px; cursor: e-resize; }
.resize-handle.w { left: 0; top: 10px; bottom: 10px; width: 8px; cursor: w-resize; }
.resize-handle.nw { top: 0; left: 0; width: 12px; height: 12px; cursor: nw-resize; }
.resize-handle.ne { top: 0; right: 0; width: 12px; height: 12px; cursor: ne-resize; }
.resize-handle.se { bottom: 0; right: 0; width: 12px; height: 12px; cursor: se-resize; }
.resize-handle.sw { bottom: 0; left: 0; width: 12px; height: 12px; cursor: sw-resize; }
.title-left { display: flex; align-items: center; gap: 6px; }
.msn-logo-icon { color: var(--red-accent); }
.window-controls { display: flex; gap: 4px; }

.win-btn {
  background: transparent; border: none; color: var(--text-muted);
  width: 22px; height: 20px; cursor: pointer; font-weight: bold;
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.win-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.win-btn.close:hover { background: var(--red-accent); color: #fff; }

/* PERFIL E MOLDURA DE STATUS DE NEON */
.user-profile-card {
  padding: 10px 12px; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-frame { position: relative; }

.avatar-frame .avatar-img,
.wlm-dp-frame {
  width: 50px; height: 50px;
  background: radial-gradient(circle, #2b0812 0%, #0c0205 100%);
  border: 2px solid var(--msn-red);
  border-radius: 8px;
  display: flex; justify-content: center; align-items: center; font-size: 1.5rem; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 51, 68, 0.5);
}

.wlm-dp-frame { width: 62px; height: 62px; }

/* BORDA NEON POR STATUS */
.avatar-frame.online .avatar-img,
.wlm-dp-frame.online {
  border-color: var(--msn-green) !important;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.7) !important;
}

.avatar-frame.busy .avatar-img,
.wlm-dp-frame.busy {
  border-color: var(--msn-red) !important;
  box-shadow: 0 0 12px rgba(255, 51, 68, 0.7) !important;
}

.avatar-frame.away .avatar-img,
.wlm-dp-frame.away {
  border-color: var(--msn-orange) !important;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.7) !important;
}

/* INVISÍVEL (cinza) */
.avatar-frame.invisivel .avatar-img,
.wlm-dp-frame.invisivel {
  border-color: var(--msn-gray) !important;
  box-shadow: 0 0 8px rgba(119, 136, 153, 0.45) !important;
}

.avatar-img-tag, .dp-img-tag, .ad-img-tag {
  width: 100%; height: 100%; object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.image-protect-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 20;
  pointer-events: auto;
}

.status-badge {
  position: absolute; bottom: -2px; right: -2px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid #0e121c; transition: all 0.3s ease;
}
.status-badge.online { background: var(--msn-green); box-shadow: 0 0 8px var(--msn-green); }
.status-badge.busy { background: var(--msn-red); box-shadow: 0 0 8px var(--msn-red); }
.status-badge.away { background: var(--msn-orange); box-shadow: 0 0 8px var(--msn-orange); }
.status-badge.invisivel { background: var(--msn-gray); box-shadow: 0 0 8px rgba(119,136,153,0.6); }

.user-details { flex: 1; overflow: hidden; }
.name-status-row { display: flex; justify-content: space-between; align-items: center; }
.user-display-name { font-size: 1rem; color: #fff; }

.status-dropdown {
  background: #000; border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.68rem; font-weight: bold; border-radius: 4px; padding: 2px 4px; outline: none; cursor: pointer;
}
.status-dropdown[data-status="online"] { color: var(--msn-green) !important; border-color: var(--msn-green); }
.status-dropdown[data-status="busy"] { color: var(--msn-red) !important; border-color: var(--msn-red); }
.status-dropdown[data-status="away"] { color: var(--msn-orange) !important; border-color: var(--msn-orange); }
.status-dropdown[data-status="invisivel"] { color: var(--msn-gray) !important; border-color: var(--msn-gray); }

.status-message-box.editable {
  font-size: 0.68rem; color: var(--text-muted); margin-top: 2px;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 2px 4px; border-radius: 4px;
}
.status-message-box.editable:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.edit-hint { opacity: 0.3; font-size: 0.6rem; }

.welcome-card {
  margin: 10px 10px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 120, 140, 0.2);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.02);
}
.welcome-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.welcome-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.welcome-close-btn {
  border: none;
  background: rgba(255, 26, 60, 0.16);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.welcome-close-btn:hover {
  background: rgba(255, 26, 60, 0.36);
  transform: scale(1.05);
}
.welcome-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.welcome-ideas {
  font-size: 0.68rem;
  color: #f7f3f8;
}
.welcome-ideas ul {
  margin-top: 4px;
  padding-left: 18px;
  color: var(--text-muted);
}
.welcome-ideas li {
  margin-bottom: 4px;
  line-height: 1.35;
}

/* LISTA DE SERVIÇOS E CARDS */
.contact-list-container { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.group-title { font-size: 0.65rem; font-weight: bold; color: var(--text-muted); display: flex; gap: 6px; }
.arrow-icon { color: var(--red-accent); font-size: 0.55rem; }

.group-contacts { display: flex; flex-direction: column; gap: 6px; }
.contact-card {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
}
.contact-card:hover { background: rgba(255, 26, 60, 0.2); border-color: var(--red-accent); }
.contact-avatar {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: radial-gradient(circle, #2b0812 0%, #0c0205 100%);
  border: 1px solid rgba(255, 51, 68, 0.4);
}
.contact-info { flex: 1; display: flex; flex-direction: column; }
.contact-name { font-size: 0.75rem; font-weight: bold; color: #fff; }
.contact-status-msg { font-size: 0.65rem; color: var(--text-muted); }
.contact-dot { width: 6px; height: 6px; border-radius: 50%; }
.contact-dot.online { background: var(--msn-green); }
.contact-dot.busy { background: var(--msn-red); }
.contact-dot.away { background: var(--msn-orange); }

.msn-ad-banner {
  margin: 6px 10px; padding: 8px;
  background: linear-gradient(135deg, rgba(255, 26, 60, 0.15) 0%, rgba(10, 15, 25, 0.9) 100%);
  border: 1px solid var(--red-accent); border-radius: 6px;
  box-shadow: 0 0 12px var(--red-glow); cursor: pointer;
}
.ad-tag { font-size: 0.55rem; font-weight: bold; color: var(--red-accent); margin-bottom: 4px; letter-spacing: 0.5px; }
.ad-content { display: flex; gap: 8px; align-items: center; }
.ad-image-slot {
  width: 42px; height: 42px; background: #000; border: 1px solid var(--red-accent);
  border-radius: 4px; overflow: hidden; display: flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.ad-text-area { flex: 1; }
.ad-title { font-size: 0.72rem; font-weight: bold; color: #fff; display: block; }
.ad-desc { font-size: 0.62rem; color: var(--text-muted); line-height: 1.2; margin-top: 2px; }

.msn-statusbar { padding: 6px 10px; background: rgba(0,0,0,0.4); font-size: 0.65rem; color: var(--text-muted); font-family: monospace; }

/* CHAT WLM */
.chat-actions-bar {
  display: flex; background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 4px 8px; gap: 6px; overflow-x: auto;
}
.action-item {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 0.68rem; display: flex; align-items: center; gap: 4px;
  padding: 4px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap;
}
.action-item:hover { background: rgba(255, 26, 60, 0.15); color: #fff; }

.chat-header-info {
  padding: 6px 12px; background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.75rem;
}
.sub-icon { color: var(--msn-blue-text); margin-right: 4px; }
.headline-name { font-weight: bold; color: #fff; }
.headline-sub { font-size: 0.7rem; color: var(--msn-green); }

.chat-body-grid {
  flex: 1; display: grid; grid-template-columns: 80px 1fr; grid-template-rows: 1fr 1fr;
  background: rgba(8, 11, 18, 0.6); overflow: hidden;
}

.avatar-sidebar {
  display: flex; justify-content: center; align-items: center;
  padding: 8px; background: rgba(0, 0, 0, 0.2);
}
.sidebar-top { grid-column: 1; grid-row: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sidebar-bottom { grid-column: 1; grid-row: 2; }

.dp-inner { font-size: 2rem; }

.chat-log {
  grid-column: 2; grid-row: 1 / span 2; padding: 12px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sys-notice { font-size: 0.65rem; color: var(--text-muted); font-style: italic; }

.msg-block { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; line-height: 1.35; }
.msg-author { font-weight: bold; }
.msg-block.mew .msg-author { color: var(--msn-blue-text); }
.msg-block.user .msg-author { color: var(--red-accent); }

.msg-content { color: var(--text-main); padding-left: 8px; }

.chat-link-btn {
  display: inline-block; margin-top: 6px; padding: 6px 12px;
  background: var(--red-accent); color: #fff; text-decoration: none;
  font-weight: bold; border-radius: 4px; box-shadow: 0 0 10px var(--red-glow);
}
.chat-link-btn:hover { background: #ff3355; }

.typing-bar {
  padding: 2px 12px; font-size: 0.68rem; color: var(--msn-green);
  font-style: italic; min-height: 18px; opacity: 0; transition: opacity 0.2s ease;
}
.typing-bar.active { opacity: 1; }

.chat-text-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 10px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.formatting-tools { display: flex; gap: 6px; align-items: center; }
.tool-btn {
  background: transparent; border: 1px solid transparent; color: var(--text-main);
  padding: 2px 6px; border-radius: 4px; font-size: 0.72rem; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.tool-btn:hover { background: rgba(255,255,255,0.1); }
.tool-btn.nudge { background: rgba(255, 26, 60, 0.2); border-color: var(--red-accent); color: #fff; font-weight: bold; }
.font-indicator { font-size: 0.65rem; color: var(--text-muted); }

.chat-input-area {
  padding: 8px 10px; background: rgba(10, 14, 22, 0.95);
  border-top: 1px solid rgba(255, 26, 60, 0.3); display: flex; flex-direction: column; gap: 6px;
}

.dialog-choices { display: flex; flex-direction: column; gap: 4px; }
.dialog-prompt { font-size: 0.62rem; color: var(--text-muted); font-weight: bold; }

.choice-btn {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main); padding: 6px 8px; border-radius: 4px;
  font-size: 0.72rem; text-align: left; cursor: pointer; transition: all 0.2s ease;
}
.choice-btn:hover { background: rgba(255, 26, 60, 0.2); border-color: var(--red-accent); }
.choice-btn .num { color: var(--red-accent); font-weight: bold; font-family: monospace; }

.typing-input-wrapper { display: flex; flex-direction: column; gap: 6px; }

.input-helper-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.62rem; color: var(--msn-green); font-weight: bold;
}

.skip-btn {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.62rem;
  cursor: pointer; transition: all 0.2s;
}
.skip-btn:hover { background: var(--red-accent); }

.input-controls { display: flex; gap: 8px; }

[id^="chat-text-input-"] {
  flex: 1; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px; padding: 6px 10px; color: #fff; font-size: 0.75rem; outline: none;
}

.send-msg-btn {
  background: rgba(255, 26, 60, 0.2); border: 1px solid var(--red-accent);
  color: #fff; font-size: 0.72rem; font-weight: bold; padding: 0 14px;
  border-radius: 4px; cursor: pointer; transition: all 0.2s ease; opacity: 0.5;
}
.send-msg-btn.ready { opacity: 1; background: var(--red-accent); box-shadow: 0 0 10px var(--red-glow); }

/* EASTER EGG: KEYBOARD CAT WINDOW */
.cat-window {
  width: 340px !important;
  height: auto !important;
  border-color: #ffaa00 !important;
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.7), 0 10px 40px rgba(0,0,0,0.9) !important;
  position: absolute;
  z-index: 2500;
}

.cat-titlebar {
  background: linear-gradient(90deg, #5e3700 0%, #211300 100%) !important;
  border-bottom: 1px solid #ffaa00 !important;
}

.cat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(15, 12, 5, 0.95);
}

.cat-video {
  width: 100%;
  max-height: 250px;
  border-radius: 6px;
  border: 2px solid #ffaa00;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
  object-fit: contain;
  background: #000;
}

.cat-caption {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #ffcb52;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 203, 82, 0.6);
}

/* FRUTIGER AERO GLASS TASKBAR (WINDOWS 7 STYLE) */
.windows-taskbar {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 40px;
  
  background: linear-gradient(
    180deg, 
    rgba(80, 15, 28, 0.75) 0%, 
    rgba(35, 6, 12, 0.85) 48%, 
    rgba(10, 2, 5, 0.95) 50%, 
    rgba(45, 8, 16, 0.88) 100%
  );
  
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  
  border-top: 1px solid rgba(255, 120, 140, 0.5);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 -3px 15px rgba(255, 26, 60, 0.35);
    
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; z-index: 1000;
}

.taskbar-start-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  
  background: radial-gradient(circle at 50% 25%, rgba(255, 120, 140, 0.9) 0%, rgba(200, 10, 40, 0.95) 60%, rgba(90, 0, 15, 1) 100%);
  border: 1px solid rgba(255, 180, 200, 0.6);
  color: #fff; font-size: 0.72rem; font-weight: bold; cursor: pointer; 
  
  box-shadow: 
    inset 0 2px 5px rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(255, 26, 60, 0.6);
  
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.taskbar-start-btn:hover {
  transform: scale(1.08);
  box-shadow: 
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(255, 60, 90, 0.9);
}

.taskbar-divider {
  width: 2px; height: 24px; 
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.4) 100%);
  margin: 0 8px; border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.taskbar-items { display: flex; gap: 6px; flex: 1; }

.taskbar-btn {
  height: 28px;
  background: linear-gradient(
    180deg, 
    rgba(255, 255, 255, 0.18) 0%, 
    rgba(255, 255, 255, 0.05) 48%, 
    rgba(0, 0, 0, 0.25) 50%, 
    rgba(255, 255, 255, 0.08) 100%
  );
  
  border: 1px solid rgba(255, 80, 110, 0.35);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    
  color: #e1e8f0; font-size: 0.72rem; padding: 0 12px;
  border-radius: 3px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s ease; max-width: 190px; overflow: hidden; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.taskbar-btn:hover {
  background: linear-gradient(
    180deg, 
    rgba(255, 80, 110, 0.4) 0%, 
    rgba(255, 26, 60, 0.2) 48%, 
    rgba(100, 0, 20, 0.4) 50%, 
    rgba(255, 80, 110, 0.2) 100%
  );
  border-color: rgba(255, 120, 140, 0.7); color: #fff;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 8px rgba(255, 26, 60, 0.4);
}

.taskbar-btn.active {
  background: linear-gradient(
    180deg, 
    rgba(255, 100, 120, 0.35) 0%, 
    rgba(200, 20, 50, 0.2) 48%, 
    rgba(60, 5, 15, 0.5) 50%, 
    rgba(255, 50, 80, 0.25) 100%
  );
  border-color: rgba(255, 120, 140, 0.8); color: #fff; font-weight: 600;
  
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 var(--red-accent),
    0 0 12px rgba(255, 26, 60, 0.5);
}

.taskbar-tray {
  display: flex; align-items: center; gap: 10px; font-size: 0.7rem; color: #d0d8e5; 
  font-family: 'Segoe UI', Tahoma, sans-serif; padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.tray-icon { 
  background: transparent; border: none; cursor: pointer; color: var(--red-accent); font-size: 0.85rem; 
  transition: transform 0.2s, filter 0.2s;
}
.tray-icon:hover { transform: scale(1.15); filter: drop-shadow(0 0 5px var(--red-accent)); }

/* ============================================================
   CORES PERSONALIZADAS DOS NORMES DOS PERSONAGENS (MSN STYLE)
   ============================================================ */

/* Milo (Gato Vermelho / OC Vermelho) */
.author-milo .author-name {
  color: #ff3333;
  font-weight: bold;
}

/* Yuumo (Gato Bicolor: Gradiente Rosa -> Amarelo/Laranja) */
.author-yuumo .author-name {
  background: linear-gradient(90deg, #ff4081, #ffb300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  display: inline-block;
}

/* Tabby (Mantém o Azul Clássico) */
.author-tabby .author-name {
  color: #29b6f6;
  font-weight: bold;
}

/* Noah / Usuário (Vermelho) */
.author-noah .author-name {
  color: #ffad33;
  font-weight: bold;
}

/* ============================================================
   CORRIGE O CONFLITO DE CORES NAS MENSAGENS
   ============================================================ */

/* Define uma cor neutra e limpa para o "diz (horário):" */
.msg-author {
  color: #a0b2c6 !important;
  font-weight: normal;
}

/* --- CORES DOS NOMES --- */

/* Milo (Vermelho) */
.author-milo .author-name {
  color: #ff3333 !important;
  font-weight: bold;
}

/* Yuumo (Gradiente Rosa -> Amarelo/Laranja) */
.author-yuumo .author-name {
  background: linear-gradient(90deg, #ff4081, #ffb300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  display: inline-block;
}

/* Tabby (Azul) */
.author-tabby .author-name {
  color: #29b6f6 !important;
  font-weight: bold;
}

/* Noah / Usuário (Amarelo/Laranja) */
.author-noah .author-name {
  color: #ffb74d !important;
  font-weight: bold;
}