:root {
  color-scheme: dark;
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071013;
  color: #eef8f7;
  --ink: #eef8f7;
  --muted: #91a7aa;
  --panel: rgba(10, 22, 27, 0.82);
  --panel-strong: #0c1a20;
  --line: rgba(205, 241, 238, 0.13);
  --mint: #5cf2c7;
  --cyan: #6fdcff;
  --coral: #ff7d5c;
  --navy: #071013;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(4, 9, 12, 0.88), rgba(4, 9, 12, 0.94)),
    url("novachat-bg.jpg") center/cover no-repeat fixed;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.86rem 1.05rem;
  cursor: pointer;
  color: #03110f;
  background: var(--mint);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(92, 242, 199, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #101f25;
  box-shadow: none;
  font-size: 1.05rem;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #101f25;
  box-shadow: none;
}

.ghost-button.compact {
  padding: 0.58rem 0.72rem;
  font-size: 0.86rem;
}

button.secondary,
#leaveButton {
  background: #263139;
  color: var(--ink);
  box-shadow: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 430px) minmax(300px, 0.72fr);
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: center;
  padding: clamp(5.4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 4rem) clamp(1.4rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 209, 255, 0.28), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(176, 76, 255, 0.28), transparent 30%),
    radial-gradient(circle at 56% 88%, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(3, 7, 18, 0.96) 0%, rgba(7, 13, 32, 0.9) 44%, rgba(5, 9, 20, 0.96) 100%),
    url("novachat-bg.jpg") center/cover no-repeat fixed;
  overflow-y: auto;
}

.login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

.login-screen.hidden {
  display: none;
}

.login-brand {
  max-width: 640px;
}

.login-mark {
  display: grid;
  place-items: center;
  width: clamp(96px, 10vw, 132px);
  aspect-ratio: 1;
  margin-bottom: 1.35rem;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(14, 165, 233, 0.3), 0 0 44px rgba(168, 85, 247, 0.34);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.login-mark:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 30px 78px rgba(14, 165, 233, 0.36), 0 0 56px rgba(168, 85, 247, 0.42);
}

.login-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.login-brand h1 {
  max-width: 620px;
  margin-top: 0.45rem;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.login-brand > p:last-of-type {
  max-width: 540px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.login-topline {
  position: absolute;
  top: clamp(1rem, 2vw, 1.6rem);
  left: clamp(1.2rem, 4vw, 4rem);
  right: clamp(1.2rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-topline-brand,
.login-topline-status,
.login-feature-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 12, 28, 0.62);
  backdrop-filter: blur(18px);
}

.login-topline-brand {
  gap: 0.58rem;
  border-radius: 999px;
  padding: 0.36rem 0.82rem 0.36rem 0.42rem;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 900;
}

.login-topline-brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.login-topline-status {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #8ee7ff;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-top: 1.3rem;
}

.login-feature-row span {
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
}

.login-card {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.82));
  backdrop-filter: blur(30px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.login-card-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.55rem;
}

.login-card .eyebrow {
  margin: 0;
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 52px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
  font-weight: 900;
}

.google-login-button:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.34);
}

.google-login-button:disabled {
  opacity: 0.62;
}

.google-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.login-card-downloads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
}

.login-card-header span,
.user-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  background: #101f25;
  font-size: 0.82rem;
}

.auth-message {
  min-height: 1.2rem;
  color: #ffb5a2;
  font-size: 0.9rem;
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3, 7, 18, 0.9);
}

.settings-panel.open {
  display: flex;
}

.settings-panel.open .settings-card {
  animation: modalFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: min(540px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid rgba(111, 220, 255, 0.22);
  border-radius: 24px;
  padding: 1.4rem;
  background: rgba(8, 18, 23, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), 0 0 36px rgba(92, 242, 199, 0.08);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.settings-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tab {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 750;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.settings-tab.active {
  color: var(--mint);
  background: rgba(92, 242, 199, 0.14);
  border-color: rgba(92, 242, 199, 0.3);
  box-shadow: 0 4px 12px rgba(92, 242, 199, 0.1);
}

.settings-tab-content {
  display: none;
  flex-direction: column;
  gap: 0.95rem;
}

.settings-tab-content.active {
  display: flex;
  animation: tabFadeIn 0.2s ease;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  background: #071216;
  color: #f4fbfb;
  outline: none;
  cursor: pointer;
}

select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(92, 242, 199, 0.1);
}

.mic-test-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: #061115;
}

.mic-test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c0d2d5;
}

.mic-meter-wrapper {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #030a0d;
  border: 1px solid rgba(111, 220, 255, 0.1);
  overflow: hidden;
}

.mic-meter-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--coral));
  transition: width 0.06s ease;
}

.mic-test-hint {
  font-size: 0.76rem;
  color: var(--muted);
}

.switch-row {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #071216;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
}

.switch-row strong {
  display: block;
  font-size: 0.88rem;
  color: #e5f1f3;
}

.switch-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: normal;
  margin-top: 0.15rem;
}

.switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--mint);
  cursor: pointer;
}

.switch-action-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgba(255, 125, 92, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 125, 92, 0.05);
  font-size: 0.85rem;
  color: #c0d2d5;
}

.settings-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.settings-actions button {
  flex: 1;
}

.settings-note {
  min-height: 1.2rem;
  color: var(--mint);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  gap: 1.1rem;
  min-height: 100vh;
  padding: 1.1rem;
}

.app.app-hidden {
  display: none !important;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 20px;
  padding: 1.1rem 0.9rem;
  background: rgba(12, 10, 20, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.2rem 0.75rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.16);
}

.sidebar-brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.6) 0%, rgba(56, 189, 248, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: none;
  padding: 0.35rem 0.5rem;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.brand-link:hover .brand-mark {
  transform: translateY(-1.5px) scale(1.05);
  box-shadow: 0 10px 28px -4px rgba(139, 92, 246, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
}

.brand-link:active .brand-mark {
  transform: translateY(0) scale(0.98);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px -2px rgba(139, 92, 246, 0.45), 0 0 14px rgba(56, 189, 248, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', Inter, -apple-system, sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-transform: none;
}

.brand-name-accent {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.brand-tagline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', Inter, -apple-system, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8da4b5;
  margin-top: 2px;
}

.brand-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: brandPulse 2.4s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.nav-item.active {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.4rem 0.2rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.add-group-mini-btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px dashed rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.add-group-mini-btn:hover {
  border-style: solid;
  border-color: #a855f7;
  background: #a855f7;
  color: #ffffff;
}

.sidebar-spacer {
  flex: 1;
  min-height: 16px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(19, 16, 32, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
}

.hidden {
  display: none !important;
}

.user-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.user-avatar-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2e1065;
  border: 2px solid #a855f7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.user-avatar-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  display: block;
}

.user-avatar-circle.hidden,
.user-avatar-img.hidden {
  display: none !important;
}

.user-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f0d1a;
  box-shadow: 0 0 6px #10b981;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-display-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status-label {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 600;
}

.user-logout-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.user-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.category-icons-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.category-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s ease;
}

.category-icon-btn:hover {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.28);
  transform: translateY(-2px);
}

.category-icon-btn.active {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.22);
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.rail-line {
  width: 1px;
  height: 42px;
  background: var(--line);
}

.rail-group-btn,
.rail-community-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.rail-group-btn.active::before,
.rail-community-btn.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.groups-list,
.communities-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.group-item,
.community-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 28, 35, 0.85);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.group-item:hover,
.community-item:hover {
  border-color: var(--mint);
  transform: scale(1.08);
  border-radius: 12px;
  background: rgba(92, 242, 199, 0.15);
  box-shadow: 0 4px 16px rgba(92, 242, 199, 0.2);
}

.group-item.active,
.community-item.active {
  border-color: var(--mint);
  border-radius: 12px;
  background: rgba(92, 242, 199, 0.2);
  box-shadow: 0 0 16px rgba(92, 242, 199, 0.3);
}

.group-item.active::before,
.community-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.rail-add-group,
.rail-add-community {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px dashed rgba(92, 242, 199, 0.45);
  background: rgba(9, 23, 29, 0.6);
  color: var(--mint);
  cursor: pointer;
  transition: all 0.22s ease;
  margin-top: 0.2rem;
  padding: 0;
}

.rail-add-group:hover,
.rail-add-community:hover {
  border-style: solid;
  border-color: var(--mint);
  background: rgba(92, 242, 199, 0.22);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(92, 242, 199, 0.3);
}

.group-bar,
.community-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(111, 220, 255, 0.18);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(8, 20, 26, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.group-bar.hidden,
.community-bar.hidden {
  display: none !important;
}

.group-info,
.community-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.group-avatar,
.community-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(92, 242, 199, 0.15);
  border: 1px solid rgba(92, 242, 199, 0.3);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.group-name-wrap,
.community-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.group-name-wrap h3,
.community-name-wrap h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f4fbfb;
}

.group-code-chip,
.community-code-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #071216;
  border: 1px solid var(--line);
  color: var(--mint);
  cursor: pointer;
  transition: all 0.15s ease;
}

.group-code-chip:hover,
.community-code-chip:hover {
  border-color: var(--mint);
  background: rgba(92, 242, 199, 0.12);
  transform: scale(1.04);
}

.group-desc,
.community-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.group-channels-wrap,
.community-channels-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(111, 220, 255, 0.1);
  padding-top: 0.65rem;
}

.group-channels,
.community-channels {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.community-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.community-members-strip {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid rgba(111, 220, 255, 0.1);
  padding-top: 0.65rem;
}

.community-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.community-members-head strong {
  color: #f4fbfb;
  font-size: 0.86rem;
}

.community-members-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.community-members-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.community-member-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 150px;
  max-width: 230px;
  border: 1px solid rgba(205, 241, 238, 0.12);
  border-radius: 8px;
  padding: 0.48rem 0.62rem;
  background: rgba(16, 36, 43, 0.72);
  color: #d6f0ed;
  flex: 0 0 auto;
}

.community-member-chip.online {
  border-color: rgba(92, 242, 199, 0.24);
  background: rgba(14, 47, 49, 0.78);
}

.community-member-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(92, 242, 199, 0.14);
  border: 1px solid rgba(92, 242, 199, 0.22);
  color: #f4fbfb;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.community-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-member-body {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.community-member-body strong,
.community-member-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-member-body strong {
  font-size: 0.82rem;
}

.community-member-body small {
  color: var(--muted);
  font-size: 0.72rem;
}

.community-member-status {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(8, 20, 26, 0.95);
  flex-shrink: 0;
}

.community-member-chip.online .community-member-status {
  background: var(--mint);
}

.community-member-empty {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.35rem 0;
}

.invite-friends-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.invite-friends-btn:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.28);
  color: #ffffff;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #071216;
  color: #b7c8cc;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.channel-chip:hover {
  border-color: var(--mint);
  color: #fff;
  background: rgba(92, 242, 199, 0.1);
}

.channel-chip.active {
  border-color: var(--mint);
  background: rgba(92, 242, 199, 0.18);
  color: var(--mint);
  box-shadow: 0 2px 8px rgba(92, 242, 199, 0.12);
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.emoji-btn {
  display: grid;
  place-items: center;
  height: 42px;
  font-size: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #071216;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emoji-btn:hover {
  border-color: var(--mint);
  transform: scale(1.1);
  background: rgba(92, 242, 199, 0.12);
}

.emoji-btn.selected {
  border-color: var(--mint);
  background: rgba(92, 242, 199, 0.22);
  box-shadow: 0 0 10px rgba(92, 242, 199, 0.3);
  transform: scale(1.06);
}

.group-hint,
.community-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.workspace,
.chat {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  gap: 0.85rem;
  padding: 1.1rem;
  min-height: 0;
  overflow: hidden;
}

.topbar,
.controls,
.chat-header,
.message-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.user-pill {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow,
h1,
h2,
p {
  margin: 0;
}

.eyebrow,
.status-pill,
.chat-header span {
  color: var(--muted);
  font-size: 0.85rem;
}

.eyebrow {
  color: var(--mint);
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(1.6rem, 3vw, 3.05rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  white-space: nowrap;
  background: #101f25;
}

.status-pill::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--coral);
  vertical-align: -0.03rem;
}

.join-panel {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
}

label {
  display: grid;
  gap: 0.35rem;
  color: #b7c8cc;
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  background: #071216;
  color: #f4fbfb;
  outline: none;
}

input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(92, 242, 199, 0.1);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(111, 220, 255, 0.16);
  background:
    linear-gradient(rgba(3, 9, 12, 0.72), rgba(3, 9, 12, 0.82)),
    url("novachat-bg.jpg") center/cover no-repeat;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.stage-bar {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c0d2d5;
  font-size: 0.82rem;
  pointer-events: none;
}

.stage-live {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #03110f;
  background: var(--mint);
  font-weight: 900;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-live.has-screens {
  box-shadow: 0 0 16px rgba(92, 242, 199, 0.35);
}

.stage-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #03110f;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.screens-grid {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: grid;
  gap: 0.75rem;
  padding: 2.65rem 0.55rem 0.55rem;
  box-sizing: border-box;
  align-content: stretch;
  justify-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
}

.screens-grid[data-count="0"] {
  display: none;
}

/* 1 tela: tamanho total */
.screens-grid[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.screens-grid[data-count="1"] > .screen-tile {
  max-width: 100%;
}

/* 2 telas: lado a lado */
.screens-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

/* 3 telas: 2 em cima, 1 centralizada embaixo */
.screens-grid[data-count="3"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.screens-grid[data-count="3"] > .screen-tile:last-child {
  grid-column: 1 / -1;
  max-width: 65%;
  justify-self: center;
  width: 100%;
}

/* 4 telas: grade 2x2 */
.screens-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* 5 ou 6 telas: 3 colunas */
.screens-grid[data-count="5"],
.screens-grid[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Padrão para muitas telas */
.screens-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Estilo do card de cada tela */
.screen-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(4, 12, 16, 0.94);
  border: 1px solid rgba(111, 220, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: screenTileEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes screenTileEnter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.screen-tile:hover {
  border-color: rgba(92, 242, 199, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(92, 242, 199, 0.1);
}

.screen-tile.maximized {
  position: absolute !important;
  inset: 2.85rem 0.75rem 0.75rem 0.75rem;
  z-index: 10;
  aspect-ratio: auto;
  border-color: var(--mint);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  animation: none;
}

.screen-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.7rem;
  background: rgba(7, 18, 24, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(111, 220, 255, 0.12);
  z-index: 2;
  gap: 0.5rem;
}

.screen-tile-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.screen-tile-badge {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(92, 242, 199, 0.16);
  color: var(--mint);
  border: 1px solid rgba(92, 242, 199, 0.3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.screen-tile-badge.local {
  background: rgba(255, 125, 92, 0.16);
  color: var(--coral);
  border-color: rgba(255, 125, 92, 0.35);
}

.screen-tile-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e5f1f3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-tile-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.screen-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(111, 220, 255, 0.2);
  border-radius: 7px;
  background: rgba(12, 28, 36, 0.85);
  color: #b7cdd2;
  cursor: pointer;
  transition: all 0.18s ease;
}

.screen-action-btn:hover {
  background: rgba(92, 242, 199, 0.22);
  border-color: var(--mint);
  color: #ffffff;
  transform: scale(1.05);
}

.screen-action-btn.stop-share-btn {
  color: #ff7d5c;
  border-color: rgba(255, 125, 92, 0.35);
  background: rgba(255, 125, 92, 0.12);
}

.screen-action-btn.stop-share-btn:hover {
  background: rgba(255, 125, 92, 0.3);
  border-color: #ff7d5c;
  color: #ffffff;
}

.screen-action-btn:active {
  transform: scale(0.95);
}

.screen-video-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #020709;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screen-video-wrapper video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.screen-tile.screen-portrait {
  max-width: min(100%, 520px);
  justify-self: center;
}

.screen-tile.screen-ultrawide .screen-video-wrapper video {
  object-position: center center;
}

.empty-stage.hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-radius: 18px;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.66) 0%, rgba(4, 9, 12, 0.3) 42%, rgba(4, 9, 12, 0.08) 100%),
    url("novachat-bg.jpg") center/cover no-repeat;
  border: 0;
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.38);
  max-width: none;
  text-align: left;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 360px;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #38bdf8;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 950;
  color: #ffffff;
  line-height: 1.12;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  margin: 0;
  max-width: 320px;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.6rem;
  width: fit-content;
}

.hero-action-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.7);
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

/* =========================================================
   SALA DE VOZ (CARDS DE PARTICIPANTES ESTILO DISCORD)
   ========================================================= */
.voice-stage-grid {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 1.4rem 1.4rem;
  box-sizing: border-box;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-stage-grid.active {
  display: flex;
}

/* 1 participante: card centralizado e amplo */
.voice-stage-grid.active[data-count="1"] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-stage-grid.active[data-count="1"] .voice-participant-card {
  width: min(100%, 480px);
  height: clamp(210px, 34vh, 265px);
}

/* 2 participantes: lado a lado perfeitamente balanceados */
.voice-stage-grid.active[data-count="2"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  gap: 1.25rem;
}
.voice-stage-grid.active[data-count="2"] .voice-participant-card {
  width: 100%;
  height: clamp(200px, 34vh, 260px);
}

/* 3 e 4 participantes: grade 2x2 */
.voice-stage-grid.active[data-count="3"],
.voice-stage-grid.active[data-count="4"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: center;
  max-width: 980px;
  width: 100%;
  height: 100%;
  max-height: 560px;
  margin: 0 auto;
  gap: 1rem;
}
.voice-stage-grid.active[data-count="3"] .voice-participant-card,
.voice-stage-grid.active[data-count="4"] .voice-participant-card {
  width: 100%;
  height: 100%;
  min-height: 180px;
}

/* 5 ou mais participantes: grade fluida */
.voice-stage-grid.active[data-count="5"],
.voice-stage-grid.active[data-count="6"],
.voice-stage-grid.active[data-count="7"],
.voice-stage-grid.active[data-count="8"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-content: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

/* Estilo do Card Individual de Participante */
.voice-participant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background-color: var(--card-theme, #111214);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  animation: voiceCardEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes voiceCardEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.voice-participant-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
}

/* Ações no Canto Superior Direito */
.voice-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.voice-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 20, 24, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 5px 9px;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.18s ease;
}

.voice-card-btn:hover {
  background: rgba(28, 32, 40, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Menu suspenso de opções do participante */
.voice-card-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: #181a1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInDown 0.15s ease;
}

.voice-card-menu.hidden {
  display: none !important;
}

.voice-card-menu-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-card-volume-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.voice-user-volume-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.voice-card-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.voice-card-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Centro do Card: Avatar Circular */
.voice-card-center {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.voice-avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: #1e1f22;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease;
  user-select: none;
}

/* Indicador de Fala (Borda e Glow Verde estilo Discord) */
.voice-avatar-wrap.speaking {
  border-color: #23a55a !important;
  box-shadow: 0 0 0 3.5px #23a55a, 0 0 22px rgba(35, 165, 90, 0.8) !important;
  animation: speakingPulse 1.2s infinite alternate;
}

@keyframes speakingPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.voice-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.voice-avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Ícone de Telefone Branco no Centro do Avatar */
.voice-phone-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

/* Badge de Nome no Canto Inferior Esquerdo */
.voice-name-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 16, 20, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 10px;
  max-width: calc(100% - 28px);
}

.voice-name-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.voice-mic-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voice-mic-status-icon.hidden {
  display: none !important;
}

/* Modo faixa compacta quando compartilhamento de tela estiver ativo */
.voice-stage-grid.compact-strip {
  position: absolute;
  top: 2.8rem;
  left: 0.85rem;
  right: 0.85rem;
  height: auto;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.6rem;
  z-index: 15;
  pointer-events: auto;
}

.voice-stage-grid.compact-strip .voice-participant-card {
  width: auto;
  min-width: 120px;
  max-width: 180px;
  height: 52px;
  padding: 0 10px;
  flex-direction: row;
  border-radius: 26px;
  background: rgba(18, 20, 24, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
}

.voice-stage-grid.compact-strip .voice-card-actions {
  display: none;
}

.voice-stage-grid.compact-strip .voice-avatar-wrap {
  width: 36px;
  height: 36px;
}

.voice-stage-grid.compact-strip .voice-name-badge {
  position: static;
  background: transparent;
  padding: 0;
  border: none;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.4rem 0;
  width: 100%;
}

.controls-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #131518;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.pill-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.pill-btn svg {
  display: block;
  pointer-events: none;
}

.pill-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.pill-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.pill-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pill-btn.active {
  background: rgba(92, 242, 199, 0.22);
  color: var(--mint);
  box-shadow: 0 0 14px rgba(92, 242, 199, 0.4);
}

.pill-btn.muted {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
}

.call-end-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  border-radius: 18px;
  border: none;
  background: #ea4335;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(234, 67, 53, 0.38);
  user-select: none;
}

.call-end-button svg {
  display: block;
  pointer-events: none;
}

.call-end-button:hover:not(:disabled) {
  background: #d93025;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.55);
}

.call-end-button:active:not(:disabled) {
  transform: scale(0.95);
}

.call-end-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.floating-reaction {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 999;
  user-select: none;
  animation: floatUpFade 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.6);
  }
  20% {
    transform: translate(calc(-50% + var(--drift-x, 0px)), -40px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 0px)), -180px) scale(1);
  }
}

.people {
  display: grid;
  gap: 0.65rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

#peopleList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

#peopleList li {
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  color: #d6f0ed;
  background: #10242b;
  border: 1px solid var(--line);
}

.chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 1rem;
  gap: 1rem;
}

.chat-header {
  align-items: flex-start;
}

.room-badge {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: #101f25;
  white-space: nowrap;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: auto;
  min-height: 280px;
}

.messages-screen.open {
  align-items: stretch;
  justify-content: stretch;
  padding: clamp(0.75rem, 1.6vw, 1.5rem);
  background:
    linear-gradient(rgba(4, 9, 12, 0.9), rgba(4, 9, 12, 0.96)),
    url("novachat-bg.jpg") center/cover no-repeat fixed;
}

.messages-screen-card {
  width: min(980px, 100%);
  max-width: 980px;
  min-height: min(760px, calc(100vh - 3rem));
  margin: auto;
  overflow: hidden;
}

.messages-screen-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(111, 220, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.84rem;
}

.messages-screen-room strong {
  color: var(--mint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-screen-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 420px;
  overflow: auto;
  padding: 0.25rem 0.15rem;
}

.messages-screen-list .message {
  max-width: min(720px, 92%);
}

.messages-screen-form {
  align-items: stretch;
}

.messages-screen-empty {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
}

.message {
  width: fit-content;
  max-width: 92%;
  border-radius: 12px 12px 12px 3px;
  padding: 0.72rem 0.82rem;
  background: #10242b;
  border: 1px solid var(--line);
}

.message.mine {
  align-self: flex-end;
  border-radius: 12px 12px 3px 12px;
  color: #05120f;
  background: var(--mint);
}

.message b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  color: #7eddbf;
}

.message.mine b {
  color: #0d5b48;
}

.message-reply-btn {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
  border: 1px solid rgba(111, 220, 255, 0.2);
  border-radius: 7px;
  padding: 0.28rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 800;
}

.message-reply-btn:hover {
  border-color: var(--mint);
  color: #ffffff;
  background: rgba(92, 242, 199, 0.18);
}

.message.pinned {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}

.message.pinned::before {
  content: "Fixada";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.25rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.message-pin-btn {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.28);
}

.message-form {
  align-items: stretch;
}

.message-form input {
  flex: 1;
}

@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .login-brand h1 {
    font-size: 2.6rem;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .rail {
    display: none;
  }

  .join-panel {
    grid-template-columns: 1fr;
  }

  .chat {
    min-height: 420px;
  }

  .screens-grid[data-count="2"],
  .screens-grid[data-count="3"],
  .screens-grid[data-count="4"],
  .screens-grid[data-count="5"],
  .screens-grid[data-count="6"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .screen-tile {
    min-height: 260px;
  }

  .screens-grid[data-count="3"] > .screen-tile:last-child {
    max-width: 100%;
  }
}

.login-download-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(6, 182, 212, 0.08)),
    rgba(2, 8, 18, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.login-install-card {
  align-self: center;
}

.login-download-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 34%, rgba(92, 242, 199, 0.08));
}

.download-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.1rem 0.15rem;
}

.download-panel-header span {
  color: #8ee7ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-panel-header strong {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
}

.desktop-download-banner-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 74px;
  padding: 0.82rem 0.9rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(20, 13, 48, 0.72)),
    rgba(12, 9, 28, 0.72);
  border: 1px solid rgba(176, 116, 255, 0.5);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
}

.desktop-download-banner-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.13), transparent 38%);
  opacity: 0.65;
}

.desktop-download-banner-btn:hover {
  border-color: #d8b4fe;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.35), 0 0 26px rgba(168, 85, 247, 0.2);
}

.download-icon-box {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.android-icon-box {
  background: linear-gradient(135deg, #059669 0%, #22c55e 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.36);
}

.download-text-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.download-platform {
  color: #bae6fd;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.download-primary-text {
  color: #ffffff;
  font-size: 1.01rem;
  font-weight: 900;
  line-height: 1.25;
}

.download-secondary-text {
  color: #b9c9d4;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
}

.download-file-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0.34rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.36);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.download-action-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.desktop-download-banner-btn:hover .download-action-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.card-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1rem;
  min-height: 40px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.26);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s ease;
  margin-top: 0.2rem;
}

.card-download-link:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: #a855f7;
  color: #ffffff;
}

@media (max-width: 560px) {
  .login-download-wrapper {
    width: 100%;
    padding: 0.8rem;
  }

  .download-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .desktop-download-banner-btn {
    gap: 0.7rem;
    min-height: 68px;
    padding: 0.72rem;
  }

  .download-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .download-primary-text {
    font-size: 0.9rem;
  }

  .download-secondary-text {
    font-size: 0.72rem;
  }

  .download-file-pill {
    display: none;
  }

  .download-action-arrow {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1180px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  }

  .login-install-card {
    grid-column: 1 / -1;
    width: min(100%, 720px);
    justify-self: center;
  }

  .login-download-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .download-panel-header {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .login-screen {
    position: relative;
    min-height: 100vh;
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 5.8rem;
  }

  .login-brand,
  .login-card,
  .login-install-card {
    width: min(100%, 560px);
    justify-self: center;
  }

  .login-brand {
    text-align: center;
  }

  .login-mark {
    margin-inline: auto;
  }

  .login-feature-row {
    justify-content: center;
  }

  .login-download-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .login-topline {
    align-items: flex-start;
  }

  .login-topline-status {
    display: none;
  }

  .login-card-downloads {
    grid-template-columns: 1fr;
  }
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.hero-actions-row .hero-action-btn {
  margin-top: 0;
}

.hero-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-download-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.topbar-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.9rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.topbar-download-btn:hover {
  background: rgba(124, 58, 237, 0.32);
  border-color: #a855f7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* =========================================================
   Estilos do Perfil e Upload de Imagem
   ========================================================= */

.sidebar-user-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-user-card:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.4);
}

.profile-card {
  max-width: 500px !important;
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(124, 58, 237, 0.25) !important;
}

.profile-banner-preview {
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b0764 0%, #7c3aed 50%, #06b6d4 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.profile-banner-decor {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: -44px;
  padding: 0 0.8rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}

.profile-avatar-large-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 9999px;
  border: 4px solid #0f172a;
  background: #1e1b4b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-large-circle {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 9999px;
}

.profile-avatar-large-circle.hidden {
  display: none !important;
}

.profile-avatar-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
  display: block;
}

.profile-avatar-large-img.hidden {
  display: none !important;
}

.profile-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border: none;
  cursor: pointer;
}

.profile-avatar-large-wrap:hover .profile-avatar-edit-overlay {
  opacity: 1;
}

.profile-avatar-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.2rem;
}

.ghost-button.danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.ghost-button.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.profile-presets-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.presets-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.presets-grid {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.preset-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #111827;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.preset-avatar-btn:hover {
  transform: scale(1.12);
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.preset-avatar-btn.selected {
  border-color: #5cf2c7;
  background: rgba(92, 242, 199, 0.15);
  box-shadow: 0 0 16px rgba(92, 242, 199, 0.45);
  transform: scale(1.08);
}

.profile-form {
  display: grid;
  gap: 0.85rem;
}

.profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: #071216;
  color: #f4fbfb;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.profile-form textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.remember-credentials-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.65rem !important;
  cursor: pointer;
  user-select: none;
  margin: 0.15rem 0 0.35rem;
}

.remember-credentials-row input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  accent-color: #7c3aed;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

.remember-label-text {
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.3;
}

.remember-credentials-row:hover .remember-label-text {
  color: #f1f5f9;
}

/* ============================================================
   SISTEMA DE ID FIXO DISCORD E PAINEL DE AMIGOS
   ============================================================ */

.user-name-tag-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.user-tag-badge {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  line-height: 1.2;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.user-tag-badge:hover {
  background: rgba(168, 85, 247, 0.35);
  border-color: #a855f7;
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 1px 6px;
  margin-left: auto;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  display: inline-block;
  line-height: 1.2;
}

.profile-discord-id-box {
  background: rgba(19, 16, 32, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.discord-id-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.discord-id-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a855f7;
  font-weight: 700;
}

.discord-id-value-wrap {
  display: flex;
  flex-direction: column;
}

.discord-id-tag {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.discord-id-tip {
  font-size: 0.72rem;
  color: #94a3b8;
}

.copy-id-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Tela de Amigos */
.friends-screen.open {
  align-items: stretch;
  justify-content: stretch;
  padding: clamp(0.75rem, 1.6vw, 1.5rem);
  background:
    linear-gradient(rgba(4, 9, 12, 0.9), rgba(4, 9, 12, 0.96)),
    url("novachat-bg.jpg") center/cover no-repeat fixed;
}

.friends-card {
  width: min(1180px, 100%);
  max-width: 1180px;
  min-height: min(760px, calc(100vh - 3rem));
  margin: auto;
  padding: clamp(1rem, 2vw, 1.45rem);
  overflow: hidden;
}

.friends-card .settings-tab-content.active {
  min-height: 0;
}

.friends-modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.friends-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: grid;
  place-items: center;
  color: #c084fc;
}

.friends-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.friends-tabs .add-friend-tab {
  color: #10b981 !important;
  font-weight: 700;
}

.friends-tabs .add-friend-tab:hover {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.friends-tabs .add-friend-tab.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

.tab-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  border-radius: 999px;
  padding: 1px 5px;
  font-weight: 700;
  margin-left: 4px;
}

.add-friend-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f8fafc;
  margin-bottom: 0.3rem;
}

.add-friend-header p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.my-id-share-card {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.my-id-share-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.my-id-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #a855f7;
  letter-spacing: 0.06em;
}

.my-id-val {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.add-friend-input-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0d0a17;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  transition: all 0.2s ease;
}

.add-friend-input-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.add-friend-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
}

.green-btn {
  background: #10b981 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  padding: 0.6rem 1rem !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.green-btn:hover {
  background: #059669 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px);
}

.add-friend-status {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  min-height: 1.2rem;
  font-weight: 600;
}

.add-friend-status.success {
  color: #10b981;
}

.add-friend-status.error {
  color: #ef4444;
}

.friends-filter-bar {
  margin-bottom: 0.85rem;
}

.friends-search-input {
  width: 100%;
  background: #0d0a17;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #f8fafc;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.friends-search-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.friends-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  transition: all 0.18s ease;
}

.friend-item:hover {
  background: rgba(168, 85, 247, 0.09);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateX(2px);
}

.friend-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.friend-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.friend-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2e1065;
  border: 2px solid #a855f7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
}

.friend-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  object-fit: cover;
  display: block;
}

.friend-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0d0a17;
  box-shadow: 0 0 6px #10b981;
}

.friend-status-dot.offline {
  background: #64748b;
  box-shadow: none;
}

.friend-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.friend-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-tag {
  color: #a855f7;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 600;
}

.friend-status-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-status-desc.online {
  color: #10b981;
  font-weight: 600;
}

.friend-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.friend-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.friend-action-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  border-color: #a855f7;
  transform: translateY(-1px);
}

.friend-action-btn.success:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border-color: #10b981;
}

.friend-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: #ef4444;
}

.pending-section-title {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.friends-empty-placeholder {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
}

.friends-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
}

/* Toast flutuante */
.app-floating-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #19142b;
  border: 1px solid #a855f7;
  color: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(168, 85, 247, 0.3);
  z-index: 99999;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.people-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.room-add-friend-btn {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.room-add-friend-btn:hover:not(:disabled) {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.room-add-friend-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Botões Visíveis de Adicionar Amigo */
.topbar-add-friend-btn {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  border-radius: 9px;
  border: none;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topbar-add-friend-btn:hover {
  background: #059669;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

.sidebar-add-friend-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #10b981;
  color: #ffffff;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sidebar-add-friend-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

.hero-add-friend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.6rem;
  width: fit-content;
  text-decoration: none;
}

.hero-add-friend-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 34px rgba(16, 185, 129, 0.7);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-add-friend-btn {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.chat-add-friend-btn:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.empty-add-btn {
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #10b981;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.empty-add-btn:hover {
  background: #059669;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.people-add-friend-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.people-add-friend-btn:hover {
  background: #10b981;
  color: #ffffff;
}

.add-friend-label {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.users-directory-suggestions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.suggestions-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 180px;
  overflow-y: auto;
}

/* =========================================================
   Notificações e Tela de Pedidos de Amizade
   ========================================================= */

.sidebar-invites-alert-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
  transition: all 0.2s ease;
  animation: pulse-border 2s infinite;
}

.sidebar-invites-alert-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(245, 158, 11, 0.35) 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.sidebar-invites-alert-btn .action-tag {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.5); }
  50% { border-color: rgba(245, 158, 11, 0.8); }
}

.pending-invites-alert-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pending-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pending-bell {
  font-size: 1.25rem;
}

.pending-banner-left strong {
  display: block;
  font-size: 0.86rem;
  color: #fca5a5;
  font-weight: 700;
}

.pending-banner-left span {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
}

.pending-banner-btn {
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.pending-banner-btn:hover {
  background: #dc2626;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.pending-header-banner {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pending-header-info h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.04em;
}

.pending-header-info p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
}

.pending-invite-card {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.9rem !important;
  margin-bottom: 0.55rem;
  transition: all 0.2s ease;
}

.pending-invite-card:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: rgba(30, 41, 59, 0.8) !important;
}

.pending-invite-desc {
  color: #38bdf8 !important;
  font-size: 0.72rem !important;
  font-weight: 600;
}

.pending-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.friend-accept-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

.friend-accept-btn:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

.friend-decline-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.friend-decline-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.pending-tab-btn.has-invites {
  color: #fca5a5 !important;
  font-weight: 800 !important;
}

/* =========================================================
   Central de Notificações Suspensa (Dropdown)
   ========================================================= */

.notifications-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-bell-btn {
  position: relative;
}

.notification-bell-btn.active,
.notification-bell-btn[aria-expanded="true"] {
  background: rgba(168, 85, 247, 0.25) !important;
  color: #ffffff !important;
  border-color: #a855f7 !important;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
  animation: notif-pulse 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes notif-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(239, 68, 68, 1);
  }
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 28px);
  max-height: 520px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(168, 85, 247, 0.2);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notif-dropdown-appear 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

@keyframes notif-dropdown-appear {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.4);
}

.notifications-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
}

.notifications-title-wrap svg {
  color: #a855f7;
}

.notifications-title-wrap h3 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0;
}

.notifications-count-pill {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.notifications-action-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.notifications-action-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.notifications-subtabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.notif-tab.active {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.4);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 350px;
}

.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1rem;
  text-align: center;
  color: #64748b;
  gap: 0.5rem;
}

.notifications-empty span {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.notifications-empty p {
  margin: 0;
  font-size: 0.82rem;
}

.notification-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(168, 85, 247, 0.3);
}

.notification-item.is-invite {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.notification-item-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.notification-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.notification-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notification-meta {
  flex: 1;
  min-width: 0;
}

.notification-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.notification-user-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.notification-user-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a855f7;
}

.notification-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.notification-time {
  font-size: 0.65rem;
  color: #64748b;
}

.notification-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-accept-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.notif-accept-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6);
}

.notif-decline-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.38rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.notif-decline-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.notifications-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.3);
}

.notifications-view-all-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notifications-view-all-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

/* =========================================================
   Seção Rápida de Pedidos de Amizade (nas abas Disponível/Todos)
   ========================================================= */

.quick-pending-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.9rem;
}

.quick-pending-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
}

.quick-pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quick-pending-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.quick-pending-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.quick-pending-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.quick-pending-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}

.quick-pending-tag {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 700;
}

.quick-pending-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.green-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
  font-weight: 800 !important;
}

.green-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6) !important;
}

/* =========================================================
   Estilos das Configurações de Grupo (Group Settings)
   ========================================================= */

.group-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.group-settings-btn:hover {
  border-color: #a855f7;
  background: rgba(124, 58, 237, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.group-settings-card {
  max-width: 720px !important;
  width: min(720px, 96vw) !important;
  background: #0f172a !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 40px rgba(124, 58, 237, 0.3) !important;
}

.group-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.group-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  overflow: hidden;
}

/* Group Photo Edit Styles */
.group-photo-edit-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.group-photo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.group-photo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
  border: 2px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 16px rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.group-photo-avatar {
  font-size: 2rem;
  line-height: 1;
}

.group-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-photo-controls {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.group-photo-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.group-photo-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

.community-item-img,
.community-avatar-img,
.group-modal-avatar-img,
.creator-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.group-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.group-role-badge.member {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.group-tab-danger {
  color: #f87171 !important;
}

.group-tab-danger.active {
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.group-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin: 1.2rem 0;
}

.group-code-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.group-code-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #a855f7;
  letter-spacing: 0.5px;
}

.group-code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
}

/* Gerenciamento de Salas */
.group-rooms-header {
  margin-bottom: 1.2rem;
}

.group-rooms-header h3 {
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.group-rooms-header p {
  font-size: 0.82rem;
  color: #94a3b8;
}

.add-room-inline-form {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.add-room-inline-form input {
  flex: 1;
}

.group-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.group-room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
}

.group-room-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.3);
}

.group-room-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.group-room-hash {
  color: #a855f7;
  font-weight: 900;
  font-size: 1rem;
}

.group-room-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.room-action-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.room-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.room-action-btn.delete {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.room-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* Membros e Convites */
.group-creator-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(234, 179, 8, 0.3);
  margin-bottom: 1.2rem;
}

.creator-avatar {
  font-size: 1.8rem;
}

.creator-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.creator-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #eab308;
  letter-spacing: 0.5px;
}

.creator-name {
  font-size: 1.05rem;
  color: #f8fafc;
}

.group-invite-box {
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  text-align: center;
}

.group-invite-box h4 {
  font-size: 1rem;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.group-invite-box p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.invite-action-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Zona de Perigo */
.danger-zone-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.danger-zone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.danger-zone-item h4 {
  font-size: 0.95rem;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.danger-zone-item p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.danger-btn-outline {
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.danger-btn-outline:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.danger-btn-fill {
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all 0.18s ease;
}

.danger-btn-fill:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5);
}

/* =========================================================
   ACTIVITIES DROPDOWN & POPUP MENU
   ========================================================= */
.activities-wrapper {
  position: relative;
  display: inline-flex;
}

.activities-dropdown {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(168, 85, 247, 0.2);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: activities-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes activities-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.activities-dropdown-header {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.5);
}

.activities-menu-items {
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.activity-menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.activity-menu-item:hover {
  background: rgba(168, 85, 247, 0.18);
  color: #ffffff;
  transform: translateX(3px);
}

.activity-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.activity-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.activity-item-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.activity-item-text small {
  font-size: 0.73rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   MESSAGES SCREEN EMPTY STATE
   ========================================================= */
.messages-screen-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: auto;
  max-width: 360px;
}

.empty-screen-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.4));
  animation: pulse-icon 2.5s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.messages-screen-empty-wrap h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.messages-screen-empty-wrap p {
  font-size: 0.86rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.empty-screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.category-icon-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.category-icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(168, 85, 247, 0.25) !important;
  color: #ffffff !important;
}

.category-icon-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(59, 130, 246, 0.4)) !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  color: #ffffff !important;
}

/* ==========================================================================
   TELA INÍCIO: BOAS-VINDAS E REGRAS DA COMUNIDADE
   ========================================================================== */
.home-welcome-rules-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
  animation: fadeInHome 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-welcome-rules-section.hidden {
  display: none !important;
}

@keyframes fadeInHome {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-welcome-rules-section::-webkit-scrollbar {
  width: 6px;
}
.home-welcome-rules-section::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 4px;
}

/* Card 1: Boas-Vindas */
.home-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(6, 182, 212, 0.08) 100%), rgba(12, 10, 24, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.home-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.home-hero-lead {
  margin: 0 0 1.25rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 840px;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.home-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.home-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}

.home-feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-feature-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}

.home-feature-body p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.home-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

.home-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
}

.home-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(16, 185, 129, 0.24);
}

/* Card 2: Regras */
.home-rules-card {
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.home-rules-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.home-rules-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-rules-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.home-rules-title-wrap h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.home-rules-title-wrap p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.home-rules-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.home-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.home-rule-item:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.05);
}

.home-rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.home-rule-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.home-rule-content p {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #94a3b8;
}

/* Mensagens de Sistema / Boas-Vindas & Regras no Chat */
.message-system-welcome {
  width: 100% !important;
  max-width: 100% !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(59, 130, 246, 0.1)) !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  border-radius: 14px !important;
  padding: 0.95rem 1rem !important;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.15);
}

.message-system-rules {
  width: 100% !important;
  max-width: 100% !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.08)) !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
  border-radius: 14px !important;
  padding: 0.95rem 1rem !important;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.15);
}

.message-system-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.bot-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: #8b5cf6;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.bot-badge.rules-badge {
  background: #06b6d4;
}

.message-system-header b {
  color: #ffffff !important;
  font-size: 0.85rem !important;
  margin-bottom: 0 !important;
}

.message-system-header .message-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: #94a3b8;
}

.message-system-body p {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.message-system-body p:last-child {
  margin-bottom: 0;
}

.chat-rules-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.79rem;
  line-height: 1.4;
  color: #cbd5e1;
}

/* ==========================================================================
   CARGOS E PERMISSÕES DE GRUPO (ROLES & MODERATION)
   ========================================================================== */
.group-roles-intro {
  margin-bottom: 1rem;
}
.group-roles-intro h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}
.group-roles-intro p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Card de Criar Cargo */
.create-role-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.create-role-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e9d5ff;
}

.role-inputs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.role-name-label {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0 !important;
}

.role-color-selector {
  display: flex;
  flex-direction: column;
}
.role-color-palette {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.role-color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dot-color);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0;
}
.role-color-dot:hover {
  transform: scale(1.15);
}
.role-color-dot.active {
  border-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--dot-color);
}

.role-permissions-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.role-perms-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}
.role-perms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}
.role-perm-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  margin-bottom: 0 !important;
}
.role-perm-checkbox-card:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
}
.role-perm-checkbox-card input[type="checkbox"] {
  display: none;
}
.role-perm-checkbox-card input[type="checkbox"]:checked + .custom-checkbox-indicator {
  background: #8b5cf6;
  border-color: #a855f7;
}
.role-perm-checkbox-card input[type="checkbox"]:checked + .custom-checkbox-indicator::after {
  content: "✓";
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.perm-text strong {
  display: block;
  font-size: 0.83rem;
  color: #f1f5f9;
  margin-bottom: 0.15rem;
}
.perm-text small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

.role-actions {
  display: flex;
  justify-content: flex-end;
}

/* Lista de Cargos */
.group-roles-list-section h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}
.group-roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.group-role-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.group-role-card-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.role-item-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.role-color-pill {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--role-color, #8b5cf6);
  box-shadow: 0 0 8px var(--role-color, #8b5cf6);
  flex-shrink: 0;
}
.role-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}
.role-item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}
.role-item-perms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.role-perm-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
}
.role-perm-pill.ban {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.role-perm-pill.mute {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.role-perm-pill.managerooms,
.role-perm-pill.manageroles {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: #67e8f9;
}
.role-perm-pill.invitemembers,
.role-perm-pill.pinmessages {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #86efac;
}
.role-perm-pill.kickmembers,
.role-perm-pill.clearchat {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
  color: #fdba74;
}

/* Membros e Moderação */
.group-members-section {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.group-members-header,
.group-banned-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.group-members-header h4,
.group-banned-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.group-members-hint,
.group-banned-hint {
  font-size: 0.76rem;
  color: #94a3b8;
}
.group-members-list,
.group-banned-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.group-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.group-member-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
}
.group-member-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.group-member-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}
.group-member-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-member-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.group-member-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.group-member-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group-member-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}
.group-member-role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  color: #ffffff;
  background: var(--badge-color, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

.group-member-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.role-assign-select {
  padding: 0.35rem 0.6rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.role-assign-select:focus {
  border-color: #a855f7;
}

.mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  border: 1px solid transparent;
}
.mod-btn:hover {
  transform: translateY(-1px);
}
.mod-btn.mute-btn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.mod-btn.mute-btn:hover {
  background: rgba(245, 158, 11, 0.25);
}
.mod-btn.mute-btn.is-muted {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}
.mod-btn.ban-btn {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.mod-btn.ban-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}
.mod-btn.kick-btn {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fdba74;
}
.mod-btn.kick-btn:hover {
  background: rgba(249, 115, 22, 0.24);
}

/* Membros Banidos */
.group-banned-section {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.04);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 12px;
}
.group-banned-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.banned-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fca5a5;
}
.unban-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  cursor: pointer;
  transition: background 0.15s;
}
.unban-btn:hover {
  background: rgba(52, 211, 153, 0.28);
}

/* Botão Mutar na Lista de Pessoas da Sala */
.person-mute-btn {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  transition: all 0.15s;
}
.person-mute-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}
.person-mute-btn.is-muted {
  background: #f59e0b;
  color: #0f172a;
}
.people-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.people-list-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-list-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.people-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  line-height: 1.2;
}
.people-role-badge.owner {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.person-mod-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.person-mod-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.person-mod-icon-btn.mute-btn.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}
.person-mod-icon-btn.ban-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}
