/* SteamChat — оформление в духе Steam */

* { box-sizing: border-box; }

:root {
  --bg: #171a21;
  --panel: #1b2838;
  --panel-2: #16202d;
  --panel-3: #2a475e;
  --line: #0e141b;
  --line-soft: #2a475e;
  --accent: #66c0f4;
  --accent-dim: #417a9b;
  --text: #c7d5e0;
  --text-strong: #e6edf3;
  --muted: #8f98a0;
  --green: #a4d007;
  --online: #57cbde;
  --danger: #e06c75;
  --badge: #66c0f4;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Motiva Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #10151c; }
::-webkit-scrollbar-thumb { background: #2a475e; border-radius: 6px; border: 2px solid #10151c; }
::-webkit-scrollbar-thumb:hover { background: #3a5f7d; }

/* ---------------- Вход ---------------- */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(42, 71, 94, 0.55), transparent 62%),
    radial-gradient(820px 520px at 100% 100%, rgba(26, 58, 82, 0.5), transparent 60%),
    var(--bg);
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #1b2838 0%, #16202d 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  filter: drop-shadow(0 4px 14px rgba(102, 192, 244, 0.25));
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-strong);
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, background 0.15s, transform 0.05s;
  user-select: none;
}

.btn:active { transform: translateY(1px); }

.btn-steam {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(90deg, #4c6b22 0%, #5c8a1f 100%);
  color: #d2e885;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-steam:hover { filter: brightness(1.14); }

.steam-icon { width: 22px; height: 22px; }

.login-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 12px;
}

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

#guest-form { display: flex; gap: 8px; }

#guest-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
  background: #0f1720;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#guest-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.2);
}

.btn-primary {
  background: linear-gradient(90deg, #417a9b 0%, #66c0f4 100%);
  color: #0b1a24;
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-primary:disabled { opacity: 0.6; cursor: default; }

.login-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(224, 108, 117, 0.12);
  border: 1px solid rgba(224, 108, 117, 0.4);
  color: #f2b8bd;
  font-size: 13px;
}

.legal {
  margin: 24px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #6b7680;
  text-align: center;
}

/* ---------------- Каркас ---------------- */

.app {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

/* ---------------- Сайдбар ---------------- */

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #1b2838 0%, #16202d 100%);
  border-right: 1px solid var(--line);
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: linear-gradient(90deg, #2a475e 0%, #1b2838 100%);
  border-bottom: 1px solid var(--line);
}

.me-info { min-width: 0; flex: 1; }

.me-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.me-status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 4px;
  background: #2a475e;
  color: #e6edf3;
  font-weight: 700;
  text-transform: uppercase;
  flex: 0 0 auto;
  user-select: none;
}

.avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.avatar.md { width: 44px; height: 44px; font-size: 17px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }

.avatar .dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4b5560;
  border: 2px solid #1b2838;
}

.avatar .dot.online { background: var(--online); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8ba0b2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover { background: rgba(102, 192, 244, 0.12); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

.search-wrap { padding: 10px 12px 6px; }

.search-wrap input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #223244;
  background: #0f1720;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap input::placeholder { color: #6b7680; }

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.15);
}

.side-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 18px;
}

.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #7d8b96;
}

.mini-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #8ba0b2;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mini-btn:hover { background: rgba(102, 192, 244, 0.14); color: var(--accent); }

.chat-list { display: flex; flex-direction: column; }

.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.chat-item:hover { background: rgba(42, 71, 94, 0.45); }

.chat-item.active {
  background: linear-gradient(90deg, #2a475e 0%, rgba(27, 40, 56, 0.4) 100%);
  border-left-color: var(--accent);
}

.room-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(135deg, #2a475e, #1f3548);
  color: #8ba0b2;
  font-size: 18px;
  font-weight: 700;
}

.chat-item.active .room-icon { color: var(--accent); }

.chat-meta { min-width: 0; flex: 1; }

.chat-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #cfdce6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-prev {
  margin-top: 1px;
  font-size: 11.5px;
  color: #7d8b96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--badge);
  color: #0b1a24;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.side-hint {
  padding: 4px 14px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #6f7c87;
}

.side-link {
  display: inline-block;
  margin: 0 14px 8px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.side-link:hover { text-decoration: underline; }

.friends { display: flex; flex-direction: column; }

.friend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 0;
}

.friend.clickable { cursor: pointer; }
.friend.clickable:hover { background: rgba(42, 71, 94, 0.45); }

.friend-info { min-width: 0; flex: 1; }

.friend-name {
  font-size: 13px;
  color: #cfdce6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-sub {
  font-size: 11px;
  color: #7d8b96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-sub.ingame { color: #90ba3c; }

.friend-tag {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: #6f7c87;
}

.friend-btn {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #3a5f7d;
  border-radius: 3px;
  background: transparent;
  color: #9fc4dc;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.friend-btn:hover { background: rgba(102, 192, 244, 0.12); border-color: var(--accent); color: var(--accent); }

.side-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #141c26;
}

.link-btn {
  width: 100%;
  padding: 7px 10px;
  border: 1px dashed #33536b;
  border-radius: 4px;
  background: transparent;
  color: #8ba0b2;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.link-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- Чат ---------------- */

.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(42, 71, 94, 0.35), transparent 60%),
    var(--panel);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  min-height: 60px;
  background: linear-gradient(90deg, #1b2838 0%, #16202d 100%);
  border-bottom: 1px solid var(--line);
}

.chat-head-info { min-width: 0; }

.chat-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sub.online-text { color: var(--online); }

.menu-btn { display: none; }

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 10px;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.msg:hover { background: rgba(255, 255, 255, 0.025); }

.msg-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
  background: #2a475e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #e6edf3;
}

.msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.msg.compact { padding-top: 1px; padding-bottom: 1px; }
.msg.compact .msg-avatar { opacity: 0; }

.msg-body { min-width: 0; flex: 1; }

.msg-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1px;
}

.msg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.msg-name.me { color: #90ba3c; }

.msg-time {
  font-size: 10.5px;
  color: #6f7c87;
}

.msg-text {
  font-size: 14px;
  line-height: 1.45;
  color: #dbe5ee;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg-text a { color: var(--accent); text-decoration: none; }
.msg-text a:hover { text-decoration: underline; }

.day-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 8px 10px;
  font-size: 11.5px;
  color: #7d8b96;
}

.day-sep::before,
.day-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(42, 71, 94, 0.9);
}

.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  color: #6f7c87;
  text-align: center;
}

.empty svg { width: 96px; height: 96px; opacity: 0.7; }
.empty p { margin: 0; font-size: 13.5px; max-width: 320px; }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  background: #16202d;
  border-top: 1px solid var(--line);
}

.composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 160px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #2a475e;
  background: #0f1720;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer textarea::placeholder { color: #6b7680; }

.composer textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.18);
}

.composer .send { padding: 10px 16px; flex: 0 0 auto; }

/* ---------------- Уведомление ---------------- */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #3a5f7d;
  background: #1f3243;
  color: #dbe5ee;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.toast.show { opacity: 1; transform: none; }

/* ---------------- Мобильная версия ---------------- */

@media (max-width: 780px) {
  .app { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 320px);
    z-index: 30;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open { transform: none; }

  .menu-btn { display: inline-flex; }

  .chat-head { padding: 10px 14px; }

  .messages { padding: 12px 10px 8px; }

  .composer { padding: 10px 12px 12px; gap: 8px; }

  .composer .send { padding: 10px 12px; }

  .msg { padding: 3px 4px; }
}

/* ---------------- Голосовой чат ---------------- */

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

.voice-join {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #35566e;
  border-radius: 4px;
  background: #1b2c3d;
  color: #9fc4dc;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.voice-join:hover { border-color: var(--accent); color: var(--accent); }

.voice-join.active {
  background: rgba(144, 186, 60, 0.12);
  border-color: #6f8f2a;
  color: #cdeb8b;
}

.voice-join svg { width: 16px; height: 16px; }
.voice-join:disabled { opacity: 0.55; cursor: default; }

.voice-panel {
  padding: 8px 18px;
  background: #16202d;
  border-top: 1px solid var(--line);
}

.voice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-live {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #90ba3c;
  box-shadow: 0 0 0 3px rgba(144, 186, 60, 0.15);
}

.voice-title {
  flex: 0 0 auto;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  color: #cfdce6;
  cursor: pointer;
}

.voice-title:hover { color: var(--accent); }

.voice-status {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #7d8b96;
  white-space: nowrap;
}

.voice-status.bad { color: #e06c75; }
.voice-status.ok { color: #90ba3c; }

.voice-people {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.voice-person {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 2px;
  border-radius: 14px;
  background: #22384a;
  border: 1px solid transparent;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.voice-person.speaking {
  border-color: #90ba3c;
  box-shadow: 0 0 0 2px rgba(144, 186, 60, 0.18);
}

.voice-person.muted { opacity: 0.62; }

.voice-person .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
  border-radius: 50%;
}

.voice-person .avatar img { border-radius: 50%; }

.voice-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #cfdce6;
}

.voice-muted {
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: #e06c75;
}

.voice-muted svg { width: 12px; height: 12px; }

.voice-ctrl {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #35566e;
  border-radius: 50%;
  background: transparent;
  color: #9fc4dc;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.voice-ctrl:hover { border-color: var(--accent); color: var(--accent); }
.voice-ctrl.danger:hover { border-color: #e06c75; color: #e06c75; }
.voice-ctrl.muted { border-color: #7a3a40; color: #e06c75; }
.voice-ctrl svg { width: 15px; height: 15px; }

.chat-item .voice-badge {
  display: inline-flex;
  margin-left: auto;
  color: #90ba3c;
}

.chat-item .voice-badge svg { width: 14px; height: 14px; }
.chat-item .voice-badge + .badge { margin-left: 6px; }

.voice-audio { display: none; }

@media (max-width: 780px) {
  .voice-panel { padding: 8px 12px; }
  .voice-bar { flex-wrap: wrap; }
  .voice-people { order: 3; flex-basis: 100%; }
  .voice-title { max-width: none; flex: 1; }
  .voice-join span { display: none; }
  .voice-join { padding: 7px 9px; }
}

/* ---------------- Вход по паролю ---------------- */

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-tab {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #35566e;
  border-radius: 4px;
  background: transparent;
  color: #9fc4dc;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(102, 192, 244, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

#auth-form { display: flex; flex-direction: column; gap: 8px; }

#auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
  background: #0f1720;
  color: var(--text);
  font: inherit;
  outline: none;
}

#auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.2);
}

#auth-form .btn { width: 100%; margin-top: 2px; }

.auth-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.auth-link { margin-top: 10px; font-size: 12px; padding: 6px 8px; }

.login-invite {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(102, 192, 244, 0.1);
  border: 1px solid rgba(102, 192, 244, 0.35);
  color: #9fd4f5;
  font-size: 12.5px;
}

/* ---------------- Модальное окно ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 17, 0.72);
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #35566e;
  background: linear-gradient(180deg, #1b2838, #16202d);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-title { font-size: 17px; font-weight: 600; color: var(--text-strong); }

.members-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(42, 71, 94, 0.25);
}

.member-row .avatar { width: 30px; height: 30px; font-size: 12px; }

.member-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #cfdce6;
}

.member-owner {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: #a4d007;
  border: 1px solid rgba(164, 208, 7, 0.4);
  border-radius: 10px;
  padding: 1px 7px;
}

.member-kick {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #6b3a40;
  border-radius: 3px;
  background: transparent;
  color: #e08b92;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.member-kick:hover {
  background: rgba(224, 108, 117, 0.14);
  border-color: #e06c75;
  color: #ffc4c9;
}

.modal-section { margin-top: 14px; }

.modal-label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7d8b96;
}

.invite-row { display: flex; gap: 8px; }

.invite-row input,
.invite-row select {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid #35566e;
  background: #0f1720;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.invite-row input:focus,
.invite-row select:focus { border-color: var(--accent); }

.invite-row .btn { flex: 0 0 auto; padding: 8px 12px; font-size: 12.5px; }

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

.btn-ghost {
  background: transparent;
  border: 1px solid #35566e;
  color: #9fc4dc;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger {
  background: linear-gradient(90deg, #7a2f36, #a33a44);
  color: #ffd9dd;
}

.btn-danger:hover { filter: brightness(1.1); }

@media (max-width: 520px) {
  .invite-row { flex-direction: column; }
}
