/* ==============================
   DISCORD STYLE – FULL CSS
   ============================== */
* { margin:0; padding:0; box-sizing:border-box; font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
html,body { height:100%; overflow:hidden; }
body { background:#1e1f22; color:#dcddde; }
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#1a1b1e; border-radius:3px; }

/* ---- BG ---- */
.bg-animation {
  position:fixed; width:200vmax; height:200vmax;
  background: radial-gradient(circle at 20% 20%,rgba(59,130,246,0.10),transparent 55%),
              radial-gradient(circle at 80% 80%,rgba(236,72,153,0.08),transparent 55%);
  filter:blur(60px); animation:spin 80s linear infinite; z-index:-1;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ---- LOGIN ---- */
.login-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.88);
  display:flex; align-items:center; justify-content:center;
  z-index:999999; backdrop-filter:blur(8px);
}
.login-box {
  background:#313338; padding:36px 32px; border-radius:18px;
  width:360px; text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,0.7);
}
.login-logo { font-size:3.5rem; margin-bottom:10px; }
.login-box h2 { font-size:1.6rem; color:#fff; margin-bottom:6px; }
.login-sub { color:#949ba4; font-size:0.85rem; margin-bottom:22px; }
.login-box input {
  width:100%; padding:11px 14px; background:#1e1f22;
  border:1.5px solid #4b5563; color:#fff; border-radius:9px;
  font-size:0.95rem; outline:none; transition:border-color 0.15s;
}
.login-box input:focus { border-color:#5865f2; }
.login-box button {
  margin-top:16px; width:100%; padding:11px; background:#5865f2;
  color:#fff; border-radius:9px; border:none; cursor:pointer;
  font-size:0.95rem; font-weight:700; transition:background 0.15s;
}
.login-box button:hover { background:#4752c4; }

/* ---- CONTAINER ---- */
.container { width:100vw; height:100vh; display:flex; flex-direction:column; overflow:hidden; }
.main-layout { display:flex; flex:1; overflow:hidden; }

/* ================================
   SUNUCU ÇUBUĞU
   ================================ */
.servers-bar {
  width:72px; background:#1e1f22;
  display:flex; flex-direction:column; align-items:center;
  padding:10px 0; gap:4px; overflow-y:auto; overflow-x:visible;
  flex-shrink:0;
}
.servers-list { display:flex; flex-direction:column; align-items:center; gap:6px; width:100%; }
.server-btn-wrap {
  position:relative; display:flex; align-items:center; justify-content:center; width:100%;
}
.server-pill {
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:4px; background:#fff; border-radius:0 4px 4px 0;
  transition:height 0.15s,opacity 0.15s; height:0; opacity:0;
}
.server-btn-wrap:hover .server-pill { height:20px; opacity:1; }
.server-btn-wrap.active .server-pill { height:40px; opacity:1; }
.server-btn {
  width:48px; height:48px; border-radius:50%; border:none;
  background:#313338; color:#dcddde; font-size:1.2rem; font-weight:700;
  cursor:pointer; transition:border-radius 0.2s,background 0.2s;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.server-btn:hover { background:#5865f2; border-radius:16px; color:#fff; }
.server-btn-wrap.active .server-btn { background:#5865f2; border-radius:16px; }
.server-btn.add-server { background:#313338; color:#3ba55d; font-size:1.5rem; }
.server-btn.add-server:hover { background:#3ba55d; color:#fff; border-radius:16px; }
.server-btn.dm-server-btn { font-size:1.3rem; }
.server-btn.dm-server-btn:hover { background:#5865f2; border-radius:16px; }
.server-btn-wrap.active.dm-active .server-btn { background:#5865f2; border-radius:16px; }
.servers-divider { width:32px; height:2px; background:#3f4046; border-radius:1px; margin:4px 0; flex-shrink:0; }

/* ================================
   KANAL PANELİ
   ================================ */
.channels-panel {
  width:240px; background:#2b2d31;
  display:flex; flex-direction:column; flex-shrink:0;
  position:relative; overflow:visible;
}
.server-header {
  height:48px; padding:0 16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(0,0,0,0.25);
  font-weight:700; font-size:0.95rem; color:#fff;
  cursor:pointer; flex-shrink:0; transition:background 0.15s;
}
.server-header:hover { background:rgba(255,255,255,0.05); }
.server-header-btn { background:none; border:none; color:#b9bbbe; font-size:1rem; cursor:pointer; }

.server-dropdown {
  position:absolute; top:52px; left:8px; right:8px;
  background:#111214; border-radius:8px; border:1px solid #1e1f22;
  padding:6px; z-index:9999; box-shadow:0 8px 32px rgba(0,0,0,0.6);
}
.sdrop-btn {
  width:100%; text-align:left; padding:8px 10px; border-radius:6px;
  border:none; background:transparent; color:#dcddde;
  font-size:0.85rem; cursor:pointer; display:flex; align-items:center; gap:8px; transition:background 0.12s;
}
.sdrop-btn:hover { background:#5865f2; color:#fff; }
.sdrop-btn.sdrop-danger { color:#f87171; }
.sdrop-btn.sdrop-danger:hover { background:#ed4245; color:#fff; }
.sdrop-divider { height:1px; background:#3f4046; margin:4px 0; }
.sdrop-icon { font-size:0.9rem; }

.channels-scroll { flex:1; overflow-y:auto; padding:8px 8px 0; }
.channels-list { list-style:none; display:flex; flex-direction:column; gap:1px; }
.channel-category {
  font-size:0.7rem; font-weight:700; text-transform:uppercase; color:#949ba4;
  letter-spacing:0.05em; padding:16px 4px 4px;
  display:flex; align-items:center; justify-content:space-between; cursor:default;
}
.channel-item { position:relative; }
.channel-btn {
  width:100%; text-align:left; padding:5px 8px;
  background:transparent; border:none; color:#949ba4;
  cursor:pointer; border-radius:6px; display:flex; align-items:center; gap:6px;
  transition:background 0.12s,color 0.12s; font-size:0.9rem;
}
.channel-btn:hover { background:rgba(255,255,255,0.06); color:#dcddde; }
.channel-btn.active { background:rgba(88,101,242,0.25); color:#fff; }
.channel-btn:hover .ch-actions, .channel-btn.active .ch-actions { display:flex; }
.ch-icon { flex-shrink:0; }
.ch-icon-text { font-size:1rem; font-weight:700; color:#6d6f78; width:16px; text-align:center; }
.ch-icon-voice { font-size:0.8rem; }
.channel-btn.active .ch-icon-text { color:#b5bac1; }
.ch-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-actions { display:none; align-items:center; gap:2px; margin-left:auto; }
.ch-action-btn {
  background:none; border:none; color:#949ba4; cursor:pointer;
  padding:2px 4px; border-radius:4px; font-size:0.75rem; line-height:1; transition:color 0.1s;
}
.ch-action-btn:hover { color:#f87171; }
.channel-users {
  list-style:none; margin:2px 0 4px 20px;
  display:flex; flex-direction:column; gap:1px;
}
.channel-users li {
  display:flex; align-items:center; gap:6px;
  padding:3px 6px; border-radius:6px; font-size:0.8rem;
  color:#949ba4; cursor:pointer; transition:background 0.1s;
}
.channel-users li:hover { background:rgba(255,255,255,0.05); color:#dcddde; }
.channel-users .cu-avatar {
  width:20px; height:20px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  display:flex; align-items:center; justify-content:center;
  font-size:0.6rem; font-weight:700; color:#fff; flex-shrink:0;
}
.channel-users li.muted { color:#f87171; }
.channel-users li.sharing { color:#4ade80; }

/* ---- DM SOL PANEL ---- */
.dm-channels-panel .dm-server-header { cursor:default; }
.dm-channels-panel .dm-server-header:hover { background:transparent; }
.dm-search-wrap { padding:8px 12px; }
.dm-search {
  width:100%; padding:7px 10px; background:#1e1f22;
  border:none; border-radius:6px; color:#dcddde; font-size:0.85rem; outline:none;
}
.dm-search::placeholder { color:#6d6f78; }
.dm-contacts-label {
  font-size:0.68rem; font-weight:700; text-transform:uppercase;
  color:#949ba4; letter-spacing:0.06em; padding:8px 16px 4px;
}
.dm-contacts-list { list-style:none; overflow-y:auto; flex:1; padding:0 8px; display:flex; flex-direction:column; gap:1px; }
.dm-contact-item {
  display:flex; align-items:center; gap:10px;
  padding:6px 8px; border-radius:8px; cursor:pointer; transition:background 0.12s;
}
.dm-contact-item:hover, .dm-contact-item.active { background:rgba(255,255,255,0.06); }
.dm-contact-item.active { background:rgba(88,101,242,0.2); }
.dm-contact-avatar {
  width:32px; height:32px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  display:flex; align-items:center; justify-content:center;
  font-size:0.8rem; font-weight:700; color:#fff;
  position:relative; flex-shrink:0;
}
.dm-contact-status {
  position:absolute; bottom:-1px; right:-1px; width:10px; height:10px;
  border-radius:50%; border:2px solid #2b2d31; background:#23a559;
}
.dm-contact-info { flex:1; min-width:0; }
.dm-contact-name { font-size:0.88rem; font-weight:600; color:#dcddde; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-contact-sub { font-size:0.72rem; color:#949ba4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-unread-badge {
  background:#ed4245; color:#fff; font-size:0.68rem; font-weight:700;
  padding:1px 6px; border-radius:8px; min-width:18px; text-align:center;
}

/* ---- PROFİL ALANI ---- */
.profile-area {
  background:#232428; border-top:1px solid rgba(0,0,0,0.3);
  padding:8px 10px; display:flex; align-items:center; gap:8px; flex-shrink:0;
}
.profile-avatar {
  width:36px; height:36px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  background-size:cover; background-position:center;
  position:relative; cursor:pointer; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; font-weight:700; color:#fff;
}
.avatar-status {
  position:absolute; bottom:-2px; right:-2px; width:12px; height:12px;
  border-radius:50%; border:2px solid #232428;
}
.avatar-status.online { background:#23a559; }
.avatar-status.idle { background:#f0b232; }
.avatar-status.dnd { background:#f23f43; }
.avatar-status.offline { background:#80848e; }
.profile-main { flex:1; overflow:hidden; min-width:0; }
.profile-name { font-size:0.85rem; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-status-text { font-size:0.72rem; color:#949ba4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-actions { display:flex; gap:2px; }
.icon-btn {
  width:32px; height:32px; border-radius:6px; border:none; background:transparent;
  color:#b9bbbe; font-size:1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background 0.12s,color 0.12s;
}
.icon-btn:hover:not(:disabled) { background:rgba(255,255,255,0.1); color:#fff; }
.icon-btn:disabled { opacity:0.35; cursor:not-allowed; }
.icon-btn.btn-muted { background:rgba(237,66,69,0.3); color:#f23f43; }
.icon-btn.btn-sharing { background:rgba(6,182,212,0.3); color:#22d3ee; }
.icon-btn-danger:hover:not(:disabled) { background:rgba(237,66,69,0.25) !important; color:#f87171 !important; }

/* ================================
   ORTA PANEL
   ================================ */
.left-panel { flex:1; display:flex; flex-direction:column; background:#313338; overflow:hidden; }
.channel-view { display:flex; flex-direction:column; flex:1; overflow:hidden; }
.channel-topbar {
  height:48px; padding:0 16px; background:#313338;
  border-bottom:1px solid rgba(0,0,0,0.2);
  display:flex; align-items:center; gap:10px; flex-shrink:0;
  box-shadow:0 1px 0 rgba(0,0,0,0.15);
}
.ch-topbar-hash { font-size:1.4rem; font-weight:900; color:#6d6f78; }
.channel-topbar-name { font-weight:700; font-size:0.95rem; color:#fff; }
.topbar-divider { width:1px; height:20px; background:#4f545c; margin:0 4px; }
.channel-topbar-desc { font-size:0.82rem; color:#949ba4; flex:1; }
.topbar-right { display:flex; gap:4px; margin-left:auto; }
.topbar-btn {
  background:none; border:none; color:#b9bbbe; cursor:pointer;
  padding:4px 8px; border-radius:6px; font-size:0.9rem; transition:background 0.12s;
}
.topbar-btn:hover { background:rgba(255,255,255,0.08); color:#fff; }

/* Arama çubuğu */
.search-bar {
  background:#2b2d31; padding:6px 16px;
  display:flex; align-items:center; gap:8px;
  border-bottom:1px solid rgba(0,0,0,0.2);
}
.search-bar input {
  flex:1; background:#1e1f22; border:none; color:#dcddde;
  padding:6px 10px; border-radius:6px; font-size:0.85rem; outline:none;
}
#searchClose { background:none; border:none; color:#949ba4; cursor:pointer; font-size:1rem; }

/* Yazıyor bildirimi */
.typing-indicator {
  padding:4px 16px; font-size:0.78rem; color:#949ba4;
  background:#313338; min-height:24px;
  display:flex; align-items:center; gap:6px;
}
.typing-dots { display:flex; gap:3px; }
.typing-dots span {
  width:5px; height:5px; background:#949ba4; border-radius:50%;
  animation:typingBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay:0.2s; }
.typing-dots span:nth-child(3) { animation-delay:0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform:translateY(0); } 30% { transform:translateY(-5px); } }

/* ---- CHAT ---- */
.chat-panel { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.chat-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:2px; }
.welcome-msg { display:flex; flex-direction:column; align-items:flex-start; padding:16px 0 24px; }
.welcome-icon { font-size:4rem; margin-bottom:12px; }
.welcome-title { font-size:1.6rem; font-weight:800; color:#fff; margin-bottom:6px; }
.welcome-sub { color:#949ba4; font-size:0.9rem; }

/* Mesaj grubu Discord stili */
.msg-group { display:flex; gap:14px; padding:3px 4px; border-radius:4px; transition:background 0.1s; }
.msg-group:hover { background:rgba(255,255,255,0.02); }
.msg-avatar {
  width:38px; height:38px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  flex-shrink:0; margin-top:2px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; font-weight:700; color:#fff;
}
.msg-avatar:hover { opacity:0.85; }
.msg-body { flex:1; min-width:0; }
.msg-header { display:flex; align-items:baseline; gap:8px; margin-bottom:2px; }
.msg-author { font-weight:600; font-size:0.92rem; color:#fff; cursor:pointer; }
.msg-author:hover { text-decoration:underline; }
.msg-author.self-author { color:#a5b4fc; }
.msg-time { font-size:0.7rem; color:#6d6f78; }
.msg-text { font-size:0.9rem; color:#dcddde; word-break:break-word; white-space:pre-wrap; line-height:1.45; }
.msg-text.highlight { background:rgba(250,166,26,0.15); border-radius:3px; padding:0 2px; }
/* Mesaj reaksiyonları */
.msg-reactions { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.msg-reaction {
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  border-radius:8px; padding:2px 8px; font-size:0.8rem; cursor:pointer;
  transition:background 0.1s; display:flex; align-items:center; gap:3px;
}
.msg-reaction:hover { background:rgba(255,255,255,0.12); }
.msg-reaction.mine { background:rgba(88,101,242,0.2); border-color:rgba(88,101,242,0.5); }
/* Mesaj hover aksiyonları */
.msg-actions {
  display:none; position:absolute; right:8px; top:-12px;
  background:#2b2d31; border:1px solid #3f4046;
  border-radius:6px; padding:2px 4px;
  gap:2px; box-shadow:0 4px 12px rgba(0,0,0,0.4);
}
.msg-group { position:relative; }
.msg-group:hover .msg-actions { display:flex; }
.msg-action-btn {
  background:none; border:none; color:#949ba4; cursor:pointer;
  padding:4px 6px; border-radius:4px; font-size:0.85rem; transition:background 0.1s;
}
.msg-action-btn:hover { background:rgba(255,255,255,0.1); color:#fff; }

/* Tarih ayırıcı */
.date-separator {
  display:flex; align-items:center; gap:10px;
  margin:12px 0 8px; color:#6d6f78; font-size:0.75rem;
}
.date-separator::before, .date-separator::after { content:""; flex:1; height:1px; background:#3f4046; }

.chat-input-wrap { padding:0 16px 16px; flex-shrink:0; }
.chat-input-row {
  position:relative; display:flex; align-items:center; gap:6px;
  background:#383a40; border-radius:10px; padding:6px 8px;
}
.chat-input-row input {
  flex:1; background:none; border:none; outline:none;
  color:#dcddde; font-size:0.92rem; padding:6px 4px;
}
.chat-input-row input::placeholder { color:#6d6f78; }
.emoji-btn {
  background:none; border:none; cursor:pointer; font-size:1.1rem;
  color:#b9bbbe; padding:4px; border-radius:6px; transition:background 0.12s;
}
.emoji-btn:hover { background:rgba(255,255,255,0.08); }
.send-btn {
  background:#5865f2; border:none; color:#fff; cursor:pointer;
  padding:7px 14px; border-radius:6px; font-size:0.9rem; font-weight:600;
  transition:background 0.12s; flex-shrink:0;
}
.send-btn:hover { background:#4752c4; }
.emoji-picker {
  position:absolute; bottom:52px; left:0;
  background:#2b2d31; border-radius:10px; border:1px solid #1e1f22;
  padding:8px; display:flex; flex-wrap:wrap; gap:4px;
  width:220px; z-index:50; box-shadow:0 8px 24px rgba(0,0,0,0.5);
}
.emoji-picker span {
  cursor:pointer; font-size:1.2rem; padding:5px; border-radius:6px; transition:background 0.1s;
}
.emoji-picker span:hover { background:rgba(255,255,255,0.1); }

/* ---- DM TOPBAR AVATAR ---- */
.dm-topbar-avatar {
  width:28px; height:28px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  display:flex; align-items:center; justify-content:center;
  font-size:0.75rem; font-weight:700; color:#fff; flex-shrink:0;
}

/* ================================
   SES KANALI
   ================================ */
.voice-panel { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; }
.voice-status { text-align:center; max-width:420px; }
.voice-status-icon { font-size:5rem; margin-bottom:16px; }
.voice-status-title { font-size:1.8rem; font-weight:800; color:#fff; margin-bottom:8px; }
.voice-status-sub { color:#949ba4; font-size:0.9rem; margin-bottom:28px; }
.voice-join-btn {
  padding:13px 32px; background:#3ba55d; color:#fff;
  border:none; border-radius:12px; font-size:1rem; font-weight:700; cursor:pointer; transition:background 0.15s;
}
.voice-join-btn:hover { background:#2d8249; }
.voice-users-grid {
  width:100%; max-width:700px;
  display:flex; flex-wrap:wrap; gap:14px;
  justify-content:center; padding:16px;
}
.voice-user-card {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:#2b2d31; border-radius:14px; padding:18px 22px; min-width:96px;
  border:2px solid transparent; transition:border-color 0.2s,transform 0.15s; cursor:pointer;
}
.voice-user-card:hover { transform:translateY(-2px); }
.voice-user-card.speaking { border-color:#23a559; box-shadow:0 0 12px rgba(35,165,89,0.3); }
.voice-user-card.muted { opacity:0.7; }
.vc-avatar {
  width:58px; height:58px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  position:relative; display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; font-weight:700; color:#fff;
}
.vc-mute-badge {
  position:absolute; bottom:-2px; right:-2px; width:18px; height:18px;
  border-radius:50%; background:#f23f43;
  display:none; align-items:center; justify-content:center;
  font-size:0.6rem; border:2px solid #2b2d31;
}
.voice-user-card.muted .vc-mute-badge { display:flex; }
.vc-name { font-size:0.82rem; color:#dcddde; font-weight:600; text-align:center; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vc-sharing-badge { font-size:0.7rem; color:#22d3ee; background:rgba(6,182,212,0.15); padding:2px 6px; border-radius:8px; }

/* ================================
   SAĞ ÜYE PANELİ
   ================================ */
.users-panel {
  width:240px; background:#2b2d31;
  display:flex; flex-direction:column; overflow:hidden; flex-shrink:0;
}
.users-header {
  height:48px; padding:0 16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(0,0,0,0.2);
  font-weight:700; font-size:0.85rem; color:#fff; flex-shrink:0;
}
.members-count {
  background:#5865f2; color:#fff; font-size:0.72rem; font-weight:700;
  padding:2px 8px; border-radius:10px;
}
.users-section-label {
  font-size:0.68rem; font-weight:700; text-transform:uppercase;
  color:#949ba4; letter-spacing:0.06em; padding:12px 16px 4px;
}
#usersList { list-style:none; overflow-y:auto; flex:1; padding:0 8px; display:flex; flex-direction:column; gap:1px; }
#usersList li {
  display:flex; align-items:center; gap:10px;
  padding:6px 8px; border-radius:8px; cursor:pointer; transition:background 0.12s;
}
#usersList li:hover { background:rgba(255,255,255,0.06); }
.user-list-avatar {
  width:34px; height:34px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#1a1b1e);
  background-size:cover; background-position:center;
  position:relative; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:0.8rem; font-weight:700; color:#fff;
}
.user-list-status {
  position:absolute; bottom:-1px; right:-1px; width:10px; height:10px;
  border-radius:50%; border:2px solid #2b2d31; background:#23a559;
}
.user-list-status.idle { background:#f0b232; }
.user-list-status.dnd { background:#f23f43; }
.user-list-status.offline { background:#80848e; }
.user-list-info { flex:1; min-width:0; }
.user-list-name { font-size:0.88rem; font-weight:600; color:#dcddde; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-list-sub { font-size:0.72rem; color:#949ba4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mic-dot { width:12px; height:12px; border-radius:50%; background:#23a559; flex-shrink:0; }
.mic-dot.off { background:#f23f43; }

/* ================================
   SES PANELİ (popup)
   ================================ */
.user-volume-panel {
  position:fixed; width:270px; background:#1e1f22;
  border-radius:12px; border:1px solid #3f4046;
  padding:14px; z-index:9999; box-shadow:0 16px 48px rgba(0,0,0,0.7);
}
.uv-profile { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.uv-avatar {
  width:42px; height:42px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#111);
  border:2px solid rgba(88,101,242,0.8);
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; font-weight:700; color:#fff;
}
.uv-main { flex:1; }
.uv-name { font-weight:600; font-size:0.9rem; color:#fff; }
.uv-sub { font-size:0.72rem; color:#949ba4; }
.uv-close-btn { background:none; border:none; color:#949ba4; font-size:1.2rem; cursor:pointer; }
.uv-section { margin-top:4px; }
.uv-label { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; font-size:0.8rem; color:#b9bbbe; }
.uv-label input[type="range"] { accent-color:#5865f2; }
.uv-label.uv-mute { flex-direction:row; align-items:center; gap:8px; }
.uv-watch { margin-top:8px; }
.watch-btn { width:100%; padding:8px; background:#5865f2; border-radius:8px; border:none; color:#fff; cursor:pointer; font-size:0.85rem; transition:background 0.12s; }
.watch-btn:hover { background:#4752c4; }

/* ================================
   EKRAN İZLEME
   ================================ */
.screen-watch-popup {
  position:fixed; top:50%; left:50%; width:72%; height:72%;
  transform:translate(-50%,-50%); background:#1e1f22;
  border-radius:16px; border:1px solid #3f4046;
  padding:10px; z-index:9999; display:flex; flex-direction:column;
  box-shadow:0 24px 60px rgba(0,0,0,0.8);
}
.screen-watch-header { display:flex; justify-content:space-between; align-items:center; color:#fff; padding:4px 2px 8px; font-size:0.9rem; }
.screen-controls { display:flex; align-items:center; gap:4px; }
#screenWatchVideo { width:100%; height:100%; border-radius:12px; background:#000; object-fit:contain; }
.fs-btn { background:#2b2d31; color:#fff; border:none; padding:6px 10px; cursor:pointer; border-radius:6px; font-size:0.9rem; }
.fs-btn:hover { background:#5865f2; }
#screenWatchClose { background:none; border:none; color:#b9bbbe; font-size:1.4rem; cursor:pointer; padding:0 6px; }

/* ================================
   SAĞ TIK MENÜLER
   ================================ */
.context-volume-menu, .user-context-menu {
  position:fixed; background:#111214; border:1px solid #3f4046;
  border-radius:8px; padding:4px; z-index:99999; min-width:180px;
  display:none; flex-direction:column; gap:2px;
  box-shadow:0 8px 24px rgba(0,0,0,0.6);
}
.context-volume-menu button, .user-context-menu button {
  background:transparent; border:none; padding:7px 10px; border-radius:4px;
  color:#dcddde; cursor:pointer; font-size:0.84rem; text-align:left; transition:background 0.1s;
}
.context-volume-menu button:hover, .user-context-menu button:hover { background:#5865f2; color:#fff; }

/* ================================
   AYARLAR MODALİ
   ================================ */
.settings-modal {
  position:fixed; inset:0; background:rgba(0,0,0,0.85);
  display:flex; align-items:center; justify-content:center;
  z-index:99999; backdrop-filter:blur(6px);
}
.settings-box { background:#313338; border-radius:16px; width:460px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,0.6); }
.settings-header { padding:18px 22px; border-bottom:1px solid rgba(0,0,0,0.2); display:flex; justify-content:space-between; align-items:center; }
.settings-header h3 { font-size:1.1rem; color:#fff; }
.settings-close { background:none; border:none; color:#949ba4; font-size:1.3rem; cursor:pointer; }
.settings-body { padding:22px; }
.settings-avatar-wrap { display:flex; flex-direction:column; align-items:center; gap:6px; margin-bottom:22px; cursor:pointer; }
.settings-avatar {
  width:84px; height:84px; border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#a5b4fc,#4f46e5 60%,#111);
  background-size:cover; background-position:center;
  border:3px solid #5865f2; transition:filter 0.15s;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; font-weight:700; color:#fff;
}
.settings-avatar-wrap:hover .settings-avatar { filter:brightness(0.7); }
.settings-avatar-label { font-size:0.78rem; color:#949ba4; }
.settings-field { margin-bottom:16px; }
.settings-field label { display:block; font-size:0.75rem; font-weight:700; text-transform:uppercase; color:#b9bbbe; margin-bottom:6px; }
.settings-field input { width:100%; padding:9px 12px; background:#1e1f22; border:1.5px solid #4b5563; color:#fff; border-radius:7px; font-size:0.9rem; outline:none; transition:border-color 0.15s; }
.settings-field input:focus { border-color:#5865f2; }
/* Durum seçenekleri */
.status-options { display:flex; gap:6px; flex-wrap:wrap; }
.status-opt {
  padding:6px 12px; border-radius:8px; border:1.5px solid #4b5563;
  background:transparent; color:#dcddde; cursor:pointer; font-size:0.82rem; transition:all 0.12s;
}
.status-opt:hover, .status-opt.active { background:#5865f2; border-color:#5865f2; color:#fff; }
.settings-save-btn {
  width:100%; padding:11px; background:#5865f2; color:#fff;
  border:none; border-radius:8px; cursor:pointer;
  font-size:0.92rem; font-weight:700; transition:background 0.12s;
}
.settings-save-btn:hover { background:#4752c4; }

/* ================================
   TOAST BİLDİRİM
   ================================ */
.toast-container { position:fixed; bottom:20px; right:20px; z-index:999999; display:flex; flex-direction:column; gap:8px; }
.toast {
  background:#1e1f22; border:1px solid #3f4046; border-left:4px solid #5865f2;
  padding:12px 16px; border-radius:8px; color:#dcddde; font-size:0.85rem;
  box-shadow:0 8px 24px rgba(0,0,0,0.5);
  animation:toastIn 0.3s ease; max-width:300px;
}
.toast.dm-toast { border-left-color:#3ba55d; }
.toast.error-toast { border-left-color:#f23f43; }
.toast.success-toast { border-left-color:#23a559; }
.toast-title { font-weight:700; margin-bottom:3px; color:#fff; }
@keyframes toastIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* ================================
   EK STİLLER – YENİ ÖZELLİKLER
   ================================ */

/* Scroll-to-bottom butonu */
.scroll-bottom-btn {
  position: absolute;
  bottom: 80px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%; background: #5865f2;
  border: none; color: #fff; font-size: 1rem;
  cursor: pointer; display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 10; transition: opacity 0.2s, transform 0.15s;
}
.scroll-bottom-btn:hover { transform: scale(1.1); }

/* DM Sol panel scroll */
.dm-contacts-list { min-height: 0; }

/* Mesaj hover reaksiyon butonu */
.msg-actions button:first-child { font-size: 1rem; }

/* Presence dot colors */
.user-list-status.online  { background: #23a559; }
.user-list-status.idle    { background: #f0b232; }
.user-list-status.dnd     { background: #f23f43; }
.user-list-status.invisible,
.user-list-status.offline { background: #80848e; }

/* Profil paneli ses durumu göstergesi */
.voice-connected-bar {
  background: #232428; border-top: 1px solid rgba(35,165,89,0.4);
  padding: 6px 10px; display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: #23a559; flex-shrink: 0;
}
.voice-connected-bar .vc-name-small { color: #dcddde; font-weight: 600; }
.voice-connected-bar .vc-leave { background: none; border: none; color: #f87171; cursor: pointer; font-size: 0.8rem; margin-left: auto; }

/* Tarih ayırıcı */
.date-separator {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 8px; color: #6d6f78; font-size: 0.75rem;
}
.date-separator::before, .date-separator::after {
  content: ""; flex: 1; height: 1px; background: #3f4046;
}

/* Çevrimiçi durumu paneli başlığı */
.users-section-label {
  display: flex; align-items: center; gap: 6px;
}
.users-section-label::before {
  content: "●"; color: #23a559; font-size: 0.5rem;
}

/* Chat mesaj input odaklanma animasyonu */
.chat-input-row:focus-within {
  box-shadow: 0 0 0 2px rgba(88,101,242,0.3);
}

/* Karakter sayacı */
#charCounter {
  position: absolute; right: 60px; bottom: 18px;
  font-size: 0.7rem; color: #6d6f78; pointer-events: none;
}

/* =========================================
   v4 YENİ STİLLER
   ========================================= */

/* ---- AUTH EKRANI ---- */
.auth-overlay {
  position:fixed;inset:0;background:radial-gradient(ellipse at 30% 40%,#23284a,#0d0e17);
  display:flex;align-items:center;justify-content:center;z-index:999999;
}
.auth-container {
  width:420px;text-align:center;
  animation: authFadeIn 0.3s ease;
}
@keyframes authFadeIn { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.auth-logo { font-size:4rem;margin-bottom:10px; }
.auth-brand { font-size:2rem;font-weight:900;color:#fff;margin-bottom:2px; background:linear-gradient(135deg,#a5b4fc,#818cf8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.auth-sub { color:#6d6f78;font-size:0.85rem;margin-bottom:24px; }
.auth-form { background:#313338;border-radius:16px;padding:32px 28px;box-shadow:0 24px 64px rgba(0,0,0,0.8);text-align:left; }
.auth-form h2 { color:#fff;font-size:1.4rem;margin-bottom:6px;text-align:center; }
.form-sub { color:#949ba4;font-size:0.82rem;margin-bottom:20px;text-align:center; }
.form-field { margin-bottom:16px; }
.form-field label { display:block;font-size:0.72rem;font-weight:700;text-transform:uppercase;color:#b9bbbe;letter-spacing:0.05em;margin-bottom:6px; }
.form-field input { width:100%;padding:10px 12px;background:#1e1f22;border:1.5px solid #4b5563;color:#fff;border-radius:8px;font-size:0.92rem;outline:none;transition:border-color 0.15s; }
.form-field input:focus { border-color:#5865f2; }
.pass-wrap { position:relative; }
.pass-wrap input { padding-right:40px; }
.pass-toggle { position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;color:#949ba4;cursor:pointer;font-size:0.9rem;padding:4px; }
.form-hint { font-weight:400;text-transform:none;font-size:0.7rem;color:#6d6f78; }
.remember-me { display:flex;align-items:center;gap:8px;font-size:0.82rem;color:#b9bbbe;margin-bottom:16px;cursor:pointer; }
.remember-me input { width:auto; }
.form-error { color:#f87171;font-size:0.78rem;min-height:18px;margin-bottom:8px;text-align:center; }
.auth-btn-primary { width:100%;padding:11px;background:#5865f2;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:0.95rem;font-weight:700;transition:background 0.15s;margin-bottom:8px; }
.auth-btn-primary:hover { background:#4752c4; }
.auth-btn-primary:disabled { opacity:0.6;cursor:not-allowed; }
.auth-btn-secondary { width:100%;padding:10px;background:transparent;color:#dcddde;border:1.5px solid #4b5563;border-radius:8px;cursor:pointer;font-size:0.9rem;font-weight:600;transition:all 0.15s;margin-bottom:8px; }
.auth-btn-secondary:hover { border-color:#5865f2;color:#fff; }
.form-switch { font-size:0.82rem;color:#949ba4;text-align:center;margin-top:4px; }
.form-switch a { color:#5865f2;text-decoration:none;font-weight:600; }
.form-switch a:hover { text-decoration:underline; }
/* E-posta doğrulama */
.verify-icon { font-size:4rem;text-align:center;margin-bottom:12px; }
.verify-email-display { font-size:0.9rem;color:#a5b4fc;font-weight:600;text-align:center;margin-bottom:16px;word-break:break-all; }
.verify-code-wrap { display:flex;justify-content:center;margin-bottom:12px; }
.verify-code-input { font-size:2rem;letter-spacing:0.4em;text-align:center;width:220px;padding:14px;background:#1e1f22;border:2px solid #5865f2;color:#fff;border-radius:10px;outline:none; }
.verify-note { font-size:0.72rem;color:#6d6f78;margin-top:12px;padding:8px;background:#2b2d31;border-radius:6px; }

/* ---- DAVET EKRANI ---- */
.invite-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.88);display:flex;align-items:center;justify-content:center;z-index:99999;backdrop-filter:blur(8px); }
.invite-box { background:#313338;border-radius:20px;padding:40px 36px;text-align:center;max-width:360px;box-shadow:0 24px 60px rgba(0,0,0,0.7); }
.invite-server-icon { width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#5865f2,#3b82f6);color:#fff;font-size:2.2rem;font-weight:900;display:flex;align-items:center;justify-content:center;margin:0 auto 14px; }
.invite-tag { font-size:0.7rem;font-weight:700;text-transform:uppercase;color:#949ba4;letter-spacing:0.06em;margin-bottom:8px; }
.invite-box h2 { color:#fff;font-size:1.5rem;font-weight:800;margin-bottom:6px; }
.invite-info { color:#949ba4;font-size:0.85rem;margin-bottom:24px; }
.invite-btns { display:flex;flex-direction:column;gap:8px; }

/* ---- SUNUCU OLUŞTUR MODAL ---- */
.create-server-box { max-width:440px; }

/* ---- SUNUCU AYARLAR MODAL ---- */
.server-settings-box { max-width:520px; }
.settings-tabs { display:flex;border-bottom:1px solid #3f4046;padding:0 22px; }
.stab { background:none;border:none;color:#949ba4;padding:12px 16px;cursor:pointer;font-size:0.85rem;font-weight:600;border-bottom:2px solid transparent;transition:color 0.12s;margin-bottom:-1px; }
.stab:hover { color:#dcddde; }
.stab.active { color:#fff;border-bottom-color:#5865f2; }
.stab-content { padding-top:12px; }

/* Davet linki */
.invite-section { display:flex;flex-direction:column;gap:8px; }
.invite-link-wrap { display:flex;gap:8px; }
.invite-link-wrap input { flex:1;padding:9px 12px;background:#1e1f22;border:none;color:#dcddde;border-radius:7px;font-size:0.82rem;outline:none; }
.copy-btn { background:#5865f2;border:none;color:#fff;padding:9px 16px;border-radius:7px;cursor:pointer;font-size:0.82rem;font-weight:600;white-space:nowrap;transition:background 0.12s; }
.copy-btn:hover { background:#4752c4; }
.secondary-btn { background:transparent;border:1.5px solid #4b5563;color:#dcddde;padding:8px 14px;border-radius:7px;cursor:pointer;font-size:0.82rem;transition:all 0.12s; }
.secondary-btn:hover { border-color:#5865f2;color:#fff; }

/* Üyeler listesi */
.srv-members-list { list-style:none;display:flex;flex-direction:column;gap:4px;max-height:280px;overflow-y:auto; }
.srv-member-item { display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;transition:background 0.1s; }
.srv-member-item:hover { background:rgba(255,255,255,0.04); }
.srv-member-av { width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#5865f2,#a5b4fc);display:flex;align-items:center;justify-content:center;font-size:0.85rem;font-weight:700;color:#fff;flex-shrink:0; }
.srv-member-info { flex:1;min-width:0; }
.srv-member-name { font-size:0.88rem;font-weight:600;color:#dcddde; }
.srv-member-sub { font-size:0.72rem;color:#949ba4; }
.srv-member-actions { display:flex;gap:6px; }
.danger-btn { background:#f23f43;border:none;color:#fff;padding:7px 12px;border-radius:7px;cursor:pointer;font-size:0.82rem;font-weight:600;transition:background 0.12s; }
.danger-btn:hover { background:#d83c3e; }
.danger-btn-sm { background:rgba(242,63,67,0.2);border:1px solid rgba(242,63,67,0.4);color:#f87171;padding:4px 8px;border-radius:5px;cursor:pointer;font-size:0.75rem;transition:all 0.12s; }
.danger-btn-sm:hover { background:#f23f43;color:#fff; }
.primary-btn-sm { background:rgba(88,101,242,0.2);border:1px solid rgba(88,101,242,0.4);color:#a5b4fc;padding:4px 8px;border-radius:5px;cursor:pointer;font-size:0.75rem;transition:all 0.12s; }
.primary-btn-sm:hover { background:#5865f2;color:#fff; }
.secondary-btn-sm { background:rgba(79,84,92,0.3);border:1px solid #3f4046;color:#949ba4;padding:4px 8px;border-radius:5px;cursor:pointer;font-size:0.75rem;transition:all 0.12s; }
.secondary-btn-sm:hover { background:#4b5563;color:#fff; }
.danger-zone { margin-top:24px;padding:16px;background:rgba(242,63,67,0.08);border:1px solid rgba(242,63,67,0.2);border-radius:10px; }
.danger-zone h4 { color:#f87171;font-size:0.82rem;margin-bottom:10px; }
.settings-divider { height:1px;background:#3f4046;margin:16px 0; }

/* ---- KULLANICI PROFİL MODAL ---- */
.user-profile-box { max-width:320px;overflow:hidden;padding:0; }
.user-profile-banner { height:80px;background:linear-gradient(135deg,#5865f2,#3b82f6,#a855f7); }
.user-profile-avatar-wrap { position:relative;margin:-36px 0 0 16px;width:fit-content; }
.user-profile-avatar { width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#a5b4fc,#5865f2);border:4px solid #313338;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;color:#fff; }
.user-profile-status-dot { position:absolute;bottom:4px;right:0;width:16px;height:16px;border-radius:50%;border:3px solid #313338; }
.user-profile-status-dot.online  { background:#23a559; }
.user-profile-status-dot.idle    { background:#f0b232; }
.user-profile-status-dot.dnd     { background:#f23f43; }
.user-profile-status-dot.offline,
.user-profile-status-dot.invisible { background:#80848e; }
.role-badge { display:inline-flex;align-items:center;padding:4px 10px;background:rgba(88,101,242,0.2);border:1px solid rgba(88,101,242,0.4);border-radius:8px;font-size:0.78rem;color:#a5b4fc;margin-bottom:14px; }
.profile-modal-actions { display:flex;gap:8px; }

/* ---- BOŞ EKRAN ---- */
.empty-view { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px; }
.empty-icon { font-size:5rem;margin-bottom:10px; }
.empty-view h2 { font-size:1.6rem;font-weight:800;color:#fff;margin-bottom:6px; }
.empty-view p { color:#949ba4;font-size:0.9rem;text-align:center;max-width:340px; }

/* ---- SUNUCU BAR (Sunucu listesi boş başlıyor) ---- */
.servers-list { display:flex;flex-direction:column;align-items:center;gap:6px;width:100%; }