/* Zuno Design System */

:root {
  /* Zuno Official Brand Identity */
  --zuno-lime: #C5F85C;
  --zuno-lime-hover: #b0e44b;
  --zuno-lime-dark: #111315;
  --zuno-graphite-bg: #111315;
  --zuno-graphite-surface: #16181b;
  --zuno-graphite-panel: #1a1d20;
  --zuno-graphite-card: #212429;
  --zuno-graphite-active: #23262b;
  --zuno-graphite-border: #25282e;
  --zuno-white: #F5F5F0;

  /* Default Theme: Zuno Oficial (Grafite Principal & Lima Eletrico) */
  --discord-blurple: #C5F85C;
  --discord-blurple-hover: #b0e44b;
  --discord-green: #C5F85C;
  --discord-green-hover: #b0e44b;
  --discord-yellow: #f0b232;
  --discord-red: #f23f43;
  --discord-red-hover: #da373c;
  --discord-pink: #eb459e;

  /* Surfaces - Authentic Discord dark theme */
  --bg-servers: #1e1f22;
  --bg-sidebar: #2b2d31;
  --bg-chat: #313338;
  --bg-user: #232428;
  --bg-input: #383a40;
  --bg-floating: #2b2d31;
  --bg-card: #2b2d31;
  --bg-hover: #35373c;
  --bg-selected: #35373c;

  /* Typography */
  --text-header: #f2f3f5;
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-subtle: #80848e;
  --text-link: #00a8fc;
  --interactive-normal: #949ba4;
  --interactive-hover: #dbdee1;
  --interactive-active: #ffffff;
  --border-subtle: #1f2023;
  --border-divider: #35363c;
  --chat-font-size: 15px;
  --chat-avatar-size: 40px;
  --chat-spacing: 4px;
}

.message-item {
  padding-top: var(--chat-spacing, 6px) !important;
  padding-bottom: var(--chat-spacing, 6px) !important;
}

.message-avatar {
  width: var(--chat-avatar-size, 40px) !important;
  height: var(--chat-avatar-size, 40px) !important;
  min-width: var(--chat-avatar-size, 40px) !important;
  max-width: var(--chat-avatar-size, 40px) !important;
}

.message-content-text {
  font-size: var(--chat-font-size, 16px) !important;
  line-height: 1.45 !important;
}

.message-author-name {
  font-size: calc(var(--chat-font-size, 16px) * 0.96) !important;
}

.message-timestamp {
  font-size: max(10px, calc(var(--chat-font-size, 16px) * 0.72)) !important;
}

#chat-input-field {
  font-size: calc(var(--chat-font-size, 16px) * 0.95) !important;
}

#channel-header-title,
.channel-header-title {
  font-size: calc(var(--chat-font-size, 16px) * 1.08) !important;
}

#channel-header-topic,
.channel-header-topic {
  font-size: max(11px, calc(var(--chat-font-size, 16px) * 0.88)) !important;
}

.welcome-channel-title,
#messages-container h2 {
  font-size: calc(var(--chat-font-size, 16px) * 1.75) !important;
}

.welcome-channel-topic,
#messages-container p {
  font-size: calc(var(--chat-font-size, 16px) * 0.92) !important;
}


/* Theme: Zuno Oficial & Dark Padrao */
html.dark, html.zuno {
  --discord-blurple: #C5F85C;
  --discord-blurple-hover: #b0e44b;
  --discord-green: #C5F85C;
  --discord-green-hover: #b0e44b;
  --bg-servers: #0e1012;
  --bg-sidebar: #16181b;
  --bg-chat: #111315;
  --bg-user: #16181b;
  --bg-input: #1a1d20;
  --bg-floating: #111214;
  --bg-card: #212429;
  --border-subtle: #25282e;
  --border-divider: #202328;
  --text-header: #F5F5F0;
  --text-normal: #dbdee1;
  --text-muted: #8b909a;
  --text-subtle: #686d77;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-selected: rgba(255, 255, 255, 0.08);
}

/* Theme: Midnight (Preto Total / OLED) */
html.midnight {
  --discord-blurple: #C5F85C;
  --discord-blurple-hover: #b0e44b;
  --discord-green: #C5F85C;
  --discord-green-hover: #b0e44b;
  --bg-servers: #000000;
  --bg-sidebar: #090a0c;
  --bg-chat: #000000;
  --bg-user: #090a0c;
  --bg-input: #121316;
  --bg-floating: #090a0c;
  --bg-card: #0c0d10;
  --border-subtle: #1c1d22;
  --border-divider: #26272e;
  --text-header: #ffffff;
  --text-normal: #e3e5e8;
  --text-muted: #878b94;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-selected: rgba(255, 255, 255, 0.12);
}

/* Theme: Escuro Classico (Cinza Discord) */
html.dark_classic {
  --discord-blurple: #5865f2;
  --discord-blurple-hover: #4752c4;
  --discord-green: #23a55a;
  --discord-green-hover: #1a8b48;
  --bg-servers: #1e1f22;
  --bg-sidebar: #2b2d31;
  --bg-chat: #313338;
  --bg-user: #232428;
  --bg-input: #383a40;
  --bg-floating: #111214;
  --bg-card: #2b2d31;
  --border-subtle: #3f4147;
  --border-divider: #35363c;
  --text-header: #f2f3f5;
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-selected: rgba(255, 255, 255, 0.1);
}

/* Theme: Claro (Branco Puro) */
html.light {
  --discord-blurple: #C5F85C;
  --discord-blurple-hover: #b0e44b;
  --discord-green: #23a55a;
  --discord-green-hover: #1a8b48;
  --bg-servers: #e3e5e8;
  --bg-sidebar: #f2f3f5;
  --bg-chat: #ffffff;
  --bg-user: #ebedef;
  --bg-input: #e3e5e8;
  --bg-floating: #ffffff;
  --bg-card: #f8f9fa;
  --text-header: #060607;
  --text-normal: #2e3338;
  --text-muted: #5c5e66;
  --text-subtle: #747f8d;
  --border-subtle: #d0d2d6;
  --border-divider: #e0e2e5;
  --bg-hover: rgba(0, 0, 0, 0.05);
  --bg-selected: rgba(0, 0, 0, 0.08);
}

/* Theme: Rosa (Sakura / Rose Pastel) */
html.pink {
  --discord-blurple: #f43f5e;
  --discord-blurple-hover: #e11d48;
  --discord-green: #10b981;
  --discord-green-hover: #059669;
  --bg-servers: #180914;
  --bg-sidebar: #220e1d;
  --bg-chat: #1b0a17;
  --bg-user: #180914;
  --bg-input: #2d1326;
  --bg-floating: #180914;
  --bg-card: #260f20;
  --text-header: #fff1f6;
  --text-normal: #f7d6e6;
  --text-muted: #c288a4;
  --text-subtle: #8a5771;
  --border-subtle: #411835;
  --border-divider: #562046;
  --bg-hover: rgba(244, 63, 94, 0.12);
  --bg-selected: rgba(244, 63, 94, 0.22);
}

/* Theme: Neon (Verde Neon Original) */
html.neon {
  --discord-blurple: #39ff14;
  --discord-blurple-hover: #2bd80f;
  --discord-green: #39ff14;
  --discord-green-hover: #21c90d;
  --bg-servers: #020403;
  --bg-sidebar: #07100b;
  --bg-chat: #0b0f0c;
  --bg-user: #07100b;
  --bg-input: #111a14;
  --bg-floating: #020403;
  --bg-card: #0c1510;
  --border-subtle: #132018;
  --border-divider: #1d3324;
  --text-header: #f2f3f5;
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-subtle: #80848e;
  --bg-hover: rgba(57, 255, 20, 0.08);
  --bg-selected: rgba(57, 255, 20, 0.14);
}

/* Chat Wallpaper Patterns */
body[data-wallpaper="doodles"] #messages-container,
body[data-wallpaper="doodles"] #main-content {
  background-image: url('/doodle-pattern.svg');
  background-repeat: repeat;
  background-size: 380px 380px;
}
html.light body[data-wallpaper="doodles"] #messages-container,
html.light body[data-wallpaper="doodles"] #main-content {
  background-image: url('/doodle-pattern-light.svg');
}

body[data-wallpaper="galaxy"] #messages-container,
body[data-wallpaper="galaxy"] #main-content {
  background-image: radial-gradient(ellipse at 20% 20%, rgba(88, 101, 242, 0.15) 0%, transparent 40%),
                    radial-gradient(ellipse at 80% 80%, rgba(235, 69, 158, 0.15) 0%, transparent 40%),
                    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  background-repeat: no-repeat;
  background-size: cover;
}

body[data-wallpaper="cubes"] #messages-container,
body[data-wallpaper="cubes"] #main-content {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
html.light body[data-wallpaper="cubes"] #messages-container,
html.light body[data-wallpaper="cubes"] #main-content {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
}

body[data-wallpaper="none"] #messages-container,
body[data-wallpaper="none"] #main-content {
  background-image: none !important;
}

/* Fullscreen Mode Styles (Voice Studio, Spotlight Video, Screen Shares) */
:fullscreen {
  background-color: #000000 !important;
}
:-webkit-full-screen {
  background-color: #000000 !important;
}

#spotlight-video-wrapper:fullscreen,
#spotlight-video-wrapper:-webkit-full-screen,
#voice-room-container:fullscreen,
#voice-room-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}

#spotlight-video-wrapper:fullscreen #spotlight-video,
#spotlight-video-wrapper:-webkit-full-screen #spotlight-video,
#voice-room-container:fullscreen #spotlight-video,
#voice-room-container:-webkit-full-screen #spotlight-video {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background-color: #000000 !important;
}

#spotlight-video-wrapper:fullscreen .absolute,
#spotlight-video-wrapper:-webkit-full-screen .absolute {
  z-index: 1000000 !important;
}

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

body {
  font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-servers);
  color: var(--text-normal);
  user-select: none;
  -webkit-user-drag: none;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #111214;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 4px;
}

/* Zuno Hover Pill Animation */
.server-pill {
  position: absolute;
  left: 0;
  width: 4px;
  background-color: #ffffff;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  height: 0px;
}

.server-item:hover .server-pill {
  height: 20px;
}

.server-item.active .server-pill {
  height: 40px;
  background-color: var(--zuno-lime, #C5F85C) !important;
}

/* Server Icon Transition */
.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #313338;
  color: #dbdee1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  font-weight: 500;
}

.server-item:hover .server-icon,
.server-item.active .server-icon {
  border-radius: 16px;
  background-color: #35373c;
  color: #ffffff;
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Discord Speaking Pulse */
@keyframes speakingPulse {
  0% {
    box-shadow: 0 0 0 2px var(--voice-color, var(--discord-green));
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--voice-color, var(--discord-green)) 42%, transparent);
  }
  100% {
    box-shadow: 0 0 0 2px var(--voice-color, var(--discord-green));
  }
}

.is-speaking {
  animation: speakingPulse 1.2s infinite ease-in-out;
  border-color: var(--voice-color, var(--discord-green)) !important;
}

.voice-avatar {
  --voice-color: var(--discord-green);
  position: relative;
  overflow: visible !important;
  border-color: rgba(46, 48, 53, 0.95);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.voice-avatar img {
  border-radius: inherit;
}

.voice-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #2e3035;
  border: 2px solid var(--bg-sidebar);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.voice-avatar.is-speaking {
  border-color: var(--voice-color, var(--discord-green));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--voice-color, var(--discord-green)) 25%, transparent);
}

.voice-avatar.is-speaking::after {
  background: var(--voice-color, var(--discord-green));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--voice-color, var(--discord-green)) 28%, transparent);
  transform: scale(1.12);
}

/* Spoilers */
.spoiler-tag {
  background-color: #202225;
  color: transparent;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.spoiler-tag.revealed {
  background-color: rgba(255, 255, 255, 0.1);
  color: inherit;
  user-select: text;
}

/* Tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  background-color: #111214;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.12s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  z-index: 1000;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 6px 5px 0;
  border-style: solid;
  border-color: transparent #111214 transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

[data-tooltip]:hover::before {
  opacity: 1;
}

/* Tooltip top */
[data-tooltip-top]::after {
  content: attr(data-tooltip-top);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background-color: #111214;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.12s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  z-index: 1000;
}

[data-tooltip-top]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: #111214 transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 1000;
}

[data-tooltip-top]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

[data-tooltip-top]:hover::before {
  opacity: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.create-channel-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #111214;
  border-color: #2a2d32;
  border-radius: 12px;
}

.create-channel-body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.create-channel-footer {
  flex-shrink: 0;
  background: #0b0c0f;
  border-top: 1px solid #202226;
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.channel-settings-dialog {
  width: min(980px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 32px));
  min-height: 0;
  background: #0b0c0f;
  border: 1px solid #202226;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.channel-settings-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #07090a;
  border-right: 1px solid #202226;
  padding: 24px 20px;
  overflow-y: auto;
}

.channel-settings-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.channel-settings-form {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.channel-settings-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 80px 24px 32px;
}

.channel-settings-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 48px 16px 32px;
  border-top: 1px solid #25282d;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.94), #0b0c0f);
}

.channel-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.channel-type-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.channel-type-segment {
  height: 44px;
  border: 1px solid #303238;
  border-radius: 8px;
  background: #050607;
  color: var(--text-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.channel-type-segment:hover:not(:disabled),
.channel-type-segment.active {
  border-color: var(--discord-blurple);
  background: rgba(57, 255, 20, 0.12);
  color: #ffffff;
}

.channel-type-segment:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.channel-settings-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (max-width: 1100px) {
  #member-sidebar {
    display: none;
  }
}

@media (max-width: 860px) {
  #sidebar-container {
    width: 218px;
  }

  .channel-settings-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .channel-settings-scroll {
    padding-right: 64px;
  }
}

@media (max-width: 720px), (max-height: 560px) {
  .modal-overlay {
    padding: 8px;
    align-items: stretch;
  }

  .create-channel-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .create-channel-body {
    padding: 18px;
  }

  .create-channel-footer {
    padding: 12px 18px;
  }

  .channel-settings-dialog {
    width: 100%;
    height: calc(100vh - 16px);
    flex-direction: column;
  }

  .channel-settings-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #202226;
    padding: 14px 56px 12px 14px;
    overflow: visible;
  }

  .channel-settings-sidebar .channel-settings-tab {
    width: auto;
    display: inline-flex;
    margin-right: 6px;
    margin-top: 0 !important;
  }

  .channel-settings-scroll {
    padding: 18px;
  }

  .channel-settings-actions {
    padding: 12px 18px;
  }

  .channel-settings-grid,
  .channel-type-segments {
    grid-template-columns: 1fr;
  }

  .channel-settings-close {
    top: 12px;
    right: 12px;
  }

  .channel-settings-close span {
    display: none;
  }
}

@media (max-width: 680px) {
  .server-rail {
    width: 60px !important;
  }

  .server-icon {
    width: 42px;
    height: 42px;
  }

  #sidebar-container {
    width: 196px;
  }
}

@media (max-width: 560px) {
  #sidebar-container {
    width: 172px;
  }
}

/* --- ESTILOS DE CHAMADA E VÍDEO CONCORD --- */
@keyframes bounce-short {
  0% {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  60% {
    transform: translateY(4px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.animate-bounce-short {
  animation: bounce-short 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#spotlight-video-wrapper:fullscreen {
  max-height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: #000 !important;
}

#spotlight-video-wrapper:-webkit-full-screen {
  max-height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: #000 !important;
}

/* ==========================================================================
   ZUNO VISUAL IDENTITY SYSTEM (Desktop & Mobile Models)
   ========================================================================== */

/* Active Server & Rails */
.server-item.active .server-icon {
  background-color: #35373c;
  color: #ffffff;
  border-radius: 16px;
}

/* Zuno Channel Navigation Pill */
.zuno-channel-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #8b909a;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}
.zuno-channel-pill:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #F5F5F0;
}
.zuno-channel-pill.active {
  background-color: #23262b;
  color: #F5F5F0;
  font-weight: 700;
}
.zuno-channel-pill.active::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 9999px;
  background-color: var(--zuno-lime, #C5F85C);
}
.zuno-channel-pill.active .zuno-channel-hash {
  color: var(--zuno-lime, #C5F85C) !important;
  font-weight: 800;
}

/* Zuno Voice Room Card in Sidebar */
.zuno-voice-card {
  background: #1a1d20;
  border: 1px solid #25282e;
  border-radius: 14px;
  padding: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.zuno-voice-card:hover {
  background: #202327;
  border-color: rgba(197, 248, 92, 0.3);
}
.zuno-voice-card.active {
  border-color: #C5F85C;
  box-shadow: 0 0 12px rgba(197, 248, 92, 0.15);
}

/* Zuno Welcome Card in Chat (proposta-desktop.png) */
.zuno-welcome-banner {
  background: linear-gradient(180deg, #181b1e 0%, #121416 100%);
  border: 1px solid #25282e;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 16px 24px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Zuno Chat Floating Input Bar */
.zuno-input-bar {
  background-color: #1a1d20;
  border: 1px solid #25282e;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}
.zuno-input-bar:focus-within {
  border-color: rgba(197, 248, 92, 0.4);
}

/* Zuno Solid Lime Send Button */
.zuno-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: #C5F85C;
  color: #111315;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(197, 248, 92, 0.28);
}
.zuno-send-btn:hover {
  background-color: #b0e44b;
  transform: scale(1.06);
}
.zuno-send-btn:active {
  transform: scale(0.96);
}

/* Reaction Pills */
.zuno-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #1a1d20;
  border: 1px solid #25282e;
  font-size: 13px;
  font-weight: 600;
  color: #F5F5F0;
  transition: all 0.15s ease;
  cursor: pointer;
}
.zuno-reaction-pill:hover {
  background: #23262b;
  border-color: rgba(197, 248, 92, 0.3);
}

/* Mobile Layout Styles (<= 768px - proposta-mobile.png) */
@media (max-width: 768px) {
  body.mobile-mode .server-rail {
    display: none !important;
  }
  
  body[data-mobile-view="comunidades"] #sidebar-container {
    width: 100vw !important;
    display: flex !important;
    border-right: none !important;
  }
  body[data-mobile-view="comunidades"] #main-content {
    display: none !important;
  }
  
  body[data-mobile-view="chat"] #sidebar-container {
    display: none !important;
  }
  body[data-mobile-view="chat"] #main-content {
    width: 100vw !important;
    display: flex !important;
  }

  /* Mobile User Message Bubble (proposta-mobile.png Screen 2) */
  .mobile-bubble-me {
    margin-left: auto !important;
    max-width: 82% !important;
    background-color: #C5F85C !important;
    color: #111315 !important;
    border-radius: 18px 18px 4px 18px !important;
    padding: 10px 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  }
  .mobile-bubble-me .message-content-text {
    color: #111315 !important;
    font-weight: 600 !important;
  }
  .mobile-bubble-me .message-avatar,
  .mobile-bubble-me .message-author-name {
    display: none !important;
  }
  .mobile-bubble-me .message-timestamp {
    color: rgba(17, 19, 21, 0.65) !important;
    font-size: 10px !important;
    text-align: right !important;
    margin-top: 4px !important;
  }

  /* Mobile Voice Screen Grid (proposta-mobile.png Screen 3) */
  .mobile-voice-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }
}

/* Twemoji Integration (jdecked/twemoji) */
img.twemoji {
  height: 1.35em;
  width: 1.35em;
  margin: 0 0.08em;
  vertical-align: -0.22em;
  display: inline-block;
  object-fit: contain;
}

.twemoji-jumbo,
.chat-message-jumbo img.twemoji {
  height: 2.85rem !important;
  width: 2.85rem !important;
  margin: 0.15rem 0.2rem !important;
  vertical-align: middle !important;
}

.emoji-tone-active {
  box-shadow: 0 0 0 2px #5865f2;
}

/* Zuno Pro & Plus - Avatar Decoration Rings */
.avatar-effect-purple-nebula {
  box-shadow: 0 0 0 2.5px #c084fc, 0 0 14px rgba(192, 132, 252, 0.9) !important;
}
.avatar-effect-cyber-cyan {
  box-shadow: 0 0 0 2.5px #00D2FF, 0 0 14px rgba(0, 210, 255, 0.9) !important;
}
.avatar-effect-golden-flame {
  box-shadow: 0 0 0 2.5px #eab308, 0 0 14px rgba(234, 179, 8, 0.9) !important;
}
.avatar-effect-toxic-green {
  box-shadow: 0 0 0 2.5px #C5F85C, 0 0 14px rgba(197, 248, 92, 0.9) !important;
}
.avatar-effect-mystic-pink {
  box-shadow: 0 0 0 2.5px #f472b6, 0 0 14px rgba(244, 114, 182, 0.9) !important;
}
.avatar-effect-rainbow-flow {
  box-shadow: 0 0 0 2.5px #a855f7, 0 0 16px rgba(168, 85, 247, 0.95) !important;
  animation: avatar-rainbow-pulse 3s ease-in-out infinite alternate;
}

@keyframes avatar-rainbow-pulse {
  0% { box-shadow: 0 0 0 2.5px #a855f7, 0 0 14px rgba(168, 85, 247, 0.9); }
  50% { box-shadow: 0 0 0 2.5px #00D2FF, 0 0 14px rgba(0, 210, 255, 0.9); }
  100% { box-shadow: 0 0 0 2.5px #ec4899, 0 0 14px rgba(236, 72, 153, 0.9); }
}

/* Zuno Pro & Plus - Member Card Background Effects */
.card-effect-purple-nebula {
  background: linear-gradient(135deg, rgba(20, 10, 35, 0.95) 0%, rgba(88, 28, 135, 0.45) 50%, rgba(147, 51, 234, 0.55) 100%) !important;
}
.card-effect-cyber-cyan {
  background: linear-gradient(135deg, rgba(8, 25, 35, 0.95) 0%, rgba(14, 116, 144, 0.45) 50%, rgba(6, 182, 212, 0.55) 100%) !important;
}
.card-effect-golden-flame {
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.95) 0%, rgba(180, 83, 9, 0.45) 50%, rgba(234, 179, 8, 0.55) 100%) !important;
}
.card-effect-toxic-green {
  background: linear-gradient(135deg, rgba(10, 25, 15, 0.95) 0%, rgba(21, 128, 61, 0.45) 50%, rgba(197, 248, 92, 0.45) 100%) !important;
}
.card-effect-mystic-pink {
  background: linear-gradient(135deg, rgba(35, 10, 25, 0.95) 0%, rgba(190, 24, 93, 0.45) 50%, rgba(244, 114, 182, 0.55) 100%) !important;
}


