:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #eeeeee;
  --gold: #c8a45a;
  --gold-border: #5b4816;
  --panel: #0d0d0d;
  --message: #111111;
  --line: #292929;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #050505;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 18px;
  background: radial-gradient(circle at top, #201904 0, #050505 42%);
}

.app-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 16px 20px;
  border: 1px solid var(--gold-border);
  border-radius: 15px 15px 0 0;
  background: var(--panel);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 28px;
  min-width: 0;
}

.brand strong {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1;
}

.brand span {
  color: #c9c9c9;
  font-size: clamp(15px, 1.4vw, 20px);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#status {
  margin-right: 4px;
  color: #62d490;
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.action-button,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: #151208;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.action-button:hover,
.action-button:focus-visible,
.send-button:hover,
.send-button:focus-visible {
  background: var(--gold);
  color: #090909;
  outline: none;
}

.action-button:active,
.send-button:active {
  transform: translateY(1px);
}

#hold-button.is-active {
  background: var(--gold);
  color: #090909;
}

.hold-icon {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -3px;
}

.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  border: 1px solid var(--gold-border);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.membership-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  color: #bcbcbc;
  background: #111111;
  font-size: 12px;
  font-weight: 700;
}

.membership-badge.is-vip {
  border-color: var(--gold);
  color: #090909;
  background: var(--gold);
}

.lounge-overview {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(22px, 3vw, 44px);
  overflow-y: auto;
  border: 1px solid var(--gold-border);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background:
    radial-gradient(circle at 80% 0, rgba(212, 175, 55, .09), transparent 31%),
    #080808;
  scrollbar-color: #8f7628 #111111;
  scrollbar-width: thin;
}

.overview-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto 28px;
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.overview-intro h1 {
  margin: 7px 0 5px;
  color: #f1f1f1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.8px;
}

.overview-intro p {
  margin: 0;
  color: #9e9e9e;
  font-size: clamp(14px, 1.5vw, 17px);
}

.online-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 7px;
  color: #ababab;
  font-size: 13px;
  white-space: nowrap;
}

.online-summary span,
.room-presence i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 10px rgba(88, 214, 141, .45);
}

.online-summary strong {
  color: #eeeeee;
}

.lounge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
}

.lounge-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #302b1d;
  border-radius: 14px;
  background: linear-gradient(145deg, #121212, #0b0b0b);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.lounge-card::after {
  content: "";
  position: absolute;
  inset: auto -45px -70px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(212, 175, 55, .035);
}

.lounge-card.featured {
  grid-column: 1 / -1;
  min-height: 210px;
  border-color: #876d23;
  background:
    linear-gradient(105deg, rgba(212, 175, 55, .08), transparent 48%),
    #111111;
}

.lounge-card:hover {
  transform: translateY(-2px);
  border-color: #7b6522;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
}

.card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 52px;
  height: 52px;
  border: 1px solid #68551c;
  border-radius: 50%;
  color: var(--gold);
  background: #0a0a0a;
  font-family: Georgia, serif;
  font-size: 24px;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-heading,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.room-label,
.vip-label {
  color: #bfa34a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.room-presence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9b9b9b;
  font-size: 11px;
}

.lock-mark {
  color: #777777;
  font-size: 11px;
}

.lounge-card h2 {
  margin: 13px 0 8px;
  color: #f0f0f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
}

.lounge-card p {
  max-width: 760px;
  min-height: 42px;
  margin: 0 0 19px;
  color: #9b9b9b;
  font-size: 13px;
  line-height: 1.6;
}

.lounge-card .card-footer {
  margin-top: auto;
}

.enter-room,
.vip-button {
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #0a0a0a;
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vip-button {
  color: var(--gold);
  background: transparent;
}

.enter-room:hover,
.enter-room:focus-visible,
.vip-button:hover,
.vip-button:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid rgba(212, 175, 55, .28);
  outline-offset: 3px;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #070707;
  background: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.unread-badge.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #159447;
  box-shadow: 0 0 8px rgba(21, 148, 71, .55);
}

.lounge-card.locked {
  border-color: #292929;
}

.lounge-card.unlocked {
  border-color: #6d581d;
  background: linear-gradient(145deg, rgba(212, 175, 55, .055), #0b0b0b 58%);
}

.lounge-card.unlocked .vip-button {
  color: #090909;
  background: var(--gold);
}

.lounge-card.locked .card-icon {
  opacity: .72;
}

.lounge-card.show-upgrade {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .08), 0 16px 42px rgba(0, 0, 0, .35);
}

/* Op brede schermen krijgen alle VIP-kaarten exact dezelfde vaste hoogte. */
@media (min-width: 1101px) {
  .lounge-card:not(.featured) {
    height: 230px;
    min-height: 230px;
    align-self: stretch;
  }
}

.chat {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #090909;
}

#messages {
  min-height: 0;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8f7628 #111111;
  scrollbar-width: thin;
}

#messages::-webkit-scrollbar {
  width: 10px;
}

#messages::-webkit-scrollbar-track {
  background: #111111;
}

#messages::-webkit-scrollbar-thumb {
  border: 2px solid #111111;
  border-radius: 999px;
  background: #8f7628;
}

article {
  padding: 13px 15px;
  margin-bottom: 10px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--message);
}

article:last-child {
  margin-bottom: 0;
}

article b {
  color: var(--gold);
}

.message-author {
  max-width: calc(100% - 72px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.message-author.is-interactive {
  cursor: pointer;
}

.message-author.is-interactive:hover,
.message-author.is-interactive:focus-visible {
  color: #e7d5a4;
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 90, .65);
  text-underline-offset: 3px;
  outline: none;
}

.message-author:disabled {
  opacity: 1;
  cursor: default;
}

article time {
  float: right;
  margin-left: 14px;
  color: #888888;
  font-size: 12px;
}

article p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.protected-media {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #5b4816;
  border-radius: 10px;
  background: linear-gradient(135deg, #17140b, #0b0b0b);
}

.protected-media-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
}

.protected-media strong,
.protected-media small {
  display: block;
}

.protected-media strong {
  color: #eeeeee;
}

.protected-media small {
  margin-top: 3px;
  color: #999999;
  font-size: 12px;
}

.protected-media button,
.photo-button,
.video-button,
.emoji-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: #151208;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

.protected-media button:hover,
.protected-media button:focus-visible,
.photo-button:hover,
.photo-button:focus-visible,
.video-button:hover,
.video-button:focus-visible,
.emoji-button:hover,
.emoji-button:focus-visible {
  background: var(--gold);
  color: #090909;
  outline: none;
}

.protected-media button:disabled,
.photo-button:disabled,
.video-button:disabled {
  cursor: wait;
  opacity: .65;
}

.protected-media img,
.protected-media video {
  display: block;
  grid-column: 1 / -1;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 620px;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  object-fit: contain;
  background: #050505;
}

#new-message-button {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #090909;
  font-weight: 800;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .55);
  cursor: pointer;
}

#new-message-button[hidden] {
  display: none;
}

#form {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
}

.photo-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.video-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.emoji-button {
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.emoji-picker {
  position: absolute;
  z-index: 5;
  left: 15px;
  bottom: calc(100% + 8px);
  grid-template-columns: repeat(8, 40px);
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: #111111;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .7);
}

.emoji-picker:not([hidden]) {
  display: grid;
}

.emoji-option {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #191919;
  font-size: 22px;
  cursor: pointer;
}

.emoji-option:hover,
.emoji-option:focus-visible {
  border-color: var(--gold);
  background: #29220d;
  outline: none;
}

#input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #444444;
  border-radius: 10px;
  background: #151515;
  color: #ffffff;
  outline: none;
}

#input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .14);
}

.send-button {
  border-radius: 10px;
  padding-inline: 24px;
}

aside {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

aside h2 {
  margin: 7px 0 14px;
  color: var(--gold);
  font-size: 17px;
}

.member {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  border-bottom: 1px solid #222222;
  color: #eeeeee;
}

.member-presence {
  flex: 0 0 auto;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #58cc83;
  box-shadow: 0 0 8px rgba(88, 204, 131, .22);
}

.member-name-button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 3px 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #eeeeee;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-name-button:not(:disabled) {
  cursor: pointer;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.member-name-button:not(:disabled):hover,
.member-name-button:not(:disabled):focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 90, .65);
  text-underline-offset: 3px;
  outline: none;
}

.member-name-button:disabled {
  cursor: default;
}

.member em {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #715c20;
  border-radius: 999px;
  color: var(--gold);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .5px;
}

.member-action-menu {
  position: fixed;
  z-index: 180;
  width: min(280px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(200, 164, 90, .72);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(200, 164, 90, .12), transparent 48%),
    #0d0d0d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .7);
}

.member-action-title {
  display: block;
  padding: 4px 7px 10px;
  overflow: hidden;
  color: #e7d5a4;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-action-buttons {
  display: grid;
  gap: 6px;
}

.member-action-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #34302a;
  border-radius: 9px;
  background: #151515;
  color: #eeeeee;
  text-align: left;
  cursor: pointer;
}

.member-action-button:hover,
.member-action-button:focus-visible {
  border-color: var(--gold);
  background: rgba(200, 164, 90, .1);
  color: var(--gold);
  outline: none;
}

.member-action-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#private-chat-windows {
  position: fixed;
  z-index: 50;
  right: 32px;
  bottom: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 64px);
  pointer-events: none;
}

.private-chat-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(340px, calc(100vw - 24px));
  height: min(440px, calc(100dvh - 110px));
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 13px 13px 0 0;
  background: #0c0c0c;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .75);
  pointer-events: auto;
}

.private-chat-window.is-minimized {
  grid-template-rows: auto;
  height: auto;
}

.private-chat-window.is-minimized .private-chat-messages,
.private-chat-window.is-minimized .private-chat-form {
  display: none;
}

.private-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px 9px 13px;
  border-bottom: 1px solid #302a19;
  background: linear-gradient(135deg, #211b0d, #111111 65%);
  cursor: pointer;
}

.private-chat-identity,
.private-chat-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.private-chat-identity {
  gap: 9px;
}

.private-chat-identity div {
  min-width: 0;
}

.private-chat-identity small,
.private-chat-identity strong {
  display: block;
}

.private-chat-identity small {
  margin-bottom: 2px;
  color: #a9935c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.private-chat-identity strong {
  overflow: hidden;
  color: #f1f1f1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-online-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 10px rgba(88, 214, 141, .45);
}

.private-chat-window.is-offline .private-online-dot {
  background: #777777;
  box-shadow: none;
}

.private-chat-actions {
  gap: 5px;
}

.private-chat-actions button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #594a25;
  border-radius: 8px;
  background: #111111;
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.private-chat-actions button:hover,
.private-chat-actions button:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: #090909;
  outline: none;
}

.private-unread {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #080808;
  font-size: 10px;
  font-weight: 900;
}

.private-chat-messages {
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  scrollbar-color: #8f7628 #111111;
  scrollbar-width: thin;
}

.private-message {
  width: fit-content;
  max-width: 86%;
  margin: 0 auto 9px 0;
  padding: 8px 10px;
  border: 1px solid #323232;
  border-left: 3px solid var(--gold);
  border-radius: 9px 9px 9px 3px;
  background: #171717;
}

.private-message.is-own {
  margin-right: 0;
  margin-left: auto;
  border-color: #6b5724;
  border-right: 3px solid var(--gold);
  border-left: 1px solid #6b5724;
  border-radius: 9px 9px 3px 9px;
  background: #201b0f;
}

.private-message p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #eeeeee;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.private-message time {
  float: none;
  display: block;
  margin: 4px 0 0;
  color: #858585;
  font-size: 9px;
  text-align: right;
}

.private-protected-media {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 230px;
}

.private-protected-media > span {
  color: var(--gold);
  font-size: 19px;
}

.private-protected-media strong {
  color: #eeeeee;
  font-size: 12px;
}

.private-protected-media button {
  padding: 5px 8px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: #151208;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.private-protected-media img,
.private-protected-media video {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  background: #050505;
  object-fit: contain;
}

.private-chat-form {
  display: grid;
  grid-template-columns: 38px 38px minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #292929;
  background: #101010;
}

.private-chat-form input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #444444;
  border-radius: 9px;
  background: #171717;
  color: #ffffff;
  outline: none;
}

.private-chat-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 164, 90, .13);
}

.private-chat-form input:disabled {
  color: #888888;
  cursor: not-allowed;
}

.private-chat-form button {
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: var(--gold);
  color: #090909;
  font-size: 18px;
  cursor: pointer;
}

.private-chat-form button:hover,
.private-chat-form button:focus-visible {
  filter: brightness(1.1);
  outline: none;
}

.private-chat-form button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 900px) {
  .shell {
    padding: 10px;
  }

  .app-header {
    min-height: 76px;
    padding: 12px 14px;
  }

  .brand {
    gap: 14px;
  }

  .back-button span:last-child {
    display: none;
  }

  .back-button {
    width: 44px;
    padding: 0;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .lounge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lounge-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .shell {
    padding: 0;
  }

  .app-header {
    min-height: 70px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0;
  }

  .brand {
    display: block;
  }

  .brand strong {
    display: block;
    font-size: 18px;
  }

  .brand span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
  }

  #status {
    display: none;
  }

  .action-button {
    min-height: 42px;
    padding: 0 11px;
    font-size: 13px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .layout aside {
    display: none;
  }

  #private-chat-windows {
    right: 0;
    left: 0;
    max-width: none;
    padding: 0 8px;
  }

  .private-chat-window {
    width: 100%;
    height: min(470px, calc(100dvh - 82px));
  }

  .private-chat-window:not(:last-child) {
    display: none;
  }

  #messages {
    padding: 12px;
  }

  #form {
    padding: 10px;
  }

  .photo-button span:last-child,
  .video-button span:last-child {
    display: none;
  }

  .emoji-picker {
    left: 10px;
    grid-template-columns: repeat(8, minmax(32px, 1fr));
    width: min(380px, calc(100vw - 20px));
  }

  .emoji-option {
    width: 100%;
    height: 38px;
  }

  .protected-media {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .protected-media-icon {
    width: 36px;
    height: 36px;
  }

  .protected-media button {
    grid-column: 1 / -1;
  }

  .send-button {
    padding-inline: 16px;
  }

  #new-message-button {
    bottom: 72px;
    max-width: calc(100% - 24px);
  }

  .membership-badge {
    display: none;
  }

  .lounge-overview {
    padding: 22px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .overview-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }

  .overview-intro h1 {
    font-size: 34px;
  }

  .lounge-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 0;
    padding: 18px 16px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .card-heading {
    align-items: flex-start;
  }

  .lounge-card h2 {
    margin-top: 10px;
    font-size: 22px;
  }
}

@media (max-width: 460px) {
  .emoji-picker {
    grid-template-columns: repeat(5, 1fr);
    max-height: 245px;
    overflow-y: auto;
  }
  #hold-label {
    display: none;
  }

  #hold-button {
    width: 42px;
    padding: 0;
  }

  .header-actions {
    gap: 6px;
  }

  #input {
    padding-inline: 12px;
  }

  .send-button {
    min-width: 52px;
    padding-inline: 11px;
    font-size: 0;
  }

  .send-button::after {
    content: "➤";
    font-size: 20px;
  }

  .lobby-header .brand span {
    display: block;
  }

  .lobby-actions .back-button {
    display: inline-flex;
  }

  .room-presence,
  .locked .lock-mark {
    display: none;
  }

  .card-status {
    gap: 8px;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================
   Allurix Chat v1.0.1
   Zichtbare hoogte binnen WordPress-iframe
   ========================================= */

.shell {
  height: calc(100dvh - 54px);
}

#private-chat-windows {
  bottom: 54px;
}

/* =========================================
   Allurix Chat v1.1.0
   Tablet- en mobiele uitsnede
   ========================================= */

#mobile-members-toggle {
  position: relative;
  display: none;
}

#mobile-members-toggle b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #090909;
  font-size: 10px;
}

#mobile-members-overlay {
  position: fixed;
  z-index: 43;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .66);
}

@media (min-width: 701px) and (max-width: 1100px) {
  .shell {
    padding: 10px;
  }

  .app-header {
    min-height: 72px;
    padding: 11px 14px;
  }

  .brand {
    gap: 15px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  aside {
    padding: 14px;
  }

  #messages {
    padding: 14px;
  }

  #form {
    gap: 7px;
    padding: 10px;
  }

  .photo-button,
  .video-button {
    padding-inline: 10px;
  }

  #private-chat-windows {
    right: 18px;
    gap: 8px;
  }

  .private-chat-window {
    width: min(310px, calc(50vw - 24px));
  }
}

/* =========================================
   Allurix Chat v1.1.1
   iPad staand/liggend en privévensters
   ========================================= */

/* Houd privévensters boven de hoofdinvoer zichtbaar. */
#private-chat-windows {
  bottom: 132px;
}

/* Op tablets in staande stand krijgt de chat de volledige breedte. */
@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) {
  #mobile-members-toggle:not([hidden]) {
    display: inline-flex;
  }

  #mobile-members-toggle {
    min-width: 44px;
    padding-inline: 10px;
  }

  #mobile-members-toggle > span:nth-child(2) {
    display: none;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout aside {
    display: none;
  }

  body.mobile-members-open .layout aside {
    position: fixed;
    z-index: 44;
    top: 82px;
    right: 10px;
    bottom: 64px;
    display: block;
    width: min(78vw, 340px);
    padding: 18px;
    border: 1px solid var(--gold-border);
    border-radius: 13px 0 0 13px;
    background: #0d0d0d;
    box-shadow: -18px 0 45px rgba(0, 0, 0, .65);
  }

  .private-chat-window {
    width: min(360px, calc(100vw - 36px));
    height: min(440px, calc(100dvh - 230px));
  }
}

@media (max-width: 700px) {
  #private-chat-windows {
    bottom: 116px;
  }
}

@media (max-width: 460px) {
  #private-chat-windows {
    bottom: 108px;
  }
}

@media (max-width: 700px) {
  .shell {
    height: calc(100dvh - 46px);
  }

  .room-actions {
    min-width: 0;
  }

  #mobile-members-toggle:not([hidden]) {
    display: inline-flex;
  }

  #mobile-members-toggle {
    min-width: 44px;
    padding-inline: 10px;
  }

  #mobile-members-toggle > span:nth-child(2) {
    display: none;
  }

  body.mobile-members-open .layout aside {
    position: fixed;
    z-index: 44;
    top: 70px;
    right: 0;
    bottom: 46px;
    display: block;
    width: min(86vw, 340px);
    padding: 18px;
    border: 1px solid var(--gold-border);
    border-right: 0;
    background: #0d0d0d;
    box-shadow: -18px 0 45px rgba(0, 0, 0, .65);
  }

  #private-chat-windows {
    bottom: 46px;
  }

  .private-chat-window {
    height: min(430px, calc(100dvh - 150px));
  }
}

@media (max-width: 460px) {
  .app-header {
    min-height: 64px;
    padding: 8px 9px;
  }

  .brand strong {
    font-size: 16px;
    letter-spacing: 2.5px;
  }

  .brand span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .room-actions .action-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  #mobile-members-toggle b {
    position: absolute;
    margin: -25px 0 0 25px;
  }

  body.mobile-members-open .layout aside {
    top: 64px;
  }

  #private-chat-windows {
    padding-inline: 5px;
  }

  .private-chat-window {
    height: min(400px, calc(100dvh - 130px));
  }

  .private-chat-form {
    grid-template-columns: 36px 36px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 8px;
  }
}

/* =========================================
   Allurix Chat v1.1.2
   iPhone portret, toetsenbord en liggend
   ========================================= */

@media (max-width: 700px) {
  /* Mobiele composer: maximale invoerruimte, alle actieknoppen zichtbaar. */
  #form {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 7px;
    box-sizing: border-box;
  }

  #form > .photo-button,
  #form > .video-button,
  #form > .emoji-button,
  #form > .send-button {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 0;
  }

  #form > #input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
  }

  body.private-keyboard-open #private-chat-windows {
    bottom: 6px;
  }

  body.private-keyboard-open .private-chat-window:not(.is-minimized) {
    height: min(280px, calc(var(--allurix-visual-height, 100dvh) - 18px));
  }
}

@media (max-width: 390px) {
  #form {
    gap: 4px;
    padding: 6px;
  }

  #form > .photo-button,
  #form > .video-button,
  #form > .emoji-button,
  #form > .send-button {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
  }
}

/* Een telefoon in liggende stand blijft de mobiele indeling gebruiken. */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .shell {
    height: calc(100dvh - 18px);
    padding: 0;
  }

  .app-header {
    min-height: 62px;
    padding: 7px 10px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout aside {
    display: none;
  }

  #mobile-members-toggle:not([hidden]) {
    display: inline-flex;
  }

  #mobile-members-toggle {
    min-width: 42px;
    padding-inline: 9px;
  }

  #mobile-members-toggle > span:nth-child(2) {
    display: none;
  }

  body.mobile-members-open .layout aside {
    position: fixed;
    z-index: 44;
    top: 62px;
    right: 0;
    bottom: 0;
    display: block;
    width: min(72vw, 320px);
    padding: 14px;
    border: 1px solid var(--gold-border);
    border-right: 0;
    background: #0d0d0d;
    box-shadow: -18px 0 45px rgba(0, 0, 0, .65);
  }

  #messages {
    padding: 9px;
  }

  #form {
    grid-template-columns: 46px 46px 46px minmax(0, 1fr) 48px;
    gap: 6px;
    padding: 7px;
  }

  #form > .photo-button,
  #form > .video-button,
  #form > .emoji-button {
    width: 46px;
  }

  #form > .send-button {
    width: 48px;
  }

  #form > .photo-button span:last-child,
  #form > .video-button span:last-child {
    display: none;
  }

  #form > .send-button {
    overflow: hidden;
    font-size: 0;
  }

  #form > .send-button::after {
    content: "➤";
    font-size: 19px;
  }

  #private-chat-windows {
    right: 6px;
    bottom: 76px;
    left: auto;
    width: min(360px, calc(100vw - 12px));
    padding: 0;
  }

  .private-chat-window {
    width: 100%;
    height: min(280px, calc(100dvh - 150px));
  }

  body.private-keyboard-open #private-chat-windows {
    top: calc(var(--allurix-visual-top, 0px) + 4px);
    right: 6px;
    bottom: auto;
    left: 6px;
    width: auto;
  }

  body.private-keyboard-open .private-chat-window:not(.is-minimized) {
    grid-template-rows: auto 0 auto;
    height: auto;
    max-height: calc(var(--allurix-visual-height, 100dvh) - 8px);
  }

  body.private-keyboard-open .private-chat-header {
    min-height: 44px;
    padding: 5px 7px 5px 10px;
  }

  body.private-keyboard-open .private-chat-identity small {
    display: none;
  }

  body.private-keyboard-open .private-chat-actions button {
    width: 34px;
    height: 34px;
  }

  body.private-keyboard-open .private-chat-messages {
    visibility: hidden;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  body.private-keyboard-open .private-chat-form {
    grid-template-columns: 40px 40px minmax(0, 1fr) 42px;
    gap: 5px;
    min-height: 50px;
    padding: 5px;
  }
}


/* =========================================
   Allurix Chat v1.1.4
   Desktop/laptop privevensters
   ========================================= */

@media (min-width: 1101px) {
  #private-chat-windows {
    right: 32px;
    bottom: 132px;
    left: auto;
    gap: 14px;
    max-width: calc(100vw - 64px);
  }

  .private-chat-window {
    width: min(560px, calc(100vw - 80px));
    height: min(540px, calc(100dvh - 200px));
    border-radius: 13px;
  }

  .private-chat-window.is-minimized {
    width: 300px;
    height: auto;
  }

  .private-chat-header {
    min-height: 58px;
    padding: 9px 12px 9px 14px;
  }

  .private-chat-identity strong {
    font-size: 15px;
  }

  .private-chat-messages {
    padding: 14px;
  }

  .private-message {
    max-width: 78%;
  }

  .private-protected-media {
    min-width: 280px;
  }

  .private-protected-media img,
  .private-protected-media video {
    max-height: 300px;
  }

  .private-chat-form {
    grid-template-columns: 42px 42px minmax(0, 1fr) 46px;
    gap: 9px;
    padding: 10px;
  }

  .private-chat-form input {
    min-height: 42px;
  }
}


/* =========================================
   Allurix Chat v1.1.6
   Desktop/laptop volledige iframehoogte
   ========================================= */

@media (min-width: 1101px) {
  .shell {
    height: 100dvh;
  }
}

/* =========================================
   Allurix Chat v1.1.7
   Desktop/laptop scrollbar lounge verbergen
   Scrollfunctie blijft behouden
   ========================================= */

@media (min-width: 1101px) {
  .lounge-overview {
    scrollbar-width: none;
  }

  .lounge-overview::-webkit-scrollbar {
    display: none;
  }
}


/* Allurix Chat v1.1.10 - Desktop privechat schuifdock */
@media (min-width: 1101px) {
  #private-chat-windows {
    transition: transform .28s ease, opacity .20s ease;
  }

  #private-chat-windows.is-docked-away {
    transform: translateX(calc(100% + 50px));
    opacity: 0;
  }

  #private-chat-dock-toggle {
    position: fixed;
    z-index: 51;
    right: 0;
    bottom: 300px;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 11px 8px 9px;
    border: 1px solid var(--gold);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #111111;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.55);
  }

  #private-chat-dock-toggle:hover,
  #private-chat-dock-toggle:focus-visible {
    background: var(--gold);
    color: #090909;
    outline: none;
  }

  .private-dock-arrow {
    font-size: 20px;
    line-height: 1;
  }
}

@media (max-width: 1100px) {
  #private-chat-dock-toggle {
    display: none;
  }
}


/* =========================================
   Allurix Chat v1.2.0
   Roomtabs, terug naar overzicht en room-switcher
   ========================================= */

.room-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 44px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: #0f0e0a;
  color: var(--gold-light);
}

.room-switcher:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 164, 90, .12);
}

.room-switcher-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 90, .12);
}

#room-switcher-select {
  width: min(190px, 22vw);
  min-width: 126px;
  max-width: 190px;
  height: 40px;
  padding: 0 24px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  cursor: pointer;
}

#room-switcher-select option {
  background: #111111;
  color: #eeeeee;
}

#room-switcher-select option:checked {
  color: var(--gold-light);
  font-weight: 700;
}

#room-switcher-select option:disabled {
  color: #777777;
}

.room-actions {
  min-width: 0;
}

.room-actions > * {
  flex: 0 0 auto;
}

body.standalone-room-tab .shell {
  height: 100dvh;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .app-header {
    gap: 12px;
  }

  .brand {
    gap: 14px;
  }

  .room-actions {
    gap: 7px;
  }

  #room-switcher-select {
    width: 142px;
    min-width: 112px;
  }

  .room-actions .action-button {
    padding-inline: 12px;
  }

  .room-actions .back-button span:last-child {
    display: none;
  }

  .room-actions .back-button {
    width: 44px;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .room-switcher {
    height: 42px;
    padding-inline: 9px;
  }

  #room-switcher-select {
    width: 136px;
    min-width: 104px;
    height: 38px;
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  body.room-tab-mode .app-header {
    display: grid;
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "switch switch";
    row-gap: 7px;
    min-height: 116px;
  }

  body.room-tab-mode .app-header .brand {
    grid-area: brand;
  }

  body.room-tab-mode .app-header .room-actions {
    grid-area: actions;
    justify-self: end;
    margin-left: 0;
  }

  body.room-tab-mode .app-header .room-switcher {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 66px;
    width: auto;
    height: 40px;
  }

  body.room-tab-mode .app-header #room-switcher-select {
    width: 100%;
    max-width: none;
    height: 36px;
  }

  body.mobile-members-open .layout aside {
    top: 116px;
  }

  body.standalone-room-tab .shell {
    height: 100dvh;
  }
}

@media (max-width: 460px) {
  body.room-tab-mode .app-header {
    min-height: 108px;
  }

  body.room-tab-mode .app-header .room-switcher {
    left: 9px;
    right: 9px;
    top: 60px;
    height: 38px;
    padding-left: 10px;
  }

  body.room-tab-mode .app-header #room-switcher-select {
    height: 34px;
    font-size: 12px;
  }

  body.mobile-members-open .layout aside {
    top: 108px;
  }
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  body.room-tab-mode .app-header {
    display: flex;
    min-height: 62px;
  }

  body.room-tab-mode .app-header .room-switcher {
    position: relative;
    inset: auto;
    width: 130px;
    height: 40px;
  }

  body.room-tab-mode .app-header #room-switcher-select {
    width: 100px;
    min-width: 0;
  }

  body.mobile-members-open .layout aside {
    top: 62px;
  }

  body.standalone-room-tab .shell {
    height: 100dvh;
  }
}

/* =========================================
   Allurix Chat v1.3.0
   Chatidentiteit voor stelprofielen
   ========================================= */

.chat-identity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(200, 164, 90, .7);
  border-radius: 999px;
  background: rgba(200, 164, 90, .08);
  color: #dcc486;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.chat-identity-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
}

.chat-identity-panel {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(200, 164, 90, .72);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(200, 164, 90, .14), transparent 42%),
    #0d0d0d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .72);
  text-align: center;
}

.chat-identity-panel .eyebrow {
  color: #c8a45a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.chat-identity-panel h2 {
  margin: 10px 0 8px;
  color: #f3f3f3;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.1;
}

.chat-identity-panel p {
  margin: 0 auto 22px;
  max-width: 390px;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.55;
}

.chat-identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chat-identity-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 164, 90, .62);
  border-radius: 13px;
  background: #151208;
  color: #e9d59a;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.chat-identity-option:hover,
.chat-identity-option:focus-visible {
  border-color: #c8a45a;
  background: #211b0d;
  outline: none;
  transform: translateY(-1px);
}

.chat-identity-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(200, 164, 90, .45);
  border-radius: 50%;
  background: #090909;
  color: #dcc486;
  font-size: 24px;
  line-height: 1;
}

.chat-identity-option strong {
  color: #f0e4be;
  font-size: 15px;
}

.chat-identity-cancel {
  margin-top: 16px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #999999;
  cursor: pointer;
}

.chat-identity-cancel:hover,
.chat-identity-cancel:focus-visible {
  color: #ffffff;
  outline: none;
}

@media (max-width: 700px) {
  .chat-identity-panel {
    padding: 24px 18px 20px;
    border-radius: 14px;
  }

  .chat-identity-option {
    min-height: 72px;
    padding: 12px;
  }
}

@media (max-width: 460px) {
  .chat-identity-badge {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .chat-identity-badge::after {
    content: attr(data-symbol);
    font-size: 18px;
    line-height: 1;
  }

  .chat-identity-dialog {
    padding: 12px;
  }

  .chat-identity-options {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .chat-identity-option {
    min-height: 64px;
  }
}


/* Allurix Chat - chatidentiteit infoblok */
.chat-identity-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 164, 90, .72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(200, 164, 90, .08), rgba(200, 164, 90, .035)),
    rgba(12, 12, 12, .92);
  text-align: left;
}

.chat-identity-info-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 164, 90, .85);
  border-radius: 50%;
  color: #d6b76f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.chat-identity-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-identity-info-text strong {
  color: #e0c078;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.chat-identity-info-text span {
  color: #c8b98e;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .chat-identity-info {
    gap: 11px;
    padding: 13px 14px;
  }

  .chat-identity-info-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .chat-identity-info-text strong {
    font-size: 13px;
  }

  .chat-identity-info-text span {
    font-size: 12.5px;
  }
}


/* Fine-tuning chatidentiteit infoblok */
.chat-identity-info {
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 15px;
}

.chat-identity-info-icon {
  margin-top: 1px;
}

.chat-identity-info-text strong {
  font-size: 13px;
  line-height: 1.35;
}

.chat-identity-info-text span {
  font-size: 12.5px;
  line-height: 1.4;
}


/* ALLURIX_IPAD_CAM_WALL_OVERLAY_4C4_2B */
body.cam-wall-overlay-open {
  overflow: hidden !important;
}

#cam-wall-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100dvh;
  background: #050505;
}

#cam-wall-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
}


/* ==========================================================
   ALLURIX_CAM_SPLIT_VIEW_4C4_2C
   iPad/tablet: Cam + Chat in dezelfde beveiligde context
   ========================================================== */

#cam-wall-overlay.cam-wall-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .34);
  background: #050505;
}

.cam-wall-view-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(212, 175, 55, .24);
  background:
    linear-gradient(180deg, #151208 0%, #090909 100%);
}

.cam-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 999px;
  background: #0d0d0d;
  color: var(--gold-light);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cam-view-button.is-active,
.cam-view-button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #080808;
}

.cam-view-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.cam-wall-split-open #cam-wall-overlay,
body.cam-wall-full-open #cam-wall-overlay {
  display: flex;
  flex-direction: column;
}

body.cam-wall-split-open #cam-wall-frame,
body.cam-wall-full-open #cam-wall-frame {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #050505;
}

/*
 * FULL MODE
 * Dezelfde iframe blijft bestaan: camera, LiveKit-room en
 * huidige Cam Wall-layout worden dus niet opnieuw opgebouwd.
 */
body.cam-wall-full-open {
  overflow: hidden !important;
}

body.cam-wall-full-open #cam-wall-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100dvh !important;
  border-radius: 0 !important;
}

/*
 * SPLIT MODE - LANDSCAPE TABLET
 * Cam Wall ca. 68%, chat ca. 32%.
 *
 * Op deze breedte verbergen we de vaste ledenkolom zodat
 * het chatveld bruikbaar breed blijft.
 */
@media (orientation: landscape) and (min-width: 901px) {
  body.cam-wall-split-open #room-view {
    display: grid !important;
    grid-template-columns:
      minmax(0, 68fr)
      minmax(320px, 32fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  body.cam-wall-split-open #cam-wall-overlay {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: auto !important;
    border-width: 0 1px 0 0 !important;
    border-radius: 0 !important;
  }

  body.cam-wall-split-open #room-view > .chat {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  body.cam-wall-split-open #room-view > aside {
    display: none !important;
  }
}

/*
 * SPLIT MODE - PORTRAIT / SMALLER SCREENS
 * Cam boven, chat onder.
 */
@media (orientation: portrait), (max-width: 900px) {
  body.cam-wall-split-open #room-view {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      minmax(240px, 52%)
      minmax(0, 48%) !important;
    gap: 0 !important;
  }

  body.cam-wall-split-open #cam-wall-overlay {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: auto !important;
    border-width: 0 0 1px 0 !important;
    border-radius: 0 !important;
  }

  body.cam-wall-split-open #room-view > .chat {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
}

/*
 * Grote iPad in portret (>900 CSS px):
 * voorkom dat de normale desktop-ledenkolom een extra gridvak maakt.
 */
@media (orientation: portrait) and (min-width: 901px) and (max-width: 1400px) {
  body.cam-wall-split-open #room-view > aside {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .cam-wall-view-controls {
    gap: 5px;
    min-height: 44px;
    padding: 5px 6px;
  }

  .cam-view-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding-inline: 6px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.12;
    text-align: center;
  }
}
/* ALLURIX_CAM_SPLIT_COMPOSER_4C4_3
   Compacte chatinvoer, uitsluitend in Cam + Chat.
*/

body.cam-wall-split-open #form {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px;
  box-sizing: border-box;
}

body.cam-wall-split-open #form > .photo-button,
body.cam-wall-split-open #form > .video-button,
body.cam-wall-split-open #form > .emoji-button {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 34px;
  padding: 0;
}

body.cam-wall-split-open #form > .photo-button span:last-child,
body.cam-wall-split-open #form > .video-button span:last-child {
  display: none;
}

body.cam-wall-split-open #form > #input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 9px 7px;
}

body.cam-wall-split-open #form > .send-button {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
}

body.cam-wall-split-open #form > .send-button::after {
  content: "➤";
  font-size: 17px;
}

/* ALLURIX_CHAT_UI_20261029: rustige optionele eenregelige berichten. */
#messages.is-compact article:not(.has-protected-media) {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px 9px;
  margin-bottom: 3px;
  cursor: pointer;
}

#messages.is-compact article:not(.has-protected-media) .message-author {
  order: 1;
  flex: 0 1 26%;
  min-width: 65px;
  max-width: 155px;
}

#messages.is-compact article:not(.has-protected-media) p {
  order: 2;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#messages.is-compact article:not(.has-protected-media) time {
  order: 3;
  flex: 0 0 auto;
  float: none;
  margin: 0 0 0 auto;
  white-space: nowrap;
  font-size: 10px;
}

#messages.is-compact article.is-expanded:not(.has-protected-media) {
  align-items: flex-start;
}

#messages.is-compact article.is-expanded:not(.has-protected-media) p {
  overflow: visible;
  white-space: pre-wrap;
  text-overflow: clip;
}

.chat-options-panel {
  position: fixed;
  z-index: 20010;
  top: 78px;
  right: 18px;
  display: grid;
  gap: 11px;
  width: min(330px, calc(100vw - 28px));
  padding: 17px;
  border: 1px solid rgba(200, 164, 90, .65);
  border-radius: 12px;
  background: #17140e;
  color: #f5e3b9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .68);
}

.chat-options-panel[hidden], .room-join-notice[hidden] { display: none !important; }
.chat-options-panel strong { color: var(--gold); }
.chat-options-panel label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.chat-options-panel input { accent-color: var(--gold); }
.chat-options-panel small { color: #b6a789; }

.room-join-notice {
  position: fixed;
  z-index: 20000;
  top: 75px;
  left: 50%;
  max-width: min(380px, calc(100vw - 28px));
  padding: 9px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 164, 90, .6);
  border-radius: 999px;
  background: rgba(23, 20, 14, .97);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .5);
  color: #f5e3b9;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 580px) {
  #messages.is-compact article:not(.has-protected-media) { gap: 5px; padding: 5px; }
  #messages.is-compact article:not(.has-protected-media) .message-author { min-width: 52px; max-width: 90px; font-size: 11px; }
  #messages.is-compact article:not(.has-protected-media) time { font-size: 9px; }
  #messages.is-compact article:not(.has-protected-media) p { font-size: 11px; }
}

/* ==========================================================
   ALLURIX_IPAD_VISIBLE_HEIGHT_FIX_4C4_2C2
   Safari/iPad: houd embedded chat volledig binnen zichtbaar vlak
   ========================================================== */

@media (pointer: coarse) {
  body:not(.standalone-room-tab) .shell {
    /*
     * svh gebruikt de kleinste zichtbare viewport van Safari.
     * Daardoor kan de onderste browserbalk de chatinvoer niet
     * meer een paar pixels afdekken.
     *
     * De bestaande 54px WordPress/iframe-compensatie blijft intact.
     */
    height: calc(100svh - 54px);
    max-height: calc(100svh - 54px);
  }
}

/*
 * Echte zelfstandig geopende roomtabs en Cam Wall-vensters
 * blijven hun volledige eigen viewport gebruiken.
 */
body.standalone-room-tab .shell {
  height: 100dvh;
  max-height: 100dvh;
}


/* ALLURIX_MESSAGE_GENDER_SYMBOL_ALIGN_1 */
.message-author-symbol,
.member-name-symbol,
.allurix-gender-symbol {
  position: relative;
  top: -0.05em;
  display: inline-block;
  margin-left: 3px;
  line-height: 1;
  vertical-align: middle;
}

/* ALLURIX_CHAT_LAPTOP_HEADER_FIX_20261029_V2
   Zelfstandige chatvensters op 14-inch laptops: de bedieningsknoppen
   krijgen een eigen rij. De terugknop kan nooit rechts buiten beeld vallen.
   Ruime desktopvensters behouden de oorspronkelijke horizontale balk. */
@media (min-width: 901px) {
  body.standalone-room-tab .app-header {
    flex-wrap: wrap;
  }
  body.standalone-room-tab .app-header .room-actions {
    flex-wrap: wrap;
    max-width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1450px) {
  body.standalone-room-tab .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 8px;
    min-height: 112px;
    padding: 10px 14px;
  }

  body.standalone-room-tab .app-header .brand {
    min-width: 0;
    gap: 14px;
  }

  body.standalone-room-tab .app-header .room-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
  }

  body.standalone-room-tab .room-actions .action-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  body.standalone-room-tab .room-actions .back-button {
    width: auto;
    max-width: 100%;
  }

  body.standalone-room-tab .room-actions .back-button span:last-child {
    display: inline;
  }

  body.standalone-room-tab #room-switcher-select {
    width: 150px;
    min-width: 110px;
  }
}

/* Symbool in "Wie chat er nu?" binnen de cirkel iets hoger uitlijnen */
.chat-identity-glyph {
  position: relative;
  top: -0.04em;
  display: inline-block;
  line-height: 1;
}

.member-name-button,
.message-author {
  align-items: baseline;
}

.member-name-text,
.message-author-name {
  display: inline-block;
  line-height: inherit;
}


/* ALLURIX_ADMIN_NAME_COLOR_1
   Beheerders bewust onderscheiden van gewone leden. */

/* ALLURIX_MEMBER_ROLE_COLORS_1
   Allurix-hiërarchie:
   lid = ivoorwit
   VIP = champagne
   beheer = helder goud
*/

/* Geverifieerd lid */
.message-author:not(.is-vip):not(.is-admin),
.member-name-button:not(.is-vip):not(.is-admin),
.message-author:not(.is-vip):not(.is-admin) .message-author-name,
.message-author:not(.is-vip):not(.is-admin) .message-author-symbol,
.member-name-button:not(.is-vip):not(.is-admin) .member-name-text,
.member-name-button:not(.is-vip):not(.is-admin) .member-name-symbol {
  color: #f3f0e8;
}

/* VIP */
.message-author.is-vip,
.member-name-button.is-vip,
.message-author.is-vip .message-author-name,
.message-author.is-vip .message-author-symbol,
.member-name-button.is-vip .member-name-text,
.member-name-button.is-vip .member-name-symbol {
  color: #d8c79a;
}

/* Beheerder */
.message-author.is-admin,
.member-name-button.is-admin,
.message-author.is-admin .message-author-name,
.message-author.is-admin .message-author-symbol,
.member-name-button.is-admin .member-name-text,
.member-name-button.is-admin .member-name-symbol {
  color: #f2c75c;
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(242, 199, 92, .16),
    0 0 14px rgba(242, 199, 92, .08);
}

/* Rolbadges in Online leden */
.member-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .045em;
  white-space: nowrap;
}

.member-role-badge.is-vip {
  border: 1px solid rgba(216, 199, 154, .34);
  background: rgba(216, 199, 154, .07);
  color: #d8c79a;
}

.member-role-badge.is-admin {
  border: 1px solid rgba(242, 199, 92, .52);
  background:
    linear-gradient(
      180deg,
      rgba(242, 199, 92, .12),
      rgba(242, 199, 92, .04)
    );
  color: #f2c75c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .015),
    0 0 10px rgba(242, 199, 92, .07);
}


/* ALLURIX_RESPONSIVE_GENDER_SYMBOL_ALIGN_1
   Safari/iPad heeft een lagere glyph-baseline dan desktop.
   Alleen touchapparaten krijgen daarom de sterkere correctie. */
@media (pointer: coarse) {
  .message-author-symbol,
  .member-name-symbol,
  .allurix-gender-symbol {
    top: -0.58em;
  }

  .chat-identity-glyph {
    top: -0.32em;
  }
}
