:root {
  color-scheme: dark;
  --bg: #060913;
  --bg-soft: #090e1d;
  --panel: rgba(14, 20, 39, 0.9);
  --panel-strong: #10172c;
  --panel-soft: #151d36;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f6f7ff;
  --muted: #909bb9;
  --primary: #7758ff;
  --primary-2: #b847ff;
  --cyan: #55d7ff;
  --success: #36d99a;
  --warning: #ffc85b;
  --danger: #ff5573;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
  --radius-xl: 25px;
  --radius-lg: 19px;
  --radius-md: 14px;
}

/* Koltuk içi avatar reaksiyonları V1 */
.emoji-picker {
  display: block;
  width: 286px;
  max-height: min(430px, calc(100dvh - 170px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.emoji-picker[hidden] {
  display: none;
}

.emoji-picker-section {
  display: grid;
  gap: 7px;
}

.emoji-picker-section + .emoji-picker-section {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.emoji-picker-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.emoji-picker-heading strong {
  color: #f5f1ff;
  font-size: 0.68rem;
  font-weight: 900;
}

.emoji-picker-heading small {
  overflow: hidden;
  color: #9299ab;
  font-size: 0.53rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-reaction-grid,
.chat-emoji-grid {
  display: grid;
  gap: 4px;
}

.seat-reaction-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.chat-emoji-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.seat-reaction-option {
  display: grid;
  min-width: 0;
  min-height: 51px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 3px 1px;
  color: #d9dbea;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.seat-reaction-option > span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.42rem;
  line-height: 1;
}

.seat-reaction-option > small {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.47rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-reaction-option:hover:not(:disabled),
.seat-reaction-option:focus-visible {
  border-color: rgba(151, 123, 255, 0.56);
  background: rgba(119, 88, 255, 0.17);
  outline: none;
  transform: translateY(-1px);
}

.seat-reaction-option:disabled {
  cursor: not-allowed;
  filter: grayscale(0.52);
  opacity: 0.4;
}

.chat-emoji-grid .emoji-option {
  width: 100%;
}

.seat-reaction {
  position: absolute;
  z-index: 7;
  inset: -1px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: radial-gradient(circle at 48% 42%, #fffdf5 0 62%, #f5dca6 100%);
  pointer-events: none;
  animation-name: seat-reaction-visibility;
  animation-duration: var(--seat-reaction-duration, 2500ms);
  animation-delay: var(--seat-reaction-delay, 0ms);
  animation-timing-function: linear;
  animation-fill-mode: both;
  will-change: opacity;
}

.seat-reaction-kiss {
  background: radial-gradient(circle at 48% 42%, #fff4f8 0 62%, #ffc3da 100%);
}

.seat-reaction-love {
  background: radial-gradient(circle at 48% 42%, #fff7f9 0 62%, #ffb7cb 100%);
}

.seat-reaction-wow {
  background: radial-gradient(circle at 48% 42%, #fffaf0 0 62%, #ffd37a 100%);
}

.seat-reaction-cool {
  background: radial-gradient(circle at 48% 42%, #f3fbff 0 62%, #89d8f2 100%);
}

.seat-reaction-face {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1;
  transform-origin: 50% 58%;
  animation-duration: var(--seat-reaction-duration, 2500ms);
  animation-delay: var(--seat-reaction-delay, 0ms);
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
  will-change: transform;
}

.seat-reaction-laugh .seat-reaction-face {
  animation-name: seat-reaction-laugh;
}

.seat-reaction-kiss .seat-reaction-face {
  animation-name: seat-reaction-kiss;
}

.seat-reaction-love .seat-reaction-face {
  animation-name: seat-reaction-love;
}

.seat-reaction-wow .seat-reaction-face {
  animation-name: seat-reaction-wow;
}

.seat-reaction-cool .seat-reaction-face {
  animation-name: seat-reaction-cool;
}

@keyframes seat-reaction-visibility {
  0% { opacity: 0; }
  8%, 84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes seat-reaction-laugh {
  0% { transform: scale(0.5) rotate(0); }
  12% { transform: scale(1.06) rotate(-13deg); }
  25% { transform: scale(1) rotate(13deg); }
  38% { transform: scale(1.06) rotate(-11deg); }
  51% { transform: scale(1) rotate(11deg); }
  64% { transform: scale(1.04) rotate(-8deg); }
  78% { transform: scale(1) rotate(8deg); }
  100% { transform: scale(0.72) rotate(0); }
}

@keyframes seat-reaction-kiss {
  0% { transform: scale(0.45) translateX(-10%); }
  18% { transform: scale(1.04) translateX(0); }
  40% { transform: scale(0.92) translateX(-4%); }
  58% { transform: scale(1.13) translateX(5%); }
  76% { transform: scale(0.97) translateX(0); }
  100% { transform: scale(0.7) translateX(14%); }
}

@keyframes seat-reaction-love {
  0% { transform: scale(0.45); }
  18%, 44%, 70% { transform: scale(1.14); }
  31%, 57%, 83% { transform: scale(0.93); }
  100% { transform: scale(0.68); }
}

@keyframes seat-reaction-wow {
  0% { transform: translateY(35%) scale(0.48); }
  18% { transform: translateY(-9%) scale(1.04); }
  36% { transform: translateY(4%) scale(0.98); }
  54% { transform: translateY(-7%) scale(1.05); }
  75% { transform: translateY(0) scale(1); }
  100% { transform: translateY(24%) scale(0.7); }
}

@keyframes seat-reaction-cool {
  0% { transform: scale(0.45) rotate(-18deg); }
  20% { transform: scale(1.08) rotate(8deg); }
  42% { transform: scale(1) rotate(-5deg); }
  64% { transform: scale(1.06) rotate(5deg); }
  82% { transform: scale(1) rotate(0); }
  100% { transform: scale(0.7) rotate(12deg); }
}

@media (max-width: 760px) {
  body.room-active .emoji-picker {
    width: auto;
  }

  body.room-active .chat-emoji-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  body.room-active .seat-reaction-option {
    min-height: 49px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seat-reaction,
  .seat-reaction-face {
    animation: none !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(119, 88, 255, 0.25), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(184, 71, 255, 0.17), transparent 28%),
    linear-gradient(145deg, #060913 0%, #090d1c 55%, #070a15 100%);
  overflow-x: hidden;
}

body.video-viewer-open,
body.moderation-dialog-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(119, 88, 255, 0.42);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

[hidden],
.hidden,
.is-hidden {
  display: none !important;
}

.background-glow {
  position: fixed;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}

.background-glow-one {
  top: -180px;
  left: -150px;
  background: var(--primary);
}

.background-glow-two {
  right: -180px;
  bottom: -210px;
  background: var(--primary-2);
}

.app-shell {
  width: min(1580px, calc(100% - 28px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 0 22px;
}

.site-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 32px rgba(119, 88, 255, 0.3);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.secure-badge,
.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd2e7;
  background: rgba(8, 12, 25, 0.68);
  font-size: 0.76rem;
  font-weight: 750;
}

.secure-dot,
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(54, 217, 154, 0.72);
}

.main-content {
  min-width: 0;
}

.status-message {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9d1e9;
  background: rgba(8, 13, 28, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-message::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  content: "";
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px rgba(255, 200, 91, 0.65);
}

.status-message[data-type="success"]::before {
  background: var(--success);
  box-shadow: 0 0 12px rgba(54, 217, 154, 0.7);
}

.status-message[data-type="error"]::before {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 85, 115, 0.7);
}

.status-message[data-type="warning"]::before {
  background: var(--warning);
}

.join-card {
  display: grid;
  width: min(1040px, 100%);
  min-height: 590px;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  margin: clamp(24px, 6vh, 70px) auto 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(14, 20, 39, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.eyebrow,
.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: #b8aaff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.join-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.join-copy h1 span {
  color: #bc8cff;
}

.join-copy > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9def0;
  font-size: 0.9rem;
}

.feature-list li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #a6f2d4;
  background: rgba(54, 217, 154, 0.12);
  font-size: 0.72rem;
}

.join-form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 11, 24, 0.7);
}

.room-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.room-icon,
.room-list-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 0.78rem;
  font-weight: 900;
}

.room-preview > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.room-preview strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-preview span:not(.live-label) {
  color: var(--muted);
  font-size: 0.73rem;
}

.live-label {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #a9f3d6;
  background: rgba(54, 217, 154, 0.1);
  font-size: 0.65rem;
  font-weight: 900;
}

#join-form {
  display: grid;
  gap: 11px;
}

.auth-loading {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 15px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-tab {
  min-height: 39px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.auth-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(119, 88, 255, 0.85), rgba(184, 71, 255, 0.72));
  box-shadow: 0 8px 20px rgba(119, 88, 255, 0.2);
}

.auth-form {
  display: grid;
  gap: 9px;
}

.auth-form label,
#join-form label {
  color: #dde2f4;
  font-size: 0.71rem;
  font-weight: 800;
}

.auth-form input,
#chat-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  caret-color: #bbaaff;
  background: rgba(5, 9, 21, 0.82);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
}

.auth-form input::placeholder,
#chat-input::placeholder {
  color: #697593;
}

.auth-form input:focus,
#chat-input:focus {
  border-color: rgba(142, 113, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(119, 88, 255, 0.11);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.auth-field-row > div {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.guest-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: #697593;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guest-divider::before,
.guest-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.guest-form {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.guest-form label {
  color: #dde2f4;
  font-size: 0.71rem;
  font-weight: 800;
}

.guest-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.guest-field-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: var(--text);
  caret-color: #bbaaff;
  background: rgba(5, 9, 21, 0.82);
}

.guest-field-row input:focus {
  border-color: rgba(142, 113, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(119, 88, 255, 0.11);
}

.guest-field-row button {
  padding: 0 14px;
  border: 1px solid rgba(119, 88, 255, 0.36);
  border-radius: 11px;
  color: #ddd7ff;
  background: rgba(119, 88, 255, 0.13);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 900;
}

.guest-field-row button:hover {
  color: #fff;
  background: rgba(119, 88, 255, 0.22);
}

.guest-field-row button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.guest-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}

.member-panel {
  display: grid;
  gap: 13px;
}

.member-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(119, 88, 255, 0.25);
  border-radius: 14px;
  background: rgba(119, 88, 255, 0.08);
}

.member-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 0.75rem;
  font-weight: 900;
}

.member-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.member-copy strong,
.member-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy strong {
  font-size: 0.82rem;
}

.member-copy small {
  color: var(--muted);
  font-size: 0.66rem;
}

.member-role {
  padding: 6px 8px;
  border: 1px solid rgba(54, 217, 154, 0.22);
  border-radius: 999px;
  color: #a8f0d4;
  background: rgba(54, 217, 154, 0.09);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-role[data-role="moderator"] {
  color: #c7bcff;
  border-color: rgba(119, 88, 255, 0.3);
  background: rgba(119, 88, 255, 0.12);
}

.member-role[data-role="admin"] {
  color: #ffe09a;
  border-color: rgba(255, 200, 91, 0.32);
  background: rgba(255, 200, 91, 0.11);
}

.member-role[data-role="guest"] {
  color: #aeb9d5;
  border-color: rgba(174, 185, 213, 0.24);
  background: rgba(174, 185, 213, 0.08);
}

.text-button {
  justify-self: center;
  padding: 4px 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.69rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: #fff;
}

.primary-button {
  min-height: 53px;
  margin-top: 3px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 13px 30px rgba(119, 88, 255, 0.28);
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.permission-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.room-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: 235px minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: start;
}

.side-panel,
.center-stage {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.side-panel {
  position: sticky;
  top: 14px;
  height: clamp(680px, calc(100dvh - 150px), 820px);
  min-height: 0;
  padding: 17px;
  border-radius: var(--radius-lg);
}

.center-stage {
  display: grid;
  height: clamp(680px, calc(100dvh - 150px), 820px);
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(150px, 1fr) auto;
  gap: 10px;
  padding: clamp(12px, 1.5vw, 17px);
  border-radius: var(--radius-xl);
}

.panel-heading,
.room-header,
.section-heading,
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.room-header h2,
.section-heading h3,
.chat-heading h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.panel-heading h2 {
  font-size: 1rem;
}

.count-badge,
.participant-count,
.seat-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(54, 217, 154, 0.22);
  border-radius: 999px;
  color: #a8f0d4;
  background: rgba(54, 217, 154, 0.09);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.count-badge {
  min-width: 29px;
  height: 29px;
  padding: 0 8px;
}

.online-users {
  display: grid;
  max-height: calc(100dvh - 235px);
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 88, 255, 0.42) transparent;
}

.online-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.online-user.is-self {
  border-color: rgba(119, 88, 255, 0.24);
  background: rgba(119, 88, 255, 0.08);
}

.user-avatar {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #465178, #6c54c8);
  font-size: 0.69rem;
  font-weight: 900;
}

.user-avatar::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid #10172c;
  border-radius: 50%;
  background: var(--success);
}

.online-user-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.online-user-copy strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-copy small {
  color: var(--muted);
  font-size: 0.63rem;
}

.online-role {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid rgba(119, 88, 255, 0.28);
  border-radius: 7px;
  color: #c9c0ff;
  background: rgba(119, 88, 255, 0.12);
  font-size: 0.55rem;
  font-weight: 950;
}

.online-role[data-role="admin"] {
  color: #ffe09a;
  border-color: rgba(255, 200, 91, 0.3);
  background: rgba(255, 200, 91, 0.1);
}

.online-role[data-role="guest"] {
  color: #aeb9d5;
  border-color: rgba(174, 185, 213, 0.22);
  background: rgba(174, 185, 213, 0.07);
}

.users-panel-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-users-button,
.users-panel-close {
  display: none;
}

.moderation-menu-button {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #c8d0e7;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.moderation-menu-button:hover {
  color: #fff;
  border-color: rgba(119, 88, 255, 0.38);
  background: rgba(119, 88, 255, 0.16);
}

.empty-users {
  padding: 28px 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}

.room-header {
  margin-bottom: 0;
}

.room-header h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.room-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-count,
.connection-badge,
.seat-summary {
  min-height: 31px;
  padding: 6px 10px;
}

.connection-badge {
  color: #afd9ff;
  border-color: rgba(85, 215, 255, 0.22);
  background: rgba(85, 215, 255, 0.08);
}

.connection-badge.is-offline {
  color: #ffbecb;
  border-color: rgba(255, 85, 115, 0.24);
  background: rgba(255, 85, 115, 0.09);
}

.seats-section,
.chat-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 11, 24, 0.58);
}

.seats-section {
  padding: clamp(10px, 1.3vw, 14px);
}

.section-heading,
.chat-heading {
  margin-bottom: 8px;
}

.section-heading h3,
.chat-heading h3 {
  font-size: 0.95rem;
}

.section-heading p,
.chat-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.seat-summary {
  color: #c8bcff;
  border-color: rgba(119, 88, 255, 0.24);
  background: rgba(119, 88, 255, 0.09);
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.seat-card {
  position: relative;
  min-width: 0;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 24%, rgba(119, 88, 255, 0.12), transparent 36%),
    rgba(14, 20, 39, 0.78);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.seat-card:hover {
  border-color: rgba(142, 113, 255, 0.38);
  transform: translateY(-2px);
}

.seat-main {
  display: grid;
  width: 100%;
  min-height: 104px;
  place-items: center;
  padding: 7px 5px 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.seat-card.is-occupied .seat-main {
  cursor: default;
}

.seat-card.has-camera .seat-main {
  cursor: zoom-in;
}

.seat-card.is-self {
  border-color: rgba(119, 88, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(119, 88, 255, 0.11);
}

.seat-card.is-speaking {
  border-color: rgba(54, 217, 154, 0.82);
  box-shadow: 0 0 0 3px rgba(54, 217, 154, 0.13),
    0 12px 34px rgba(54, 217, 154, 0.08);
}

.seat-number {
  position: absolute;
  top: 6px;
  left: 7px;
  color: #7783a3;
  font-size: 0.62rem;
  font-weight: 900;
}

.seat-visual {
  position: relative;
  display: block;
  width: 66px;
  height: 57px;
  margin: 0 auto;
  isolation: isolate;
}

.seat-chair {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  z-index: 1;
  display: block;
  height: 49px;
  color: #4d5876;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.28));
}

.seat-chair svg {
  display: block;
  width: 100%;
  height: 100%;
}

.seat-chair path {
  fill: currentColor;
}

.seat-chair .chair-back {
  color: #505c7c;
}

.seat-chair .chair-seat,
.seat-chair .chair-arm {
  color: #3f4966;
}

.seat-chair .chair-leg {
  color: #2e364f;
}

.seat-chair .chair-shine {
  fill: rgba(255, 255, 255, 0.08);
}

.seat-card.is-occupied .seat-chair .chair-back {
  color: #7158d8;
}

.seat-card.is-occupied .seat-chair .chair-seat,
.seat-card.is-occupied .seat-chair .chair-arm {
  color: #5745aa;
}

.seat-card.is-self .seat-chair .chair-back {
  color: #967cff;
}

.seat-card.is-self .seat-chair .chair-seat,
.seat-card.is-self .seat-chair .chair-arm {
  color: #7058d4;
}

.seat-media {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #242e4a;
  border-radius: 50%;
  color: #f0edff;
  background: linear-gradient(135deg, #465178, #7158d8);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.32);
  font-size: 0.68rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.seat-card.is-self .seat-media {
  border-color: #a48cff;
}

.seat-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seat-empty-plus {
  position: absolute;
  top: 27px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #a8b2ce;
  background: #202941;
  font-size: 0.8rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.seat-card.is-speaking .seat-visual::before {
  position: absolute;
  inset: -5px;
  z-index: 0;
  content: "";
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 18%,
    rgba(54, 217, 154, 0.28) 28%,
    #36d99a 43%,
    transparent 58% 100%
  );
  filter: drop-shadow(0 0 7px rgba(54, 217, 154, 0.75));
  animation: seat-speaking-spin 1.05s linear infinite;
  -webkit-mask: radial-gradient(ellipse, transparent 60%, #000 63%);
  mask: radial-gradient(ellipse, transparent 60%, #000 63%);
}

.seat-card.is-speaking .seat-visual::after {
  position: absolute;
  right: -8px;
  bottom: 2px;
  z-index: 5;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #0d1428;
  border-radius: 50%;
  content: "🎙";
  background: var(--success);
  box-shadow: 0 0 13px rgba(54, 217, 154, 0.7);
  font-size: 0.62rem;
}

.seat-card.is-speaking .seat-chair .chair-back {
  color: #38d89b;
}

@keyframes seat-speaking-spin {
  to {
    transform: rotate(1turn);
  }
}

.seat-card.has-camera .seat-media::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  color: #fff;
  content: "⛶";
  background: rgba(4, 7, 17, 0.76);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.5rem;
}

.moderation-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 4, 11, 0.86);
  backdrop-filter: blur(12px);
}

.moderation-card {
  display: grid;
  width: min(520px, 96vw);
  gap: 11px;
  padding: 18px;
  border: 1px solid rgba(119, 88, 255, 0.25);
  border-radius: 20px;
  background: #0d1428;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.68);
}

.moderation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 5px;
}

.moderation-header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.moderation-header span {
  color: #bbaaff;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.moderation-header strong {
  overflow: hidden;
  font-size: 1.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderation-header small,
.moderation-help {
  color: var(--muted);
}

.moderation-header small {
  font-size: 0.67rem;
}

.moderation-close {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.moderation-close:hover {
  border-color: rgba(255, 85, 115, 0.5);
  background: rgba(255, 85, 115, 0.16);
}

.moderation-card > label {
  color: #dde2f4;
  font-size: 0.69rem;
  font-weight: 850;
}

.moderation-card textarea,
.moderation-card select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: var(--text);
  background: rgba(5, 9, 21, 0.82);
}

.moderation-card textarea {
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
}

.moderation-card select {
  min-height: 42px;
  padding: 0 11px;
}

.moderation-card textarea:focus,
.moderation-card select:focus {
  border-color: rgba(142, 113, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(119, 88, 255, 0.11);
}

.moderation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 3px;
}

.moderation-actions button {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(119, 88, 255, 0.28);
  border-radius: 11px;
  color: #e0dcff;
  background: rgba(119, 88, 255, 0.1);
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 850;
}

.moderation-actions button:hover:not(:disabled) {
  color: #fff;
  background: rgba(119, 88, 255, 0.2);
}

.moderation-actions button.is-danger {
  color: #ffc1cc;
  border-color: rgba(255, 85, 115, 0.3);
  background: rgba(255, 85, 115, 0.1);
}

.moderation-actions button.is-danger:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 85, 115, 0.22);
}

.moderation-actions button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.moderation-help {
  margin: 1px 0 0;
  font-size: 0.61rem;
  line-height: 1.5;
  text-align: center;
}

.video-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 4, 11, 0.88);
  backdrop-filter: blur(13px);
}

.video-viewer-card {
  width: auto;
  max-width: min(920px, 96vw);
  max-height: 94vh;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #0d1428;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.68);
}

.video-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 12px 4px;
}

.video-viewer-header > div {
  display: grid;
  gap: 3px;
}

.video-viewer-header span {
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.video-viewer-header strong {
  overflow: hidden;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-viewer-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.video-viewer-close:hover {
  border-color: rgba(255, 85, 115, 0.5);
  background: rgba(255, 85, 115, 0.16);
}

.video-viewer-media {
  display: grid;
  width: min(880px, calc(96vw - 28px));
  height: min(68vh, 660px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #03050a;
}

.video-viewer-media video {
  position: static !important;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.video-viewer-help {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.seat-name {
  width: 100%;
  margin-top: 1px;
  overflow: hidden;
  font-size: 0.67rem;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-state {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.54rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-owner-badge {
  position: absolute;
  top: 6px;
  right: 7px;
  color: var(--warning);
  font-size: 0.78rem;
}

.seat-kick {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 3;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 85, 115, 0.34);
  border-radius: 9px;
  color: #ffbac7;
  background: rgba(255, 85, 115, 0.13);
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.seat-kick:hover {
  color: #fff;
  background: rgba(255, 85, 115, 0.28);
}

.chat-section {
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin-top: 0;
  padding: 12px;
}

.chat-messages {
  display: flex;
  min-height: 80px;
  height: auto;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 4px 4px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 88, 255, 0.42) transparent;
}

.system-message {
  width: fit-content;
  max-width: 86%;
  margin: 4px auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #9da8c5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.65rem;
  text-align: center;
}

.chat-message {
  display: grid;
  max-width: 82%;
  align-self: flex-start;
  gap: 4px;
}

.chat-message.is-self {
  align-self: flex-end;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  color: var(--muted);
  font-size: 0.6rem;
}

.chat-message.is-self .chat-message-meta {
  justify-content: flex-end;
}

.chat-message-meta strong {
  color: #ccd3e9;
}

.chat-message.is-owner .chat-message-meta strong::after {
  margin-left: 4px;
  color: var(--warning);
  content: "♛";
}

.chat-bubble {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px 14px 14px 14px;
  color: #e7eaf7;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-message.is-self .chat-bubble {
  border-color: rgba(119, 88, 255, 0.24);
  border-radius: 14px 5px 14px 14px;
  background: linear-gradient(135deg, rgba(119, 88, 255, 0.25), rgba(184, 71, 255, 0.16));
}

.chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.emoji-wrap {
  position: relative;
}

.emoji-button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #f6d46b;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 1.35rem;
}

.emoji-button:hover:not(:disabled),
.emoji-button[aria-expanded="true"] {
  border-color: rgba(119, 88, 255, 0.5);
  background: rgba(119, 88, 255, 0.16);
}

.emoji-button:disabled {
  opacity: 0.45;
}

.emoji-picker {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 0;
  z-index: 60;
  display: grid;
  width: 268px;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(14, 20, 39, 0.98);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.emoji-option {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 1.22rem;
  transition: background 120ms ease, transform 120ms ease;
}

.emoji-option:hover {
  background: rgba(119, 88, 255, 0.2);
  transform: scale(1.12);
}

#chat-input {
  min-height: 43px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 0.78rem;
}

#chat-input:disabled {
  opacity: 0.58;
}

#chat-send {
  min-width: 78px;
  padding: 0 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

#chat-send:disabled {
  opacity: 0.5;
}

.control-bar {
  position: static;
  z-index: 20;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(7, 11, 24, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.control-button {
  display: grid;
  min-width: 96px;
  min-height: 46px;
  place-items: center;
  gap: 2px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: #e7eafa;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.control-button:hover:not(:disabled) {
  border-color: rgba(142, 113, 255, 0.45);
  background: rgba(119, 88, 255, 0.13);
  transform: translateY(-1px);
}

.control-button:disabled {
  opacity: 0.42;
}

.control-button.is-active {
  color: #caffea;
  border-color: rgba(54, 217, 154, 0.38);
  background: rgba(54, 217, 154, 0.12);
}

.control-button.is-muted {
  color: #ffd3a1;
  border-color: rgba(255, 166, 76, 0.38);
  background: rgba(255, 166, 76, 0.12);
}

.control-icon {
  font-size: 1rem;
  line-height: 1;
}

.control-label {
  font-size: 0.61rem;
  font-weight: 850;
  white-space: nowrap;
}

.leave-button {
  color: #fff;
  border-color: rgba(255, 85, 115, 0.32);
  background: linear-gradient(135deg, #e74664, #ff5573);
}

.leave-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #f04c6c, #ff6882);
}

.room-list {
  display: grid;
  gap: 8px;
}

.room-list-item {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #dfe3f3;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.room-list-item.is-active {
  border-color: rgba(119, 88, 255, 0.3);
  background: rgba(119, 88, 255, 0.1);
}

.room-list-item:disabled {
  opacity: 0.46;
}

.room-list-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
  font-size: 0.69rem;
}

.room-list-icon.music-room {
  background: linear-gradient(135deg, #ff6685, #a448ff);
  font-size: 1rem;
}

.room-list-icon.night-room {
  background: linear-gradient(135deg, #3b5ccc, #653aa5);
  font-size: 1rem;
}

.room-list-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.room-list-copy strong {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-list-copy small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.62rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
}

.room-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 200, 91, 0.15);
  border-radius: 13px;
  background: rgba(255, 200, 91, 0.05);
}

.room-tip p {
  margin: 0;
  color: #aab3cc;
  font-size: 0.66rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 0;
  color: #727d9b;
  font-size: 0.67rem;
}

body > audio {
  display: none;
}

@media (max-width: 1280px) {
  .room-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .rooms-panel {
    display: none;
  }

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

@media (max-width: 930px) {
  .room-workspace {
    grid-template-columns: 1fr;
  }

  .center-stage {
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
    grid-row: 1;
  }

  .users-panel {
    position: static;
    min-height: 0;
    grid-row: 2;
  }

  .side-panel {
    height: auto;
  }

  .chat-messages {
    height: 220px;
    flex: none;
  }

  .online-users {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 16px, 1580px);
    padding-top: 8px;
  }

  .site-header {
    min-height: 52px;
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .secure-badge {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .status-message {
    width: 100%;
    border-radius: 12px;
  }

  .join-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 12px;
    padding: 25px 19px;
    border-radius: 20px;
  }

  .join-copy h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .center-stage,
  .side-panel {
    border-radius: 17px;
  }

  .center-stage {
    padding: 11px;
  }

  .room-header {
    align-items: flex-start;
  }

  .room-header-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
  }

  .seats-section {
    padding: 12px 8px;
  }

  .section-heading {
    padding: 0 4px;
  }

  .section-heading p,
  .chat-heading p {
    display: none;
  }

  .seats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .seat-card,
  .seat-main {
    min-height: 108px;
  }

  .seat-visual {
    width: 62px;
    height: 55px;
  }

  .chat-section {
    padding: 12px;
  }

  .chat-messages {
    height: 220px;
  }

  .control-bar {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 7px;
    scrollbar-width: none;
  }

  .control-bar::-webkit-scrollbar {
    display: none;
  }

  .control-button {
    min-width: 84px;
    flex: 0 0 84px;
    padding-inline: 7px;
  }

  .online-users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    display: grid;
    justify-content: center;
    text-align: center;
  }

  .video-viewer {
    padding: 8px;
  }

  .video-viewer-card {
    width: 100%;
    max-width: 100%;
    padding: 9px;
    border-radius: 16px;
  }

  .video-viewer-media {
    width: 100%;
    height: min(66vh, 560px);
    border-radius: 12px;
  }

  .moderation-dialog {
    padding: 8px;
  }

  .moderation-card {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .secure-badge {
    font-size: 0;
  }

  .secure-badge::after {
    content: "Güvenli";
    font-size: 0.65rem;
  }

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

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

  .seat-card,
  .seat-main {
    min-height: 104px;
  }

  .seat-visual {
    width: 58px;
    height: 52px;
  }

  .seat-name {
    font-size: 0.66rem;
  }

  .seat-state {
    font-size: 0.56rem;
  }

  .online-users {
    grid-template-columns: 1fr;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
  }

  .emoji-picker {
    width: min(268px, calc(100vw - 42px));
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .emoji-option {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Telefon ekranında uygulama benzeri tam oda yerleşimi */
@media (max-width: 760px) {
  body.room-active {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: #050711;
  }

  body.room-active .background-glow,
  body.room-active .site-footer {
    display: none;
  }

  body.room-active .app-shell {
    display: grid;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    margin: 0;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }

  body.room-active .site-header {
    display: none;
    min-height: 48px;
    margin: 0;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 9, 20, 0.96);
  }

  body.room-active .brand {
    gap: 8px;
  }

  body.room-active .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  body.room-active .brand-copy strong {
    font-size: 0.82rem;
  }

  body.room-active .secure-badge {
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  body.room-active .main-content {
    height: 100%;
    min-height: 0;
  }

  body.room-active .status-message {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 6px);
    right: 8px;
    left: 8px;
    z-index: 800;
    width: auto;
    min-height: 29px;
    margin: 0;
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(8, 13, 28, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
    font-size: 0.65rem;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.room-active .status-message.is-mobile-hidden {
    opacity: 0;
    transform: translateY(-8px);
  }

  body.room-active .status-message::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  body.room-active .room-workspace {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body.room-active .center-stage {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #070a14;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.room-active .room-header {
    min-height: 48px;
    padding: 6px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b1020;
  }

  body.room-active .room-header .eyebrow {
    font-size: 0.48rem;
    letter-spacing: 0.13em;
  }

  body.room-active .room-header h2 {
    max-width: 42vw;
    margin-top: 2px;
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.room-active .room-header-meta {
    display: flex;
    align-items: center;
    justify-items: initial;
    gap: 5px;
  }

  body.room-active .participant-count,
  body.room-active .connection-badge,
  body.room-active .mobile-users-button {
    min-height: 27px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  body.room-active .connection-badge {
    display: none;
  }

  body.room-active .mobile-users-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(119, 88, 255, 0.3);
    border-radius: 999px;
    color: #d8d2ff;
    background: rgba(119, 88, 255, 0.11);
    font-weight: 850;
    cursor: pointer;
  }

  body.room-active .seats-section {
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #03050a;
  }

  body.room-active .seats-section .section-heading {
    display: none;
  }

  body.room-active .seats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 0;
    background: #020308;
  }

  body.room-active .seat-card,
  body.room-active .seat-main {
    min-height: clamp(82px, 11.6dvh, 106px);
  }

  body.room-active .seat-card {
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 27%, rgba(119, 88, 255, 0.11), transparent 40%),
      #111521;
    box-shadow: none;
  }

  body.room-active .seat-card:hover {
    transform: none;
  }

  body.room-active .seat-card.is-self {
    border-color: rgba(145, 119, 255, 0.75);
    box-shadow: inset 0 0 0 2px rgba(145, 119, 255, 0.5);
  }

  body.room-active .seat-card.is-speaking {
    border-color: rgba(54, 217, 154, 0.8);
    box-shadow: inset 0 0 0 2px rgba(54, 217, 154, 0.55);
  }

  body.room-active .seat-main {
    padding: 6px 2px 4px;
  }

  body.room-active .seat-number {
    top: 3px;
    left: 4px;
    font-size: 0.52rem;
  }

  body.room-active .seat-visual {
    width: 54px;
    height: 49px;
  }

  body.room-active .seat-chair {
    right: 5px;
    left: 5px;
    height: 43px;
  }

  body.room-active .seat-media {
    top: -1px;
    width: 42px;
    height: 42px;
    border-width: 2px;
    font-size: 0.65rem;
  }

  body.room-active .seat-empty-plus {
    top: 24px;
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  body.room-active .seat-name {
    margin-top: 0;
    padding: 0 2px;
    font-size: 0.61rem;
  }

  body.room-active .seat-state {
    display: none;
  }

  body.room-active .seat-owner-badge {
    top: 3px;
    right: 4px;
    font-size: 0.64rem;
  }

  body.room-active .seat-kick {
    right: 3px;
    bottom: 3px;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    font-size: 0.58rem;
  }

  body.room-active .chat-section {
    min-height: 0;
    padding: 7px 8px 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 70% 35%, rgba(119, 88, 255, 0.08), transparent 44%),
      linear-gradient(180deg, #080b14, #05070d);
  }

  body.room-active .chat-heading {
    display: none;
  }

  body.room-active .chat-messages {
    height: auto;
    min-height: 0;
    flex: 1;
    gap: 7px;
    padding: 4px 2px 8px;
  }

  body.room-active .chat-message {
    max-width: 88%;
  }

  body.room-active .chat-bubble {
    padding: 7px 9px;
    border-radius: 4px 12px 12px;
    font-size: 0.7rem;
  }

  body.room-active .chat-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    margin: 0;
    padding: 7px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 7, 13, 0.96);
  }

  body.room-active .emoji-button,
  body.room-active #chat-input,
  body.room-active #chat-send {
    min-height: 40px;
    height: 40px;
    border-radius: 20px;
  }

  body.room-active .emoji-button {
    width: 40px;
    font-size: 1.15rem;
  }

  body.room-active #chat-input {
    padding: 0 12px;
    font-size: 0.72rem;
  }

  body.room-active #chat-send {
    min-width: 58px;
    padding: 0 10px;
    font-size: 0.65rem;
  }

  body.room-active .emoji-picker {
    position: fixed;
    right: 8px;
    bottom: calc(104px + env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  body.room-active .control-bar {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 51px;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    margin: 0;
    padding: 5px 7px;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0;
    background: #090d18;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
  }

  body.room-active .control-button {
    width: 45px;
    min-width: 45px;
    min-height: 41px;
    flex: 0 1 58px;
    padding: 4px;
    border-radius: 13px;
  }

  body.room-active .control-icon {
    font-size: 1.05rem;
  }

  body.room-active .control-label {
    display: none;
  }

  body.room-active .users-panel {
    position: fixed;
    inset: env(safe-area-inset-top) auto 0 0;
    z-index: 1300;
    display: block;
    width: min(86vw, 330px);
    height: calc(100dvh - env(safe-area-inset-top));
    padding: 15px;
    border-width: 0 1px 0 0;
    border-radius: 0 18px 18px 0;
    background: rgba(10, 15, 31, 0.98);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.users-drawer-open .users-panel {
    transform: translateX(0);
  }

  body.room-active .users-panel-close {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-size: 1.2rem;
  }

  body.room-active .online-users {
    display: grid;
    max-height: calc(100dvh - 100px - env(safe-area-inset-top));
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  body.room-active .users-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1290;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card,
  body.room-active .seat-main {
    min-height: clamp(78px, 11.2dvh, 98px);
  }

  body.room-active .seat-visual {
    width: 50px;
    height: 45px;
  }

  body.room-active .seat-chair {
    height: 40px;
  }

  body.room-active .seat-media {
    width: 39px;
    height: 39px;
  }

  body.room-active .seat-name {
    font-size: 0.57rem;
  }
}

/* iPhone Safari chat odaklanma ve yatay taşma düzeltmesi V4 */
@media (max-width: 760px) {
  body.room-active .chat-section,
  body.room-active .chat-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.room-active .chat-form {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding-right: 8px;
    padding-left: 8px;
    overflow: visible;
  }

  body.room-active .chat-form > *,
  body.room-active .emoji-wrap,
  body.room-active #chat-input {
    min-width: 0;
  }

  body.room-active #chat-input {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  .auth-form input,
  .auth-form select,
  .guest-field-row input,
  .guest-field-row select,
  .profile-edit-form input,
  .profile-edit-form textarea,
  .profile-edit-form select {
    font-size: 16px;
  }
}

/* Geniş ekranda masaüstü sohbet uygulaması yerleşimi */
@media (min-width: 1024px) {
  body.room-active {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: #060810;
  }

  body.room-active .background-glow,
  body.room-active .site-header,
  body.room-active .site-footer,
  body.room-active .rooms-panel {
    display: none;
  }

  body.room-active .app-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  body.room-active .main-content,
  body.room-active .room-workspace {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body.room-active .status-message {
    position: fixed;
    top: 10px;
    left: 330px;
    z-index: 700;
    max-width: min(520px, calc(100vw - 325px));
    margin: 0;
    background: rgba(8, 13, 28, 0.94);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.room-active .status-message.is-mobile-hidden {
    opacity: 0;
    transform: translateY(-8px);
  }

  body.room-active .room-workspace {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  body.room-active .users-panel {
    position: static;
    display: block;
    width: 315px;
    height: 100dvh;
    min-height: 0;
    padding: 14px 12px;
    overflow: hidden;
    border-width: 0 1px 0 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(19, 25, 43, 0.98), rgba(10, 14, 27, 0.98));
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
  }

  body.room-active .users-panel .panel-heading {
    margin-bottom: 10px;
    padding: 3px 4px 12px;
  }

  body.room-active .users-panel .panel-kicker {
    font-size: 0.67rem;
  }

  body.room-active .users-panel .panel-heading h2 {
    font-size: 1.08rem;
  }

  body.room-active .count-badge {
    min-width: 34px;
    height: 34px;
    font-size: 0.76rem;
  }

  body.room-active .online-users {
    display: grid;
    max-height: calc(100dvh - 78px);
    grid-template-columns: 1fr;
    gap: 5px;
    overflow-y: auto;
    padding-right: 3px;
  }

  body.room-active .online-user {
    min-height: 56px;
    padding: 8px 9px;
    border-radius: 11px;
  }

  body.room-active .user-avatar {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 50%;
    font-size: 0.78rem;
  }

  body.room-active .online-user-copy strong {
    font-size: 0.84rem;
  }

  body.room-active .online-user-copy small {
    font-size: 0.69rem;
  }

  body.room-active .online-role {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 0.62rem;
  }

  body.room-active .moderation-menu-button {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  body.room-active .center-stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 36%, rgba(119, 88, 255, 0.11), transparent 28%),
      radial-gradient(circle at 82% 65%, rgba(184, 71, 255, 0.07), transparent 30%),
      linear-gradient(145deg, #0a0e1a 0%, #080b14 58%, #05070d 100%);
    box-shadow: none;
    backdrop-filter: none;
  }

  body.room-active .center-stage::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    opacity: 0.22;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 84%);
    mask-image: linear-gradient(to bottom, #000, transparent 84%);
  }

  body.room-active .room-header,
  body.room-active .seats-section,
  body.room-active .chat-section,
  body.room-active .control-bar {
    position: relative;
    z-index: 1;
  }

  body.room-active .room-header {
    min-height: 66px;
    padding: 10px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(8, 12, 23, 0.72);
  }

  body.room-active .room-header h2 {
    margin-top: 3px;
    font-size: 1.26rem;
  }

  body.room-active .room-header .eyebrow {
    font-size: 0.62rem;
  }

  body.room-active .participant-count,
  body.room-active .connection-badge {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  body.room-active .seats-section {
    padding: 14px 24px 17px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background: rgba(6, 9, 18, 0.42);
  }

  body.room-active .seats-section .section-heading {
    display: none;
  }

  body.room-active .seats-grid {
    width: min(1160px, 96%);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto;
  }

  body.room-active .seat-card,
  body.room-active .seat-main {
    min-height: 116px;
  }

  body.room-active .seat-card {
    border-color: rgba(255, 255, 255, 0.055);
    border-radius: 15px;
    background:
      radial-gradient(circle at 50% 28%, rgba(119, 88, 255, 0.1), transparent 42%),
      rgba(10, 14, 27, 0.42);
    box-shadow: none;
  }

  body.room-active .seat-card:hover {
    border-color: rgba(142, 113, 255, 0.42);
    transform: translateY(-1px);
  }

  body.room-active .seat-main {
    padding: 8px 5px 6px;
  }

  body.room-active .seat-number {
    top: 6px;
    left: 7px;
    font-size: 0.64rem;
  }

  body.room-active .seat-visual {
    width: 72px;
    height: 64px;
  }

  body.room-active .seat-chair {
    height: 56px;
  }

  body.room-active .seat-media {
    width: 51px;
    height: 51px;
    font-size: 0.78rem;
  }

  body.room-active .seat-empty-plus {
    top: 31px;
    width: 24px;
    height: 24px;
    font-size: 0.82rem;
  }

  body.room-active .seat-name {
    font-size: 0.77rem;
  }

  body.room-active .seat-state {
    display: none;
  }

  body.room-active .seat-kick {
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
  }

  body.room-active .chat-section {
    min-height: 0;
    padding: 12px 16px 10px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.room-active .chat-heading {
    display: none;
  }

  body.room-active .chat-messages {
    height: auto;
    min-height: 0;
    gap: 8px;
    padding: 4px 8px 74px;
  }

  body.room-active .chat-message {
    max-width: min(580px, 52%);
  }

  body.room-active .chat-message-meta {
    gap: 7px;
    font-size: 0.72rem;
  }

  body.room-active .chat-bubble {
    padding: 10px 13px;
    font-size: 0.86rem;
    line-height: 1.5;
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(17, 22, 37, 0.74);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  }

  body.room-active .system-message {
    padding: 8px 13px;
    font-size: 0.74rem;
    background: rgba(17, 22, 37, 0.72);
  }

  body.room-active .chat-form {
    min-height: 62px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    margin: 0 0 0 370px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(6, 9, 17, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
  }

  body.room-active .emoji-button,
  body.room-active #chat-input,
  body.room-active #chat-send {
    min-height: 46px;
    height: 46px;
  }

  body.room-active .emoji-button {
    width: 46px;
    font-size: 1.3rem;
  }

  body.room-active #chat-input {
    padding: 0 15px;
    font-size: 0.85rem;
  }

  body.room-active #chat-send {
    min-width: 86px;
    font-size: 0.8rem;
  }

  body.room-active .control-bar {
    position: absolute;
    bottom: 10px;
    left: 16px;
    display: flex;
    width: auto;
    max-width: 346px;
    min-height: 62px;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px;
    border-radius: 14px;
    background: rgba(6, 9, 17, 0.9);
  }

  body.room-active .control-button {
    width: 50px;
    min-width: 50px;
    min-height: 46px;
    padding: 5px;
    border-radius: 12px;
  }

  body.room-active .control-label {
    display: none;
  }

  body.room-active .control-icon {
    font-size: 1.22rem;
  }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  body.room-active .room-workspace {
    grid-template-columns: 275px minmax(0, 1fr);
  }

  body.room-active .users-panel {
    width: 275px;
  }

  body.room-active .status-message {
    left: 290px;
  }

  body.room-active .chat-form {
    margin-left: 335px;
  }

  body.room-active .control-bar {
    max-width: 310px;
  }

  body.room-active .control-button {
    width: 44px;
    min-width: 44px;
  }
}

/* Masaüstünde daha yumuşak grafit renk paleti */
@media (min-width: 1024px) {
  body.room-active {
    color: #e5e4e1;
    background: #25272b;
  }

  body.room-active .users-panel {
    border-color: #41444a;
    background: linear-gradient(180deg, #30333a, #282b31);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.18);
  }

  body.room-active .panel-heading,
  body.room-active .room-header,
  body.room-active .seats-section {
    border-color: #45484e;
  }

  body.room-active .panel-kicker,
  body.room-active .eyebrow {
    color: #b9add8;
  }

  body.room-active .online-user {
    color: #e5e4e1;
    background: rgba(255, 255, 255, 0.045);
  }

  body.room-active .online-user.is-self {
    border-color: rgba(145, 128, 190, 0.42);
    background: rgba(112, 95, 153, 0.22);
  }

  body.room-active .user-avatar,
  body.room-active .seat-media {
    color: #f4f1ff;
    background: linear-gradient(145deg, #686d79, #7969a4);
  }

  body.room-active .center-stage {
    background:
      radial-gradient(circle at 52% 34%, rgba(125, 111, 160, 0.13), transparent 31%),
      radial-gradient(circle at 80% 70%, rgba(104, 116, 132, 0.09), transparent 34%),
      linear-gradient(145deg, #2d3035 0%, #282b30 56%, #23252a 100%);
  }

  body.room-active .center-stage::before {
    opacity: 0.09;
  }

  body.room-active .room-header {
    background: rgba(45, 48, 54, 0.92);
  }

  body.room-active .participant-count,
  body.room-active .connection-badge,
  body.room-active .count-badge {
    color: #d7e5df;
    border-color: rgba(126, 164, 148, 0.38);
    background: rgba(88, 119, 105, 0.2);
  }

  body.room-active .seats-section {
    background: rgba(48, 51, 57, 0.76);
  }

  body.room-active .seat-card {
    border-color: #484b52;
    background:
      radial-gradient(circle at 50% 30%, rgba(130, 116, 165, 0.13), transparent 44%),
      rgba(55, 58, 65, 0.9);
  }

  body.room-active .seat-card:hover {
    border-color: #777084;
    background:
      radial-gradient(circle at 50% 30%, rgba(145, 128, 190, 0.2), transparent 46%),
      #3d4047;
  }

  body.room-active .seat-card.is-self {
    border-color: #9a87c4;
    box-shadow: 0 0 0 2px rgba(154, 135, 196, 0.18);
  }

  body.room-active .seat-chair .chair-back {
    color: #858b96;
  }

  body.room-active .seat-chair .chair-seat,
  body.room-active .seat-chair .chair-arm {
    color: #747a85;
  }

  body.room-active .seat-chair .chair-leg {
    color: #626873;
  }

  body.room-active .seat-card.is-occupied .seat-chair .chair-back {
    color: #8a78b8;
  }

  body.room-active .seat-card.is-occupied .seat-chair .chair-seat,
  body.room-active .seat-card.is-occupied .seat-chair .chair-arm {
    color: #75659c;
  }

  body.room-active .seat-name,
  body.room-active .online-user-copy strong,
  body.room-active .room-header h2 {
    color: #f0efec;
  }

  body.room-active .seat-number,
  body.room-active .seat-state,
  body.room-active .online-user-copy small,
  body.room-active .chat-message-meta {
    color: #afb1b7;
  }

  body.room-active .chat-section {
    background: rgba(36, 38, 43, 0.34);
  }

  body.room-active .chat-bubble,
  body.room-active .system-message {
    color: #e8e7e4;
    border-color: #494c52;
    background: rgba(57, 60, 67, 0.92);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13);
  }

  body.room-active .chat-message.is-self .chat-bubble {
    border-color: rgba(142, 124, 185, 0.52);
    background: linear-gradient(135deg, #554a70, #4c435f);
  }

  body.room-active .chat-form,
  body.room-active .control-bar {
    border-color: #4a4d53;
    background: rgba(43, 46, 51, 0.96);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);
  }

  body.room-active #chat-input {
    color: #ecebe8;
    border-color: #53565d;
    background: #25282d;
  }

  body.room-active #chat-input:focus {
    border-color: #8a78b8;
    box-shadow: 0 0 0 3px rgba(138, 120, 184, 0.16);
  }

  body.room-active #chat-send {
    background: linear-gradient(135deg, #7865a6, #8a6eb0);
  }

  body.room-active .control-button {
    color: #e0dfdc;
    border-color: #50535a;
    background: #35383e;
  }

  body.room-active .control-button:hover:not(:disabled) {
    border-color: #7c7489;
    background: #41444b;
  }

  body.room-active .control-button.is-active {
    color: #d7e9df;
    border-color: #6f9984;
    background: #3c5147;
  }

  body.room-active .control-button.is-muted {
    color: #f0d6b6;
    border-color: #9b7958;
    background: #55483c;
  }

  body.room-active .leave-button {
    border-color: #a7656e;
    background: #a85563;
  }
}

/* Büyük monitörlerde koltuk ve kontrol ikonlarını belirginleştir */
@media (min-width: 1280px) {
  body.room-active .room-workspace {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  body.room-active .users-panel {
    width: 330px;
  }

  body.room-active .status-message {
    left: 346px;
  }

  body.room-active .online-user {
    min-height: 62px;
  }

  body.room-active .user-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 0.86rem;
  }

  body.room-active .online-user-copy strong {
    font-size: 0.9rem;
  }

  body.room-active .online-user-copy small {
    font-size: 0.74rem;
  }

  body.room-active .room-header {
    min-height: 72px;
    padding-inline: 26px;
  }

  body.room-active .room-header h2 {
    font-size: 1.36rem;
  }

  body.room-active .seats-section {
    padding: 16px 28px 20px;
  }

  body.room-active .seats-grid {
    width: min(1260px, 96%);
    gap: 12px;
  }

  body.room-active .seat-card,
  body.room-active .seat-main {
    min-height: 142px;
  }

  body.room-active .seat-visual {
    width: 96px;
    height: 84px;
  }

  body.room-active .seat-chair {
    right: 7px;
    left: 7px;
    height: 76px;
  }

  body.room-active .seat-media {
    width: 65px;
    height: 65px;
    font-size: 0.94rem;
  }

  body.room-active .seat-empty-plus {
    top: 40px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  body.room-active .seat-name {
    font-size: 0.87rem;
  }

  body.room-active .seat-number {
    font-size: 0.72rem;
  }

  body.room-active .chat-message-meta {
    font-size: 0.78rem;
  }

  body.room-active .chat-bubble {
    padding: 11px 14px;
    font-size: 0.94rem;
  }

  body.room-active .chat-form {
    min-height: 72px;
    margin-left: 430px;
    padding: 8px 9px;
  }

  body.room-active .emoji-button,
  body.room-active #chat-input,
  body.room-active #chat-send {
    min-height: 52px;
    height: 52px;
  }

  body.room-active .emoji-button {
    width: 52px;
    font-size: 1.45rem;
  }

  body.room-active #chat-input {
    font-size: 0.92rem;
  }

  body.room-active #chat-send {
    min-width: 96px;
    font-size: 0.86rem;
  }

  body.room-active .control-bar {
    max-width: 404px;
    min-height: 72px;
    gap: 7px;
    padding: 8px;
  }

  body.room-active .control-button {
    width: 59px;
    min-width: 59px;
    min-height: 52px;
    border-radius: 13px;
  }

  body.room-active .control-icon {
    font-size: 1.48rem;
  }
}

/* Üye Profili V1 */
.member-avatar {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font: inherit;
}

.avatar-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #252932;
}

.user-avatar::after {
  z-index: 2;
}

.member-avatar,
.user-avatar,
.seat-media,
.profile-avatar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.seat-media video {
  z-index: 3;
}

.avatar-frame-violet {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 18px rgba(139, 92, 246, 0.26);
}

.avatar-frame-gold {
  border-color: #e7bd61 !important;
  box-shadow: 0 0 0 3px rgba(231, 189, 97, 0.18), 0 0 18px rgba(231, 189, 97, 0.25);
}

.avatar-frame-neon {
  border-color: #4de6bd !important;
  box-shadow: 0 0 0 3px rgba(77, 230, 189, 0.16), 0 0 20px rgba(77, 230, 189, 0.3);
}

.nickname-effect {
  display: inline-block;
  color: transparent !important;
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nickname-flow 5s linear infinite;
}

.nickname-effect-violet {
  background-image: linear-gradient(90deg, #c4b5fd, #8b5cf6, #e9d5ff, #c4b5fd);
}

.nickname-effect-gold {
  background-image: linear-gradient(90deg, #f4d47c, #fff1b8, #ca8a04, #f4d47c);
  filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.22));
}

.nickname-effect-neon {
  background-image: linear-gradient(90deg, #5eead4, #22d3ee, #a7f3d0, #5eead4);
  filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.38));
}

.nickname-effect-rainbow {
  background-image: linear-gradient(90deg, #fb7185, #fbbf24, #4ade80, #38bdf8, #c084fc, #fb7185);
  background-size: 300% 100%;
}

@keyframes nickname-flow {
  to { background-position: -220% 0; }
}

.online-profile-button {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.online-profile-button:focus-visible,
.member-avatar:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.profile-dialog {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(9px);
}

.profile-dialog[hidden] {
  display: none;
}

body.profile-dialog-open {
  overflow: hidden;
}

.profile-card {
  width: min(540px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  color: #efefed;
  border: 1px solid #50535a;
  border-radius: 24px;
  background: linear-gradient(165deg, #30333a, #25282e 68%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
}

.profile-header > span {
  color: #bdb1dd;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.profile-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #e7e5e4;
  font-size: 1.45rem;
  border: 1px solid #565a62;
  border-radius: 13px;
  background: #393c43;
  cursor: pointer;
}

.profile-view,
.profile-edit-form {
  padding: 14px 22px 24px;
}

.profile-identity,
.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  display: grid;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  place-items: center;
  color: #f5f3ff;
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid #767a84;
  border-radius: 30px;
  background: linear-gradient(145deg, #665887, #3f4653);
}

.profile-title {
  min-width: 0;
}

.profile-title > strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fafaf9;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-title > span {
  display: block;
  margin-top: 5px;
  color: #b7bac1;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.profile-role,
.profile-account-label {
  padding: 5px 9px;
  color: #d9d6e3;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid #5a5e67;
  border-radius: 999px;
  background: #3a3d44;
}

.profile-role[data-role="admin"] {
  color: #f5d98a;
  border-color: rgba(231, 189, 97, 0.55);
}

.profile-bio {
  min-height: 74px;
  margin: 22px 0 0;
  padding: 16px;
  color: #e5e4e1;
  line-height: 1.55;
  white-space: pre-wrap;
  border: 1px solid #484b52;
  border-radius: 15px;
  background: rgba(31, 33, 38, 0.7);
}

.profile-bio.is-empty,
.profile-joined,
.profile-guest-note {
  color: #aeb1b8;
}

.profile-joined {
  margin: 10px 3px 0;
  font-size: 0.78rem;
}

.profile-primary-action,
.profile-secondary-action,
.profile-file-button {
  min-height: 42px;
  padding: 10px 15px;
  font-weight: 850;
  border-radius: 12px;
  cursor: pointer;
}

.profile-primary-action {
  margin-top: 18px;
  color: #fff;
  border: 1px solid #8f79bd;
  background: linear-gradient(135deg, #7561a4, #8b70b2);
}

.profile-secondary-action {
  color: #deddda;
  border: 1px solid #555860;
  background: #373a40;
}

.profile-edit-form > label,
.profile-select-grid label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #d8d7d3;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-edit-form input,
.profile-edit-form textarea,
.profile-edit-form select {
  width: 100%;
  color: #efefed;
  border: 1px solid #565a62;
  border-radius: 12px;
  background: #24272c;
  outline: none;
}

.profile-edit-form input,
.profile-edit-form select {
  min-height: 44px;
  padding: 0 12px;
}

.profile-edit-form textarea {
  padding: 11px 12px;
  resize: vertical;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus,
.profile-edit-form select:focus {
  border-color: #9883c5;
  box-shadow: 0 0 0 3px rgba(152, 131, 197, 0.16);
}

.profile-avatar-editor {
  margin-bottom: 6px;
}

.profile-avatar-editor > div {
  display: grid;
  gap: 8px;
}

.profile-file-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: #ece9f5;
  border: 1px solid #666078;
  background: #403b4c;
}

.profile-avatar-editor small,
.profile-bio-count {
  color: #aeb1b8;
  font-size: 0.72rem;
}

.profile-bio-count {
  display: block;
  margin-top: 5px;
  text-align: right;
}

.profile-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.profile-form-actions .profile-primary-action {
  margin-top: 0;
}

@media (max-width: 760px) {
  .profile-dialog {
    align-items: end;
    padding: 0;
  }

  .profile-card {
    width: 100%;
    max-height: 91dvh;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  .profile-view,
  .profile-edit-form {
    padding-inline: 18px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .profile-avatar {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    border-radius: 25px;
  }

  .profile-select-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-form-actions > button {
    flex: 1 1 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nickname-effect {
    animation: none;
    background-position: 50% 0;
  }
}

/* Cinsiyet seçimi ve konuşma halkası renkleri V1 */
.auth-form select,
.guest-field-row select {
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(5, 9, 21, 0.92);
  outline: none;
}

.auth-form select:focus,
.guest-field-row select:focus {
  border-color: rgba(142, 113, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(119, 88, 255, 0.11);
}

.guest-field-row {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.55fr) auto;
}

.guest-field-row select {
  min-width: 0;
  min-height: 42px;
  font-size: 0.68rem;
}

.profile-account-label[data-gender="female"] {
  color: #ffc1dc;
  border-color: rgba(255, 95, 162, 0.45);
}

.profile-account-label[data-gender="male"] {
  color: #b8dcff;
  border-color: rgba(72, 169, 255, 0.45);
}

.seat-card.is-speaking.gender-female {
  border-color: rgba(255, 95, 162, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 95, 162, 0.14),
    0 12px 34px rgba(255, 95, 162, 0.1);
}

.seat-card.is-speaking.gender-female .seat-visual::before {
  background: conic-gradient(
    from 0deg,
    transparent 0 18%,
    rgba(255, 95, 162, 0.3) 28%,
    #ff5fa2 43%,
    transparent 58% 100%
  );
  filter: drop-shadow(0 0 7px rgba(255, 95, 162, 0.78));
}

.seat-card.is-speaking.gender-female .seat-visual::after {
  background: #ff5fa2;
  box-shadow: 0 0 13px rgba(255, 95, 162, 0.76);
}

.seat-card.is-speaking.gender-female .seat-chair .chair-back {
  color: #ff6eac;
}

.seat-card.is-speaking.gender-male {
  border-color: rgba(72, 169, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(72, 169, 255, 0.14),
    0 12px 34px rgba(72, 169, 255, 0.1);
}

.seat-card.is-speaking.gender-male .seat-visual::before {
  background: conic-gradient(
    from 0deg,
    transparent 0 18%,
    rgba(72, 169, 255, 0.3) 28%,
    #48a9ff 43%,
    transparent 58% 100%
  );
  filter: drop-shadow(0 0 7px rgba(72, 169, 255, 0.78));
}

.seat-card.is-speaking.gender-male .seat-visual::after {
  background: #48a9ff;
  box-shadow: 0 0 13px rgba(72, 169, 255, 0.76);
}

.seat-card.is-speaking.gender-male .seat-chair .chair-back {
  color: #58b2ff;
}

@media (max-width: 520px) {
  .guest-field-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .guest-field-row input {
    grid-column: 1 / -1;
  }
}

/* Mobil sade koltuk görünümü V2 */
@media (max-width: 760px) {
  body.room-active .room-header {
    min-height: 42px;
    padding-block: 5px;
  }

  body.room-active .room-header .eyebrow {
    display: none;
  }

  body.room-active .room-header h2 {
    margin-top: 0;
    font-size: 0.92rem;
  }

  body.room-active .seats-section,
  body.room-active .seats-grid {
    background: #070a14;
  }

  body.room-active .seats-grid {
    gap: 0 3px;
    padding: 3px 4px 5px;
  }

  body.room-active .seat-card,
  body.room-active .seat-card.is-self,
  body.room-active .seat-card.is-speaking,
  body.room-active .seat-card.is-speaking.gender-female,
  body.room-active .seat-card.is-speaking.gender-male {
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }

  body.room-active .seat-card,
  body.room-active .seat-main {
    min-height: clamp(84px, 11.7dvh, 104px);
  }

  body.room-active .seat-main {
    padding: 5px 2px 4px;
    border-radius: 16px;
  }

  body.room-active .seat-card.is-empty .seat-main:active {
    background: radial-gradient(circle, rgba(119, 88, 255, 0.14), transparent 68%);
  }

  body.room-active .seat-card.is-occupied .seat-visual {
    width: 72px;
    height: 64px;
  }

  body.room-active .seat-card.is-occupied .seat-chair {
    opacity: 0;
  }

  body.room-active .seat-card.is-occupied .seat-media {
    top: 1px;
    width: 58px;
    height: 58px;
    border-width: 3px;
    font-size: 0.78rem;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.38);
  }

  body.room-active .seat-card.is-empty .seat-visual {
    width: 55px;
    height: 49px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    opacity: 0.82;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.3));
  }

  body.room-active .seat-card.is-occupied .seat-name {
    margin-top: -2px;
    font-size: 0.64rem;
  }

  body.room-active .seat-card.is-speaking .seat-visual::before {
    inset: -4px;
    -webkit-mask: radial-gradient(ellipse, transparent 62%, #000 65%);
    mask: radial-gradient(ellipse, transparent 62%, #000 65%);
  }

  body.room-active .seat-card.is-speaking .seat-visual::after {
    right: -3px;
    bottom: 1px;
  }
}

/* Avatarı saran hareketli profil çerçeveleri V1 */
.member-avatar-wrap,
.user-avatar-wrap,
.profile-avatar-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.member-avatar-wrap {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
}

.user-avatar-wrap {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.profile-avatar-wrap {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
}

.owner-shield {
  display: grid;
  width: 18px;
  height: 20px;
  flex: 0 0 18px;
  place-items: center;
  color: #effaff;
  background: linear-gradient(145deg, #59c7ff, #365bd8);
  clip-path: polygon(50% 0, 92% 17%, 83% 68%, 50% 100%, 17% 68%, 8% 17%);
  filter: drop-shadow(0 0 5px rgba(80, 174, 255, 0.48));
  font-size: 0.48rem;
  font-weight: 950;
}

.seat-owner-badge.owner-shield {
  width: 17px;
  height: 19px;
  color: #effaff;
  font-size: 0.46rem;
}

.profile-select-grid {
  grid-template-columns: 1fr;
}

.animated-avatar-frame {
  --frame-a: #bba4ff;
  --frame-b: #6f4bd8;
  --frame-glow: rgba(139, 92, 246, 0.58);
  position: absolute;
  z-index: 8;
  inset: -5px;
  display: block;
  overflow: visible;
  border-radius: 50%;
  pointer-events: none;
}

.animated-avatar-frame[hidden] {
  display: none;
}

.animated-avatar-frame::before,
.animated-avatar-frame::after {
  position: absolute;
  content: "";
  border-radius: inherit;
}

.animated-avatar-frame::before {
  inset: 0;
  border: 2px solid var(--frame-a);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--frame-b) 48%, transparent),
    0 0 12px var(--frame-glow),
    inset 0 0 8px color-mix(in srgb, var(--frame-a) 24%, transparent);
  animation: avatar-frame-breathe 2.8s ease-in-out infinite;
}

.animated-avatar-frame::after {
  inset: -3px;
  border: 2px solid transparent;
  border-top-color: var(--frame-a);
  border-right-color: var(--frame-b);
  filter: drop-shadow(0 0 5px var(--frame-glow));
  animation: avatar-frame-orbit 4.4s linear infinite;
}

.member-frame {
  inset: -5px;
  border-radius: 18px;
}

.user-frame {
  inset: -4px;
}

.profile-frame {
  inset: -8px;
  border-radius: 34px;
}

.seat-frame {
  inset: auto;
  top: -6px;
  left: 50%;
  width: 43px;
  height: 43px;
  margin-left: -21.5px;
}

.animated-avatar-frame[data-frame="gold"] {
  --frame-a: #fff0a3;
  --frame-b: #d29622;
  --frame-glow: rgba(255, 195, 66, 0.66);
}

.animated-avatar-frame[data-frame="gold"]::after {
  border-right-color: transparent;
  border-bottom-color: var(--frame-b);
  animation-duration: 5.2s;
}

.animated-avatar-frame[data-frame="neon"] {
  --frame-a: #79ffe0;
  --frame-b: #24b9ff;
  --frame-glow: rgba(37, 238, 207, 0.68);
}

.animated-avatar-frame[data-frame="neon"]::before {
  border-style: dashed;
  animation: avatar-frame-neon 2.2s ease-in-out infinite;
}

.animated-avatar-frame[data-frame="royal"] {
  --frame-a: #ffe28b;
  --frame-b: #7b50e9;
  --frame-glow: rgba(129, 86, 241, 0.74);
}

.animated-avatar-frame[data-frame="royal"]::before {
  border-width: 3px;
  box-shadow:
    0 -4px 0 -1px #ffe69a,
    4px 0 0 -1px #9e73ff,
    0 4px 0 -1px #ffe69a,
    -4px 0 0 -1px #9e73ff,
    0 0 16px var(--frame-glow);
}

.animated-avatar-frame[data-frame="diamond"] {
  --frame-a: #effeff;
  --frame-b: #5bc8ff;
  --frame-glow: rgba(111, 220, 255, 0.78);
}

.animated-avatar-frame[data-frame="diamond"]::before {
  border-width: 3px;
  border-style: double;
  clip-path: polygon(50% 0, 86% 8%, 100% 50%, 87% 91%, 50% 100%, 13% 91%, 0 50%, 14% 8%);
  animation: avatar-frame-diamond 2.6s ease-in-out infinite;
}

.animated-avatar-frame[data-frame="flame"] {
  --frame-a: #ffe76f;
  --frame-b: #ff3b24;
  --frame-glow: rgba(255, 76, 35, 0.78);
}

.animated-avatar-frame[data-frame="flame"]::before {
  inset: -4px;
  border-width: 3px;
  border-color: #ff8b32 #ffe76f #ff3b24 #ffe76f;
  filter: drop-shadow(0 -3px 4px rgba(255, 87, 32, 0.72));
  animation: avatar-frame-flame 1.5s ease-in-out infinite;
}

.animated-avatar-frame[data-frame="frost"] {
  --frame-a: #effeff;
  --frame-b: #75b7ff;
  --frame-glow: rgba(132, 211, 255, 0.8);
}

.animated-avatar-frame[data-frame="frost"]::before {
  border-width: 3px;
  border-style: dotted;
  box-shadow:
    0 0 0 2px rgba(191, 235, 255, 0.24),
    0 0 15px var(--frame-glow),
    inset 0 0 12px rgba(198, 239, 255, 0.28);
  animation: avatar-frame-frost 3.6s ease-in-out infinite;
}

.animated-avatar-frame[data-frame="angel"],
.animated-avatar-frame[data-frame="demon"] {
  --wing-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 80'%3E%3Cpath d='M62 25C45 6 21 4 2 19C19 18 29 23 40 33C24 26 12 29 5 41C24 36 37 42 51 56C34 47 19 51 14 64C34 57 51 64 66 77L62 25ZM78 25C95 6 119 4 138 19C121 18 111 23 100 33C116 26 128 29 135 41C116 36 103 42 89 56C106 47 121 51 126 64C106 57 89 64 74 77L78 25Z'/%3E%3C/svg%3E");
}

.animated-avatar-frame[data-frame="angel"] {
  --frame-a: #fffbd7;
  --frame-b: #a7dcff;
  --frame-glow: rgba(190, 231, 255, 0.9);
}

.animated-avatar-frame[data-frame="demon"] {
  --frame-a: #f2a2ff;
  --frame-b: #7d35d8;
  --frame-glow: rgba(156, 69, 224, 0.82);
}

.animated-avatar-frame[data-frame="angel"]::before,
.animated-avatar-frame[data-frame="demon"]::before {
  inset: -14% -35%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(115deg, var(--frame-b), var(--frame-a) 48%, #fff 53%, var(--frame-b));
  background-size: 220% 100%;
  -webkit-mask-image: var(--wing-mask);
  mask-image: var(--wing-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: drop-shadow(0 0 7px var(--frame-glow));
  animation:
    avatar-frame-wings 2.6s ease-in-out infinite,
    avatar-frame-wing-glint 4s linear infinite;
}

.profile-frame[data-frame="angel"]::before,
.profile-frame[data-frame="demon"]::before {
  inset: -16% -42%;
}

.seat-frame[data-frame="angel"]::before,
.seat-frame[data-frame="demon"]::before {
  inset: -10% -24%;
}

.frame-picker-decoration[data-frame="angel"]::before,
.frame-picker-decoration[data-frame="demon"]::before {
  inset: -10% -28%;
}

.animated-avatar-frame[data-frame="angel"]::after,
.animated-avatar-frame[data-frame="demon"]::after {
  inset: -3px;
  border: 2px solid var(--frame-a);
  box-shadow: 0 0 13px var(--frame-glow);
  animation: avatar-frame-breathe 2.6s ease-in-out infinite;
}

.animated-avatar-frame[data-frame="demon"]::before {
  transform: scaleY(-1);
  filter: drop-shadow(0 0 8px var(--frame-glow)) hue-rotate(14deg);
  animation:
    avatar-frame-demon-wings 2.6s ease-in-out infinite,
    avatar-frame-wing-glint 4s linear infinite;
}

.animated-avatar-frame[data-frame="cosmic"] {
  --frame-a: #ffb6ff;
  --frame-b: #6654ff;
  --frame-glow: rgba(128, 94, 255, 0.82);
}

.animated-avatar-frame[data-frame="cosmic"]::before {
  inset: -6px;
  border: 3px dotted var(--frame-a);
  box-shadow:
    0 0 16px var(--frame-glow),
    inset 0 0 10px rgba(124, 93, 255, 0.3);
  animation: avatar-frame-orbit 6s linear infinite;
}

.animated-avatar-frame[data-frame="cosmic"]::after {
  inset: -9px;
  border-width: 2px;
  border-top-color: #fff6b0;
  border-right-color: transparent;
  border-bottom-color: #87e8ff;
  animation: avatar-frame-orbit 3.6s linear infinite reverse;
}

.frame-picker-fieldset {
  min-width: 0;
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid #50545d;
  border-radius: 16px;
  background: rgba(27, 29, 35, 0.72);
}

.frame-picker-fieldset legend {
  padding: 0 7px;
  color: #eeeaf8;
  font-size: 0.84rem;
  font-weight: 900;
}

.frame-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.frame-picker-heading > span {
  color: #f4f1fa;
  font-size: 0.78rem;
  font-weight: 850;
}

.frame-picker-heading small {
  color: #aaaeba;
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: right;
}

.frame-picker-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.frame-picker-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 106px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px 6px 8px;
  color: #e8e6ec;
  border: 1px solid #4e525b;
  border-radius: 14px;
  background: #292c32;
  cursor: pointer;
}

.frame-picker-option:hover:not(:disabled),
.frame-picker-option.is-selected {
  border-color: #a58cdb;
  background: linear-gradient(155deg, rgba(127, 94, 205, 0.28), #303139);
  box-shadow: 0 0 0 2px rgba(155, 126, 219, 0.12);
}

.frame-picker-option.is-selected::after {
  position: absolute;
  top: 6px;
  right: 7px;
  content: "✓";
  color: #d9cdff;
  font-size: 0.7rem;
  font-weight: 950;
}

.frame-picker-option:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.frame-picker-preview {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: visible;
}

.frame-picker-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f4f0ff;
  border-radius: 50%;
  background: linear-gradient(145deg, #5f577e, #343a49);
  font-size: 0.64rem;
  font-weight: 900;
}

.frame-picker-decoration {
  inset: 0;
}

.frame-picker-label {
  width: 100%;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-picker-option small {
  color: #9ea3ae;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

@keyframes avatar-frame-breathe {
  0%, 100% { opacity: 0.78; scale: 0.98; }
  50% { opacity: 1; scale: 1.04; }
}

@keyframes avatar-frame-orbit {
  to { transform: rotate(360deg); }
}

@keyframes avatar-frame-neon {
  0%, 100% { opacity: 0.72; filter: hue-rotate(0deg); }
  50% { opacity: 1; filter: hue-rotate(55deg); }
}

@keyframes avatar-frame-diamond {
  0%, 100% { filter: brightness(0.9); transform: rotate(0deg); }
  50% { filter: brightness(1.35); transform: rotate(3deg); }
}

@keyframes avatar-frame-flame {
  0%, 100% { scale: 1; opacity: 0.82; }
  50% { scale: 1.06 1.1; opacity: 1; }
}

@keyframes avatar-frame-frost {
  0%, 100% { filter: brightness(0.95); transform: rotate(-2deg); }
  50% { filter: brightness(1.28); transform: rotate(2deg); }
}

@keyframes avatar-frame-wings {
  0%, 100% { transform: scaleY(0.96) translateY(1px); }
  50% { transform: scaleY(1.05) translateY(-2px); }
}

@keyframes avatar-frame-demon-wings {
  0%, 100% { transform: scaleY(-0.96) translateY(-1px); }
  50% { transform: scaleY(-1.05) translateY(2px); }
}

@keyframes avatar-frame-wing-glint {
  to { background-position: -220% 0; }
}

@media (max-width: 760px) {
  .profile-avatar-wrap {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  body.room-active .seat-frame {
    top: -4px;
    width: 68px;
    height: 68px;
    margin-left: -34px;
  }

  .frame-picker-heading {
    display: grid;
    gap: 4px;
  }

  .frame-picker-heading small {
    text-align: left;
  }

  .frame-picker-options {
    grid-template-columns: repeat(10, 92px);
    padding: 8px 4px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-avatar-frame::before,
  .animated-avatar-frame::after {
    animation: none !important;
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card.is-occupied .seat-visual {
    width: 68px;
    height: 61px;
  }

  body.room-active .seat-card.is-occupied .seat-media {
    width: 54px;
    height: 54px;
  }
}

/* Mobil premium boş koltuk görünümü V5 */
@media (max-width: 760px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 64px;
    height: 58px;
    margin-top: -3px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    right: 2px;
    bottom: 1px;
    left: 2px;
    height: 56px;
    opacity: 1;
    filter:
      drop-shadow(0 8px 9px rgba(0, 0, 0, 0.34))
      drop-shadow(0 0 9px rgba(119, 104, 255, 0.16));
    transform-origin: 50% 82%;
    transition: transform 160ms ease, filter 160ms ease;
  }

  body.room-active .seat-card.is-empty .seat-chair::before {
    position: absolute;
    inset: 3px -5px 0;
    z-index: -1;
    content: "";
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(126, 104, 255, 0.23) 0,
      rgba(82, 72, 181, 0.1) 48%,
      transparent 73%
    );
  }

  body.room-active .seat-card.is-empty .seat-chair::after {
    position: absolute;
    right: 9px;
    bottom: -1px;
    left: 9px;
    z-index: -1;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.36);
    filter: blur(3px);
  }

  body.room-active .seat-card.is-empty .chair-back {
    color: #746bc0;
  }

  body.room-active .seat-card.is-empty .chair-seat,
  body.room-active .seat-card.is-empty .chair-arm {
    color: #535a9e;
  }

  body.room-active .seat-card.is-empty .chair-leg {
    color: #343b6f;
  }

  body.room-active .seat-card.is-empty .chair-shine {
    fill: rgba(229, 226, 255, 0.18);
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 28px;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(210, 205, 255, 0.36);
    color: transparent;
    background: linear-gradient(145deg, #2e3671, #171e48);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 3px 8px rgba(0, 0, 0, 0.28),
      0 0 0 3px rgba(112, 94, 232, 0.09);
  }

  body.room-active .seat-card.is-empty .seat-empty-plus::after {
    color: #f0eeff;
    font-size: 0.73rem;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }

  body.room-active .seat-card.is-empty .seat-name {
    margin-top: -1px;
    color: #dce1f5;
    font-weight: 850;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
  }

  body.room-active .seat-card.is-empty .seat-main:active .seat-chair {
    filter:
      drop-shadow(0 5px 6px rgba(0, 0, 0, 0.32))
      drop-shadow(0 0 12px rgba(119, 104, 255, 0.28));
    transform: translateY(2px) scale(0.96);
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 60px;
    height: 54px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    height: 52px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 26px;
    width: 24px;
    height: 24px;
  }
}

/* Mobil klasik krem koltuk ve sırtlık numarası V6 */
@media (max-width: 760px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 70px;
    height: 61px;
    margin-top: -5px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    right: 1px;
    bottom: 0;
    left: 1px;
    height: 59px;
    filter:
      drop-shadow(0 7px 7px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 8px rgba(239, 205, 149, 0.14));
  }

  body.room-active .seat-card.is-empty .seat-chair path:not(.chair-shine) {
    stroke: #5b3d25;
    stroke-width: 1.25px;
    stroke-linejoin: round;
    paint-order: stroke fill;
  }

  body.room-active .seat-card.is-empty .chair-back {
    color: #f1ddb5;
  }

  body.room-active .seat-card.is-empty .chair-seat {
    color: #e7c58e;
  }

  body.room-active .seat-card.is-empty .chair-arm {
    color: #dfb879;
  }

  body.room-active .seat-card.is-empty .chair-leg {
    color: #8b552d;
  }

  body.room-active .seat-card.is-empty .chair-shine {
    fill: rgba(255, 250, 235, 0.27);
  }

  body.room-active .seat-card.is-empty .seat-chair::before {
    inset: 5px -3px 0;
    background: radial-gradient(
      circle,
      rgba(241, 210, 158, 0.18) 0,
      rgba(183, 139, 77, 0.07) 48%,
      transparent 73%
    );
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 22px;
    width: 30px;
    height: 19px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus::after {
    color: #583b25;
    font-size: 0.84rem;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 250, 232, 0.72);
  }

  body.room-active .seat-card.is-empty .seat-name {
    margin-top: -2px;
    color: #eee7dc;
  }

  body.room-active .seat-card.is-empty .seat-main:active .seat-chair {
    filter:
      drop-shadow(0 4px 5px rgba(0, 0, 0, 0.32))
      drop-shadow(0 0 9px rgba(239, 205, 149, 0.22));
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 66px;
    height: 58px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    height: 56px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 21px;
  }
}

/* Klasik koltuk kompakt boyut ve kontrol simgesi V7 */
.seat-control-icon {
  display: grid;
  width: 27px;
  height: 26px;
  place-items: center;
}

.seat-control-icon svg {
  display: block;
  width: 27px;
  height: 25px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.34));
}

.seat-control-icon path {
  stroke: #563920;
  stroke-width: 1.35px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.seat-control-icon .mini-chair-back {
  fill: #f1ddb5;
}

.seat-control-icon .mini-chair-seat {
  fill: #e7c58e;
}

.seat-control-icon .mini-chair-arm {
  fill: #dfb879;
}

.seat-control-icon .mini-chair-leg {
  fill: #8b552d;
}

@media (max-width: 760px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 59px;
    height: 53px;
    margin-top: -2px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    right: 1px;
    bottom: 0;
    left: 1px;
    height: 51px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 19px;
    width: 28px;
    height: 18px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus::after {
    font-size: 0.75rem;
  }

  body.room-active .seat-card.is-empty .seat-name {
    margin-top: -1px;
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 56px;
    height: 50px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    height: 48px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 18px;
  }
}

/* Mobil klasik koltuk son kompakt boyut V8 */
@media (max-width: 760px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 53px;
    height: 48px;
    margin-top: 0;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    right: 1px;
    bottom: 0;
    left: 1px;
    height: 46px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 17px;
    width: 25px;
    height: 17px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus::after {
    font-size: 0.7rem;
  }

  body.room-active .seat-card.is-empty .seat-name {
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 51px;
    height: 46px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    height: 44px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 16px;
  }
}

/* Mobil son koltuk boyutu ve mikrofon kapalı simgesi V9 */
.mic-control-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.mic-control-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mic-control-icon .mic-off-slash {
  stroke: #ff6179;
  stroke-width: 2.5px;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.42));
  transition: opacity 140ms ease;
}

#mic-button.is-muted .mic-off-slash {
  opacity: 1;
}

@media (max-width: 760px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 50px;
    height: 45px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    height: 43px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 16px;
    width: 24px;
    height: 16px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus::after {
    font-size: 0.68rem;
  }
}

@media (max-width: 390px) {
  body.room-active .seat-card.is-empty .seat-visual {
    width: 48px;
    height: 43px;
  }

  body.room-active .seat-card.is-empty .seat-chair {
    height: 41px;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    top: 15px;
  }
}

/* Çoklu oda ve dinamik koltuk sistemi V1 - CSS v26 */
.join-room-select-label {
  display: block;
  margin: 0 0 7px;
  color: #cdd3e7;
  font-size: 0.7rem;
  font-weight: 850;
}

.join-room-select {
  width: 100%;
  min-height: 45px;
  margin-bottom: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 9, 21, 0.86);
}

.join-room-select:focus {
  border-color: rgba(142, 113, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(119, 88, 255, 0.11);
}

.rooms-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.rooms-panel-actions,
.users-panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.create-room-button,
.rooms-panel-close,
.room-settings-button,
.mobile-rooms-button {
  border: 1px solid rgba(119, 88, 255, 0.3);
  color: #ded8ff;
  background: rgba(119, 88, 255, 0.12);
  cursor: pointer;
  font-weight: 850;
}

.create-room-button {
  min-height: 31px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 0.63rem;
}

.create-room-button:hover,
.room-settings-button:hover,
.mobile-rooms-button:hover {
  border-color: rgba(158, 135, 255, 0.65);
  background: rgba(119, 88, 255, 0.22);
}

.rooms-panel-close,
.room-settings-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  font-size: 1rem;
}

.rooms-panel-close,
.mobile-rooms-button {
  display: none;
}

.room-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.room-list-item {
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.room-list-item:hover:not(:disabled) {
  border-color: rgba(119, 88, 255, 0.28);
  background: rgba(119, 88, 255, 0.08);
  transform: translateX(-2px);
}

.room-list-loading {
  padding: 18px 10px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.member-role[data-role="vip"],
.profile-role[data-role="vip"],
.online-role[data-role="vip"] {
  color: #ffe49b;
  border-color: rgba(255, 205, 85, 0.34);
  background: rgba(255, 205, 85, 0.12);
}

.room-manager-dialog {
  position: fixed;
  z-index: 1450;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 4, 11, 0.88);
  backdrop-filter: blur(13px);
}

body.room-manager-dialog-open {
  overflow: hidden;
}

.room-manager-card {
  display: grid;
  width: min(500px, 96vw);
  gap: 10px;
  padding: 19px;
  border: 1px solid rgba(119, 88, 255, 0.28);
  border-radius: 20px;
  background: #0d1428;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.7);
}

.room-manager-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 3px;
}

.room-manager-header > div {
  display: grid;
  gap: 3px;
}

.room-manager-header span {
  color: #bbaaff;
  font-size: 0.59rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.room-manager-header strong {
  font-size: 1.18rem;
}

.room-manager-close {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 1.35rem;
}

.room-manager-card > label {
  color: #dde2f4;
  font-size: 0.69rem;
  font-weight: 850;
}

.room-manager-card input,
.room-manager-card textarea,
.room-manager-card select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: var(--text);
  background: rgba(5, 9, 21, 0.86);
}

.room-manager-card input,
.room-manager-card select {
  min-height: 43px;
  padding: 0 11px;
}

.room-manager-card textarea {
  min-height: 76px;
  padding: 10px 11px;
  resize: vertical;
}

.room-manager-primary {
  min-height: 45px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
  font-weight: 900;
}

.room-manager-primary:disabled,
.room-seat-stepper button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.room-manager-help {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
  text-align: center;
}

.room-seat-manager-card {
  width: min(430px, 96vw);
}

.room-seat-stepper {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  margin: 8px 0 5px;
}

.room-seat-stepper button {
  height: 54px;
  border: 1px solid rgba(119, 88, 255, 0.35);
  border-radius: 15px;
  color: #fff;
  background: rgba(119, 88, 255, 0.14);
  cursor: pointer;
  font-size: 1.55rem;
}

.room-seat-stepper > span {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(5, 9, 21, 0.72);
}

.room-seat-stepper strong {
  font-size: 1.8rem;
}

.room-seat-stepper small {
  color: var(--muted);
  font-size: 0.66rem;
}

@media (min-width: 761px) {
  .seats-grid[data-seat-count="4"],
  body.room-active .seats-grid[data-seat-count="4"] {
    width: min(760px, 96%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seats-grid[data-seat-count="6"],
  body.room-active .seats-grid[data-seat-count="6"] {
    width: min(980px, 96%);
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .seats-grid[data-seat-count="8"],
  body.room-active .seats-grid[data-seat-count="8"] {
    width: min(900px, 96%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seats-grid[data-seat-count="12"],
  body.room-active .seats-grid[data-seat-count="12"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.room-active .rooms-panel {
    position: static;
    display: flex;
    width: 250px;
    height: 100dvh;
    min-height: 0;
    padding: 14px 12px;
    overflow: hidden;
    border-width: 0 0 0 1px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(19, 25, 43, 0.98), rgba(10, 14, 27, 0.98));
  }

  body.room-active .room-workspace {
    grid-template-columns: 285px minmax(0, 1fr) 250px;
  }

  body.room-active .users-panel {
    width: 285px;
  }

  body.room-active .status-message {
    left: 300px;
    max-width: min(520px, calc(100vw - 570px));
  }

  body.room-active .rooms-panel .panel-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  body.room-active .rooms-panel .room-tip {
    margin-top: auto;
  }
}

@media (min-width: 1280px) {
  body.room-active .room-workspace {
    grid-template-columns: 310px minmax(0, 1fr) 270px;
  }

  body.room-active .users-panel {
    width: 310px;
  }

  body.room-active .rooms-panel {
    width: 270px;
  }

  body.room-active .status-message {
    left: 326px;
    max-width: min(560px, calc(100vw - 620px));
  }
}

@media (max-width: 1023px) {
  body.room-active .mobile-rooms-button {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.6rem;
  }

  body.room-active .rooms-panel {
    position: fixed;
    z-index: 1320;
    inset: 0 0 0 auto;
    display: flex;
    width: min(88vw, 350px);
    height: 100dvh;
    padding: 15px;
    border-width: 0 0 0 1px;
    border-radius: 18px 0 0 18px;
    background: rgba(10, 15, 31, 0.99);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
    transform: translateX(105%);
    transition: transform 180ms ease;
  }

  body.rooms-drawer-open .rooms-panel {
    transform: translateX(0);
  }

  body.room-active .rooms-panel-close {
    display: grid;
  }

  body.room-active .rooms-drawer-backdrop {
    position: fixed;
    z-index: 1310;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 760px) {
  body.room-active .participant-count {
    display: none;
  }

  body.room-active .mobile-users-button,
  body.room-active .mobile-rooms-button,
  body.room-active .room-settings-button {
    min-height: 27px;
    height: 27px;
    padding: 0 7px;
    font-size: 0.56rem;
  }

  body.room-active .room-settings-button {
    width: 27px;
  }

  .room-manager-card input,
  .room-manager-card textarea,
  .room-manager-card select,
  .join-room-select {
    font-size: 16px;
  }
}

/* Mobil boş koltuk numaraları V3 */
@media (max-width: 760px) {
  body.room-active .seats-grid {
    counter-reset: mobile-seat-number;
  }

  body.room-active .seat-card {
    counter-increment: mobile-seat-number;
  }

  body.room-active .seat-number {
    display: none;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus {
    width: 24px;
    height: 16px;
    color: transparent;
    font-size: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.room-active .seat-card.is-empty .seat-empty-plus::after {
    content: counter(mobile-seat-number);
    color: #583b25;
    font-size: 0.7rem;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 250, 232, 0.72);
  }
}

/* Mobil oda başlığı: kişiler / oda adı / odalar V1 */
@media (max-width: 760px) {
  body.room-active .room-header {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(0, 1.35fr) minmax(64px, 1fr);
    align-items: center;
    gap: 5px;
  }

  body.room-active .mobile-users-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  body.room-active .room-header > div:first-child {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  body.room-active .room-header h2 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.room-active .room-header-meta {
    display: contents;
  }

  body.room-active .mobile-rooms-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  body.room-active .room-settings-button:not([hidden]) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 63px;
  }
}

/* Profil çerçevesi masaüstü ölçüleri ve çerçevesiz seçim V2 */
.frame-picker-remove {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  color: #ddd9e7;
  border: 1px solid #4e525b;
  border-radius: 13px;
  background: #292c32;
  cursor: pointer;
  text-align: left;
}

.frame-picker-remove:hover,
.frame-picker-remove.is-selected {
  color: #f6f1ff;
  border-color: #a58cdb;
  background: linear-gradient(155deg, rgba(127, 94, 205, 0.28), #303139);
  box-shadow: 0 0 0 2px rgba(155, 126, 219, 0.12);
}

.frame-picker-remove-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  color: #cfc5e9;
  border: 1px dashed currentColor;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.frame-picker-remove > span:last-child {
  display: grid;
  gap: 2px;
}

.frame-picker-remove strong {
  font-size: 0.74rem;
  font-weight: 900;
}

.frame-picker-remove small {
  color: #9fa3ad;
  font-size: 0.61rem;
}

@media (min-width: 1024px) {
  body.room-active .user-avatar-wrap {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  body.room-active .user-frame {
    inset: -5px;
  }

  body.room-active .seat-frame {
    top: -6px;
    width: 61px;
    height: 61px;
    margin-left: -30.5px;
  }
}

@media (min-width: 1280px) {
  body.room-active .user-avatar-wrap {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body.room-active .user-frame {
    inset: -6px;
  }

  body.room-active .seat-frame {
    top: -6px;
    width: 77px;
    height: 77px;
    margin-left: -38.5px;
  }
}

/* Kişiler listesindeki hareketli çerçeve taşması V1 */
body.room-active .online-users {
  padding-block: 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.room-active .online-users::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 760px) {
  body.room-active .online-users {
    padding-block: 10px 14px;
    touch-action: pan-y;
  }
}

/* Alt menü ve gerçek zamanlı özel mesajlar V1 */
.room-menu-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-self: stretch;
}

.room-menu-button {
  height: 100%;
}

.room-menu-button .control-icon {
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: translateY(-2px);
}

.room-menu-wrap.is-open .room-menu-button {
  color: #e4dcff;
  border-color: rgba(142, 113, 255, 0.58);
  background: rgba(119, 88, 255, 0.2);
}

.room-action-menu {
  position: absolute;
  z-index: 950;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  width: 244px;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(18, 22, 34, 0.98);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.room-action-menu[hidden] {
  display: none;
}

.room-menu-item {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  color: #e9e8ed;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.room-menu-item:hover:not(:disabled),
.room-menu-item:focus-visible,
.room-menu-item.is-active {
  border-color: rgba(142, 113, 255, 0.4);
  background: rgba(119, 88, 255, 0.14);
  outline: none;
}

.room-menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.room-menu-item > .control-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.05rem;
}

.room-menu-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.room-menu-copy strong,
body.room-active .room-action-menu .control-label {
  display: block;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.room-menu-copy small {
  color: #969ba8;
  font-size: 0.6rem;
}

.room-menu-item.is-danger {
  color: #ffdce3;
  border-color: rgba(255, 85, 115, 0.2);
  background: rgba(231, 70, 100, 0.12);
}

.room-menu-item.is-danger:hover,
.room-menu-item.is-danger:focus-visible {
  border-color: rgba(255, 85, 115, 0.5);
  background: rgba(231, 70, 100, 0.22);
}

.private-messages-button {
  position: relative;
}

.private-message-icon {
  font-size: 1.2rem;
}

.private-messages-button.has-unread {
  color: #f0eaff;
  border-color: rgba(155, 114, 255, 0.58);
  background: rgba(119, 88, 255, 0.18);
  box-shadow: 0 0 18px rgba(119, 88, 255, 0.18);
}

.private-unread-badge {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  border: 2px solid #111522;
  border-radius: 999px;
  background: #ef476f;
  font-size: 0.52rem;
  font-weight: 950;
  line-height: 1;
}

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

.profile-message-action {
  width: 100%;
  min-height: 43px;
  margin-top: 8px;
  color: #eee8ff;
  border: 1px solid rgba(142, 113, 255, 0.45);
  border-radius: 12px;
  background: rgba(119, 88, 255, 0.14);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.profile-message-action:hover {
  background: rgba(119, 88, 255, 0.24);
}

body.private-messages-open {
  overflow: hidden;
}

.private-messages-dialog {
  position: fixed;
  z-index: 2400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(9px);
}

.private-messages-dialog[hidden] {
  display: none;
}

.private-messages-card {
  display: grid;
  width: min(920px, 100%);
  height: min(720px, calc(100dvh - 40px));
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  color: #ecebf1;
  border: 1px solid #484c56;
  border-radius: 22px;
  background: linear-gradient(160deg, #292c33, #202329 70%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.private-messages-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.private-messages-header > div {
  display: grid;
  gap: 3px;
}

.private-messages-header span {
  color: #b7a7df;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.private-messages-header strong {
  font-size: 1.05rem;
}

.private-messages-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ebe9ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.25rem;
}

.private-messages-layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 310px minmax(0, 1fr);
}

.private-conversations-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 24, 0.34);
}

.private-conversations-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 10px;
}

.private-conversations-heading strong {
  font-size: 0.77rem;
}

.private-conversations-heading small {
  color: #999da8;
  font-size: 0.59rem;
}

.private-conversations {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 5px;
  padding: 4px 8px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 111, 226, 0.42) transparent;
}

.private-list-status,
.private-thread-status {
  margin: 18px 10px;
  color: #9da1ac;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.private-list-status.is-error,
.private-thread-status.is-error {
  color: #ff9aaa;
}

.private-conversation {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  color: #e9e8ed;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
}

.private-conversation:hover,
.private-conversation.is-active {
  border-color: rgba(142, 113, 255, 0.38);
  background: rgba(119, 88, 255, 0.12);
}

.private-conversation.has-unread {
  background: rgba(119, 88, 255, 0.1);
}

.private-conversation-avatar-wrap,
.private-thread-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.private-conversation-avatar-wrap {
  width: 42px;
  height: 42px;
}

.private-conversation-avatar,
.private-thread-avatar {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #f2eeff;
  border: 2px solid #64568e;
  border-radius: 50%;
  background: linear-gradient(145deg, #615780, #343944);
  font-size: 0.68rem;
  font-weight: 900;
}

.private-conversation-frame {
  inset: -4px;
}

.private-conversation-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.private-conversation-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.private-conversation-header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-conversation-header time {
  flex: 0 0 auto;
  color: #9296a1;
  font-size: 0.52rem;
}

.private-conversation-preview {
  overflow: hidden;
  color: #a5a8b1;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-conversation-unread {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #8b5cf6;
  font-size: 0.54rem;
  font-weight: 950;
}

.private-thread-panel {
  min-width: 0;
  min-height: 0;
}

.private-thread-empty {
  display: grid;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  color: #a5a7b0;
  text-align: center;
}

.private-thread-empty > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #c9baff;
  border: 1px solid rgba(142, 113, 255, 0.32);
  border-radius: 20px;
  background: rgba(119, 88, 255, 0.1);
  font-size: 1.65rem;
}

.private-thread-empty strong {
  color: #ebe9ef;
  font-size: 0.9rem;
}

.private-thread-empty p {
  max-width: 330px;
  margin: 0;
  font-size: 0.69rem;
  line-height: 1.55;
}

.private-thread {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.private-thread[hidden] {
  display: none;
}

.private-thread-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(15, 18, 24, 0.28);
}

.private-thread-back {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #e8e5ee;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.4rem;
}

.private-thread-avatar-wrap {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.private-thread-frame {
  inset: -5px;
}

.private-thread-peer-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.private-thread-peer-copy strong {
  font-size: 0.78rem;
}

.private-thread-peer-copy small {
  color: #969aa5;
  font-size: 0.61rem;
}

.private-thread-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 111, 226, 0.42) transparent;
}

.private-message {
  display: grid;
  max-width: min(76%, 470px);
  align-self: flex-start;
  gap: 4px;
}

.private-message.is-self {
  align-self: flex-end;
  justify-items: end;
}

.private-message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 3px;
  color: #9296a1;
  font-size: 0.56rem;
}

.private-message-meta strong {
  color: #c7c3cf;
  font-size: 0.59rem;
}

.private-message-bubble {
  padding: 9px 12px;
  color: #ecebf0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px 15px 15px 15px;
  background: #30333a;
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.private-message.is-self .private-message-bubble {
  color: #f4efff;
  border-color: rgba(142, 113, 255, 0.3);
  border-radius: 15px 6px 15px 15px;
  background: linear-gradient(145deg, #60449a, #4b357b);
}

.private-message-receipt {
  color: #8f93a0;
  font-size: 0.52rem;
}

.private-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 23, 0.56);
}

.private-message-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  color: #efedf4;
  border: 1px solid #4d5059;
  border-radius: 12px;
  background: #24272d;
  outline: none;
  font-size: 0.75rem;
}

.private-message-form input:focus {
  border-color: #8c72c8;
  box-shadow: 0 0 0 3px rgba(140, 114, 200, 0.15);
}

.private-message-form button {
  min-width: 78px;
  min-height: 44px;
  padding: 0 13px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7954d5, #9b58ec);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
}

.private-message-form button:disabled,
.private-message-form input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (min-width: 1024px) {
  body.room-active .room-menu-wrap {
    width: 50px;
    min-width: 50px;
  }

  body.room-active .room-menu-button {
    width: 50px;
    min-width: 50px;
  }
}

@media (min-width: 1280px) {
  body.room-active .room-menu-wrap,
  body.room-active .room-menu-button {
    width: 59px;
    min-width: 59px;
  }
}

@media (max-width: 760px) {
  body.room-active .room-menu-wrap {
    width: 45px;
    min-width: 45px;
    flex: 0 1 58px;
  }

  body.room-active .room-menu-button {
    width: 45px;
    min-width: 45px;
    flex: 1;
  }

  .room-action-menu {
    position: fixed;
    right: 7px;
    bottom: calc(57px + env(safe-area-inset-bottom));
    width: min(260px, calc(100vw - 14px));
  }

  .private-messages-dialog {
    place-items: stretch;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    background: #090c14;
  }

  .private-messages-card {
    width: 100%;
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }

  .private-messages-header {
    min-height: 56px;
    padding: 8px 10px 8px 14px;
  }

  .private-messages-layout {
    display: block;
    height: 100%;
    min-height: 0;
  }

  .private-conversations-panel,
  .private-thread-panel {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .private-thread-panel {
    display: none;
  }

  .private-messages-dialog.is-thread-open .private-conversations-panel {
    display: none;
  }

  .private-messages-dialog.is-thread-open .private-thread-panel {
    display: block;
  }

  .private-conversations-heading {
    padding: 13px 12px 8px;
  }

  .private-conversations {
    padding: 5px 8px 18px;
  }

  .private-thread-back {
    display: grid;
  }

  .private-thread-header {
    min-height: 58px;
    padding: 7px 10px;
  }

  .private-thread-messages {
    padding: 12px 10px;
  }

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

  .private-message-bubble {
    font-size: 0.78rem;
  }

  .private-message-form {
    padding: 8px;
  }

  .private-message-form input {
    min-height: 46px;
    font-size: 16px;
  }

  .private-message-form button {
    min-width: 66px;
    min-height: 46px;
    padding-inline: 10px;
  }
}

/* Koltuk reaksiyonu emoji paneli son kaskat sabitlemesi V1 */
.emoji-picker {
  display: block;
}

.emoji-picker[hidden] {
  display: none;
}


/* Yalla ana hesap giriş ekranı */
#legacy-auth-controls[hidden] {
  display: none !important;
}

.yalla-account-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 2px 4px;
  text-align: center;
}

.yalla-account-gate-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  color: #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, #8057ff 0%, #c13cff 100%);
  box-shadow: 0 14px 35px rgba(139, 73, 255, 0.32);
}

.yalla-account-gate-icon svg {
  width: 31px;
  height: 31px;
}

.yalla-account-gate h2 {
  margin: 0 0 9px;
  color: #f7f5ff;
  font-size: 22px;
  line-height: 1.25;
}

.yalla-account-gate p {
  max-width: 330px;
  margin: 0;
  color: #a8aec3;
  font-size: 14px;
  line-height: 1.6;
}

.yalla-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}

.yalla-account-actions a {
  min-height: 49px;
  text-decoration: none !important;
}

.yalla-account-login,
.yalla-account-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yalla-account-signup {
  color: #f4efff !important;
  font-weight: 800;
  border: 1px solid rgba(168, 119, 255, 0.42);
  border-radius: 13px;
  background: rgba(111, 74, 195, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.yalla-account-signup:hover {
  color: #ffffff !important;
  border-color: rgba(190, 151, 255, 0.8);
  background: rgba(129, 81, 222, 0.24);
}

.yalla-account-home {
  margin-top: 18px;
  color: #9298ac !important;
  font-size: 12px;
  text-decoration: none !important;
}

.yalla-account-home:hover {
  color: #c9b8ff !important;
}

@media (max-width: 520px) {
  .yalla-account-actions {
    grid-template-columns: 1fr;
  }
}
