:root {
  --bg:        #313338;
  --bg-dark:   #2b2d31;
  --bg-darker: #1e1f22;
  --bg-input:  #383a40;
  --text:      #dbdee1;
  --text-dim:  #949ba4;
  --text-muted:#80848e;
  --brand:     #5865f2;
  --brand-hover:#4752c4;
  --green:     #23a55a;
  --red:       #f23f43;
  --hover:     #35373c;
  --active:    #404249;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "gg sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-darker);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ---------- Giris ---------- */
.login {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #3a3f66, var(--bg-darker) 60%);
  padding: 20px;
}
.login-card {
  background: var(--bg-dark);
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.logo { font-size: 26px; font-weight: 700; text-align: center; }
.login-sub { color: var(--text-dim); text-align: center; margin: 8px 0 24px; font-size: 14px; }
.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.login-card input {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border-radius: 6px;
  border: none;
  background: var(--bg-darker);
  color: var(--text);
  font-size: 15px;
}
.login-card input:focus { outline: 2px solid var(--brand); }
.login-card button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.login-card button:hover { background: var(--brand-hover); }
.login-error { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }

/* Google giris butonu + ayrac */
.google-btn { display: flex; justify-content: center; margin-bottom: 12px; min-height: 0; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; margin: 4px 0 14px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--active); }

/* Giris/kayit sekmeleri */
.auth-tabs { display: flex; gap: 4px; background: var(--bg-darker); border-radius: 8px; padding: 4px; margin-bottom: 16px; }
.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .12s ease, color .12s ease;
}
.auth-tab.active { background: var(--bg-input); color: #fff; }

/* Yonetim paneli */
.admin-list { max-height: 60vh; overflow-y: auto; margin-top: 8px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
.admin-row:hover { background: var(--bg-darker); }
.admin-info { flex: 1; min-width: 0; }
.admin-name { font-weight: 600; font-size: 14px; }
.admin-status { font-size: 12px; color: var(--text-dim); }
.admin-status.pending { color: #faa61a; }
.admin-status.approved { color: var(--green); }
.admin-status.banned { color: var(--red); }
.admin-actions { display: flex; gap: 6px; align-items: center; }
.admin-you { font-size: 12px; color: var(--text-muted); }
.btn-mini {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--bg-input);
  transition: filter .12s ease;
}
.btn-mini:hover { filter: brightness(1.15); }
.btn-mini.approve { background: var(--green); }
.btn-mini.ban { background: var(--red); }
.btn-mini.role { background: var(--brand); }

/* ---------- Buyuk yonetim paneli ---------- */
.modal-card.admin-card { max-width: 880px; display: flex; flex-direction: column; max-height: 88vh; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bg-darker); margin-bottom: 14px; }
.admin-tab {
  background: none; border: none; color: var(--text-dim);
  padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 6px 6px 0 0;
}
.admin-tab:hover { color: var(--text); background: var(--bg-darker); }
.admin-tab.active { color: #fff; border-bottom-color: var(--brand); }
.admin-pane { display: none; overflow-y: auto; min-height: 200px; }
.admin-pane.active { display: block; }

.admin-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-input {
  background: var(--bg-darker); border: 1px solid transparent; color: var(--text);
  border-radius: 6px; padding: 8px 10px; font-size: 13px; outline: none;
}
.admin-input:focus { border-color: var(--brand); }
#admin-search { flex: 1; min-width: 160px; }

.admin-table { display: flex; flex-direction: column; gap: 4px; }
.am-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 8px; background: var(--bg-darker);
}
.am-row .avatar { position: relative; }
.am-online::after {
  content: ''; position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg-darker);
}
.am-info { flex: 1; min-width: 0; }
.am-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.am-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; color: #fff; }
.am-tag.admin { background: #faa61a; color: #1e1f22; }
.am-tag.badge { background: var(--brand); }
.am-tag.muted { background: var(--bg-input); color: var(--text-dim); }
.am-sub { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); margin-top: 3px; flex-wrap: wrap; }
.am-status.pending { color: #faa61a; }
.am-status.approved { color: var(--green); }
.am-status.banned { color: var(--red); }
.am-reason { color: var(--red); }
.am-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 340px; }

/* Kanallar */
.admin-channels { display: flex; flex-direction: column; gap: 4px; }
.ac-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; background: var(--bg-darker); }
.ac-ico { color: var(--text-muted); font-size: 15px; width: 18px; text-align: center; }
.ac-name { flex: 1; font-weight: 600; font-size: 14px; }

/* Istatistik */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stat-card { background: var(--bg-darker); border-radius: 10px; padding: 14px; text-align: center; }
.stat-icon { font-size: 20px; }
.stat-value { font-size: 26px; font-weight: 800; margin: 2px 0; }
.stat-label { font-size: 12px; color: var(--text-dim); }
.stat-h { margin: 18px 0 8px; font-size: 14px; }
.stat-top { display: flex; flex-direction: column; gap: 4px; }
.stat-top-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-darker); }
.stat-rank { font-weight: 800; color: var(--text-dim); width: 28px; }
.stat-top-name { flex: 1; font-weight: 600; font-size: 14px; }
.stat-top-count { font-size: 13px; color: var(--text-dim); }

/* Denetim kaydi */
.admin-audit { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.audit-row { display: flex; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.audit-row:hover { background: var(--bg-darker); }
.audit-time { color: var(--text-muted); font-size: 12px; white-space: nowrap; min-width: 92px; }
.audit-text { color: var(--text); }
.audit-detail { color: var(--text-dim); }

/* Mesaj silme butonu */
.msg-del {
  position: absolute; top: -8px; right: 12px;
  background: var(--bg-darker); border: 1px solid var(--bg-input);
  color: var(--text-dim); border-radius: 6px; padding: 2px 6px;
  font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .1s ease; z-index: 2;
}
.msg:hover .msg-del { opacity: 1; }
.msg-del:hover { color: var(--red); border-color: var(--red); }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: 72px 240px 1fr 220px; height: 100vh; }

/* Sol sunucu rayi */
.server-rail {
  background: var(--bg-darker);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}
.guild {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-radius .18s ease, box-shadow .18s ease;
  background: var(--bg-dark);
}
.guild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guild:hover { border-radius: 14px; }
.guild.active { border-radius: 14px; box-shadow: 0 0 0 2px var(--brand); }
.guild.active::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 32px;
  background: #fff;
  border-radius: 0 4px 4px 0;
}
.rail-sep { width: 32px; height: 2px; background: var(--bg-dark); border-radius: 1px; }

.sidebar { background: var(--bg-dark); display: flex; flex-direction: column; overflow: hidden; }
.channel-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.server-name {
  padding: 16px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background .12s ease;
}
.server-name:hover { background: var(--hover); }
.server-chevron { color: var(--text-dim); font-size: 14px; }
.channel-section { padding: 12px 8px 0; flex: 0 0 auto; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.add-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.add-btn:hover { color: var(--text); }
.channel-list { list-style: none; }
.channel-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  margin: 1px 0;
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  user-select: none;
}
.channel-list li:hover { background: var(--hover); color: var(--text); }
.channel-list li.active { background: var(--active); color: #fff; }
.channel-list li .ico { color: var(--text-muted); font-size: 15px; }
.channel-list li .vc-count { margin-left: auto; font-size: 11px; color: var(--green); }

/* Kullanici paneli (sol alt) */
.user-panel {
  margin-top: auto;
  background: #232428;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 2px 4px; border-radius: 6px; }
.user-avatar-wrap { position: relative; flex: 0 0 auto; display: flex; }
.user-avatar-wrap .avatar { width: 32px; height: 32px; font-size: 13px; }
.user-avatar-wrap::after {
  content: "";
  position: absolute;
  right: -2px; bottom: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #232428;
}
.user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-status { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.panel-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  width: 30px; height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease;
  filter: grayscale(.3);
}
.panel-btn:hover { background: var(--hover); filter: none; }
.panel-btn.on { background: var(--brand); filter: none; }
.panel-btn.danger { color: var(--red); }
.panel-btn.hangup.on, .panel-btn.danger:hover { background: rgba(242,63,67,.15); }

/* ---------- Chat ---------- */
.chat { background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.chat-head {
  padding: 14px 16px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.active-channel { font-size: 16px; }
.voice-indicator { font-size: 13px; color: var(--green); font-weight: 600; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.msg { padding: 4px 8px; border-radius: 4px; display: flex; gap: 12px; align-items: flex-start; }
.msg:hover { background: rgba(0,0,0,.12); }
.msg-content { flex: 1; min-width: 0; }
.msg .meta { display: flex; align-items: baseline; gap: 8px; }
.msg .author { font-weight: 600; color: #f2f3f5; font-size: 15px; }
.msg .time { font-size: 11px; color: var(--text-muted); }
.msg .body { font-size: var(--msg-font, 15px); line-height: 1.4; color: var(--text); word-wrap: break-word; white-space: pre-wrap; }
.msg.system { color: var(--text-muted); font-style: italic; font-size: 13px; text-align: center; }

/* ---------- Profil avatarlari ---------- */
.avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.photo { background-size: cover; background-position: center; }

/* Profil ayari */
.profile-row { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.profile-preview { width: 56px; height: 56px; font-size: 22px; flex: 0 0 auto; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Kamera onizlemesi ayna gibi gorunsun */
.screen video.mirror { transform: scaleX(-1); }
.screen.cam video { max-height: 200px; }

/* Sol menude sesli kanal uyeleri */
.vc-members { list-style: none; margin: 0 0 4px; padding: 0; }
.vc-members li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 20px;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 14px;
}
.vc-members li .avatar { border: 2px solid transparent; box-sizing: content-box; }
.vc-members li.speaking .avatar { border-color: var(--green); }
.vc-members li.speaking { color: #fff; }
.vc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-mic { margin-left: auto; font-size: 12px; }

/* Mesaj ekleri */
.attachment { margin-top: 4px; }
.att-image {
  max-width: 320px;
  max-height: 240px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}
.att-video { max-width: 360px; max-height: 260px; border-radius: 8px; display: block; }
.att-file {
  display: inline-block;
  background: var(--bg-input);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.att-file:hover { background: var(--active); }

/* Composer dosya butonu */
.composer-icon {
  background: var(--bg-input) !important;
  color: var(--text) !important;
  padding: 0 14px !important;
  font-size: 18px;
}
.composer-icon:hover { background: var(--active) !important; }

/* Ekran paylasimi butonu */
.btn-screen { background: var(--bg-input); font-size: 16px; }
.btn-screen.active { background: var(--green); }

/* Ekran paylasimi gosterimi */
.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-darker);
  max-height: 45%;
  overflow-y: auto;
}
.screen { position: relative; }
.screen video {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: #000;
  cursor: pointer;
  display: block;
}
.screen-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Kisi basi ses kaydiricisi */
.vc-vol-ico { margin-left: auto; font-size: 12px; opacity: .6; }
.vc-vol-row { padding: 2px 8px 6px 20px !important; display: flex; align-items: center; gap: 8px; }
.vc-vol-row input[type="range"] { flex: 1; accent-color: var(--brand); }
.vc-vol-label { font-size: 11px; color: var(--text-muted); min-width: 34px; text-align: right; }

/* Yaziyor gostergesi */
.typing-indicator {
  padding: 0 20px 4px;
  height: 18px;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

.composer { padding: 0 16px 20px; }
.composer { display: flex; gap: 8px; }
.composer input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
}
.composer input:focus { outline: none; }
.composer button {
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.composer button:hover { background: var(--brand-hover); }

/* ---------- Members ---------- */
.members { background: var(--bg-dark); padding: 16px 8px; overflow-y: auto; }
.members-head {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px 8px;
}
.members-list { list-style: none; }
.members-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 14px;
}
.members-list li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.member-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-game { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; overflow: hidden; }
.member-game > * { flex: 0 0 auto; }
.game-icon { height: 16px; width: auto; border-radius: 3px; }
.member-game { white-space: nowrap; text-overflow: ellipsis; }
.pc-game-img { width: 100%; border-radius: 8px; margin-bottom: 8px; display: block; }
.pc-game-name { font-size: 18px; color: var(--text-dim); }

/* Profil mini karti */
.profile-card {
  position: fixed;
  width: 336px;
  background: #232428;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  z-index: 60;
  overflow: hidden;
  animation: popIn .12s ease;
}
.pc-banner { height: 64px; background: linear-gradient(135deg, var(--brand), var(--brand-hover)); }
.pc-avatar {
  width: 90px; height: 90px; font-size: 36px;
  margin: -48px 0 0 22px;
  border: 6px solid #232428;
  box-sizing: content-box;
  display: flex;
  cursor: default;
}
.pc-body { padding: 8px 22px 22px; }
.pc-name { font-size: 25px; font-weight: 700; margin-top: 8px; word-break: break-word; }
.pc-game { font-size: 18px; color: var(--text-dim); margin-top: 8px; }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.pc-status { font-size: 14px; color: var(--text-dim); margin-top: 10px; }
.pc-bio {
  font-size: 14px;
  color: var(--text);
  margin-top: 10px;
  font-style: italic;
  background: var(--bg-darker);
  padding: 8px 10px;
  border-radius: 8px;
  word-break: break-word;
}
.pc-bio:empty { display: none; }
.pc-joined { font-size: 15px; color: var(--text-muted); margin-top: 14px; border-top: 1px solid var(--active); padding-top: 14px; }
.pc-steam {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1b2838;
  color: #66c0f4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.pc-steam:hover { background: #24384f; }

#bio-input {
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  border: none;
  background: var(--bg-darker);
  color: var(--text);
  font-size: 14px;
}
#bio-input:focus { outline: 2px solid var(--brand); }
.members-list.voice li .dot { background: var(--brand); }
.members-list.voice li.muted { color: var(--text-muted); }
.members-list.voice li .mic { margin-left: auto; font-size: 12px; }

/* ---------- Sesli kontrol ekstra ---------- */
.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  margin: 8px;
  background: var(--bg-darker);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.voice-controls button {
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
/* Konuş/sustur butonu üstte tek satır; aksiyon ikonları + Ayrıl altta. */
.btn-mute { background: var(--bg-input); flex: 1 1 100%; }
/* İkon butonları (kamera/ekran/meclis) sabit kare, Ayrıl kalan boşluğu doldurur. */
.voice-controls .btn-screen { flex: 0 0 auto; min-width: 40px; text-align: center; }
.voice-controls .btn-leave { flex: 1 1 auto; }
.btn-mute.muted { background: var(--red); }
.btn-leave { background: var(--red); }

/* ---------- Ayarlar / ikon butonlari ---------- */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 2px 4px;
  opacity: .8;
}
.icon-btn:hover { opacity: 1; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-card {
  background: var(--bg-dark);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.setting { margin-bottom: 20px; }
.setting > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.setting select {
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  border: none;
  background: var(--bg-darker);
  color: var(--text);
  font-size: 14px;
}
.hint { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; line-height: 1.4; }
.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.btn-secondary:hover { background: var(--active); }
.mic-test-row { display: flex; align-items: center; gap: 10px; }
.slider-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.slider-lbl { font-size: 13px; color: var(--text-dim); width: 92px; flex: 0 0 auto; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--brand); }
.slider-val { font-size: 12px; color: var(--text-muted); width: 46px; text-align: right; flex: 0 0 auto; }
.vad-marker {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 2px;
  background: #faa61a;
  display: none;
}
.level-status { font-size: 13px; margin-top: 6px; font-weight: 600; min-height: 18px; }
.level-status.low { color: var(--text-muted); }
.level-status.good { color: var(--green); }
.level-status.high { color: #faa61a; }
.level-bar {
  flex: 1;
  height: 12px;
  background: var(--bg-darker);
  border-radius: 6px;
  overflow: hidden;
}
.level-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width .05s linear;
}
.switch-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-transform: none !important;
  font-size: 14px !important;
  color: var(--text) !important;
  cursor: pointer;
}
.switch-row input { width: 16px; height: 16px; cursor: pointer; }
.ptt-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-darker);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.ptt-key-row b { color: var(--brand); }
.btn-mute.talking { background: var(--green); }

/* ---------- Sohbet cilasi: gruplama, tarih ayraci, bos kanal ---------- */
.msg { position: relative; transition: background .06s ease; padding: 3px 16px 3px 8px; }
.msg:first-child { margin-top: auto; }
/* Gruplanan (ayni kisi, ardisik) mesajlar: avatar/isim tekrar etmez */
.msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg .avatar-spacer { width: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.msg .hover-time {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .1s ease;
  white-space: nowrap;
}
.msg.grouped:hover .hover-time { opacity: 1; }
.msg.grouped:hover { background: rgba(0,0,0,.14); }

.date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 8px 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.date-divider::before, .date-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--active);
}

.channel-empty { padding: 24px 16px 8px; }
.channel-empty .big-ico {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--active);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  margin-bottom: 12px;
}
.channel-empty h2 { font-size: 26px; color: #f2f3f5; margin-bottom: 6px; }
.channel-empty p { color: var(--text-dim); font-size: 15px; }

/* Tiklanabilir linkler */
.msg .body a { color: #00a8fc; text-decoration: none; }
.msg .body a:hover { text-decoration: underline; }

/* ---------- Genel cila: ince kaydirma cubuklari + gecisler ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #111214; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }

.channel-list li, .add-btn, .icon-btn, .composer button, .btn-secondary,
.vc-members li, .members-list li { transition: background .12s ease, color .12s ease, opacity .12s ease; }
.composer input, .login-card input, .setting select { transition: box-shadow .12s ease, background .12s ease; }
.composer button, .login-card button { transition: background .12s ease, transform .06s ease; }
.composer button:active, .login-card button:active { transform: translateY(1px); }
.att-image, .screen video { transition: transform .12s ease; }

/* Modal yumusak acilis */
.modal { animation: fadeIn .12s ease; }
.modal-card { animation: popIn .16s cubic-bezier(.2,.8,.3,1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Yeni mesaj yumusak girisi */
.msg.enter { animation: msgIn .14s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .members { display: none; }
  .server-rail { display: none; }
  .sidebar { position: absolute; z-index: 5; width: 240px; height: 100%; }
}

/* ---- 🏛️ Meclis Odası (konumsal ses) ---- */
.meclis-room {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: rgba(14, 15, 18, 0.9); backdrop-filter: blur(4px);
}
.meclis-room.hidden { display: none; }
.meclis-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; flex: 0 0 auto;
}
.meclis-title { font-size: 18px; font-weight: 700; color: #fff; }
.meclis-hint { color: var(--text-dim); font-size: 13px; flex: 1 1 auto; }
.meclis-floor {
  position: relative; flex: 1 1 auto; margin: 0 20px 20px;
  border-radius: 18px; overflow: hidden; cursor: pointer;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,170,90,0.16), transparent 32%),
    radial-gradient(circle at 30% 22%, #3a3f66, transparent 55%),
    radial-gradient(circle at 72% 78%, #33415e, transparent 55%),
    var(--bg-darker);
  box-shadow: inset 0 0 120px rgba(0,0,0,0.55);
}
/* Ortada bir "ocak" (odak noktası) */
.meclis-floor::before {
  content: "🔥"; position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%); font-size: 34px; opacity: 0.55;
  filter: drop-shadow(0 0 12px rgba(255,150,60,0.6)); pointer-events: none;
}
.meclis-av {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none; will-change: left, top;
}
.meclis-av .avatar.meclis {
  width: 58px; height: 58px; font-size: 24px;
  border: 3px solid rgba(255,255,255,0.14);
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}
.meclis-av.me .avatar.meclis { border-color: var(--brand); }
.meclis-name {
  font-size: 12px; color: var(--text); font-weight: 600;
  padding: 1px 8px; border-radius: 8px; background: rgba(0,0,0,0.55);
  white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
}
.meclis-ring {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 66px; height: 66px; border-radius: 50%;
  border: 3px solid transparent; transition: border-color 0.12s, box-shadow 0.12s;
  pointer-events: none;
}
.meclis-av.speaking .meclis-ring {
  border-color: var(--green);
  box-shadow: 0 0 14px 2px rgba(35,165,90,0.7);
}
#btn-meclis.active { background: var(--brand); }

@media (max-width: 640px) {
  .meclis-hint { display: none; }
  .meclis-floor { margin: 0 10px 10px; }
  .meclis-av .avatar.meclis { width: 48px; height: 48px; font-size: 20px; }
  .meclis-ring { width: 56px; height: 56px; }
}

/* ---- Ayarlar paneli (geniş, sol menülü, sekmeli — Discord tarzı) ---- */
.settings-card {
  max-width: 760px; padding: 0; display: flex;
  max-height: 86vh; overflow: hidden;
}
.settings-nav {
  flex: 0 0 200px; background: var(--bg-darker);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 4px;
}
.settings-nav-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); padding: 4px 10px 10px;
}
.settings-tab {
  text-align: left; background: none; border: none; color: var(--text-dim);
  padding: 9px 12px; border-radius: 6px; cursor: pointer;
  font-size: 15px; font-weight: 600;
}
.settings-tab:hover { background: var(--hover); color: var(--text); }
.settings-tab.active { background: var(--active); color: #fff; }
.settings-close {
  margin-top: auto; text-align: left; background: none; border: none;
  color: var(--text-muted); padding: 9px 12px; border-radius: 6px;
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.settings-close:hover { background: var(--red); color: #fff; }
.settings-body { flex: 1 1 auto; padding: 22px 24px; overflow-y: auto; }
.settings-pane { display: none; }
.settings-pane.active { display: block; }
.settings-pane .setting:last-child { margin-bottom: 4px; }

@media (max-width: 640px) {
  .settings-card { flex-direction: column; max-height: 92vh; }
  .settings-nav {
    flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px;
  }
  .settings-nav-title { width: 100%; padding: 0 4px 4px; }
  .settings-tab { font-size: 14px; padding: 8px 10px; }
  .settings-close { margin-top: 0; margin-left: auto; }
  .settings-body { padding: 16px; }
}

/* ---- Entegrasyonlar (Steam, ileride Epic Games vb.) ---- */
.integration {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-darker); margin-bottom: 10px;
}
.integration.soon { opacity: 0.5; }
.integration-logo {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.integration-logo svg { width: 26px; height: 26px; }
.integration-logo.steam { background: #1b2838; }
.integration-logo.steam svg { fill: #fff; }
.integration-logo.epic { background: #2a2a2a; font-size: 22px; }
.integration-info { flex: 1 1 auto; min-width: 0; }
.integration-name { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.integration-desc { font-size: 12px; color: var(--text-dim); margin: 2px 0 6px; }
.integration-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.integration-status:empty { display: none; }
.int-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: var(--bg-input); color: var(--text-muted);
  padding: 2px 6px; border-radius: 5px;
}

/* ---- Hesabım (hesap bilgileri + şifre + çıkış) ---- */
.account-box { background: var(--bg-darker); border-radius: 8px; padding: 2px 14px; }
.account-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--bg-dark);
}
.account-row:last-child { border-bottom: none; }
.account-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.account-val { color: var(--text); font-size: 14px; word-break: break-all; text-align: right; }
.pw-form { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.pw-form input {
  padding: 9px; border-radius: 6px; border: none;
  background: var(--bg-darker); color: var(--text);
}
.pw-form input:focus { outline: 2px solid var(--brand); }
.pw-form button { align-self: flex-start; }
.pw-msg { font-size: 13px; min-height: 16px; }
.pw-msg.ok { color: var(--green); }
.pw-msg.err { color: var(--red); }
.btn-danger {
  background: var(--red); color: #fff; border: none; border-radius: 6px;
  padding: 9px 14px; font-weight: 600; cursor: pointer;
}
.btn-danger:hover { filter: brightness(1.1); }

/* ---- Görünüm (vurgu rengi + yazı boyutu) ---- */
.accent-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.accent-swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: transform .08s;
}
.accent-swatch:hover { transform: scale(1.1); }
.accent-swatch.active { border-color: #fff; }
.accent-custom { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.accent-custom input[type="color"] {
  width: 40px; height: 30px; border: none; border-radius: 6px;
  background: none; cursor: pointer; padding: 0;
}
.appearance-preview { background: var(--bg-darker); border-radius: 10px; padding: 14px; }
.ap-msg { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ap-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700;
}
.ap-name { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.ap-body { font-size: var(--msg-font, 15px); line-height: 1.4; color: var(--text); }
.ap-btn {
  background: var(--brand); color: #fff; border: none; border-radius: 6px;
  padding: 8px 16px; font-weight: 600; cursor: pointer;
}
.ap-btn:hover { background: var(--brand-hover); }

/* ---- Çevrimdışı üyeler (soluk) ---- */
#offline-head { margin-top: 14px; }
.members-list.offline li { opacity: 0.4; }
.members-list.offline li:hover { opacity: 0.7; }
.members-list.offline li .avatar { filter: grayscale(0.6); }

/* ---- Rütbe etiketleri (Kurucu/Yönetici/VIP) ---- */
.am-tag.role-founder { background: #f1c40f; color: #1e1f22; }
.am-tag.role-admin { background: #f23f43; color: #fff; }
.am-tag.role-vip { background: #9b59b6; color: #fff; }

/* ---- Kısayollar ---- */
.kb-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bg-darker); }
.kb-row:last-child { border-bottom: none; }
.kb-label { flex: 1; font-size: 14px; color: var(--text); }
.kb-key {
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  background: var(--bg-darker); border: 1px solid var(--active); border-radius: 6px;
  padding: 3px 10px; min-width: 76px; text-align: center;
}
.kb-clear {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 4px 7px; border-radius: 6px;
}
.kb-clear:hover { background: var(--red); color: #fff; }

/* ---- Emoji seçici ---- */
.composer { position: relative; }
.emoji-picker {
  position: fixed; left: 0; top: 0;
  width: 340px; max-width: calc(100vw - 24px); height: 360px; max-height: 55vh;
  background: var(--bg-dark); border: 1px solid var(--bg-darker);
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden; z-index: 30;
}
.emoji-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--bg-darker); overflow-x: auto; flex: 0 0 auto; }
/* .emoji-picker öneki: composer'ın mavi buton stilini geçersiz kılar */
.emoji-picker .emoji-tab { background: none; border: none; color: var(--text); font-size: 18px; font-weight: 400; cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1; width: auto; margin: 0; }
.emoji-picker .emoji-tab:hover { background: var(--hover); }
.emoji-grid { flex: 1 1 auto; overflow-y: auto; padding: 0 8px 8px; }
.emoji-sec-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted);
  padding: 10px 2px 4px; position: sticky; top: 0; background: var(--bg-dark);
}
.emoji-sec-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-picker .emoji-item { background: none; border: none; color: var(--text); font-size: 22px; font-weight: 400; cursor: pointer; padding: 3px; border-radius: 6px; line-height: 1.1; width: auto; margin: 0; }
.emoji-picker .emoji-item:hover { background: var(--hover); }

/* ---- Davetler (yönetici) ---- */
.admin-invites { display: flex; flex-direction: column; gap: 6px; }
.inv-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; background: var(--bg-darker); }
.inv-info { flex: 1; min-width: 0; }
.inv-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 800; font-size: 16px; letter-spacing: 1px; color: var(--text); }
.inv-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.inv-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Emoji tepkileri ---- */
.msg-react {
  position: absolute; top: -8px; right: 46px;
  background: var(--bg-darker); border: 1px solid var(--bg-input);
  color: var(--text-dim); border-radius: 6px; padding: 2px 6px;
  font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .1s ease; z-index: 2;
}
.msg:hover .msg-react { opacity: 1; }
.msg-react:hover { border-color: var(--brand); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reactions:empty { display: none; }
.rx-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-input); border: 1px solid transparent; border-radius: 10px;
  padding: 1px 8px; font-size: 15px; cursor: pointer; line-height: 1.5; color: var(--text);
}
.rx-pill:hover { border-color: var(--text-muted); }
.rx-pill.mine { border-color: var(--brand); background: var(--active); }
.rx-count { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.rx-pill.mine .rx-count { color: var(--text); }
