@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bf-brand-50: #f2eeff;
  --bf-brand-100: #e4dcff;
  --bf-brand-300: #a98fff;
  --bf-brand-400: #8a6bff;
  --bf-brand-500: #6d5cfa;
  --bf-brand-600: #5b47e5;
  --bf-magenta-500: #b14eff;
  --bf-pink-400: #ff6fb5;
  --bf-pink-500: #ec4899;
  --bf-cyan-400: #4dd4f7;
  --bf-amber-500: #f59e0b;
  --bf-emerald-500: #10b981;
  --bf-red-500: #ef4444;
  --bf-gradient-wing: linear-gradient(135deg, #6d5cfa 0%, #b14eff 55%, #ff6fb5 100%);
  --bf-gradient-soft: linear-gradient(135deg, rgba(109, 92, 250, .14), rgba(177, 78, 255, .10) 52%, rgba(255, 111, 181, .10));
  --bf-font-sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --bf-font-body: "Inter", system-ui, sans-serif;
  --bf-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --bf-radius-sm: 10px;
  --bf-radius-md: 14px;
  --bf-radius-lg: 20px;
  --bf-radius-xl: 28px;
  --bf-shadow-sm: 0 2px 8px rgba(20, 23, 60, .08);
  --bf-shadow-md: 0 12px 34px -18px rgba(40, 30, 120, .35), 0 2px 8px rgba(20, 23, 60, .06);
  --bf-shadow-brand: 0 14px 34px -12px rgba(109, 92, 250, .55);
  --bf-ease: cubic-bezier(.2, .8, .2, 1);
}

html.light,
.light,
[data-bs-theme="light"] {
  --bf-bg: #f7f7fc;
  --bf-bg-2: rgba(255, 255, 255, .82);
  --bf-surface: #ffffff;
  --bf-surface-2: #f2f3fb;
  --bf-surface-3: #edeef7;
  --bf-line: #e6e7f1;
  --bf-line-strong: #d4d6e6;
  --bf-text: #15172b;
  --bf-text-2: #4a4d6b;
  --bf-text-3: #8186a8;
  --bf-glass: rgba(255, 255, 255, .72);
  --bf-glass-strong: rgba(255, 255, 255, .88);
  --bf-ambient-a: rgba(109, 92, 250, .10);
  --bf-ambient-b: rgba(255, 111, 181, .08);
  --bf-ambient-c: rgba(77, 212, 247, .10);
}

html.dark,
.dark,
.theme-dark,
[data-bs-theme="dark"] {
  --bf-bg: #0a0b1e;
  --bf-bg-2: rgba(14, 16, 40, .76);
  --bf-surface: #14162e;
  --bf-surface-2: #1a1d3a;
  --bf-surface-3: #232748;
  --bf-line: rgba(255, 255, 255, .08);
  --bf-line-strong: rgba(255, 255, 255, .16);
  --bf-text: #f2f3ff;
  --bf-text-2: #b6b9d9;
  --bf-text-3: #777aa0;
  --bf-glass: rgba(10, 11, 30, .64);
  --bf-glass-strong: rgba(14, 16, 40, .86);
  --bf-ambient-a: rgba(109, 92, 250, .18);
  --bf-ambient-b: rgba(255, 111, 181, .10);
  --bf-ambient-c: rgba(77, 212, 247, .10);
}

body,
button,
input,
select,
textarea {
  font-family: var(--bf-font-body);
}

body {
  background:
    radial-gradient(900px 480px at 20% -10%, var(--bf-ambient-a), transparent 60%),
    radial-gradient(900px 460px at 105% 20%, var(--bf-ambient-b), transparent 60%),
    radial-gradient(620px 360px at 50% 110%, var(--bf-ambient-c), transparent 60%),
    var(--bf-bg);
  color: var(--bf-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link-title,
.room-title,
.card-title {
  font-family: var(--bf-font-sans);
  letter-spacing: 0;
}

a {
  color: var(--bf-brand-500);
}

a:hover {
  color: var(--bf-magenta-500);
}

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

*::-webkit-scrollbar-thumb {
  background: var(--bf-line-strong);
  border-radius: 999px;
}

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

.btn-primary,
.btn-dark,
.btn-success,
.btn-user,
#main-login,
.send-code,
.submit-report,
.btn[type="submit"] {
  border-color: transparent !important;
  background: var(--bf-gradient-wing) !important;
  color: #fff !important;
  box-shadow: var(--bf-shadow-brand);
  font-family: var(--bf-font-sans);
  font-weight: 700;
}

.btn,
.form-control,
.form-select,
.dropdown-menu,
.modal-content,
.card,
.alert,
.select2-container--bootstrap-5 .select2-selection {
  border-radius: var(--bf-radius-md);
}

.form-control,
.form-select,
.input-group-text,
.select2-container--bootstrap-5 .select2-selection {
  background-color: var(--bf-surface) !important;
  border-color: var(--bf-line) !important;
  color: var(--bf-text) !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  border-color: var(--bf-brand-400) !important;
  box-shadow: 0 0 0 4px rgba(109, 92, 250, .18) !important;
}

.dropdown-menu,
.modal-content,
.card {
  background: var(--bf-glass-strong);
  border-color: var(--bf-line);
  color: var(--bf-text);
  box-shadow: var(--bf-shadow-md);
  backdrop-filter: blur(18px);
}

/* Public pages */
.navbar-scroll {
  background: rgba(10, 11, 30, .32);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.navbar-scrolled {
  background: var(--bf-glass-strong) !important;
  border-bottom: 1px solid var(--bf-line);
  box-shadow: var(--bf-shadow-sm);
}

.navbar-scroll .navbar-brand img,
.navbar-scrolled .navbar-brand img,
.mini-brand img {
  filter: drop-shadow(0 8px 18px rgba(109, 92, 250, .20));
}

.carousel {
  background: #0a0b1e;
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(740px 420px at 20% 15%, rgba(109, 92, 250, .40), transparent 58%),
    radial-gradient(740px 420px at 82% 20%, rgba(255, 111, 181, .34), transparent 58%),
    linear-gradient(180deg, rgba(10, 11, 30, .30), rgba(10, 11, 30, .78));
}

.carousel-caption {
  text-shadow: none;
}

.carousel-caption h1,
.container > .row.text-center h1 {
  font-family: var(--bf-font-sans);
  font-weight: 800;
  letter-spacing: 0;
}

.container > .row.text-center h1 {
  color: var(--bf-text);
  margin-top: 28px;
}

.container > .row.text-center p {
  color: var(--bf-text-2);
  font-weight: 500;
}

.homepage-filters {
  align-items: center;
  padding: 14px;
  margin-top: 24px;
  background: var(--bf-glass);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-lg);
  box-shadow: var(--bf-shadow-sm);
  backdrop-filter: blur(18px);
}

.form-selectgroup-label {
  border-color: var(--bf-line) !important;
  background: var(--bf-surface) !important;
  color: var(--bf-text-2) !important;
  border-radius: var(--bf-radius-sm) !important;
  font-weight: 700;
}

.form-selectgroup-input:checked + .form-selectgroup-label {
  background: var(--bf-gradient-wing) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--bf-shadow-brand);
}

.room-card {
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-lg);
  background: var(--bf-surface);
  box-shadow: var(--bf-shadow-sm);
  transition: transform 220ms var(--bf-ease), box-shadow 220ms var(--bf-ease), border-color 220ms var(--bf-ease);
}

.room-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 92, 250, .42);
  box-shadow: var(--bf-shadow-md);
}

.room-card .card-img-top {
  min-height: 160px;
  object-fit: cover;
}

.room-image {
  border-color: var(--bf-surface);
  border-radius: 16px;
  box-shadow: var(--bf-shadow-md);
}

.site-footer {
  margin-top: 48px !important;
  padding: 22px 0;
  border-top: 1px solid var(--bf-line);
  background:
    linear-gradient(180deg, transparent, rgba(109, 92, 250, .05)),
    var(--bf-bg);
  color: var(--bf-text-3);
}

.site-footer .container {
  max-width: 1180px;
}

.site-footer .small {
  font-family: var(--bf-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer a {
  color: var(--bf-text-2);
  text-decoration: none;
  transition: color 180ms var(--bf-ease);
}

.site-footer a:hover {
  color: var(--bf-brand-400);
}

/* Auth pages */
.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(109, 92, 250, .14), transparent 58%),
    radial-gradient(780px 460px at 105% 30%, rgba(255, 111, 181, .12), transparent 58%),
    var(--bf-bg) !important;
}

.auth-body > .row.g-0.flex-fill {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, .85fr) minmax(0, 1.15fr);
}

.auth-body > .row.g-0.flex-fill > [class*="col-"] {
  width: auto;
  max-width: none;
}

.auth-body .container-tight {
  max-width: 440px;
  margin-inline: auto;
  padding: 32px !important;
  background: var(--bf-glass-strong);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-xl);
  box-shadow: var(--bf-shadow-md);
  backdrop-filter: blur(18px);
}

.auth-body h2 {
  font-family: var(--bf-font-sans);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--bf-text);
}

.auth-body .bg-cover {
  position: relative;
  isolation: isolate;
}

.auth-body .bg-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 12% 10%, rgba(77, 212, 247, .32), transparent 60%),
    radial-gradient(740px 520px at 100% 100%, rgba(255, 111, 181, .42), transparent 60%),
    linear-gradient(135deg, rgba(10, 11, 30, .28), rgba(109, 92, 250, .55) 48%, rgba(177, 78, 255, .54));
  z-index: 1;
}

.auth-body .bg-cover::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%);
  z-index: 2;
}

.login-selector .nav-link {
  border-radius: var(--bf-radius-md);
  color: var(--bf-text-2);
  font-weight: 700;
}

.login-selector .nav-link.active {
  background: var(--bf-gradient-wing);
  box-shadow: var(--bf-shadow-brand);
}

.social-login-container {
  gap: 10px;
}

.social-provider a {
  background: var(--bf-surface);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-md);
  box-shadow: var(--bf-shadow-sm);
}

/* Chat shell */
#wrapper {
  background:
    radial-gradient(920px 520px at 18% -10%, var(--bf-ambient-a), transparent 60%),
    radial-gradient(860px 480px at 105% 20%, var(--bf-ambient-b), transparent 60%),
    var(--bf-bg);
}

.room-bar {
  width: 76px;
  padding: 18px 0 14px;
  gap: 8px;
  background: var(--bf-glass) !important;
  border-right: 1px solid var(--bf-line);
  backdrop-filter: blur(20px);
  box-shadow: none;
}

.mini-brand {
  padding: 0 0 8px;
}

.mini-brand a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bf-gradient-wing);
  box-shadow: var(--bf-shadow-brand);
  overflow: hidden;
}

.mini-brand img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.mini-brand-seperator {
  background: var(--bf-line);
}

.chatroom-item,
.private-messages .private-item,
.action-item {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bf-surface) !important;
  border: 1px solid var(--bf-line);
  color: var(--bf-text-2);
  transition: transform 220ms var(--bf-ease), border-color 220ms var(--bf-ease), background 220ms var(--bf-ease);
}

.chatroom-item:hover,
.private-messages .private-item:hover,
.action-item:hover {
  transform: translateY(-1px);
  border-color: var(--bf-brand-400);
  color: var(--bf-text);
}

.room-list-item.active .chatroom-item,
.private-messages.active .private-item,
.action-item.active,
.explore-room.active,
.manage-room.active {
  background: var(--bf-gradient-wing) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--bf-shadow-brand);
}

.pill,
.cn-tab .pill,
.cn-tab .pill.active {
  background: var(--bf-gradient-wing) !important;
  box-shadow: 0 0 16px rgba(177, 78, 255, .55);
}

.unread-indicator {
  background: var(--bf-pink-500);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, .16);
}

.sidebar-wrapper,
.channel-bar,
.rightbar-wrapper,
.channel-list {
  background: var(--bf-glass) !important;
  border-color: var(--bf-line) !important;
  color: var(--bf-text);
  backdrop-filter: blur(20px);
}

.sidebar-wrapper {
  width: 296px;
  min-width: 296px;
}

body.sb-sidenav-toggled #wrapper .sidebar-wrapper {
  margin-left: -296px;
}

.channel-bar {
  width: 296px;
}

.topbar,
.page-content-wrapper .topbar {
  min-height: 56px;
  height: 56px;
  border-color: var(--bf-line);
  background: var(--bf-glass);
  backdrop-filter: blur(20px);
}

.room-name {
  font-family: var(--bf-font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.room-name span,
.room-title {
  color: var(--bf-text);
}

.channel-container,
.sidebar-height-fix,
.sidebar-height-fix-mt48,
.private-list,
.disc-cat-list {
  background: transparent;
}

.channel-list-bottom {
  height: 64px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)), var(--bf-glass) !important;
  border-top: 1px solid var(--bf-line) !important;
  gap: 10px;
}

.channel-list-bottom > .dropup:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.channel-list-bottom > .ms-auto {
  flex: 0 0 auto;
  gap: 8px;
  margin-left: 0 !important;
}

#dropdownUserbtm {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin-left: 0 !important;
  padding: 6px 10px !important;
  border-radius: var(--bf-radius-sm);
  background: var(--bf-surface) !important;
  border: 1px solid var(--bf-line);
  color: var(--bf-text) !important;
  transition: background 180ms var(--bf-ease), border-color 180ms var(--bf-ease), transform 180ms var(--bf-ease);
}

#dropdownUserbtm:hover,
#dropdownUserbtm[aria-expanded="true"] {
  background: var(--bf-surface-2) !important;
  border-color: var(--bf-brand-400);
  transform: translateY(-1px);
}

#dropdownUserbtm img {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 3px rgba(109, 92, 250, .14);
}

.username-bottom {
  max-width: none;
  min-width: 0;
  color: var(--bf-text) !important;
  font-family: var(--bf-font-sans);
  font-size: 13px;
  font-weight: 800;
}

.channel-list-bottom .link-dark {
  color: var(--bf-text-2) !important;
}

.channel-list-bottom .ms-auto .dropup {
  margin-right: 0 !important;
}

.channel-list-bottom .ms-auto a {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border-radius: 12px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-line);
  color: var(--bf-text-2) !important;
}

.channel-list-bottom .ms-auto a:hover {
  color: var(--bf-text) !important;
  border-color: var(--bf-brand-400);
  background: var(--bf-surface-2);
}

.channel-list-bottom .ti-24 {
  font-size: 19px;
}

.channel-cat {
  color: var(--bf-text-3);
  font-family: var(--bf-font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.channel-item,
.user-row,
.disc-cat-row,
.private-list .user-row {
  border-radius: var(--bf-radius-sm);
  color: var(--bf-text-2);
  transition: background 180ms var(--bf-ease), color 180ms var(--bf-ease), box-shadow 180ms var(--bf-ease);
}

.channel-item:hover,
.channel-item.active,
.user-row:hover,
.disc-cat-row:hover,
.private-list .user-row:hover {
  background: var(--bf-surface) !important;
  color: var(--bf-text) !important;
  box-shadow: inset 0 0 0 1px var(--bf-line);
}

.channel-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
  background: var(--bf-gradient-wing);
  box-shadow: 0 0 14px rgba(177, 78, 255, .55);
}

.main-panel,
.page-content-wrapper {
  background: transparent;
}

.main-panel {
  border-color: var(--bf-line);
}

.main-panel::before {
  opacity: var(--bg-opacity, .28);
}

.messages {
  padding: 26px 28px 18px;
}

.cht .message-data {
  border-radius: 16px;
  border: 1px solid var(--bf-line);
  box-shadow: var(--bf-shadow-sm);
}

.cht.sent .message-data,
.sent .chat-img-sgl,
.sent .chat-img-duo,
.sent .chat-img-grp,
.sent .chat-gif,
.sent .chat-txt,
.sent .chat-code,
.sent .link-meta,
.sent .file-section,
.sent .video-section,
.sent .chat-replied-bubble,
.sent .chat-audio {
  background: var(--bf-gradient-wing) !important;
  color: #fff !important;
  border-color: transparent;
}

.cht.replies .message-data,
.replies .chat-img-sgl,
.replies .chat-img-duo,
.replies .chat-img-grp,
.replies .chat-gif,
.replies .chat-txt,
.replies .chat-code,
.replies .message-data small,
.replies .chat-fwd,
.replies .link-meta,
.replies .file-section,
.replies .video-section,
.replies .chat-replied-bubble,
.replies .chat-audio {
  background: var(--bf-surface) !important;
  color: var(--bf-text) !important;
  border-color: var(--bf-line);
}

.message-data.grp .message-html > div,
.message-html,
.chat-img,
.chat-txt,
.chat-gif,
.chat-sticker {
  border-radius: 14px;
}

.message-time,
.message-meta,
.cht .message-data small {
  color: var(--bf-text-3);
}

.chat-scroll {
  background: transparent;
}

.editor-wrap,
.editor-container {
  background: var(--bf-surface) !important;
  border: 1px solid var(--bf-line);
  border-radius: 22px;
  box-shadow: 0 14px 40px -22px rgba(109, 92, 250, .48);
}

.editor-container {
  overflow: hidden;
}

.editor-icon,
.attachment-col.dropup {
  color: var(--bf-text-3);
}

.editor-icon:hover,
.attachment-col.dropup:hover {
  color: var(--bf-brand-400) !important;
  background: var(--bf-surface-2);
}

.note-editor.note-frame,
.editor-container .note-editor.note-frame {
  background: transparent !important;
  border: 0 !important;
}

.note-editor.note-frame .note-editing-area .note-editable {
  color: var(--bf-text) !important;
  background: transparent !important;
}

.rightbar-wrapper {
  width: 320px;
  min-width: 320px;
}

body.sb-rightnav-toggled #wrapper .rightbar-wrapper {
  margin-right: -320px;
}

.right-panel .nav-pills .nav-link {
  border-radius: var(--bf-radius-sm);
  color: var(--bf-text-3);
  font-weight: 700;
}

/* Viewport-locked chat layout */
body.incallx {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.incallx #wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.incallx .room-bar {
  flex: 0 0 68px;
  width: 68px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}

body.incallx .sidebar-wrapper {
  flex: 0 0 296px;
  width: 296px;
  min-width: 296px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.incallx .sidebar-wrapper > .channel-bar {
  height: calc(100% - 64px) !important;
  max-height: calc(100% - 64px) !important;
  min-height: 0;
  overflow: hidden;
}

body.incallx .sidebar-wrapper > .channel-bar.sidebar-height-fix,
body.incallx .sidebar-wrapper > .channel-bar.sidebar-height-fix-mt48 {
  margin-top: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.incallx .sidebar-wrapper .channel-container.sidebar-height-fix {
  height: 100% !important;
  max-height: 100%;
  padding-bottom: 78px;
}

body.incallx .sidebar-private {
  position: relative;
  min-height: 0;
  overflow: hidden !important;
}

body.incallx .sidebar-private[style*="display:block"],
body.incallx .sidebar-private[style*="display: block"] {
  display: flex !important;
  flex-direction: column;
}

body.incallx .topbar-private {
  position: relative;
  top: auto;
  width: 100%;
  max-width: none;
  margin-left: 0;
  flex: 0 0 56px;
  padding: 10px 12px;
  z-index: 2;
}

body.incallx .topbar-private > div,
body.incallx .topbar-private .input-icon {
  width: 100%;
}

body.incallx .private-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 84px;
  background: transparent !important;
}

body.incallx.voice-active .private-list {
  padding-bottom: 172px;
}

body.incallx .channel-list-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  box-sizing: border-box;
}

body.incallx.voice-active .sidebar-wrapper > .channel-bar {
  height: calc(100% - 152px) !important;
  max-height: calc(100% - 152px) !important;
}

body.incallx.voice-active .sidebar-wrapper .channel-container.sidebar-height-fix {
  padding-bottom: 166px;
}

body.incallx .voice-channel-container {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 29;
  width: auto;
  height: 72px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)), var(--bf-surface) !important;
  box-shadow: 0 18px 40px -26px rgba(109, 92, 250, .62);
}

body.incallx.voice-active .voice-channel-container {
  display: flex !important;
}

.voice-channel-info {
  min-width: 0;
  flex: 1 1 auto;
}

.voice-container-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bf-text);
  font-family: var(--bf-font-sans);
  font-size: 12px;
  font-weight: 800;
}

.voice-container-title .ti {
  color: var(--bf-emerald-500);
}

.voice-name {
  width: auto;
  max-width: 150px;
  margin-top: 3px;
  color: var(--bf-text-3);
  font-size: 11px;
}

.voice-channel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: 0;
}

.voice-channel-controls .btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 11px;
}

body.incallx .main-tab-content {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.incallx .main-tab-pane.active {
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

body.incallx .main-tab-pane.active:not(#main-room):not(#main-private) {
  overflow-y: auto;
  overflow-x: hidden;
}

body.incallx .page-content-wrapper {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.incallx .main-tab-pane.active:not(#main-room):not(#main-private) .page-content-wrapper {
  min-height: 100%;
  height: auto;
  overflow: visible;
}

body.incallx .page-content-wrapper .topbar {
  flex: 0 0 48px;
  min-height: 48px;
  height: 48px;
}

body.incallx .group-chat,
body.incallx .private-chat {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.incallx .group-chat > .wrapper,
body.incallx .private-chat > .wrapper {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.incallx .main-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

body.incallx .rightbar-wrapper {
  flex: 0 0 320px;
  width: 320px;
  min-width: 320px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden auto;
}

body.incallx .chat-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.incallx .messages {
  min-width: 0;
  height: 100%;
}

body.incallx .room-editor,
body.incallx .private-editor {
  flex: 0 0 auto;
}

body.incallx .editor-container {
  margin: 12px 16px 14px;
}

.right-panel .nav-pills .nav-link.active,
.right-panel .nav-pills .show > .nav-link {
  background: var(--bf-surface) !important;
  color: var(--bf-text) !important;
  box-shadow: inset 0 -2px 0 var(--bf-brand-500);
}

.user-card,
.no-user-card,
#notification-card,
.radio-panel {
  border: 1px solid var(--bf-line);
  background: var(--bf-surface) !important;
  border-radius: var(--bf-radius-lg);
  overflow: hidden;
}

.status-dot.online,
.online-status.online,
.online .ti {
  color: var(--bf-emerald-500) !important;
}

.msg-reactions .reaction,
.message-reaction,
.reaction-item {
  background: var(--bf-surface);
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  color: var(--bf-text-2);
}

/* Admin */
.layout-fluid {
  background: var(--bf-bg);
}

.page {
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(109, 92, 250, .12), transparent 60%),
    var(--bf-bg);
}

.navbar-vertical {
  background: var(--bf-glass-strong) !important;
  border-right: 1px solid var(--bf-line) !important;
  backdrop-filter: blur(18px);
}

.navbar-vertical .navbar-brand {
  border-bottom: 1px solid var(--bf-line);
  min-height: 72px;
}

.navbar-vertical .nav-link {
  margin: 1px 10px;
  border-radius: var(--bf-radius-sm);
  color: var(--bf-text-2) !important;
  font-family: var(--bf-font-sans);
  font-weight: 700;
}

.navbar-vertical .nav-link:hover,
.navbar-vertical .nav-link.active,
.navbar-vertical .nav-item.show > .nav-link {
  background: var(--bf-surface) !important;
  color: var(--bf-text) !important;
  box-shadow: inset 0 0 0 1px var(--bf-line);
}

.navbar-vertical .nav-link-icon {
  color: var(--bf-brand-400);
}

.page > header.navbar {
  background: var(--bf-glass) !important;
  border-bottom: 1px solid var(--bf-line);
  backdrop-filter: blur(18px);
}

.page-wrapper,
.page-body {
  background: transparent;
}

.page-header h2,
.page-title,
.admin-card h1 {
  font-family: var(--bf-font-sans);
  font-weight: 800;
  letter-spacing: 0;
}

.table,
.dataTable {
  color: var(--bf-text);
}

.table thead th,
.dataTable thead th {
  background: var(--bf-surface-2) !important;
  color: var(--bf-text-3) !important;
  border-color: var(--bf-line) !important;
  font-family: var(--bf-font-sans);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.table tbody td,
.dataTable tbody td {
  border-color: var(--bf-line) !important;
}

.table tbody tr:hover,
.dataTable tbody tr:hover {
  background: var(--bf-surface-2) !important;
}

.badge {
  border-radius: 999px;
  font-family: var(--bf-font-sans);
  font-weight: 800;
}

.navbar-brand img.logo,
.navbar-brand .logo-default,
.navbar-brand .logo-sticky {
  display: block;
  width: auto;
  height: 44px;
  max-width: 206px;
  object-fit: contain;
}

.navbar-brand-autodark img.small {
  display: block;
  width: auto;
  height: 42px;
  max-width: 176px;
  object-fit: contain;
}

.mini-brand a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .auth-body > .row.g-0.flex-fill {
    display: flex;
  }

  .auth-body .container-tight {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    border-radius: var(--bf-radius-lg);
  }

  .room-bar {
    width: 64px;
  }

  .sidebar-wrapper {
    min-width: 280px;
    width: 280px;
  }

  body.sb-sidenav-toggled #wrapper .sidebar-wrapper {
    margin-left: -280px;
  }

  .rightbar-wrapper {
    min-width: 300px;
    width: 300px;
  }

  body.sb-rightnav-toggled #wrapper .rightbar-wrapper {
    margin-right: -300px;
  }

  .messages {
    padding: 18px 14px 12px;
  }
}

@media (max-width: 575.98px) {
  .auth-body .container-tight {
    padding: 22px !important;
    border-radius: 18px;
  }

  .homepage-filters {
    border-radius: 18px;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }
}
