* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(90deg, #020817 0%, #03103a 100%);
  color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.sidebar,
.rightbar {
  background: rgba(10, 15, 35, 0.75);
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  min-height: 0;
  overflow-y: auto;
}

.rightbar {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0;
}

.main {
  padding: 16px;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.box {
  background: rgba(18, 25, 56, 0.95);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.box h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.online-users-box {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.online-users-box .online-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.sidebar-copyright {
  margin-top: auto;
  padding: 10px 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  flex-shrink: 0;
}

.welcome {
  font-size: 18px;
  line-height: 1.5;
}

.muted {
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.room-btn.active {
  background: linear-gradient(90deg, #6d4df5 0%, #4e83f0 100%);
}

.room-btn:not(.active):not(:disabled):not(.room-btn-disabled):hover,
.room-btn:not(.active):not(:disabled):not(.room-btn-disabled):focus-visible {
  transform: translateX(4px);
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(147, 197, 253, 0.14);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.16);
  outline: none;
}

.room-btn.active:hover,
.room-btn.active:focus-visible {
  background: linear-gradient(90deg, #7c5cff 0%, #5b93ff 100%);
  box-shadow: 0 12px 28px rgba(93, 112, 255, 0.28);
}

.room-btn:disabled,
.room-btn.room-btn-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  background: rgba(255,255,255,0.05);
}

.room-btn:disabled .room-count,
.room-btn.room-btn-disabled .room-count {
  background: rgba(255,255,255,0.10);
}

.room-name {
  display: inline-block;
}

.room-count {
  display: inline-block;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.room-btn.active .room-count {
  background: rgba(255,255,255,0.22);
}

.room-btn:not(.active):not(:disabled):not(.room-btn-disabled):hover .room-count,
.room-btn:not(.active):not(:disabled):not(.room-btn-disabled):focus-visible .room-count {
  background: rgba(255,255,255,0.24);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.chat-ad-slot {
  flex: 0 0 120px;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.chat-ad-slot a,
.chat-ad-slot img {
  display: block;
  width: 120px;
  height: 60px;
}

.chat-ad-slot img {
  object-fit: contain;
  border: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-wrap {
  position: relative;
}

.notification-bell {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 16px;
  background: rgba(147, 197, 253, 0.07);
  color: #bfdbfe;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.notification-bell:hover,
.notification-bell:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.32);
  background: rgba(147, 197, 253, 0.13);
  color: #eff6ff;
  outline: none;
}

.notification-bell-icon {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-bell-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #081026;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
  animation: notificationPulse 1.2s ease-in-out infinite;
}

.notification-badge[hidden] {
  display: none;
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

.notification-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  width: min(340px, 90vw);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 18px;
  background: rgba(18, 25, 56, 0.98);
  box-shadow: 0 22px 54px rgba(0,0,0,0.34);
  padding: 14px;
}

.notification-popover[hidden] {
  display: none;
}

.notification-popover-title {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 452px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(147, 197, 253, 0.52) rgba(15, 23, 42, 0.72);
  scrollbar-width: thin;
}

.notification-list::-webkit-scrollbar {
  width: 9px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.58), rgba(96, 165, 250, 0.42));
  border: 2px solid rgba(15, 23, 42, 0.72);
  border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.72), rgba(147, 197, 253, 0.52));
}

.notification-item {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #dbeafe;
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
  font: inherit;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.notification-item:hover,
.notification-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.30);
  background: rgba(147, 197, 253, 0.11);
  outline: none;
}

.notification-item-seen {
  border-color: rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.035);
}

.notification-item-seen strong,
.notification-item-seen span,
.notification-item-seen small {
  opacity: 0.72;
}

.notification-item strong {
  color: #ffffff;
  font-size: 14px;
}

.notification-item span,
.notification-empty {
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.45;
}

.notification-item small {
  color: #93c5fd;
  font-size: 12px;
  line-height: 1.35;
}

.notification-empty {
  padding: 10px 2px;
}

.radio-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.radio-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #6d4df5 0%, #4e83f0 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}

.radio-btn:hover {
  filter: brightness(1.08);
}

.radio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.radio-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.radio-status {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.1;
  white-space: nowrap;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, #6d4df5 0%, #4e83f0 100%);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn.secondary {
  background: rgba(255,255,255,0.10);
}

.sidebar .btn.secondary {
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sidebar .btn.secondary:hover,
.sidebar .btn.secondary:focus-visible {
  transform: translateX(4px);
  border-color: rgba(147, 197, 253, 0.26);
  background: rgba(147, 197, 253, 0.15);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.14);
  outline: none;
}

.chat-review-btn.is-neon-green {
  color: #39ff88;
  text-shadow: 0 0 10px rgba(57, 255, 136, 0.32);
  border-color: rgba(57, 255, 136, 0.28);
}

.chat-review-btn.is-neon-green:hover,
.chat-review-btn.is-neon-green:focus-visible {
  color: #86ffb5;
  border-color: rgba(57, 255, 136, 0.44);
  box-shadow: 0 10px 24px rgba(57, 255, 136, 0.16);
}

.btn.small {
  padding: 10px 12px;
  font-size: 14px;
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-box {
  display: none;
  flex-shrink: 0;
}

.messages {
  background: rgba(18, 25, 56, 0.95);
  border-radius: 18px;
  padding: 16px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  scrollbar-color: #1c2a4a #0a1228;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.messages-wrapper {
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.new-messages-indicator {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: none;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 28, 52, 0.94);
  color: #dbe7ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.new-messages-indicator:hover {
  background: rgba(28, 42, 74, 0.98);
  transform: translateY(-1px);
}

.new-messages-indicator.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message.message-new {
  animation: messageHighlightFade 1.8s ease;
}

@keyframes messageHighlightFade {
  0% {
    box-shadow: 0 0 0 rgba(120, 140, 255, 0);
    background-color: rgba(120, 140, 255, 0);
  }
  20% {
    box-shadow: 0 0 0 1px rgba(120, 140, 255, 0.22);
    background-color: rgba(120, 140, 255, 0.10);
  }
  100% {
    box-shadow: 0 0 0 rgba(120, 140, 255, 0);
    background-color: rgba(120, 140, 255, 0);
  }
}

.message {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s ease;
}

.message:last-child {
  border-bottom: none;
}

.message.admin-highlight {
  background: rgba(255, 95, 95, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 4px 0;
}

.message.system-message {
  border-bottom: none;
  padding: 8px 0;
}

.message.system-message .message-text {
  color: #ffb4b4;
  font-style: italic;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.message-user {
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.message-user.role-admin {
  color: #ff5f5f;
}

.message-user.role-moderator {
  color: #ffb347;
}

.message-user.role-dj {
  color: #38bdf8;
}

.role-star {
  display: inline-block;
  margin-left: 2px;
  font-size: 12px;
  line-height: 1;
}

.gender-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 16px;
  vertical-align: middle;
}

.gender-icon.m {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='24' cy='40' r='14' fill='none' stroke='%235ab4ff' stroke-width='6'/><path d='M34 30 L52 12' stroke='%235ab4ff' stroke-width='6' stroke-linecap='round'/><path d='M40 12 H52 V24' fill='none' stroke='%235ab4ff' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.gender-icon.w {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='32' cy='22' r='14' fill='none' stroke='%23ff72b6' stroke-width='6'/><path d='M32 36 V56' stroke='%23ff72b6' stroke-width='6' stroke-linecap='round'/><path d='M22 48 H42' stroke='%23ff72b6' stroke-width='6' stroke-linecap='round'/></svg>");
}

.gender-icon.d {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='24' cy='24' r='12' fill='none' stroke='%23c084fc' stroke-width='6'/><circle cx='40' cy='24' r='12' fill='none' stroke='%2360a5fa' stroke-width='6'/><path d='M32 36 V54' stroke='%23f9a8d4' stroke-width='6' stroke-linecap='round'/><path d='M24 48 H40' stroke='%23f9a8d4' stroke-width='6' stroke-linecap='round'/></svg>");
}

.rank-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 16px;
  vertical-align: middle;
}

.rank-icon.neuling {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M16 10 L48 20 V44 L32 54 L16 44 Z' fill='%2396a3b8'/><path d='M32 18 V48' stroke='%23020817' stroke-width='4' stroke-linecap='round'/></svg>");
}

.rank-icon.bronze {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M16 10 L48 20 V44 L32 54 L16 44 Z' fill='%23cd7f32'/><path d='M32 18 V48' stroke='%23020817' stroke-width='4' stroke-linecap='round'/></svg>");
}

.rank-icon.silber {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M16 10 L48 20 V44 L32 54 L16 44 Z' fill='%23c0c0c0'/><path d='M32 18 V48' stroke='%23020817' stroke-width='4' stroke-linecap='round'/></svg>");
}

.rank-icon.gold {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M16 10 L48 20 V44 L32 54 L16 44 Z' fill='%23ffd700'/><path d='M32 18 V48' stroke='%23020817' stroke-width='4' stroke-linecap='round'/></svg>");
}

.rank-icon.platin {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M16 10 L48 20 V44 L32 54 L16 44 Z' fill='%23e5e4e2'/><path d='M32 18 V48' stroke='%23020817' stroke-width='4' stroke-linecap='round'/><path d='M20 26 L44 26' stroke='%23ffffff' stroke-width='2' opacity='0.7'/><path d='M24 32 L40 32' stroke='%23ffffff' stroke-width='2' opacity='0.55'/></svg>");
  animation: platinGlow 2.5s ease-in-out infinite;
}

.message-time {
  font-size: 12px;
  color: #94a3b8;
}

.message-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #dbeafe;
  font-size: 12px;
}

.message-text {
  color: #e5e7eb;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-controls {
  margin-top: 12px;
  position: relative;
  flex-shrink: 0;
}

.typing-status {
  flex-shrink: 0;
  height: 24px;
  padding: 6px 14px 2px;
  font-size: 13px;
  color: #9fb0d1;
  font-style: italic;
  line-height: 1.4;
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 2px;
}

.typing-status.active {
  color: #c7d7ff;
}

.typing-status-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typing-dots {
  display: none;
  min-width: 18px;
}

.typing-dots span {
  opacity: 0.2;
  animation: typingDotsBlink 1.4s infinite;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDotsBlink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.chat-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-form input {
  flex: 1;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, 0.38);
  border-radius: 12px;
  background: #aec9e1;
  color: #111827;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.chat-form input:focus {
  border-color: rgba(96, 165, 250, 0.68);
  background: #bed5e8;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16), inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.icon-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.16);
}

.settings-panel {
  position: absolute;
  right: 92px;
  bottom: 58px;
  width: 430px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 25, 56, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  z-index: 20;
  display: none;
}

.settings-panel.open {
  display: block;
}

.settings-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.settings-group {
  margin-bottom: 0;
}

.settings-group label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.settings-group select,
.settings-action-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #dbe2ee;
  color: #111827;
  font-size: 14px;
}

.settings-action-btn {
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.settings-action-btn:hover {
  background: #eef3fb;
}

.emoji-popup {
  position: absolute;
  right: 150px;
  bottom: 58px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 25, 56, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  z-index: 21;
  display: none;
}

.emoji-popup.open {
  display: block;
}

.emoji-popup-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: min(420px, calc(100vh - 170px));
  max-height: min(420px, calc(100dvh - 170px));
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: #1c2a4a #0a1228;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.emoji-btn {
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.emoji-btn:hover {
  background: rgba(255,255,255,0.16);
}

.help-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.help-modal-backdrop.open {
  display: flex;
}

.help-modal {
  width: 720px;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(18, 25, 56, 0.99);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  padding: 18px;
}

.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.help-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.help-close-btn {
  border: none;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.help-close-btn:hover {
  background: rgba(255,255,255,0.16);
}

.help-section {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.team-visibility-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 23, 0.68);
  backdrop-filter: blur(6px);
}

.team-visibility-backdrop.open {
  display: flex;
}

.team-visibility-modal {
  width: 440px;
  max-width: 100%;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 18px;
  background: rgba(18, 25, 56, 0.99);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  padding: 18px;
}

.team-visibility-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.team-visibility-text {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.team-visibility-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.team-visibility-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.team-visibility-btn.primary {
  background: linear-gradient(90deg, #6d4df5 0%, #4e83f0 100%);
}

.team-visibility-btn.secondary {
  background: rgba(255,255,255,0.10);
}

.team-visibility-btn:hover {
  filter: brightness(1.08);
}

.chat-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 23, 0.68);
  backdrop-filter: blur(6px);
}

.chat-confirm-backdrop.open {
  display: flex;
}

.chat-confirm-modal {
  width: 440px;
  max-width: 100%;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 18px;
  background: rgba(18, 25, 56, 0.99);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  padding: 18px;
}

.chat-confirm-title {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.chat-confirm-text {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.chat-confirm-target {
  display: inline-flex;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.22);
  font-weight: 800;
  word-break: break-word;
}

.chat-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.chat-confirm-btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.chat-confirm-btn.secondary {
  background: rgba(255,255,255,0.10);
}

.chat-confirm-btn.danger {
  background: linear-gradient(90deg, #d9465f 0%, #b91c1c 100%);
}

.chat-confirm-btn:hover {
  filter: brightness(1.08);
}

.invisible-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border-radius: 999px;
  padding: 1px 6px;
  color: #bfdbfe;
  background: rgba(78, 131, 240, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.18);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  flex-shrink: 0;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.help-section-text {
  color: #dbe4f8;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-link-placeholder {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.help-link-placeholder:hover,
.help-link-placeholder:focus-visible {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.emoji-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.emoji-shortcut-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
  font-size: 14px;
}

.emoji-shortcut-code {
  color: #cbd5e1;
  font-family: monospace;
}

.online-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.online-room-group {
  margin-bottom: 14px;
}

.online-room-group:last-child {
  margin-bottom: 0;
}

.online-room-group-blocked {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(147, 197, 253, 0.16);
}

.online-room-title {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.online-room-users {
  list-style: none;
  padding: 0;
  margin: 0;
}

.online-room-users li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.online-room-users li:last-child {
  border-bottom: none;
}

.online-user-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: #e5e7eb;
  min-width: 0;
}

.online-user-line.role-admin {
  color: #ff5f5f;
  font-weight: 700;
}

.online-user-line.role-moderator {
  color: #ffb347;
  font-weight: 700;
}

.online-user-line.role-dj {
  color: #38bdf8;
  font-weight: 700;
}

.blocked-user-line {
  color: #cbd5e1;
  opacity: 0.88;
}

.online-user-name {
  min-width: 0;
  max-width: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.clickable-user {
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background 0.15s ease;
}

.clickable-user:hover {
  background: rgba(255,255,255,0.08);
}

.blocked-user-hint {
  color: #93c5fd;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.blocked-user-hint:hover {
  color: #bfdbfe;
  background: rgba(147, 197, 253, 0.12);
}

.status {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 10px;
}

.count-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.count-label {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.2;
}

.count-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.user-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 210px;
  background: rgba(18, 25, 56, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  padding: 8px;
  display: none;
}

.context-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.context-menu-item:hover {
  background: rgba(255,255,255,0.10);
}

#pmWindowsLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.pm-window {
  position: fixed;
  width: 420px;
  height: 540px;
  min-width: 380px;
  min-height: 320px;
  max-width: min(90vw, 900px);
  max-height: 85vh;
  background: rgba(18, 25, 56, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  resize: both;
}

.pm-window.dragging {
  opacity: 0.95;
  user-select: none;
}

.private-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: move;
}

.private-chat-title {
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-chat-close {
  border: none;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.private-chat-close:hover {
  background: rgba(255,255,255,0.16);
}

.private-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(7, 12, 28, 0.5);
  scrollbar-color: #1c2a4a #0a1228;
  scrollbar-width: thin;
}

.private-chat-typing {
  min-height: 18px;
  padding: 0 12px 8px;
  font-size: 12px;
  color: rgba(159, 179, 255, 0.88);
}

.pm-item {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.45;
}

.pm-item.own {
  align-self: flex-end;
  background: linear-gradient(90deg, #6d4df5 0%, #4e83f0 100%);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.pm-item.other {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  border-bottom-left-radius: 6px;
}

.pm-meta {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 6px;
}

.private-chat-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  align-items: center;
}

.private-chat-form input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(147, 197, 253, 0.38);
  border-radius: 12px;
  outline: none;
  background: #aec9e1;
  color: #111827;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.private-chat-form input:focus {
  border-color: rgba(96, 165, 250, 0.68);
  background: #bed5e8;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16), inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.private-chat-form .btn {
  min-width: 92px;
  flex-shrink: 0;
  white-space: nowrap;
}

.private-chat-emoji-wrap {
  position: relative;
  flex-shrink: 0;
}

.private-chat-emoji-btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
}

.private-chat-emoji-btn:hover,
.private-chat-emoji-btn:focus-visible {
  background: rgba(147, 197, 253, 0.16);
  outline: none;
}

.private-chat-emoji-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 272px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(18, 25, 56, 0.98);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  scrollbar-color: #1c2a4a #0a1228;
  scrollbar-width: thin;
  z-index: 3;
}

.private-chat-emoji-title {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.private-chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.private-chat-emoji-option {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.private-chat-emoji-option:hover,
.private-chat-emoji-option:focus-visible {
  background: rgba(147, 197, 253, 0.16);
  outline: none;
}

.private-chat-empty {
  color: #cbd5e1;
  font-size: 14px;
}

.private-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.private-chat-messages::-webkit-scrollbar-track {
  background: #0a1228;
}

.private-chat-messages::-webkit-scrollbar-thumb {
  background: #1c2a4a;
  border-radius: 6px;
}

.private-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #2a3c66;
}

.messages::-webkit-scrollbar {
  width: 8px;
}

.messages::-webkit-scrollbar-track {
  background: #0a1228;
}

.messages::-webkit-scrollbar-thumb {
  background: #1c2a4a;
  border-radius: 6px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: #2a3c66;
}

body.chat-font-small .message-user,
body.chat-font-small .message-text,
body.chat-font-small .message-time,
body.chat-font-small .message-badge {
  font-size: 13px;
}

body.chat-font-small .message-text {
  line-height: 1.4;
}

body.chat-font-normal .message-user {
  font-size: 16px;
}

body.chat-font-normal .message-text {
  font-size: 16px;
}

body.chat-font-normal .message-time,
body.chat-font-normal .message-badge {
  font-size: 12px;
}

body.chat-font-large .message-user {
  font-size: 18px;
}

body.chat-font-large .message-text {
  font-size: 18px;
  line-height: 1.6;
}

body.chat-font-large .message-time,
body.chat-font-large .message-badge {
  font-size: 13px;
}

body.chat-weight-bold .message-text,
body.chat-weight-bold .message-user {
  font-weight: 700;
}

body.chat-style-bubbles .message {
  border-bottom: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

body.chat-style-bubbles .message.admin-highlight {
  background: rgba(255, 95, 95, 0.08);
  padding: 10px 12px;
}

body.chat-style-bubbles .message.system-message {
  background: transparent;
  padding: 6px 0;
  margin-bottom: 4px;
}

body.chat-style-bubbles .message:last-child {
  margin-bottom: 0;
}

.mobile-bottom-nav,
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10040;
  padding: 10px;
  gap: 10px;
  background: rgba(2, 8, 23, 0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.mobile-nav-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px 10px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-btn:hover {
  background: rgba(255,255,255,0.16);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10041;
  background: rgba(0, 0, 0, 0.52);
}

.mobile-drawer {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 76px;
  max-height: 72vh;
  z-index: 10042;
  background: rgba(18, 25, 56, 0.99);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.40);
  overflow: hidden;
}

.mobile-drawer.open,
.mobile-drawer-backdrop.open {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.mobile-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.mobile-drawer-close {
  border: none;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mobile-drawer-content {
  padding: 14px;
  overflow-y: auto;
  max-height: calc(72vh - 66px);
}

.mobile-drawer-room-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1100px) {
  .layout {
    display: flex;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .sidebar,
  .rightbar {
    display: none;
  }

  .main {
    padding: 12px;
    padding-bottom: 78px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .topbar {
    margin-bottom: 10px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .messages-wrapper {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .messages {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 14px;
    border-radius: 16px;
  }

  .chat-controls {
    margin-top: 10px;
    position: relative;
    bottom: auto;
    z-index: 30;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(2, 8, 23, 0) 0%, rgba(2, 8, 23, 0.92) 18%, rgba(2, 8, 23, 1) 100%);
  }

  .typing-status {
    padding: 4px 6px 6px;
  }
}

@media (max-width: 700px) {
  .main {
    padding: 10px;
    padding-bottom: 74px;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto 120px 1fr;
    align-items: center;
    gap: 8px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .top-actions {
    gap: 8px;
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
  }

  .chat-ad-slot {
    grid-column: 2;
    grid-row: 1;
  }

  .radio-player {
    padding: 7px;
    border-radius: 14px;
    gap: 0;
  }

  .radio-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .radio-info {
    display: none;
  }

  .messages {
    height: auto;
    padding: 10px;
    border-radius: 14px;
  }

  .message {
    padding: 10px 0;
  }

  .message.admin-highlight {
    padding: 10px;
  }

  .message-header {
    gap: 6px;
    margin-bottom: 3px;
  }

  .chat-controls {
    margin-top: 8px;
    padding-top: 6px;
    position: relative;
    bottom: auto;
    z-index: 30;
  }

  .chat-form {
    gap: 8px;
    align-items: center;
  }

  .chat-form input {
    padding: 12px;
    min-width: 0;
    font-size: 16px;
  }

  .btn {
    padding: 12px 10px;
    font-size: 13px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 20px;
  }

  .settings-panel {
    right: 10px;
    left: 10px;
    bottom: 62px;
    width: auto;
    max-width: none;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .emoji-popup {
    right: 10px;
    left: 10px;
    bottom: 62px;
    width: auto;
    max-width: none;
  }

  .emoji-shortcuts {
    grid-template-columns: 1fr;
  }

  .new-messages-indicator {
    right: 10px;
    bottom: 10px;
  }

  .help-modal-backdrop {
    padding: 10px;
  }

  .help-modal {
    width: 100%;
    max-height: 90vh;
    padding: 14px;
    border-radius: 14px;
  }

  .pm-window {
    width: calc(100vw - 20px);
    height: 62vh;
    min-width: 0;
    min-height: 280px;
    max-width: none;
    left: 10px !important;
  }

  .mobile-bottom-nav {
    padding: 8px 10px;
    gap: 8px;
  }

  .mobile-nav-btn {
    padding: 11px 8px;
    font-size: 13px;
  }

  .mobile-drawer {
    left: 8px;
    right: 8px;
    bottom: 68px;
    max-height: 74vh;
    border-radius: 16px;
  }

  .mobile-drawer-content {
    padding: 12px;
    max-height: calc(74vh - 62px);
  }

  ::-webkit-scrollbar {
    width: 4px;
  }

  .messages::-webkit-scrollbar {
    width: 4px;
  }
}

@keyframes platinGlow {
  0% {
    filter: drop-shadow(0 0 3px rgba(180, 245, 255, 0.5))
            drop-shadow(0 0 6px rgba(140, 225, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(200, 255, 255, 0.8))
            drop-shadow(0 0 10px rgba(160, 235, 255, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 3px rgba(180, 245, 255, 0.5))
            drop-shadow(0 0 6px rgba(140, 225, 255, 0.3));
  }
}

/* === Einheitliche Scrollbars === */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a1228;
}

::-webkit-scrollbar-thumb {
  background: #1c2a4a;
  border-radius: 6px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3c66;
}
.device-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  opacity: 0.85;
  vertical-align: middle;
}

.device-icon svg {
  display: block;
}

.device-icon:hover {
  opacity: 1;
}

.mobile-icon {
  color: #7aa2ff;
}

.desktop-icon {
  color: #94a3b8;
}

.online-user-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.online-user-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.online-user-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: 4px;
  flex-shrink: 0;
}

.status-active {
  background: #3bbf9b;
  animation: statusPulse 2.5s ease-in-out infinite;
}

.status-idle {
  background: #fcd34d;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

.profile-icon-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  border: 1px solid rgba(210, 220, 255, 0.75);
  border-radius: 50%;
  background: transparent !important;
  background-color: transparent !important;
  color: #cfd8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
}

.profile-icon-btn svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
}

.profile-icon-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06) !important;
}
