@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");
:root {
  --bg: #080b13;
  --panel: #0f1421;
  --panel2: #151b2b;
  --line: rgba(255, 255, 255, 0.075);
  --text: #f7f8fb;
  --muted: #8b93a7;
  --brand: #7c5cff;
  --brand2: #a58cff;
  --green: #31d0aa;
  --pink: #f265a7;
  --blue: #4d9bff;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
}
button,
a,
input,
textarea,
select {
  font: inherit;
}
.landing-shell {
  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(124, 92, 255, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, #080b14, #090c17 55%, #0b0d1b);
}
.landing-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
}
.orb-one {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(124, 92, 255, 0.12);
  right: -100px;
  top: 20%;
}
.orb-two {
  width: 190px;
  height: 190px;
  background: rgba(49, 208, 170, 0.035);
  left: 35%;
  bottom: 0;
}
.logo-mark {
  display: flex;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: Manrope;
  font-weight: 800;
  background: linear-gradient(145deg, var(--brand), #4e35ce);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.3);
}
.logo-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 14px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa2d6;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 12px;
}
.eyebrow span,
.live-pill span,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
h1,
h2,
.chat-logo {
  font-family: Manrope, sans-serif;
}
.landing-shell h1 em {
  color: var(--brand2);
  font-style: normal;
}
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 12px;
  padding: 14px 21px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 35px rgba(124, 92, 255, 0.25);
}
.btn-primary:hover {
  background: #8a6aff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--line);
}
.btn-ghost {
  background: transparent;
  color: #c5c9d5;
  border: 1px solid var(--line);
  padding: 10px 17px;
}
.mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #090c15;
  font-size: 12px;
  font-weight: 800;
}
.preview-card {
  width: 520px;
  max-width: 100%;
  padding: 26px;
  background: linear-gradient(
    145deg,
    rgba(22, 28, 47, 0.94),
    rgba(13, 17, 31, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
}
.live-pill {
  background: rgba(49, 208, 170, 0.08);
  color: #74ddc2;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.preview-message {
  display: flex;
  gap: 12px;
  align-items: start;
}
.preview-message b {
  font-size: 13px;
}
.preview-message p {
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 13px;
  border-radius: 5px 14px 14px 14px;
  color: #c2c7d5;
  margin-top: 5px;
  font-size: 13px;
}
.preview-input {
  border: 1px solid var(--line);
  background: #0b0f1b;
  border-radius: 12px;
  padding: 14px;
  color: #5f687d;
  display: flex;
  justify-content: space-between;
}
.preview-input span {
  color: var(--brand);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 4, 9, 0.78);
  backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.hidden {
  display: none;
}
.auth-card {
  position: relative;
  width: 440px;
  max-width: 100%;
  max-height: calc(100vh - 30px);
  overflow: auto;
  background: #111624;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 30px 100px #000;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  color: #81899d;
  background: transparent;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}
.field {
  display: block;
}
.field span {
  display: block;
  color: #9aa2b5;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 7px;
}
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #090d17;
  border-radius: 10px;
  color: white;
  padding: 12px 13px;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--brand);
}
.switch-copy {
  text-align: center;
  color: #7d8599;
  font-size: 13px;
}
.switch-copy button {
  border: 0;
  background: transparent;
  color: #a58cff;
  font-weight: 700;
}
.error-box {
  font-size: 13px;
  color: #ff9ab0;
  background: #491828;
  border: 1px solid #76263e;
  border-radius: 10px;
  padding: 11px 13px;
}

/* chat */
.chat-body {
  height: 100vh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}
[data-theme="light"] {
  --bg: #edf0f7;
  --panel: #fff;
  --panel2: #f5f6fa;
  --line: rgba(15, 23, 42, 0.1);
  --text: #1b2131;
  --muted: #70788c;
}
[data-theme="purple"] {
  --bg: #110d1c;
  --panel: #191226;
  --panel2: #211832;
}
.topbar {
  height: 64px;
  background: rgba(15, 20, 33, 0.97);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  z-index: 30;
}
[data-theme="light"] .topbar {
  background: #fff;
}
.icon-btn {
  height: 40px;
  width: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.icon-btn svg {
  width: 20px;
}
.chat-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.chat-logo b {
  font-weight: 800;
}
.top-spacer {
  flex: 1;
  display: flex;
  justify-content: center;
}
.room-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.room-chip svg {
  width: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
}
.badge {
  display: none;
  position: absolute;
  right: 3px;
  top: 2px;
  min-width: 16px;
  height: 16px;
  border: 2px solid var(--panel);
  border-radius: 10px;
  background: #ef476f;
  color: #fff;
  font-size: 9px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.badge.visible {
  display: flex;
}
.avatar-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 4px;
  position: relative;
  cursor: pointer;
}
.presence-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--panel);
  background: var(--green);
  border-radius: 50%;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #737b91;
  background: linear-gradient(145deg, #283149, #171d2c);
  color: white;
  font-weight: 800;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.gender-male {
  border-color: var(--blue);
}
.avatar.gender-female {
  border-color: var(--pink);
}
.avatar.gender-nonbinary {
  border-color: #b882ff;
}
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  width: 285px;
  padding: 8px;
  background: #141a29;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 50;
}
.dropdown.open {
  display: block;
}
.dropdown.bottom-dropdown {
  top: auto;
  bottom: calc(100% + 12px);
  width: 370px;
}
.dropdown.compact {
  width: 330px;
}
.dropdown-head,
.account-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dropdown-head small,
.account-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.dropdown-head b,
.account-head b {
  display: block;
  margin-top: 2px;
}
.room-symbol {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.14);
  color: var(--brand2);
}
.room-symbol svg {
  width: 18px;
}
.menu-label {
  padding: 11px 12px 6px;
  color: #667087;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}
.menu-row {
  border: 0;
  background: transparent;
  color: #b7bdca;
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.menu-row:hover,
.menu-row.active {
  background: rgba(124, 92, 255, 0.11);
  color: #fff;
}
.menu-row.active {
  color: #b6a6ff;
}
.menu-row svg {
  width: 17px;
}
.menu-row span {
  flex: 1;
}
.menu-row small {
  color: #697187;
}
.menu-row.danger {
  color: #ff7c97;
}
.menu-sep {
  border-top: 1px solid var(--line);
  margin: 6px;
}
.dropdown-title {
  padding: 12px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.dropdown-title button {
  border: 0;
  background: transparent;
  color: var(--brand2);
  font-size: 11px;
}
.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: #788196;
}
.empty-state svg {
  width: 27px;
  margin: auto;
}
.empty-state p {
  color: #b4bbca;
  margin: 9px 0 3px;
  font-size: 13px;
  font-weight: 700;
}
.empty-state small {
  font-size: 11px;
}
.chat-layout {
  height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  background: radial-gradient(
    circle at 30% 10%,
    rgba(124, 92, 255, 0.035),
    transparent 35%
  );
}
.chat-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.room-welcome {
  padding: 26px 34px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.room-welcome h1 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.room-welcome p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.welcome-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  color: #a995ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-icon svg {
  width: 19px;
}
.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 5px;
  scrollbar-width: thin;
  scrollbar-color: #30384a transparent;
}
.chat-message {
  display: flex;
  position: relative;
  gap: 13px;
  padding: 9px 10px;
  border-radius: 9px;
}
.chat-message:hover {
  background: rgba(255, 255, 255, 0.027);
}
.message-content {
  min-width: 0;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.message-meta button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.message-meta time {
  color: #5d6578;
  font-size: 10px;
}
.message-content p {
  color: #c4c9d4;
  margin: 2px 0;
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
[data-theme="light"] .message-content p {
  color: #424a5b;
}
.role-tag {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c9bcff;
  background: rgba(124, 92, 255, 0.13);
  font-size: 8px;
  font-weight: 800;
  padding: 3px 5px;
  border-radius: 4px;
}
.message-more {
  opacity: 0;
  margin-left: auto;
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.chat-message:hover .message-more {
  opacity: 1;
}
.message-more svg {
  width: 16px;
}
.typing-line {
  height: 25px;
  padding: 2px 34px;
  color: #596176;
  font-size: 10px;
}
.composer {
  margin: 0;
  min-height: 53px;
  display: flex;
  align-items: center;
  padding: 7px;
  background: var(--panel2);
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.composer textarea {
  flex: 1;
  resize: none;
  max-height: 100px;
  background: transparent;
  color: var(--text);
  border: 0;
  outline: 0;
  padding: 9px;
  font-size: 14px;
}
.composer-btn {
  border: 0;
  background: transparent;
  color: #737c91;
  padding: 8px;
  cursor: pointer;
}
.composer-btn svg {
  width: 18px;
}
.send-button {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.send-button svg {
  width: 17px;
}
.user-sidebar {
  border-left: 1px solid var(--line);
  background: rgba(15, 20, 33, 0.72);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar-tabs {
  height: 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.sidebar-tabs > span {
  flex: 1;
}
.sidebar-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-tabs svg {
  width: 17px;
}
.search-users {
  margin: 12px;
  position: relative;
}
.search-users svg {
  position: absolute;
  width: 15px;
  left: 11px;
  top: 10px;
  color: #626b7f;
}
.search-users input {
  width: 100%;
  background: #090d17;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: white;
  padding: 9px 10px 9px 34px;
  outline: 0;
}
.users-scroll {
  overflow-y: auto;
  padding: 10px;
}
.user-group-title {
  display: flex;
  justify-content: space-between;
  color: #5f687b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  padding: 10px 9px 6px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
}
.user-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.user-row.offline {
  opacity: 0.48;
}
.user-row > div {
  min-width: 0;
  flex: 1;
}
.user-row b {
  font-size: 12px;
  display: block;
}
.user-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-row .avatar {
  width: 36px;
  height: 36px;
}
.bottombar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.bottom-room {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
}
.bottom-room small {
  color: var(--muted);
}
.player {
  display: flex;
  align-items: center;
  gap: 12px;
}
.album {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player small,
.player span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.player b {
  display: block;
  font-size: 13px;
}
.player > button {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
}
.profile-modal {
  position: relative;
  width: 650px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #111725;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 100px #000;
}
.profile-cover {
  height: 145px;
  background: linear-gradient(125deg, #392d7c, #17204b 60%, #143c50);
  position: relative;
}
.profile-identity {
  padding: 0 28px 22px;
  margin-top: -38px;
  position: relative;
}
.profile-identity .avatar {
  width: 84px;
  height: 84px;
  border-width: 3px;
  box-shadow: 0 0 0 5px #111725;
}
.profile-identity h2 {
  margin: 12px 0 2px;
}
.profile-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 15px;
}
.profile-stats b {
  font-size: 14px;
}
.profile-stats span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.profile-body {
  padding: 22px 28px;
  border-top: 1px solid var(--line);
}
.profile-body h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #7d8597;
}
.profile-body > p {
  color: #bbc1ce;
  font-size: 14px;
  line-height: 1.6;
}
.profile-actions {
  position: absolute;
  right: 25px;
  bottom: 22px;
  display: flex;
  gap: 7px;
}
.profile-icon-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #1a2132;
  color: #b8bfce;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.profile-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px 28px;
}
.profile-edit-form .wide {
  grid-column: 1/-1;
}
.profile-edit-form label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #090d17;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 9px;
  padding: 10px;
}
.profile-edit-form textarea {
  height: 90px;
  resize: vertical;
}
.toast {
  position: fixed;
  z-index: 200;
  top: 75px;
  left: 50%;
  transform: translate(-50%, -20px);
  opacity: 0;
  pointer-events: none;
  background: #20283b;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 12px;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.request-row,
.notification-row {
  display: flex;
  gap: 11px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  align-items: flex-start;
}
.request-row:last-child,
.notification-row:last-child {
  border-bottom: 0;
}
.request-row > div,
.notification-row > div {
  flex: 1;
  min-width: 0;
}
.request-row b,
.notification-row b {
  display: block;
  font-size: 12px;
}
.request-row small,
.notification-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.request-row > div > span {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.request-row button {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.request-row button.decline {
  background: rgba(255, 255, 255, 0.06);
  color: #9ba3b5;
}
.request-row button svg {
  width: 12px;
}
.notification-row > span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(124, 92, 255, 0.12);
  color: #a995ff;
}
.notification-row > span svg {
  width: 16px;
}
.notification-row p {
  font-size: 11px;
  line-height: 1.4;
  color: #c2c7d3;
  margin: 0 0 4px;
}
.notification-row .avatar {
  width: 36px;
  height: 36px;
}
.notification-click {
  width: 100%;
  text-align: left;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: inherit;
  cursor: pointer;
}
.notification-click:hover {
  background: rgba(124, 92, 255, 0.07);
}
.dropdown.compact > div[id$="-list"] {
  max-height: 360px;
  overflow-y: auto;
}
.composer-pop-wrap {
  position: relative;
}
.composer-popover {
  display: none;
  position: absolute;
  left: 0;
  bottom: 48px;
  width: 260px;
  padding: 7px;
  background: #151b2a;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
  z-index: 35;
}
.composer-popover.open {
  display: block;
}
.composer-popover > button:not([data-emoji]) {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #c5cad6;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}
.composer-popover > button:not([data-emoji]):hover {
  background: rgba(124, 92, 255, 0.1);
}
.composer-popover > button > svg {
  width: 18px;
  color: #9c8bff;
}
.composer-popover > button span {
  flex: 1;
}
.composer-popover > button b,
.composer-popover > button small {
  display: block;
}
.composer-popover > button b {
  font-size: 12px;
}
.composer-popover > button small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.emoji-picker {
  width: 294px;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  padding: 10px;
}
.emoji-picker.open {
  display: grid;
}
.emoji-picker button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  font-size: 21px;
  padding: 7px;
  cursor: pointer;
}
.emoji-picker button:hover {
  background: rgba(255, 255, 255, 0.07);
}
.giphy-search {
  border-top: 1px solid var(--line);
  padding: 8px;
}
.giphy-search input {
  width: 100%;
  background: #090d17;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  padding: 8px;
  font-size: 11px;
}
.giphy-search > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  margin-top: 7px;
}
.giphy-search > div button {
  border: 0;
  background: transparent;
  padding: 0;
  height: 65px;
  overflow: hidden;
  border-radius: 5px;
}
.giphy-search img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-friends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.profile-friend {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
}
.profile-friend .avatar {
  width: 34px;
  height: 34px;
}
.profile-friend > button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.profile-friend > button b,
.profile-friend > button small {
  display: block;
}
.profile-friend > button b {
  font-size: 11px;
}
.profile-friend > button small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-friend .remove-friend {
  flex: 0 0 auto;
  color: #eb6a84;
  padding: 5px;
}
.profile-friend .remove-friend svg {
  width: 14px;
}
.profile-no-friends {
  font-size: 12px !important;
  color: var(--muted) !important;
}

/* admin */
.admin-body {
  margin: 0;
  background: #090c14;
  color: #eff1f6;
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #0e131f;
  display: flex;
  flex-direction: column;
}
.admin-caption {
  color: #4e586d;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 800;
  padding: 10px 22px 8px;
}
.admin-sidebar nav {
  padding: 0 10px;
}
.admin-sidebar nav a,
.admin-back a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #848da1;
  text-decoration: none;
  padding: 11px 12px;
  margin: 2px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #c7bfff;
  background: rgba(124, 92, 255, 0.1);
}
.admin-sidebar svg {
  width: 17px;
}
.admin-back {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.admin-main {
  padding: 34px 40px;
  min-width: 0;
}
.admin-main > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.admin-main > header small {
  color: #7163b2;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.admin-main > header h1 {
  font-size: 26px;
  margin: 5px 0;
}
.admin-main > header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #111724;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}
.stat-card > span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
  color: #9d8bff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card svg {
  width: 19px;
}
.stat-card small,
.stat-card strong {
  display: block;
}
.stat-card small {
  font-size: 11px;
  color: var(--muted);
}
.stat-card strong {
  font-family: Manrope;
  font-size: 22px;
  margin-top: 2px;
}
.admin-card {
  background: #111724;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.admin-card-head h2 {
  font-size: 15px;
  margin: 0;
}
.admin-card-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.admin-search {
  position: relative;
}
.admin-search svg {
  position: absolute;
  width: 14px;
  left: 10px;
  top: 9px;
  color: var(--muted);
}
.admin-search input {
  background: #090d16;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 8px 31px;
  color: #fff;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: #657086;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  padding: 11px 18px;
  background: #0d121e;
}
td {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: #aeb5c4;
}
td b,
td small {
  display: block;
}
td b {
  color: #e8eaf0;
}
td small {
  color: #687185;
  margin-top: 2px;
}
td select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  background: #0b0f19;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #aeb5c4;
  padding: 7px;
}
.status-label {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 10px;
  background: #15382f;
  color: #5ee0bb;
}
.status-label.banned {
  background: #3b1721;
  color: #ff7892;
}
.status-label.muted {
  background: #3d3317;
  color: #e7c45c;
}
.admin-save {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
}
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.room-admin-list > div,
.log-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.room-admin-list > div > span,
.log-list > div > span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.11);
  color: #a291ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.room-admin-list p,
.log-list p {
  flex: 1;
  margin: 0;
}
.room-admin-list b,
.room-admin-list small,
.log-list b,
.log-list small {
  display: block;
}
.room-admin-list b,
.log-list b {
  font-size: 12px;
}
.room-admin-list small,
.log-list small,
.room-admin-list em,
.log-list time {
  font-size: 10px;
  color: var(--muted);
  font-style: normal;
}
.admin-form {
  padding: 18px;
  display: grid;
  gap: 10px;
}
.admin-form label {
  font-size: 10px;
  color: var(--muted);
}
.admin-form label input,
.admin-form label select,
.admin-form label textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.empty-admin {
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 850px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .user-sidebar {
    position: fixed;
    right: 0;
    top: 64px;
    bottom: 48px;
    width: 300px;
    z-index: 25;
    box-shadow: -20px 0 60px #000;
    transform: translateX(105%);
    transition: 0.25s;
  }
  .user-sidebar.open {
    transform: translateX(0);
  }
  .room-welcome {
    padding-left: 20px;
  }
  .message-list {
    padding-left: 10px;
    padding-right: 10px;
  }
  .composer {
    margin-left: 0;
    margin-right: 0;
  }
  .top-spacer {
    display: none;
  }
  .chat-logo b {
    display: none;
  }
  .desktop-action {
    display: none;
  }
  .admin-body {
    display: block;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .admin-sidebar nav,
  .admin-caption {
    display: none;
  }
  .admin-back {
    position: absolute;
    right: 10px;
    top: 11px;
    border: 0;
  }
  .admin-main {
    padding: 22px 14px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .admin-main > header h1 {
    font-size: 21px;
  }
  .profile-edit-form {
    grid-template-columns: 1fr;
  }
  .profile-edit-form .wide {
    grid-column: auto;
  }
  .dropdown.compact {
    width: 290px;
  }
  .room-welcome p {
    max-width: 240px;
  }
  .composer-btn:nth-child(2) {
    display: none;
  }
}
*,
*:before,
*:after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
.modal-backdrop {
  backdrop-filter: none !important;
}
.orb {
  display: none !important;
}
