.global-chat-app {
  min-height: 100vh;
}

.global-chat-dashboard-layout {
  align-items: stretch;
}

.global-chat-main {
  min-width: 0;
}

.global-chat-hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;

  min-height: 225px;
  padding: 32px;

  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.96),
      rgba(8, 8, 8, 0.76),
      rgba(8, 8, 8, 0.4)
    );

  background-position: center 46%;
  background-repeat: no-repeat;
  background-size: cover;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}

.global-chat-hero::before {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 28%,
      rgba(249, 201, 47, 0.12),
      transparent 42%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(211, 31, 95, 0.1),
      transparent 40%
    );

  content: "";
  pointer-events: none;
}

.global-chat-hero-content,
.global-chat-hero-stats {
  position: relative;
  z-index: 2;
}

.global-chat-hero-content {
  max-width: 720px;
}

.global-chat-eyebrow,
.chat-panel-kicker {
  color: var(--yellow);

  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.global-chat-hero h1 {
  margin: 7px 0 10px;

  color: var(--white);

  font-size: clamp(2.7rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.global-chat-hero p {
  max-width: 660px;
  margin: 0;

  color: #d5cfc6;

  font-size: 0.78rem;
  line-height: 1.75;
}

.global-chat-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 18px;
}

.global-chat-hero-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 30px;
  padding: 0 10px;

  color: #c9c3ba;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;

  font-size: 0.55rem;
  font-weight: 750;

  backdrop-filter: blur(10px);
}

.global-chat-hero-status i {
  width: 8px;
  height: 8px;

  background: var(--green);
  border-radius: 50%;

  box-shadow:
    0 0 0 5px rgba(111, 209, 94, 0.12);
}

.global-chat-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;

  min-width: 330px;
}

.global-chat-hero-stats div {
  display: grid;
  gap: 3px;

  min-height: 82px;
  padding: 15px;

  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;

  backdrop-filter: blur(10px);
}

.global-chat-hero-stats strong {
  color: var(--white);

  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.global-chat-hero-stats span {
  color: var(--muted);

  font-size: 0.54rem;
  line-height: 1.45;
}

.global-chat-mobile-tabs {
  display: none;

  margin-top: 14px;
  padding: 7px;

  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: var(--shadow-small);
}

.global-chat-mobile-tabs button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 40px;
  padding: 0 12px;

  color: var(--muted);
  background: transparent;
  border-radius: 10px;

  font-size: 0.62rem;
  font-weight: 850;

  cursor: pointer;
}

.global-chat-mobile-tabs button.active {
  color: #171207;
  background: var(--yellow);
}

.global-chat-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 14px;

  min-height: 760px;
  margin-top: 16px;
}

.global-chat-members-panel,
.global-chat-room,
.global-chat-profile-panel {
  min-width: 0;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}

.global-chat-members-panel,
.global-chat-profile-panel {
  overflow: hidden;
}

.chat-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

  min-height: 74px;
  padding: 16px;

  border-bottom: 1px solid var(--border);
}

.chat-panel-header h2 {
  margin: 4px 0 0;

  color: var(--white);
  font-size: 0.84rem;
}

.chat-panel-counter {
  display: grid;
  place-items: center;

  min-width: 28px;
  height: 25px;
  padding: 0 7px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.55rem;
  font-weight: 900;
}

.chat-panel-header > button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 10px;

  font-size: 1.1rem;

  cursor: pointer;
}

.chat-member-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;

  min-height: 44px;
  margin: 12px;
  padding: 0 10px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.chat-member-search > span {
  color: var(--muted);
}

.chat-member-search input {
  min-width: 0;
  height: 42px;

  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;

  font-size: 0.61rem;
}

.chat-member-search input::placeholder {
  color: #736f69;
}

.chat-member-search button {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;

  cursor: pointer;
}

.chat-member-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  padding: 0 12px 12px;
}

.chat-member-filters button {
  min-height: 30px;
  padding: 0 10px;

  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.52rem;
  font-weight: 750;

  cursor: pointer;
}

.chat-member-filters button.active {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.chat-member-section {
  padding: 0 9px 8px;
}

.chat-member-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 34px;
  padding: 0 7px;

  color: var(--muted-dark);

  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chat-members-list {
  display: grid;
  gap: 3px;
}

.chat-member-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;

  width: 100%;
  min-height: 59px;
  padding: 8px;

  color: inherit;
  background: transparent;
  border-radius: 11px;

  text-align: left;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.chat-member-item:hover,
.chat-member-item.active {
  background: rgba(255, 255, 255, 0.05);
}

.chat-member-item.active {
  box-shadow:
    inset 3px 0 0 var(--yellow);
}

.chat-member-item.is-moderator {
  background: rgba(249, 201, 47, 0.045);
}

.chat-member-avatar,
.chat-message-avatar,
.chat-selected-avatar,
.typing-avatar,
.chat-modal-user-avatar {
  position: relative;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  color: var(--white);
  border-radius: 50%;

  font-weight: 900;
}

.chat-member-avatar {
  width: 40px;
  height: 40px;

  font-size: 0.68rem;
}

.chat-member-avatar i,
.chat-message-avatar i,
.chat-selected-avatar i,
.global-chat-moderator-person > span i {
  position: absolute;
  right: 0;
  bottom: 0;

  background: var(--green);
  border: 2px solid #171717;
  border-radius: 50%;
}

.chat-member-avatar i {
  width: 10px;
  height: 10px;
}

.chat-member-information {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.chat-member-name {
  display: flex;
  align-items: center;
  gap: 5px;

  min-width: 0;
}

.chat-member-name strong {
  overflow: hidden;

  color: var(--white);

  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-member-information small {
  overflow: hidden;

  color: var(--muted);

  font-size: 0.49rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-member-presence {
  font-size: 0.78rem;
}

.chat-moderator-badge,
.chat-live-badge,
.chat-vip-badge,
.chat-new-badge,
.chat-photo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 19px;
  padding: 0 5px;

  border-radius: 999px;

  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.chat-moderator-badge {
  color: #171207;
  background: var(--yellow);
}

.chat-live-badge {
  color: var(--white);
  background: var(--red);
}

.chat-vip-badge {
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #a87512,
      #e1b23d,
      #8f5210
    );
}

.chat-new-badge {
  color: #11200e;
  background: var(--green);
}

.chat-photo-badge {
  padding: 0 4px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.chat-members-empty,
.chat-selected-profile-empty {
  display: grid;
  justify-items: center;
  gap: 5px;

  padding: 42px 18px;

  text-align: center;
}

.chat-members-empty > span,
.chat-selected-profile-empty > span {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 1.3rem;
}

.chat-members-empty strong,
.chat-selected-profile-empty strong {
  margin-top: 8px;

  color: var(--white);
  font-size: 0.68rem;
}

.chat-members-empty small,
.chat-selected-profile-empty small {
  color: var(--muted);
  font-size: 0.52rem;
}

.global-chat-room {
  position: relative;

  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;

  min-height: 0;
  overflow: hidden;
}

.global-chat-room-header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 74px;
  padding: 13px 15px;

  border-bottom: 1px solid var(--border);
}

.global-chat-room-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.global-chat-room-icon {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;

  background:
    linear-gradient(
      135deg,
      rgba(249, 201, 47, 0.13),
      rgba(211, 31, 95, 0.1)
    );

  border-radius: 12px;

  font-size: 1rem;
}

.global-chat-room-title h2 {
  margin: 0;

  color: var(--white);
  font-size: 0.82rem;
}

.global-chat-room-title span:last-child {
  display: block;

  margin-top: 3px;

  color: var(--muted);
  font-size: 0.51rem;
}

.global-chat-room-actions {
  display: flex;
  gap: 7px;
}

.global-chat-room-actions button {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  color: #d8d2ca;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 10px;

  cursor: pointer;
}

.global-chat-information-menu,
.global-chat-more-menu {
  position: absolute;
  top: 62px;
  right: 14px;
  z-index: 30;

  width: 260px;
  padding: 13px;

  background: #171717;
  border: 1px solid var(--border-strong);
  border-radius: 14px;

  box-shadow: var(--shadow-large);
}

.global-chat-information-menu strong {
  color: var(--white);
  font-size: 0.67rem;
}

.global-chat-information-menu p,
.global-chat-information-menu li {
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.55;
}

.global-chat-information-menu p {
  margin: 7px 0;
}

.global-chat-information-menu ul {
  display: grid;
  gap: 4px;

  margin: 0;
  padding-left: 17px;
}

.global-chat-information-menu a {
  display: inline-flex;

  margin-top: 10px;

  color: var(--yellow);
  font-size: 0.55rem;
  font-weight: 850;
}

.global-chat-more-menu {
  width: 220px;
  padding: 7px;
}

.global-chat-more-menu button {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 39px;
  padding: 0 11px;

  color: #d6d0c7;
  background: transparent;
  border-radius: 9px;

  font-size: 0.58rem;
  text-align: left;

  cursor: pointer;
}

.global-chat-more-menu button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.global-chat-announcement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  margin: 10px 12px 0;
  padding: 10px 11px;

  background: rgba(249, 201, 47, 0.055);
  border: 1px solid rgba(249, 201, 47, 0.14);
  border-radius: 12px;
}

.global-chat-announcement > span {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  background: rgba(249, 201, 47, 0.1);
  border-radius: 10px;
}

.global-chat-announcement > div {
  display: grid;
  gap: 2px;
}

.global-chat-announcement strong {
  color: var(--white);
  font-size: 0.58rem;
}

.global-chat-announcement div span {
  color: var(--muted);
  font-size: 0.49rem;
}

.global-chat-announcement button {
  min-height: 31px;
  padding: 0 10px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 850;

  cursor: pointer;
}

.global-chat-message-list {
  position: relative;

  display: grid;
  align-content: start;
  gap: 4px;

  min-height: 0;
  padding: 14px;

  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.chat-date-separator {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 8px 0;
}

.chat-date-separator::before,
.chat-date-separator::after {
  height: 1px;

  background: rgba(255, 255, 255, 0.07);

  content: "";
  flex: 1;
}

.chat-date-separator span {
  color: var(--muted-dark);

  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-system-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  margin: 3px 0 9px;
  padding: 11px;

  background:
    linear-gradient(
      135deg,
      rgba(120, 59, 154, 0.12),
      rgba(211, 31, 95, 0.06)
    );

  border: 1px solid rgba(178, 96, 219, 0.14);
  border-radius: 12px;
}

.chat-system-icon {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  background: rgba(125, 58, 157, 0.18);
  border-radius: 10px;
}

.chat-system-message strong {
  color: var(--white);
  font-size: 0.59rem;
}

.chat-system-message p {
  margin: 3px 0 0;

  color: var(--muted);
  font-size: 0.5rem;
  line-height: 1.5;
}

.chat-message {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;

  padding: 10px 9px;

  border-radius: 12px;

  transition:
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.chat-message:hover,
.chat-message.is-highlighted {
  background: rgba(255, 255, 255, 0.035);
}

.chat-message.is-highlighted {
  box-shadow:
    inset 3px 0 0 var(--yellow);
}

.chat-message.is-own-message {
  background: rgba(249, 201, 47, 0.035);
}

.chat-message-avatar {
  width: 40px;
  height: 40px;

  font-size: 0.68rem;

  cursor: pointer;
}

.chat-message-avatar i {
  width: 10px;
  height: 10px;
}

.chat-message-body {
  min-width: 0;
}

.chat-message-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.chat-message-name {
  color: var(--white);
  background: transparent;

  font-size: 0.64rem;
  font-weight: 900;

  cursor: pointer;
}

.chat-message-country {
  font-size: 0.62rem;
}

.chat-message-age {
  color: var(--yellow);
  font-size: 0.51rem;
  font-weight: 850;
}

.chat-origin-badge {
  display: inline-flex;
  align-items: center;

  min-height: 20px;
  padding: 0 6px;

  border-radius: 999px;

  font-size: 0.42rem;
  font-weight: 850;
}

.origin-gay-belgium {
  color: #171207;
  background: #f0c43d;
}

.origin-gayzzee {
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #8a3fb3,
      #d01d62
    );
}

.origin-camroom {
  color: #e9ffff;
  background: #197f89;
}

.origin-cinema {
  color: var(--white);
  background: #9f3030;
}

.chat-message-header time {
  margin-left: auto;

  color: var(--muted-dark);
  font-size: 0.47rem;
}

.chat-message-content {
  margin-top: 5px;
}

.chat-message-content p {
  margin: 0;

  color: #d9d3ca;
  font-size: 0.64rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.chat-message-reply-preview {
  display: grid;
  gap: 2px;

  width: min(100%, 440px);
  margin-top: 6px;
  padding: 8px 10px;

  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--yellow);
  border-radius: 0 9px 9px 0;

  text-align: left;

  cursor: pointer;
}

.chat-message-reply-preview span {
  color: var(--yellow);
  font-size: 0.48rem;
  font-weight: 800;
}

.chat-message-reply-preview strong {
  overflow: hidden;

  color: var(--muted);
  font-size: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;

  margin-top: 7px;
}

.chat-message-footer button {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  min-height: 26px;
  padding: 0 8px;

  color: #c5bfb6;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;

  font-size: 0.48rem;

  cursor: pointer;
}

.chat-message-footer button.is-active {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.chat-message-reply-button {
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
}

.chat-message-delivery {
  color: var(--muted-dark);
  font-size: 0.46rem;
}

.chat-message-menu-button {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  color: var(--muted);
  background: transparent;
  border-radius: 8px;

  opacity: 0;

  cursor: pointer;

  transition:
    opacity 150ms ease,
    background-color 150ms ease;
}

.chat-message:hover .chat-message-menu-button,
.chat-message-menu-button[aria-expanded="true"] {
  opacity: 1;
}

.chat-message-menu-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chat-message-menu {
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 35;

  width: 190px;
  padding: 7px;

  background: #171717;
  border: 1px solid var(--border-strong);
  border-radius: 13px;

  box-shadow: var(--shadow-large);
}

.chat-message-menu button {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 38px;
  padding: 0 11px;

  color: #d5cfc6;
  background: transparent;
  border-radius: 9px;

  font-size: 0.56rem;
  text-align: left;

  cursor: pointer;
}

.chat-message-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chat-message-menu button.is-danger {
  color: #ffbebe;
}

.chat-message-image {
  display: grid;
  place-items: center;

  width: min(360px, 100%);
  aspect-ratio: 1.35 / 1;
  margin-top: 9px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 13px;

  cursor: pointer;
}

.chat-message-image span {
  position: relative;
  z-index: 2;

  padding: 8px 11px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;

  font-size: 0.53rem;
  font-weight: 800;

  backdrop-filter: blur(8px);
}

.chat-image-placeholder-one {
  background:
    radial-gradient(
      circle at 45% 27%,
      #6b535a,
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #392b30,
      #111111
    );
}

.global-chat-new-messages {
  position: absolute;
  right: 20px;
  bottom: 150px;
  z-index: 20;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 36px;
  padding: 0 13px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.35);

  font-size: 0.55rem;
  font-weight: 850;

  cursor: pointer;
}

.global-chat-typing {
  display: flex;
  align-items: center;
  gap: 6px;

  min-height: 34px;
  padding: 0 15px;

  color: var(--muted);

  border-top: 1px solid rgba(255, 255, 255, 0.045);

  font-size: 0.49rem;
}

.typing-avatar {
  width: 24px;
  height: 24px;

  font-size: 0.44rem;
}

.global-chat-typing i {
  width: 4px;
  height: 4px;

  background: var(--muted);
  border-radius: 50%;

  animation: chatTyping 1.2s infinite;
}

.global-chat-typing i:nth-of-type(2) {
  animation-delay: 0.15s;
}

.global-chat-typing i:nth-of-type(3) {
  animation-delay: 0.3s;
}

.global-chat-reply-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;

  min-height: 50px;
  padding: 8px 13px;

  background: rgba(249, 201, 47, 0.05);
  border-top: 1px solid rgba(249, 201, 47, 0.13);
}

.global-chat-reply-bar > span {
  color: var(--yellow);
}

.global-chat-reply-bar > div {
  display: grid;
  gap: 2px;

  min-width: 0;
}

.global-chat-reply-bar strong {
  color: var(--yellow);
  font-size: 0.52rem;
}

.global-chat-reply-bar div span {
  overflow: hidden;

  color: var(--muted);

  font-size: 0.49rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-chat-reply-bar button {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;

  cursor: pointer;
}

.global-chat-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;

  padding: 10px 12px 8px;

  background: #111111;
  border-top: 1px solid var(--border);
}

.global-chat-composer-tools {
  display: flex;
  gap: 5px;
}

.global-chat-composer-tools button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  color: #d5cfc6;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 10px;

  font-size: 0.8rem;
  font-weight: 900;

  cursor: pointer;
}

.global-chat-composer-tools button:nth-child(3) {
  font-size: 0.46rem;
}

.global-chat-composer-input {
  position: relative;

  min-width: 0;
}

.global-chat-composer-input textarea {
  width: 100%;
  min-height: 44px;
  max-height: 130px;
  padding: 12px 68px 12px 13px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;

  font-size: 0.63rem;
  line-height: 1.55;
  resize: none;
}

.global-chat-composer-input textarea:focus {
  border-color: rgba(249, 201, 47, 0.55);

  box-shadow:
    0 0 0 4px rgba(249, 201, 47, 0.07);
}

.global-chat-composer-input textarea::placeholder {
  color: #706c66;
}

.global-chat-composer-input > span {
  position: absolute;
  right: 11px;
  bottom: 9px;

  color: var(--muted-dark);
  font-size: 0.43rem;
}

.global-chat-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 42px;
  padding: 0 14px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.57rem;
  font-weight: 900;

  cursor: pointer;
}

.global-chat-send-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.global-chat-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 28px;
  padding: 0 14px 8px;

  color: var(--muted-dark);
  background: #111111;

  font-size: 0.43rem;
}

.global-chat-profile-panel {
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.chat-selected-profile {
  padding-bottom: 14px;
}

.chat-selected-profile-cover {
  position: relative;

  min-height: 120px;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.45)
    ),
    radial-gradient(
      circle at 40% 25%,
      #4f7477,
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #263e40,
      #111111
    );
}

.chat-selected-area-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;

  padding: 5px 8px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;

  font-size: 0.47rem;
  font-weight: 850;

  backdrop-filter: blur(8px);
}

.chat-selected-profile-main {
  display: flex;
  align-items: flex-end;
  gap: 12px;

  margin-top: -31px;
  padding: 0 14px;

  position: relative;
  z-index: 2;
}

.chat-selected-avatar {
  width: 76px;
  height: 76px;

  border: 5px solid #151515;

  font-size: 1.1rem;
}

.chat-selected-avatar i {
  width: 15px;
  height: 15px;

  border-width: 3px;
}

.chat-selected-title {
  display: grid;
  gap: 4px;

  padding-bottom: 4px;
}

.chat-selected-title > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-selected-title h2 {
  margin: 0;

  color: var(--white);
  font-size: 1.05rem;
}

.chat-selected-title > div > span:not(.chat-live-badge) {
  color: var(--yellow);
  font-size: 0.69rem;
  font-weight: 900;
}

.chat-selected-title p {
  margin: 0;

  color: var(--muted);
  font-size: 0.54rem;
}

.chat-selected-online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--green);
  font-size: 0.49rem;
  font-weight: 800;
}

.chat-selected-online-status i {
  width: 7px;
  height: 7px;

  background: var(--green);
  border-radius: 50%;
}

.chat-selected-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;

  padding: 14px;
}

.chat-selected-primary,
.chat-selected-secondary,
.chat-selected-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 38px;

  border-radius: 999px;

  font-size: 0.53rem;
  font-weight: 850;

  cursor: pointer;
}

.chat-selected-primary {
  color: #171207;
  background: var(--yellow);
}

.chat-selected-secondary,
.chat-selected-icon-button {
  color: #d5cfc6;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.chat-selected-icon-button {
  width: 38px;

  color: var(--white);
  font-size: 0.95rem;
}

.chat-selected-icon-button.is-favorite {
  color: #ffb4b4;
  background: rgba(231, 53, 53, 0.09);
  border-color: rgba(231, 53, 53, 0.2);
}

.chat-selected-live-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin: 0 14px;
  padding: 10px;

  background: rgba(31, 143, 150, 0.08);
  border: 1px solid rgba(31, 143, 150, 0.2);
  border-radius: 12px;
}

.chat-selected-live-action > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-selected-live-action > div > span {
  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  background: rgba(31, 143, 150, 0.13);
  border-radius: 10px;
}

.chat-selected-live-action div div {
  display: grid;
  gap: 2px;
}

.chat-selected-live-action strong {
  color: var(--white);
  font-size: 0.54rem;
}

.chat-selected-live-action small {
  color: var(--muted);
  font-size: 0.46rem;
}

.chat-selected-live-action > a {
  padding: 7px 9px;

  color: #eaffff;
  background: #197f89;
  border-radius: 999px;

  font-size: 0.49rem;
  font-weight: 850;
}

.chat-selected-section {
  margin: 14px 14px 0;
  padding-top: 13px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-selected-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-selected-section h3 {
  margin: 0;

  color: var(--white);
  font-size: 0.62rem;
}

.chat-selected-section header a {
  color: var(--yellow);
  font-size: 0.49rem;
  font-weight: 800;
}

.chat-selected-section > p {
  margin: 8px 0 0;

  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.62;
}

.chat-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 9px;
}

.chat-selected-tags span {
  padding: 6px 8px;

  color: #d0cac1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.48rem;
}

.chat-selected-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;

  margin-top: 9px;
}

.chat-selected-photo {
  aspect-ratio: 1 / 1;

  border: 1px solid var(--border);
  border-radius: 10px;

  cursor: pointer;
}

.chat-selected-photo-one {
  background:
    radial-gradient(
      circle at 42% 25%,
      #4d7174,
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #263b3d,
      #111111
    );
}

.chat-selected-photo-two {
  background:
    radial-gradient(
      circle at 42% 25%,
      #70514a,
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #3a2926,
      #111111
    );
}

.chat-selected-photo-three {
  background:
    radial-gradient(
      circle at 42% 25%,
      #596780,
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #2d3545,
      #111111
    );
}

.chat-selected-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.chat-selected-details div {
  display: grid;
  gap: 2px;

  padding: 9px;

  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
}

.chat-selected-details span {
  color: var(--muted);
  font-size: 0.45rem;
}

.chat-selected-details strong {
  color: var(--white);
  font-size: 0.57rem;
}

.chat-selected-profile-buttons {
  display: grid;
  gap: 6px;

  margin: 14px;
}

.chat-selected-profile-buttons a,
.chat-selected-profile-buttons button {
  display: grid;
  place-items: center;

  min-height: 36px;

  color: #d6d0c7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.52rem;
  font-weight: 800;

  cursor: pointer;
}

.chat-selected-profile-buttons a {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.chat-selected-profile-buttons button:last-child {
  color: #ffc8c8;
  background: rgba(231, 53, 53, 0.07);
  border-color: rgba(231, 53, 53, 0.17);
}

.global-chat-status-list {
  display: grid;
  gap: 7px;
}

.global-chat-status-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  min-height: 40px;
  padding: 0 9px;

  align-items: center;

  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
}

.global-chat-status-list span {
  color: var(--muted);
  font-size: 0.53rem;
}

.global-chat-status-list strong {
  color: var(--white);
  font-size: 0.57rem;
}

.global-chat-online-pill {
  padding: 4px 7px;

  color: #11200e;
  background: var(--green);
  border-radius: 999px;

  font-size: 0.47rem;
  font-weight: 900;
}

.global-chat-area-list {
  display: grid;
  gap: 5px;
}

.global-chat-area-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;

  min-height: 55px;
  padding: 7px;

  border-radius: 10px;
}

.global-chat-area-list a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.global-chat-area-icon {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  color: var(--white);
  border-radius: 10px;

  font-size: 0.51rem;
  font-weight: 900;
}

.area-gb {
  color: #171207;
  background: var(--yellow);
}

.area-gz {
  background:
    linear-gradient(
      135deg,
      #8a3fb3,
      #d01d62
    );
}

.area-cam {
  background: #197f89;
}

.area-cinema {
  background: #973333;
}

.area-demand {
  background: #555b85;
}

.global-chat-area-list a > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.global-chat-area-list strong {
  color: var(--white);
  font-size: 0.58rem;
}

.global-chat-area-list small {
  color: var(--muted);
  font-size: 0.47rem;
}

.global-chat-area-list a > span:last-child {
  color: var(--yellow);
  font-size: 0.54rem;
  font-weight: 900;
}

.global-chat-moderator-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-chat-moderator-shield {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  background: rgba(249, 201, 47, 0.1);
  border-radius: 12px;
}

.global-chat-moderator-header div {
  display: grid;
  gap: 2px;
}

.global-chat-moderator-header strong {
  color: var(--white);
  font-size: 0.62rem;
}

.global-chat-moderator-header div span {
  color: var(--green);
  font-size: 0.5rem;
}

.global-chat-moderator-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  margin-top: 12px;
  padding: 9px;

  background: rgba(255, 255, 255, 0.035);
  border-radius: 11px;
}

.global-chat-moderator-person > span {
  position: relative;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  color: var(--white);
  border-radius: 50%;

  font-size: 0.66rem;
  font-weight: 900;
}

.global-chat-moderator-person > span i {
  width: 10px;
  height: 10px;
}

.global-chat-moderator-person div {
  display: grid;
  gap: 2px;
}

.global-chat-moderator-person strong {
  color: var(--white);
  font-size: 0.61rem;
}

.global-chat-moderator-person small {
  color: var(--muted);
  font-size: 0.49rem;
}

.global-chat-moderator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;

  margin-top: 10px;
}

.global-chat-moderator-actions button {
  min-height: 34px;

  color: #d5cfc6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.51rem;
  font-weight: 800;

  cursor: pointer;
}

.global-chat-moderator-actions button:first-child {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.global-chat-rules-icon {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  background:
    linear-gradient(
      135deg,
      rgba(249, 201, 47, 0.12),
      rgba(211, 31, 95, 0.08)
    );

  border-radius: 12px;
}

.global-chat-rules-card h2 {
  margin: 12px 0 7px;

  color: var(--white);
  font-size: 0.75rem;
}

.global-chat-rules-card p {
  margin: 0;

  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.62;
}

.global-chat-rules-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 10px;

  color: var(--yellow);
  font-size: 0.53rem;
  font-weight: 850;
}

.chat-floating-panel {
  position: fixed;
  z-index: 700;

  width: 320px;
  max-height: 430px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #1a1a1a,
      #0f0f0f
    );

  border: 1px solid var(--border-strong);
  border-radius: 17px;

  box-shadow: var(--shadow-large);
}

.chat-emoji-panel,
.chat-gif-panel,
.chat-mention-panel {
  right: 380px;
  bottom: 105px;
}

.chat-floating-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;
  padding: 0 13px;

  border-bottom: 1px solid var(--border);
}

.chat-floating-panel h2 {
  margin: 0;

  color: var(--white);
  font-size: 0.68rem;
}

.chat-floating-panel header button {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 9px;

  font-size: 1rem;

  cursor: pointer;
}

.chat-emoji-categories {
  display: flex;
  gap: 5px;

  padding: 8px 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-emoji-categories button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 32px;

  background: transparent;
  border-radius: 8px;

  cursor: pointer;
}

.chat-emoji-categories button.active {
  background: rgba(249, 201, 47, 0.12);
}

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;

  max-height: 270px;
  padding: 10px;

  overflow-y: auto;
}

.chat-emoji-grid button {
  display: grid;
  place-items: center;

  aspect-ratio: 1 / 1;

  background: transparent;
  border-radius: 8px;

  font-size: 1rem;

  cursor: pointer;
}

.chat-emoji-grid button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.chat-gif-search,
.chat-mention-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;

  margin: 10px;
  padding: 0 11px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.chat-gif-search input,
.chat-mention-search input {
  min-width: 0;
  height: 40px;
  padding-left: 8px;

  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;

  font-size: 0.58rem;
}

.chat-gif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;

  max-height: 310px;
  padding: 0 10px 10px;

  overflow-y: auto;
}

.chat-gif-item {
  display: grid;
  place-items: end start;

  min-height: 110px;
  padding: 9px;

  color: var(--white);
  border-radius: 11px;

  font-size: 0.6rem;
  font-weight: 900;

  cursor: pointer;
}

.chat-gif-one {
  background:
    radial-gradient(circle at 40% 30%, #566f79, transparent 35%),
    linear-gradient(145deg, #2d3c43, #111111);
}

.chat-gif-two {
  background:
    radial-gradient(circle at 40% 30%, #775665, transparent 35%),
    linear-gradient(145deg, #402d37, #111111);
}

.chat-gif-three {
  background:
    radial-gradient(circle at 40% 30%, #786b42, transparent 35%),
    linear-gradient(145deg, #403921, #111111);
}

.chat-gif-four {
  background:
    radial-gradient(circle at 40% 30%, #4e6f58, transparent 35%),
    linear-gradient(145deg, #293c2f, #111111);
}

.chat-gif-five {
  background:
    radial-gradient(circle at 40% 30%, #6f4f43, transparent 35%),
    linear-gradient(145deg, #3a2922, #111111);
}

.chat-gif-six {
  background:
    radial-gradient(circle at 40% 30%, #6b5379, transparent 35%),
    linear-gradient(145deg, #392d41, #111111);
}

.chat-mention-list {
  display: grid;
  gap: 4px;

  max-height: 310px;
  padding: 0 8px 8px;

  overflow-y: auto;
}

.chat-mention-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;

  min-height: 52px;
  padding: 7px;

  color: inherit;
  background: transparent;
  border-radius: 10px;

  text-align: left;

  cursor: pointer;
}

.chat-mention-list button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chat-mention-list button > span:first-child {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  color: var(--white);
  border-radius: 50%;

  font-size: 0.62rem;
  font-weight: 900;
}

.chat-mention-list button > span:last-child {
  display: grid;
  gap: 2px;
}

.chat-mention-list strong {
  color: var(--white);
  font-size: 0.59rem;
}

.chat-mention-list small {
  color: var(--muted);
  font-size: 0.48rem;
}

.chat-modal,
.chat-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 800;

  display: grid;
  place-items: center;

  padding: 20px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 200ms ease;
}

.chat-modal.is-open,
.chat-image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chat-modal-backdrop,
.chat-image-viewer-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.chat-modal-dialog,
.chat-image-viewer-dialog {
  position: relative;
  z-index: 2;

  width: min(620px, 100%);
  max-height: calc(100vh - 40px);

  overflow-y: auto;

  background:
    linear-gradient(
      145deg,
      #1a1a1a,
      #0f0f0f
    );

  border: 1px solid var(--border-strong);
  border-radius: 21px;

  box-shadow: var(--shadow-large);

  transform: translateY(18px) scale(0.98);

  transition: transform 200ms ease;
}

.chat-modal.is-open .chat-modal-dialog,
.chat-image-viewer.is-open .chat-image-viewer-dialog {
  transform: translateY(0) scale(1);
}

.chat-modal-header,
.chat-image-viewer-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  min-height: 70px;
  padding: 13px 16px;

  border-bottom: 1px solid var(--border);
}

.chat-modal-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-modal-header > div > span {
  display: grid;
  place-items: center;

  width: 41px;
  height: 41px;

  background: rgba(249, 201, 47, 0.09);
  border-radius: 11px;
}

.chat-modal-header > div > div,
.chat-image-viewer-dialog > header > div {
  display: grid;
  gap: 2px;
}

.chat-modal-header h2,
.chat-image-viewer-dialog h2 {
  margin: 0;

  color: var(--white);
  font-size: 0.8rem;
}

.chat-modal-header div div span,
.chat-image-viewer-dialog header span {
  color: var(--muted);
  font-size: 0.52rem;
}

.chat-modal-header > button,
.chat-image-viewer-dialog header > button {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 10px;

  font-size: 1.2rem;

  cursor: pointer;
}

.chat-photo-upload-form,
.chat-private-message-form,
.chat-report-form {
  display: grid;
  gap: 15px;

  padding: 17px;
}

.chat-photo-upload-dropzone {
  display: grid;
  justify-items: center;

  min-height: 220px;
  padding: 28px 18px;

  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 10px,
      rgba(255, 255, 255, 0.025) 10px,
      rgba(255, 255, 255, 0.025) 20px
    );

  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 15px;

  text-align: center;

  cursor: pointer;
}

.chat-photo-upload-dropzone input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.chat-photo-upload-dropzone > span {
  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;

  background: rgba(249, 201, 47, 0.1);
  border-radius: 50%;

  font-size: 1.3rem;
}

.chat-photo-upload-dropzone strong {
  margin-top: 12px;

  color: var(--white);
  font-size: 0.7rem;
}

.chat-photo-upload-dropzone small {
  margin-top: 4px;

  color: var(--muted);
  font-size: 0.54rem;
}

.chat-photo-upload-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;

  padding: 10px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chat-photo-upload-preview img {
  width: 70px;
  height: 70px;

  object-fit: cover;
  border-radius: 10px;
}

.chat-photo-upload-preview > div {
  display: grid;
  gap: 3px;
}

.chat-photo-upload-preview strong {
  color: var(--white);
  font-size: 0.61rem;
}

.chat-photo-upload-preview span {
  color: var(--muted);
  font-size: 0.5rem;
}

.chat-photo-upload-preview button {
  min-height: 32px;
  padding: 0 9px;

  color: #ffcaca;
  background: rgba(231, 53, 53, 0.08);
  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 800;

  cursor: pointer;
}

.chat-photo-caption,
.chat-report-description {
  display: grid;
  gap: 7px;
}

.chat-photo-caption label,
.chat-report-description label {
  color: #d5cfc6;
  font-size: 0.6rem;
  font-weight: 800;
}

.chat-photo-caption textarea,
.chat-private-message-form textarea,
.chat-report-description textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;

  font-size: 0.64rem;
  line-height: 1.6;
  resize: vertical;
}

.chat-private-message-form textarea {
  min-height: 180px;
}

.chat-photo-caption textarea:focus,
.chat-private-message-form textarea:focus,
.chat-report-description textarea:focus {
  border-color: rgba(249, 201, 47, 0.55);

  box-shadow:
    0 0 0 4px rgba(249, 201, 47, 0.07);
}

.chat-photo-confirmation {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;

  color: var(--muted);

  font-size: 0.54rem;
  line-height: 1.55;

  cursor: pointer;
}

.chat-photo-confirmation input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.chat-photo-confirmation > span:first-of-type {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.chat-photo-confirmation > span:first-of-type::after {
  color: #171207;
  font-size: 0.6rem;
  font-weight: 900;

  content: "✓";
  opacity: 0;
}

.chat-photo-confirmation input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
}

.chat-photo-confirmation input:checked + span::after {
  opacity: 1;
}

.chat-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.chat-modal-cancel,
.chat-modal-submit {
  min-height: 39px;
  padding: 0 14px;

  border-radius: 999px;

  font-size: 0.58rem;
  font-weight: 850;

  cursor: pointer;
}

.chat-modal-cancel {
  color: #d4cec5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.chat-modal-submit {
  color: #171207;
  background: var(--yellow);
}

.chat-modal-user-avatar {
  width: 41px !important;
  height: 41px !important;

  background: #356f71 !important;
}

.chat-report-form fieldset {
  display: grid;
  gap: 7px;

  margin: 0;
  padding: 0;

  border: 0;
}

.chat-report-form legend {
  margin-bottom: 9px;

  color: var(--white);
  font-size: 0.66rem;
  font-weight: 900;
}

.chat-report-form fieldset label {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  min-height: 62px;
  padding: 10px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;

  cursor: pointer;
}

.chat-report-form fieldset input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.chat-report-form fieldset label > span:first-of-type {
  display: grid;
  place-items: center;

  width: 23px;
  height: 23px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.chat-report-form fieldset label > span:first-of-type::after {
  width: 9px;
  height: 9px;

  background: var(--yellow);
  border-radius: 50%;

  content: "";
  opacity: 0;
}

.chat-report-form fieldset input:checked + span {
  border-color: var(--yellow);
}

.chat-report-form fieldset input:checked + span::after {
  opacity: 1;
}

.chat-report-form fieldset label > span:last-child {
  display: grid;
  gap: 2px;
}

.chat-report-form strong {
  color: var(--white);
  font-size: 0.59rem;
}

.chat-report-form small {
  color: var(--muted);
  font-size: 0.49rem;
}

.chat-image-viewer-dialog {
  width: min(980px, 100%);
}

.chat-image-viewer-content {
  display: grid;
  place-items: center;

  min-height: 560px;
  padding: 22px;

  background: #090909;
}

.chat-image-viewer-image {
  width: min(760px, 100%);
  aspect-ratio: 1.3 / 1;

  border: 1px solid var(--border);
  border-radius: 15px;
}

.chat-image-viewer-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 13px 16px;

  border-top: 1px solid var(--border);
}

.chat-image-viewer-dialog footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-image-viewer-dialog footer > div > span {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  color: var(--white);
  border-radius: 50%;

  font-size: 0.62rem;
  font-weight: 900;
}

.chat-image-viewer-dialog footer div div {
  display: grid;
  gap: 2px;
}

.chat-image-viewer-dialog footer strong {
  color: var(--white);
  font-size: 0.61rem;
}

.chat-image-viewer-dialog footer div div span {
  color: var(--muted);
  font-size: 0.49rem;
}

.chat-image-viewer-dialog footer button {
  min-height: 35px;
  padding: 0 11px;

  color: #ffcaca;
  background: rgba(231, 53, 53, 0.08);
  border: 1px solid rgba(231, 53, 53, 0.17);
  border-radius: 999px;

  font-size: 0.52rem;
  font-weight: 800;

  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.avatar-red {
  background:
    linear-gradient(
      135deg,
      #a8463d,
      #6d2521
    );
}

.avatar-teal {
  background:
    linear-gradient(
      135deg,
      #3f8588,
      #285256
    );
}

.avatar-blue {
  background:
    linear-gradient(
      135deg,
      #4e6f9a,
      #2b3e5b
    );
}

.avatar-purple {
  background:
    linear-gradient(
      135deg,
      #7b4e94,
      #4a2d5b
    );
}

.avatar-gold {
  background:
    linear-gradient(
      135deg,
      #a77a24,
      #634712
    );
}

.avatar-green {
  background:
    linear-gradient(
      135deg,
      #4f8b58,
      #2b4f31
    );
}

@keyframes chatTyping {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 1680px) {
  .global-chat-workspace {
    grid-template-columns: 250px minmax(0, 1fr) 290px;
  }

  .global-chat-rightbar {
    display: none;
  }

  .chat-emoji-panel,
  .chat-gif-panel,
  .chat-mention-panel {
    right: 30px;
  }
}

@media (max-width: 1350px) {
  .global-chat-workspace {
    grid-template-columns: 235px minmax(0, 1fr);
  }

  .global-chat-profile-panel {
    display: none;
  }

  .global-chat-profile-panel.is-mobile-active {
    display: block;
  }
}

@media (max-width: 1050px) {
  .global-chat-hero {
    grid-template-columns: 1fr;
  }

  .global-chat-hero-stats {
    width: 100%;
    min-width: 0;

    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .global-chat-mobile-tabs {
    display: flex;
  }

  .global-chat-workspace {
    grid-template-columns: 1fr;

    min-height: 730px;
  }

  .global-chat-workspace > [data-chat-panel] {
    display: none;
  }

  .global-chat-workspace > [data-chat-panel].is-mobile-active {
    display: grid;
  }

  .global-chat-members-panel.is-mobile-active,
  .global-chat-profile-panel.is-mobile-active {
    display: block;
  }

  .global-chat-members-panel,
  .global-chat-profile-panel,
  .global-chat-room {
    min-height: 730px;
  }
}

@media (max-width: 760px) {
  .global-chat-hero {
    padding: 24px;
  }

  .global-chat-hero h1 {
    font-size: 2.8rem;
  }

  .global-chat-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-chat-workspace {
    margin-top: 12px;
  }

  .global-chat-room,
  .global-chat-members-panel,
  .global-chat-profile-panel {
    min-height: calc(100vh - 260px);
    border-radius: 18px;
  }

  .global-chat-room-header {
    padding: 11px 12px;
  }

  .global-chat-announcement {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .global-chat-announcement button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .global-chat-message-list {
    padding: 10px;
  }

  .chat-message {
    grid-template-columns: auto minmax(0, 1fr);

    padding: 9px 5px;
  }

  .chat-message-menu-button {
    position: absolute;
    top: 8px;
    right: 5px;

    opacity: 1;
  }

  .chat-message-header {
    padding-right: 26px;
  }

  .chat-message-header time {
    margin-left: 0;
  }

  .global-chat-composer {
    grid-template-columns: 1fr;
  }

  .global-chat-composer-tools {
    order: 2;
  }

  .global-chat-composer-input {
    order: 1;
  }

  .global-chat-send-button {
    order: 3;

    width: 100%;
  }

  .global-chat-composer-footer {
    display: none;
  }

  .chat-floating-panel {
    right: 12px;
    bottom: 90px;
    left: 12px;

    width: auto;
  }

  .chat-image-viewer-content {
    min-height: 430px;
  }
}

@media (max-width: 520px) {
  .global-chat-hero {
    min-height: 390px;
    padding: 20px;
  }

  .global-chat-hero h1 {
    font-size: 2.45rem;
  }

  .global-chat-hero-status {
    display: grid;
  }

  .global-chat-hero-status span {
    justify-content: center;
  }

  .global-chat-mobile-tabs button {
    padding: 0 8px;
  }

  .global-chat-room-title span:last-child {
    max-width: 165px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .global-chat-room-actions button:first-child {
    display: none;
  }

  .global-chat-announcement {
    display: none;
  }

  .chat-message-avatar {
    width: 35px;
    height: 35px;
  }

  .chat-message-content p {
    font-size: 0.6rem;
  }

  .chat-origin-badge {
    order: 5;
  }

  .chat-message-header time {
    order: 6;
    width: 100%;
  }

  .global-chat-composer-tools {
    justify-content: space-between;
  }

  .global-chat-composer-tools button {
    flex: 1;
  }

  .chat-selected-actions {
    grid-template-columns: 1fr 1fr;
  }

  .chat-selected-icon-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-modal-actions {
    display: grid;
  }

  .chat-modal-actions button {
    width: 100%;
  }

  .chat-photo-upload-preview {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-photo-upload-preview button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-image-viewer-content {
    min-height: 340px;
  }

  .chat-image-viewer-image {
    aspect-ratio: 0.9 / 1;
  }

  .chat-image-viewer-dialog footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-image-viewer-dialog footer button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .global-chat-hero {
    min-height: 470px;
  }

  .global-chat-hero-stats {
    grid-template-columns: 1fr;
  }

  .global-chat-hero-stats div {
    min-height: 62px;
  }

  .global-chat-mobile-tabs button span {
    display: none;
  }

  .chat-selected-profile-main {
    align-items: center;
    flex-direction: column;

    text-align: center;
  }

  .chat-selected-title > div {
    justify-content: center;
  }

  .chat-selected-online-status {
    justify-content: center;
  }
}

/* =========================================================
   NIEUWE GLOBAL CHAT MESSAGE LAYOUT
========================================================= */

.chat-message{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:14px;

    padding:14px 16px;

    border-radius:14px;

    transition:
        background .18s ease,
        transform .18s ease;
}

.chat-message:hover{
    background:rgba(255,255,255,.03);
}

.chat-message.is-own-message{
    background:rgba(249,201,47,.045);
}

.chat-message-avatar{
    width:48px;
    height:48px;

    overflow:hidden;

    border-radius:50%;

    flex-shrink:0;
}

.chat-message-avatar img{
    width:100%;
    height:100%;

    object-fit:cover;
}

.chat-message-main{
    min-width:0;
}

.chat-message-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
}

.chat-message-header-left{
    display:flex;
    flex-direction:column;
    gap:5px;

    min-width:0;
}

.chat-message-header-right{
    flex-shrink:0;

    color:#8b8b8b;

    font-size:.72rem;
}

.chat-message-name{
    color:#fff;

    font-size:.93rem;
    font-weight:700;
}

.chat-message-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;

    color:#bababa;

    font-size:.74rem;
}

.chat-message-flag{
    font-size:.92rem;
}

.chat-message-country{
    color:#d6d6d6;
}

.chat-message-age{
    color:#f5c84d;
    font-weight:700;
}

.chat-message-city{
    color:#bcbcbc;
}

.chat-message-meta-separator{
    opacity:.35;
}

.chat-area-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:22px;

    padding:0 10px;

    border-radius:999px;

    font-size:.67rem;
    font-weight:700;

    letter-spacing:.03em;
}

.chat-area-badge.area-gb{
    background:#f6c846;
    color:#111;
}

.chat-area-badge.area-gz{
    background:#9639d7;
    color:#fff;
}

.chat-area-badge.area-cam{
    background:#00a8b5;
    color:#fff;
}

.chat-area-badge.area-cinema247{
    background:#d63c3c;
    color:#fff;
}

.chat-area-badge.area-cinemaon{
    background:#4d5dcb;
    color:#fff;
}

.chat-message-content{
    margin-top:8px;

    color:#ececec;

    font-size:.88rem;

    line-height:1.7;

    word-break:break-word;
}

.chat-message-content p{
    margin:0;
}

.chat-message-footer{
    display:flex;
    align-items:center;
    flex-wrap:wrap;

    gap:7px;

    margin-top:12px;
}

.chat-message-footer button{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:28px;

    padding:0 10px;

    border-radius:999px;

    background:#242424;

    color:#d7d7d7;

    font-size:.72rem;

    transition:.15s;
}

.chat-message-footer button:hover{
    background:#343434;
}

.chat-message-reply-button{
    margin-left:auto;
}

.chat-message-reply-preview{
    margin-bottom:10px;

    padding:10px 14px;

    border-left:4px solid #f6c846;

    border-radius:10px;

    background:#1b1b1b;
}

.chat-message-reply-preview span{
    display:block;

    margin-bottom:3px;

    color:#f6c846;

    font-size:.70rem;

    font-weight:700;
}

.chat-message-reply-preview strong{
    display:block;

    color:#bfbfbf;

    font-size:.73rem;
}

.chat-message-edited{
    display:inline-block;

    margin-top:7px;

    color:#8f8f8f;

    font-size:.69rem;
}

/* =========================================================
   GLOBAL CHAT — COMPACT MESSAGE LAYOUT
========================================================= */

.chat-message {
  position: relative;

  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;

  min-height: 0;
  padding: 5px 7px;

  background: transparent;
  border-radius: 8px;

  transition:
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.chat-message:hover {
  background: rgba(255, 255, 255, 0.035);
}

.chat-message.is-own-message {
  background: rgba(249, 201, 47, 0.025);
}

.chat-message.is-own-message:hover {
  background: rgba(249, 201, 47, 0.05);
}

.chat-message-avatar {
  width: 30px;
  height: 30px;

  overflow: hidden;

  border-radius: 50%;

  font-size: 0.52rem;

  cursor: pointer;
}

.chat-message-avatar img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.chat-message-main {
  min-width: 0;
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 6px;

  min-width: 0;
  min-height: 18px;

  line-height: 1;
}

.chat-message-name {
  flex: 0 0 auto;

  color: var(--white);
  background: transparent;

  font-size: 0.59rem;
  font-weight: 900;

  line-height: 1;

  cursor: pointer;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 4px;

  min-width: 0;

  color: #9f9a93;

  font-size: 0.47rem;
  line-height: 1;

  white-space: nowrap;
}

.chat-message-meta > span {
  flex: 0 0 auto;
}

.chat-message-meta-separator {
  color: #5e5a55;

  font-size: 0.42rem;
}

.chat-area-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 15px;
  padding: 0 5px;

  border-radius: 999px;

  font-size: 0.40rem;
  font-weight: 900;
  line-height: 1;

  letter-spacing: 0.02em;
}

.chat-area-badge.area-gb,
.chat-area-badge.origin-gay-belgium {
  color: #171207;
  background: var(--yellow);
}

.chat-area-badge.area-gz,
.chat-area-badge.origin-gayzzee {
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #8a3fb3,
      #d01d62
    );
}

.chat-area-badge.area-gzcam,
.chat-area-badge.origin-camroom {
  color: #eaffff;
  background: #197f89;
}

.chat-area-badge.area-gz247,
.chat-area-badge.origin-cinema {
  color: var(--white);
  background: #9f3030;
}

.chat-area-badge.area-gzon {
  color: var(--white);
  background: #555b85;
}

.chat-area-badge.area-gzlv {
  color: #171207;
  background: var(--yellow);
}

.chat-message-time {
  margin-left: auto;
  padding-left: 6px;

  color: #66615b;

  font-size: 0.42rem;
  line-height: 1;

  white-space: nowrap;
}

.chat-message-content {
  margin-top: 2px;

  min-width: 0;
}

.chat-message-content p {
  margin: 0;

  color: #d9d3ca;

  font-size: 0.57rem;
  line-height: 1.35;

  overflow-wrap: anywhere;
}

.chat-message-edited {
  display: inline;

  margin-left: 5px;

  color: #706b65;

  font-size: 0.40rem;
}

.chat-message-reply-preview {
  display: flex;
  align-items: center;
  gap: 5px;

  width: 100%;
  max-width: 430px;

  margin: 1px 0 3px;
  padding: 3px 6px;

  overflow: hidden;

  color: inherit;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--yellow);
  border-radius: 0 5px 5px 0;

  text-align: left;

  cursor: pointer;
}

.chat-message-reply-preview strong {
  flex: 0 0 auto;

  color: var(--yellow);

  font-size: 0.43rem;
  font-weight: 850;
}

.chat-message-reply-preview span {
  overflow: hidden;

  color: #8f8a84;

  font-size: 0.43rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message-footer {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;

  min-height: 20px;
  margin-top: 3px;
}

.chat-message-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;

  min-width: 23px;
  height: 20px;
  min-height: 20px;
  padding: 0 5px;

  color: #aaa49c;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;

  font-size: 0.44rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 130ms ease,
    color 130ms ease,
    border-color 130ms ease;
}

.chat-message-footer button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.065);
}

.chat-message-footer button.is-active {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.chat-message-reply-button {
  min-width: auto !important;
  margin-left: 3px;
  padding: 0 4px !important;

  color: #817b74 !important;
  background: transparent !important;
  border-color: transparent !important;

  font-size: 0.43rem !important;
}

.chat-message-reply-button:hover {
  color: var(--yellow) !important;
}

.chat-message-menu-button {
  align-self: start;

  display: grid;
  place-items: center;

  width: 22px;
  height: 22px;

  margin-top: -2px;

  color: #77716b;
  background: transparent;
  border-radius: 6px;

  font-size: 0.75rem;

  opacity: 0;

  cursor: pointer;

  transition:
    opacity 130ms ease,
    background-color 130ms ease;
}

.chat-message:hover .chat-message-menu-button,
.chat-message-menu-button[aria-expanded="true"] {
  opacity: 1;
}

.chat-message-menu-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

.chat-message-menu {
  top: 27px;
  right: 4px;

  width: 165px;
  padding: 5px;

  border-radius: 10px;
}

.chat-message-menu button {
  min-height: 31px;
  padding: 0 8px;

  font-size: 0.50rem;
}

.global-chat-message-list {
  gap: 0;

  padding: 7px 9px;
}

.chat-message-image {
  width: min(300px, 100%);
  margin-top: 5px;

  border-radius: 9px;
}

@media (max-width: 760px) {
  .chat-message {
    grid-template-columns: 28px minmax(0, 1fr);

    gap: 6px;

    padding: 5px 3px;
  }

  .chat-message-avatar {
    width: 28px;
    height: 28px;
  }

  .chat-message-header {
    padding-right: 24px;
  }

  .chat-message-meta {
    gap: 3px;

    font-size: 0.44rem;
  }

  .chat-message-time {
    font-size: 0.40rem;
  }

  .chat-message-content p {
    font-size: 0.55rem;
  }

  .chat-message-menu-button {
    position: absolute;
    top: 4px;
    right: 3px;

    opacity: 1;
  }
}

@media (max-width: 520px) {
  .chat-message-meta {
    max-width: calc(100vw - 155px);

    overflow: hidden;
  }

  .chat-message-city {
    overflow: hidden;

    max-width: 70px;

    text-overflow: ellipsis;
  }

  .chat-message-footer {
    overflow-x: auto;

    scrollbar-width: none;
  }

  .chat-message-footer::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================
   GLOBAL CHAT PHOTO UPLOAD
========================================================== */

.chat-photo-upload-dropzone.is-dragging {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.10);
}

.chat-photo-upload-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.chat-photo-upload-progress[hidden] {
  display: none;
}

.chat-photo-upload-progress-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.chat-photo-upload-progress-status span {
  color: #b8b8c4;
}

.chat-photo-upload-progress-status strong {
  color: #ffffff;
}

.chat-photo-upload-progress-track {
  position: relative;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.chat-photo-upload-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #7c3aed,
    #a855f7,
    #ec4899
  );
  transition: width 120ms linear;
}

.chat-message-image {
  display: block;
  overflow: hidden;
  width: auto;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

button.chat-message-image {
  width: fit-content;
  max-width: 220px;
}

button.chat-message-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
}

img.chat-message-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  border-radius: 10px;
}


/* ==========================================================
   COMPACT MESSAGE ACTIONS
   Reactions + beantwoorden alleen na klik op bericht
========================================================== */

.chat-message-footer {
  display: none;
}

.chat-message.is-actions-open .chat-message-footer {
  display: flex;
}

.chat-message.is-actions-open {
  background: rgba(255, 255, 255, 0.045);
}

.chat-message-menu-button {
  opacity: 0;
}

.chat-message:hover .chat-message-menu-button,
.chat-message.is-actions-open .chat-message-menu-button,
.chat-message-menu-button[aria-expanded="true"] {
  opacity: 1;
}

@media (max-width: 760px) {
  .chat-message-footer {
    display: none;
  }

  .chat-message.is-actions-open .chat-message-footer {
    display: flex;
  }
}


/* ==========================================================
   GLOBAL CHAT - DEFINITIEVE VIEWPORT
========================================================== */

.global-chat-room {
  display: flex;
  flex-direction: column;

  min-height: 0;
  overflow: hidden;
}


#globalChatMessageList,
.global-chat-message-list {
  flex: 1 1 auto;

  min-height: 0;
  height: auto;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;
  scrollbar-gutter: stable;

  padding-bottom: 10px;
}


#globalChatComposer,
.global-chat-composer {
  position: relative !important;

  flex: 0 0 auto;

  bottom: auto !important;

  z-index: 20;

  margin-top: 0;

  border-top: 1px solid rgba(255,255,255,.08);

  background: rgba(15,15,17,.98);
}


/* ==========================================================
   COMPACTE BERICHTEN
========================================================== */

.chat-message {
  display: grid;

  grid-template-columns:
    34px minmax(0,1fr) auto;

  align-items: start;

  column-gap: 8px;

  padding: 5px 8px;
}


.chat-message-avatar {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;
}


.chat-message-main {
  min-width: 0;
}


.chat-message-header {
  display: flex;

  flex-direction: row !important;

  align-items: center;

  flex-wrap: nowrap !important;

  gap: 6px;

  min-width: 0;
}


.chat-message-name {
  flex: 0 0 auto;

  white-space: nowrap;
}


.chat-message-meta {
  display: flex;

  flex-direction: row !important;

  flex-wrap: nowrap !important;

  align-items: center;

  gap: 4px;

  min-width: 0;

  white-space: nowrap;
}


.chat-message-time {
  margin-left: auto;

  flex: 0 0 auto;

  white-space: nowrap;
}


.chat-message-content {
  min-width: 0;

  padding-top: 2px;
}


.chat-message-content p {
  margin: 0;

  line-height: 1.35;

  overflow-wrap: anywhere;
}


/* ==========================================================
   GIFS KLEIN HOUDEN
========================================================== */

.chat-message-content > img.chat-message-image {
  display: block;

  width: auto !important;
  height: auto !important;

  max-width: 96px !important;
  max-height: 96px !important;

  margin-top: 5px;

  object-fit: contain;
}


/* Foto's blijven groter */

.chat-message-image button,
button.chat-message-image {
  max-width: 240px;
}


button.chat-message-image img {
  display: block;

  width: auto;
  height: auto;

  max-width: 240px;
  max-height: 220px;

  object-fit: contain;
}


/* ==========================================================
   REACTIES ALLEEN NA KLIK
========================================================== */

.chat-message-footer {
  display: none;
}


.chat-message.is-actions-open .chat-message-footer {
  display: flex;
}


.chat-message-menu-button {
  opacity: 0;
}


.chat-message:hover .chat-message-menu-button,
.chat-message.is-actions-open .chat-message-menu-button {
  opacity: 1;
}



/* ==========================================================
   MEDIA BERICHTEN - ELK BERICHT EIGEN BLOK
========================================================== */

.chat-message {
  position: relative;
  height: auto !important;
  min-height: 44px;
  max-height: none !important;

  overflow: visible;
}


.chat-message-main {
  position: relative;

  display: block;

  min-width: 0;
  height: auto !important;
  min-height: 0;
  max-height: none !important;

  overflow: visible;
}


.chat-message-content {
  position: relative;

  display: flow-root;

  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: none !important;

  overflow: visible;
}


.chat-message.is-media-message {
  align-items: start;

  height: auto !important;
  min-height: 0;
  max-height: none !important;

  padding-top: 7px;
  padding-bottom: 8px;
}


.chat-message.is-media-message .chat-message-content {
  display: block;

  padding-top: 4px;
  padding-bottom: 2px;
}


.chat-message.is-media-message .chat-message-content p {
  display: block;

  margin: 0 0 6px 0;
}


/* ==========================================================
   GIF - COMPACT APART BERICHT
========================================================== */

.chat-message.is-gif-message
.chat-message-content
> img.chat-message-image {
  position: static !important;

  display: block !important;
  float: none !important;

  width: auto !important;
  height: auto !important;

  max-width: 90px !important;
  max-height: 90px !important;

  margin: 6px 0 2px 0 !important;

  object-fit: contain;

  border-radius: 10px;
}


/* ==========================================================
   FOTO - APART BERICHT
========================================================== */

.chat-message.is-image-message
button.chat-message-image {
  position: static !important;

  display: block !important;
  float: none !important;

  width: auto !important;
  height: auto !important;

  max-width: 220px !important;
  max-height: none !important;

  margin: 6px 0 3px 0 !important;

  padding: 0;

  overflow: hidden;

  border: 0;
  border-radius: 12px;

  background: transparent;
}


.chat-message.is-image-message
button.chat-message-image
img {
  position: static !important;

  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 220px !important;
  max-height: 180px !important;

  margin: 0 !important;

  object-fit: contain;

  border-radius: 12px;
}


/* ==========================================================
   VOLGEND BERICHT ALTIJD ONDER MEDIA
========================================================== */

.chat-message.is-media-message + .chat-message {
  clear: both;

  margin-top: 2px;
}


/* Actiebalk blijft ook onder de media */

.chat-message.is-media-message
.chat-message-footer {
  clear: both;

  width: 100%;

  margin-top: 6px;
}



/* ==========================================================
   DEFINITIEVE MEDIA FLOW
========================================================== */

.chat-message.is-media-message {
  grid-auto-rows: auto;
  height: auto !important;
  min-height: max-content;
}

.chat-message.is-media-message .chat-message-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto !important;
}

.chat-message.is-media-message .chat-message-content {
  display: block;
  width: 100%;
  height: auto !important;
  overflow: visible;
}

.chat-message.is-gif-message img.chat-message-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 90px !important;
  max-height: 90px !important;
  margin: 6px 0 2px 0 !important;
}

.chat-message.is-image-message button.chat-message-image {
  display: block !important;
  width: fit-content !important;
  max-width: 220px !important;
  margin: 6px 0 3px 0 !important;
}

.chat-message.is-image-message button.chat-message-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 180px !important;
}

.chat-message.is-media-message::after {
  content: "";
  display: block;
  clear: both;
}


/*
 * ============================================================
 * GAYZZEE_CHAT_MODAL_CONTRAST_V1
 * Leesbare actieknoppen in alle gedeelde chatmodals.
 * ============================================================
 */

.chat-modal-actions > button {
  min-height: 40px;
  padding: 0 16px;

  appearance: none;
  -webkit-appearance: none;

  color: #f5f1f7;
  background: #29242f;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;

  opacity: 1;
  cursor: pointer;
}

.chat-modal-actions > button:hover:not(:disabled),
.chat-modal-actions > button:focus-visible:not(:disabled) {
  color: #ffffff;
  background: #37303f;
  border-color: rgba(255, 255, 255, 0.28);
}

.chat-modal-actions > button[type="submit"],
.chat-modal-actions > button:last-child {
  color: #171207;
  background: #f9c92f;
  border-color: #f9c92f;
}

.chat-modal-actions > button[type="submit"]:hover:not(:disabled),
.chat-modal-actions > button[type="submit"]:focus-visible:not(:disabled),
.chat-modal-actions > button:last-child:hover:not(:disabled),
.chat-modal-actions > button:last-child:focus-visible:not(:disabled) {
  color: #100c03;
  background: #ffd95c;
  border-color: #ffd95c;
}

.chat-modal-actions > button:disabled {
  color: #b8b0bd;
  background: #302b34;
  border-color: rgba(255, 255, 255, 0.13);

  opacity: 1;
  cursor: not-allowed;
}

.chat-modal-actions > button[type="submit"]:disabled,
.chat-modal-actions > button:last-child:disabled {
  color: #d9d2dd;
  background: #4a424d;
  border-color: #5c5360;
}

@media (max-width: 760px) {
  .chat-modal-actions > button {
    width: 100%;
    min-height: 44px;
    font-size: 0.72rem;
  }
}

@media (max-width: 979px) {
  .chat-panel .chat-title > div {
    display: none !important;
  }
}