/* ============ Renkler ve temel ============ */
:root {
  --bg0: #111214;
  --bg1: #1e1f22;
  --bg2: #2b2d31;
  --bg3: #313338;
  --bg4: #383a40;
  --uzerine: rgba(78, 80, 88, .3);
  --secili: rgba(78, 80, 88, .6);
  --cizgi: #3f4147;
  --yazi: #dbdee1;
  --soluk: #949ba4;
  --baslik-yazi: #f2f3f5;
  --vurgu: #5b6cf9;
  --vurgu-koyu: #4a5ae0;
  --yesil: #23a55a;
  --kirmizi: #f23f43;
  --sari: #f0b232;
  --canli: #ed4245;
  --font: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg3); color: var(--yazi); font: 15px/1.375 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3 { margin: 0; color: var(--baslik-yazi); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 1px; }
input, select, textarea {
  font: inherit; color: var(--yazi); background: var(--bg1); border: 0; border-radius: 4px;
  padding: 10px; width: 100%; outline: none;
}
input:focus, select:focus { box-shadow: 0 0 0 2px var(--vurgu); }
label { display: block; margin: 16px 0; font-size: 12px; font-weight: 700; color: var(--soluk); text-transform: uppercase; letter-spacing: .02em; }
label input, label select { margin-top: 8px; font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; }
label.satir { display: flex; gap: 10px; align-items: center; text-transform: none; font-size: 14px; color: var(--yazi); font-weight: 400; letter-spacing: 0; cursor: pointer; }
label.satir input { width: 18px; height: 18px; margin: 0; accent-color: var(--vurgu); }
.alan-baslik { font-size: 12px; font-weight: 700; color: var(--soluk); text-transform: uppercase; margin: 16px 0 8px; letter-spacing: .02em; }
.gizli { display: none !important; }
.soluk { color: var(--soluk); }
.kucuk { font-size: 12.5px; }
.orta { text-align: center; }
.hata { color: #fa777c; min-height: 1.3em; margin: 8px 0 0; font-size: 14px; }
code, kbd { background: var(--bg1); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; font-family: Consolas, monospace; }
ul { list-style: none; margin: 0; padding: 0; }

.ana { background: var(--vurgu); color: #fff; font-weight: 500; border-radius: 4px; padding: 10px 18px; transition: background .15s; }
.ana:hover { background: var(--vurgu-koyu); }
.ana.tam, .tam { width: 100%; }
.ikincil, .hafif { background: #4e5058; color: #fff; border-radius: 4px; padding: 10px 16px; font-weight: 500; transition: background .15s; }
.ikincil:hover, .hafif:hover { background: #6d6f78; }
.kucuk-dugme { padding: 6px 12px; font-size: 13.5px; }
.metin-dugme { color: var(--vurgu); font-size: 13px; }
.metin-dugme:hover { text-decoration: underline; }
.tehlike { background: var(--kirmizi); color: #fff; border-radius: 4px; }
.tehlike:hover { background: #da373c; }
.tehlike.onay { background: #a12828; }

.ikon-dugme { width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; color: var(--soluk); transition: background .1s, color .1s; }
.ikon-dugme:hover { background: var(--secili); color: var(--yazi); }
.ikon-dugme .cizik { display: none; stroke: var(--kirmizi); stroke-width: 2.4; }
.ikon-dugme.kapali { color: var(--kirmizi); }
.ikon-dugme.kapali .cizik { display: inline; }
.ikon-dugme.kilitli { opacity: .5; cursor: not-allowed; }
.ikon-dugme.acik { color: var(--yazi); }

/* ============ Avatar ============ */
.avatar {
  --c: #5b6cf9;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; position: relative;
  display: grid; place-items: center; background: var(--c); color: #fff;
  font-weight: 700; font-size: 13px; text-transform: uppercase; user-select: none;
  transition: box-shadow .12s;
}
.avatar.konusuyor { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--yesil); }
.avatar-sar { position: relative; display: inline-flex; }
.durum-nokta { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--yesil); border: 3px solid var(--bg2); }
.durum-nokta.seste { background: var(--yesil); }

/* ============ Giriş ============ */
.perde { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); }
.giris-perde {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(91, 108, 249, .35), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(35, 165, 90, .18), transparent 60%),
    #1a1b2e;
}
.pano { position: relative; background: var(--bg3); border-radius: 8px; padding: 28px; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, .4); }
.pano > h2 { font-size: 20px; margin-bottom: 8px; }
.giris-pano { width: min(480px, 100%); padding: 32px; }
.giris-pano h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.giris-pano .ana { margin-top: 20px; padding: 12px; font-size: 16px; }
.renkler { display: flex; gap: 10px; flex-wrap: wrap; }
.renk { width: 30px; height: 30px; border-radius: 50%; background: var(--c); transition: transform .1s; }
.renk:hover { transform: scale(1.1); }
.renk[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg3), 0 0 0 4px #fff; }

/* ============ Ana düzen ============ */
#uygulama { display: grid; grid-template-columns: 240px minmax(0, 1fr); height: 100vh; height: 100dvh; }
#kenar { background: var(--bg2); display: flex; flex-direction: column; min-height: 0; position: relative; }

.sunucu-baslik {
  height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0;
  font-weight: 700; font-size: 15.5px; color: var(--baslik-yazi); box-shadow: 0 1px 0 rgba(4, 4, 5, .2), 0 1.5px 0 rgba(6, 6, 7, .05), 0 2px 0 rgba(4, 4, 5, .05);
  transition: background .1s; text-align: left;
}
.sunucu-baslik:hover, .sunucu-baslik[aria-expanded="true"] { background: var(--uzerine); }
#sunucuAdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sunucu-baslik .ok { width: 18px; height: 18px; transition: transform .15s; }
.sunucu-baslik[aria-expanded="true"] .ok { transform: rotate(180deg); }

.menu { position: absolute; z-index: 40; background: var(--bg0); border-radius: 4px; padding: 6px 8px; box-shadow: 0 8px 16px rgba(0, 0, 0, .24); min-width: 220px; }
#sunucuMenu { top: 54px; left: 10px; right: 10px; }
.menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 8px; border-radius: 2px; font-size: 14px; font-weight: 500; color: #b5bac1; text-align: left; gap: 8px; }
.menu button svg { width: 18px; height: 18px; }
.menu button:hover { background: var(--vurgu); color: #fff; }
.menu button.tehlikeli { color: var(--kirmizi); }
.menu button.tehlikeli:hover { background: var(--kirmizi); color: #fff; }
.menu-ayrac { height: 1px; background: rgba(78, 80, 88, .48); margin: 4px 4px; }

.kanallar { flex: 1; overflow-y: auto; padding: 8px 8px 12px; scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
.kategori { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--soluk); padding: 18px 8px 4px; }
.kategori:first-child { padding-top: 8px; }
.kanal {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin: 1px 0; border-radius: 4px;
  color: var(--soluk); font-weight: 500; font-size: 15.5px; text-align: left; position: relative;
}
.kanal:hover { background: var(--uzerine); color: var(--yazi); }
.kanal.aktif { background: var(--secili); color: #fff; }
.kanal.okunmadi { color: #fff; }
.kanal.okunmadi::before { content: ""; position: absolute; left: -8px; top: 50%; width: 4px; height: 8px; margin-top: -4px; background: #fff; border-radius: 0 4px 4px 0; }
.kanal .kanal-ikon { width: 20px; height: 20px; color: #80848e; font-size: 20px; font-weight: 400; display: grid; place-items: center; line-height: 1; }
.kanal .kanal-ad { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanal .canli-cip { margin-left: auto; }
.kanal.ses-kanal.benim { color: #fff; }
.ses-uyeler { padding: 0 0 4px 28px; }
.ses-uye { display: flex; align-items: center; gap: 8px; padding: 3px 8px; margin: 1px 0; border-radius: 4px; font-size: 14px; color: var(--soluk); cursor: pointer; }
.ses-uye:hover { background: var(--uzerine); color: var(--yazi); }
.ses-uye .avatar { width: 24px; height: 24px; font-size: 10px; }
.ses-uye .ad { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ses-uye.konusan .ad { color: var(--yazi); }
.ses-uye .simgeler { display: flex; gap: 4px; align-items: center; color: var(--soluk); }
.ses-uye .simgeler svg { width: 15px; height: 15px; }
.ses-uye .simgeler .kirmizi { color: var(--kirmizi); }
.canli-cip { display: inline-flex; align-items: center; background: var(--canli); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; border-radius: 4px; padding: 1px 5px; text-transform: uppercase; }

/* Ses paneli */
.ses-paneli { background: #232428; border-bottom: 1px solid rgba(78, 80, 88, .48); padding: 8px; }
.ses-paneli-ust { display: flex; align-items: center; gap: 8px; }
.ses-durum { flex: 1; min-width: 0; padding-left: 2px; }
.ses-baglandi { display: flex; align-items: center; gap: 6px; color: var(--yesil); font-weight: 700; font-size: 14px; }
.ses-baglandi.bekliyor { color: var(--sari); }
.dock-nokta { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.ses-oda { font-size: 12.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ikon-dugme.ayril { color: var(--yazi); }
.ikon-dugme.ayril:hover { color: var(--kirmizi); }
.ikon-dugme.ayril svg { fill: currentColor; stroke: none; }
.ses-paneli-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.panel-dugme { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 4px; background: #2b2d31; color: var(--yazi); font-size: 13.5px; font-weight: 500; }
.panel-dugme svg { width: 18px; height: 18px; }
.panel-dugme:hover { background: var(--bg4); }
.panel-dugme.acik { background: var(--yesil); color: #fff; }
.panel-dugme.secili { background: var(--bg4); box-shadow: inset 0 0 0 1px var(--cizgi); }

/* Kullanıcı paneli */
#ben { display: flex; align-items: center; gap: 2px; padding: 0 8px; height: 52px; background: #232428; flex-shrink: 0; }
.ben-kart { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 2px; border-radius: 4px; text-align: left; }
.ben-kart:hover { background: var(--secili); }
.ben-kart .avatar { width: 32px; height: 32px; }
.ben-kart .durum-nokta { border-color: #232428; }
.ben-yazi { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
#benimAd { font-weight: 600; font-size: 14px; color: var(--baslik-yazi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#benimDurum { font-size: 12px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ Orta ============ */
#orta { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg3); }
#ustBar {
  height: 48px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px;
  box-shadow: 0 1px 0 rgba(4, 4, 5, .2), 0 1.5px 0 rgba(6, 6, 7, .05), 0 2px 0 rgba(4, 4, 5, .05); z-index: 2;
}
.baslik-ikon { color: #80848e; font-size: 24px; font-weight: 400; line-height: 1; }
.baslik-ikon svg { width: 22px; height: 22px; }
#aktifBaslik { font-size: 16px; font-weight: 700; white-space: nowrap; }
.baslik-aciklama { color: var(--soluk); font-size: 14px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--cizgi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.baslik-aciklama:empty { display: none; }
.ust-sag { margin-left: auto; display: flex; gap: 4px; align-items: center; }
#btnYonetim { color: var(--sari); }
.orta-govde { flex: 1; display: flex; min-height: 0; }

#sohbetGorunum { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#mesajlar { flex: 1; overflow-y: auto; padding: 16px 0 24px; scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
.bos-sohbet { padding: 16px 16px 0; margin-top: auto; }
.bos-sohbet .buyuk-ikon { width: 68px; height: 68px; border-radius: 50%; background: #41434a; display: grid; place-items: center; font-size: 40px; color: #fff; margin-bottom: 8px; }
.bos-sohbet h2 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.bos-sohbet p { margin: 0; color: var(--soluk); }
#mesajlar:has(.bos-sohbet) { display: flex; flex-direction: column; }

/* Mesajlar */
.grup { position: relative; margin-top: 17px; }
.grup > .avatar { position: absolute; left: 16px; top: 2px; width: 40px; height: 40px; font-size: 16px; z-index: 1; cursor: pointer; }
.grup-ust { padding: 0 48px 0 72px; display: flex; align-items: baseline; gap: 8px; line-height: 1.375; }
.grup-ad { font-weight: 500; font-size: 16px; color: var(--baslik-yazi); cursor: pointer; }
.grup-ad:hover { text-decoration: underline; }
.rozet-yon { font-size: 10px; font-weight: 700; background: var(--vurgu); color: #fff; border-radius: 3px; padding: 0 4px; text-transform: uppercase; align-self: center; }
.grup-zaman { font-size: 12px; color: var(--soluk); }
.balon-sar { position: relative; padding: 1px 48px 1px 72px; }
.grup-ust + .balon-sar { margin-top: -1px; }
.balon-sar:hover { background: rgba(2, 2, 2, .06); }
.grup:hover .grup-ust { /* başlık satırı da vurgulansın */ }
.grup .grup-ust:hover + .balon-sar, .grup-govde:hover > .grup-ust { background: none; }
.satir-saat { position: absolute; left: 0; width: 72px; text-align: center; top: 4px; font-size: 11px; color: var(--soluk); visibility: hidden; }
.balon-sar:hover .satir-saat { visibility: visible; }
.grup-ust + .balon-sar .satir-saat { display: none; }
.balon { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--yazi); }
.balon a { color: #00a8fc; text-decoration: none; }
.balon a:hover { text-decoration: underline; }
.balon img { display: block; max-width: min(400px, 100%); max-height: 300px; border-radius: 8px; margin: 6px 0 2px; }
.balon-sar:has(.bahsedildi) { background: rgba(240, 178, 50, .1); box-shadow: inset 2px 0 0 var(--sari); }
.balon-sar:has(.bahsedildi):hover { background: rgba(240, 178, 50, .08); }
.etiket { color: #c9cdfb; background: rgba(88, 101, 242, .3); border-radius: 3px; padding: 0 2px; font-weight: 500; }
.duzenlendi { color: var(--soluk); font-size: 10.5px; margin-left: 4px; }
.balon-arac {
  position: absolute; right: 16px; top: -18px; z-index: 3; display: none; align-items: center;
  background: var(--bg3); border: 1px solid rgba(78, 80, 88, .48); border-radius: 6px; padding: 2px; box-shadow: 0 0 0 1px rgba(4, 4, 5, .08), 0 2px 8px rgba(0, 0, 0, .2);
}
.balon-sar:hover .balon-arac, .balon-sar:focus-within .balon-arac { display: flex; }
.balon-arac button { width: 32px; height: 30px; border-radius: 4px; display: grid; place-items: center; font-size: 16px; color: var(--soluk); }
.balon-arac button:hover { background: var(--secili); color: var(--yazi); }
.balon-arac svg { width: 18px; height: 18px; }
.balon-arac .ayrac { width: 1px; height: 22px; background: var(--cizgi); margin: 0 3px; }
.balon-arac .sil:hover { color: var(--kirmizi); }
.balon-arac .onay { background: var(--kirmizi) !important; color: #fff !important; font-weight: 700; font-size: 13px; width: auto; padding: 0 8px; }
.tepkiler { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.tepki { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 8px; background: var(--bg2); border: 1px solid transparent; font-size: 15px; line-height: 1.2; }
.tepki:hover { border-color: #4e5058; }
.tepki.benim { background: rgba(88, 101, 242, .15); border-color: var(--vurgu); }
.tepki b { font-weight: 600; font-size: 13px; color: #b5bac1; }
.tepki.benim b { color: #dee0fc; }

/* Yazma alanı */
.yazma-alani { padding: 0 16px; flex-shrink: 0; position: relative; }
#mesajForm { display: flex; align-items: center; gap: 4px; background: var(--bg4); border-radius: 8px; padding: 0 6px 0 16px; min-height: 44px; }
#mesajGiris { background: none; padding: 11px 0; box-shadow: none; min-width: 0; }
.gonder { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; color: var(--soluk); }
.gonder:hover { color: var(--yazi); background: var(--secili); }
#yaziyorBilgi { height: 24px; font-size: 12.5px; color: #b5bac1; padding: 3px 2px; font-weight: 500; }
.etiket-oneri { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 24px + 8px); background: var(--bg2); border-radius: 8px; padding: 8px; box-shadow: 0 8px 16px rgba(0, 0, 0, .24); max-height: 260px; overflow-y: auto; z-index: 5; }
.etiket-oneri::before { content: "Üyeler"; display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--soluk); padding: 2px 8px 8px; }
.etiket-oneri button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 4px; text-align: left; }
.etiket-oneri button[aria-selected="true"], .etiket-oneri button:hover { background: var(--bg4); }
.etiket-oneri .avatar { width: 24px; height: 24px; font-size: 10px; }
.duzenleme-bar { display: flex; justify-content: space-between; align-items: center; background: var(--bg2); border-radius: 8px 8px 0 0; padding: 6px 12px; font-size: 13px; color: #b5bac1; margin-bottom: -4px; padding-bottom: 10px; }
.duzenleme-bar kbd { color: var(--yazi); }

/* ============ Sesli oda ============ */
#sahneGorunum { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #000; padding: 16px; gap: 12px; overflow-y: auto; }
#odak { flex: 1; min-height: 260px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: #000; }
#odak video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
#odak:fullscreen { border-radius: 0; }
.odak-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 0; gap: 8px; flex-wrap: wrap; color: #fff; font-weight: 600; }
.odak-dugmeler { display: flex; gap: 8px; }
#kutular { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; align-content: center; flex: 1; }
#odak:not(.gizli) ~ #kutular { flex: 0 0 auto; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kutu { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; cursor: pointer; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s; }
.kutu:hover { background: #313338; }
.kutu.konusuyor { outline-color: var(--yesil); }
.kutu .avatar { width: 80px; height: 80px; font-size: 30px; }
#odak:not(.gizli) ~ #kutular .kutu .avatar { width: 48px; height: 48px; font-size: 18px; }
.kutu-ad { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 16px); background: rgba(0, 0, 0, .6); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 13.5px; font-weight: 600; }
.kutu-ad span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kutu-ad svg { width: 15px; height: 15px; color: var(--kirmizi); }
.kutu .sessiz-yerel { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 12px; }
.kutu.yayin { background: linear-gradient(135deg, #3a1d2a, #1f1f3a); }
.yayin-ic { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 12px; }
.yayin-ad { color: #fff; font-weight: 600; }
.kutu.yayin .canli-cip { position: absolute; top: 8px; left: 8px; }
.sahne-kontrol { display: none; }
#sesiAc { text-align: center; }

/* ============ Üyeler ============ */
#uyeler { width: 240px; flex-shrink: 0; background: var(--bg2); overflow-y: auto; padding: 8px 8px 20px; scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
#uyeler.kapali { display: none; }
.uye-grup { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--soluk); padding: 24px 8px 4px; }
.uye-grup:first-child { padding-top: 16px; }
.uye { display: flex; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 4px; cursor: pointer; margin: 1px 0; }
.uye:hover { background: var(--uzerine); }
.uye .uye-yazi { min-width: 0; flex: 1; line-height: 1.25; }
.uye .uye-ad { font-weight: 500; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.uye:hover .uye-ad { color: var(--yazi); }
.uye .uye-alt { font-size: 12px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.uye .uye-alt svg { width: 13px; height: 13px; }
.uye .durum-nokta { width: 14px; height: 14px; border: 3px solid var(--bg2); }
.uye:hover .durum-nokta { border-color: #35373c; }

/* ============ Kişi kartı ============ */
.kisi-kart { position: fixed; z-index: 45; width: 300px; background: #232428; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: kart-ac .12s ease-out; }
@keyframes kart-ac { from { opacity: 0; transform: scale(.97); } }
.kart-afis { height: 60px; background: var(--c); }
.kart-avatar { position: absolute; top: 16px; left: 16px; padding: 6px; background: #232428; border-radius: 50%; }
.kart-avatar .avatar { width: 80px; height: 80px; font-size: 32px; }
.kart-avatar .durum-nokta { width: 22px; height: 22px; border: 4px solid #232428; right: 4px; bottom: 4px; }
.kart-govde { margin: 48px 12px 12px; background: var(--bg1); border-radius: 8px; padding: 12px; }
.kart-ad { font-size: 20px; font-weight: 700; color: var(--baslik-yazi); display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.kart-alt { font-size: 13.5px; color: #b5bac1; margin-top: 2px; }
.kart-ayrac { height: 1px; background: rgba(78, 80, 88, .48); margin: 12px 0; }
.kart-baslik { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--baslik-yazi); margin-bottom: 8px; letter-spacing: .02em; }
.kart-ses { display: flex; align-items: center; gap: 10px; }
.kart-ses input { flex: 1; padding: 0; background: none; box-shadow: none; accent-color: var(--vurgu); height: 20px; }
.kart-ses output { width: 42px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--yazi); }
.kart-ogeler { display: grid; gap: 2px; margin-top: 4px; }
.kart-oge { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px; border-radius: 4px; font-size: 14px; color: #b5bac1; font-weight: 500; text-align: left; }
.kart-oge:hover { background: var(--vurgu); color: #fff; }
.kart-oge.tehlikeli { color: var(--kirmizi); }
.kart-oge.tehlikeli:hover { background: var(--kirmizi); color: #fff; }
.kart-oge.onay { background: var(--kirmizi); color: #fff; }
.kart-oge .kutucuk { width: 18px; height: 18px; border-radius: 4px; border: 2px solid currentColor; display: grid; place-items: center; }
.kart-oge .kutucuk.isaretli { background: var(--vurgu); border-color: var(--vurgu); }
.kart-oge:hover .kutucuk.isaretli { background: #fff; border-color: #fff; }
.kart-oge .kutucuk svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; }
.kart-oge:hover .kutucuk.isaretli svg { stroke: var(--vurgu); }
.kart-oge svg { width: 18px; height: 18px; }
.kart-not { font-size: 12px; color: var(--soluk); margin-top: 6px; }

/* ============ Modallar ============ */
.genis-pano { width: min(860px, 100%); padding: 0; display: grid; grid-template-columns: 220px 1fr; min-height: min(580px, 90vh); overflow: hidden; background: var(--bg3); }
.pano-nav { background: var(--bg2); padding: 24px 10px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.pano-nav h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--soluk); padding: 0 10px 8px; }
.nav-oge { text-align: left; padding: 7px 10px; border-radius: 4px; color: #b5bac1; font-weight: 500; font-size: 15px; }
.nav-oge:hover { background: var(--uzerine); color: var(--yazi); }
.nav-oge[aria-current="true"] { background: var(--secili); color: #fff; }
.nav-alt { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(78, 80, 88, .48); }
.nav-alt .hafif { width: 100%; background: none; color: var(--kirmizi); text-align: left; padding: 7px 10px; }
.nav-alt .hafif:hover { background: var(--uzerine); }
.pano-icerik { position: relative; padding: 28px 32px; overflow-y: auto; max-height: 90vh; }
.pano-icerik h3 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.ust-bosluk { margin-top: 32px !important; }
.kapat { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #b5bac1; color: #b5bac1; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.kapat:hover { background: var(--uzerine); color: #fff; border-color: #fff; }
.ikili { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ikili.sola { justify-content: flex-start; }

.alan { margin: 18px 0; }
.alan-ust { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; color: var(--soluk); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.alan-ust output { color: var(--yazi); font-variant-numeric: tabular-nums; text-transform: none; }
.alan-ust .kucuk { text-transform: none; font-weight: 400; letter-spacing: 0; }
.kaydirici { padding: 0; background: none; box-shadow: none !important; accent-color: var(--vurgu); height: 22px; }
.seviye { height: 8px; border-radius: 4px; background: var(--bg1); overflow: hidden; }
.seviye-cubuk { height: 100%; width: 0; background: var(--yesil); transition: width .06s linear; }

.anahtarlar { display: grid; margin: 16px 0; border-top: 1px solid rgba(78, 80, 88, .48); }
.anahtar { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(78, 80, 88, .48); cursor: pointer; font-size: 15px; color: var(--baslik-yazi); font-weight: 500; text-transform: none; letter-spacing: 0; }
.anahtar input { order: 2; grid-row: span 2; appearance: none; width: 40px; height: 24px; border-radius: 12px; background: #80848e; position: relative; margin: 0; padding: 0; cursor: pointer; transition: background .15s; box-shadow: none !important; }
.anahtar input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.anahtar input:checked { background: var(--yesil); }
.anahtar input:checked::after { transform: translateX(16px); }
.anahtar span { grid-column: 1; }
.anahtar small { grid-column: 1; color: #b5bac1; font-weight: 400; font-size: 13.5px; margin-top: 2px; }

.satir-form { display: flex; gap: 8px; margin: 10px 0; }
.satir-form input { flex: 1; }
.satir-form .ana { white-space: nowrap; }

/* Yönetim listeleri */
.yon-liste { display: grid; gap: 1px; }
.yon-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 4px; flex-wrap: wrap; border-bottom: 1px solid rgba(78, 80, 88, .3); }
.yon-liste li:hover { background: var(--uzerine); }
.yon-liste .kisi-bilgi { flex: 1; min-width: 140px; color: var(--baslik-yazi); font-weight: 500; }
.yon-liste .kisi-bilgi small { display: block; color: var(--soluk); font-size: 12.5px; font-weight: 400; }
.yon-liste .eylemler { display: flex; gap: 6px; flex-wrap: wrap; }
.yon-liste .tehlike { padding: 6px 12px; font-size: 13.5px; }
.yon-liste input.kanal-ad { flex: 1; min-width: 140px; padding: 8px 10px; }
.cip { font-size: 10.5px; font-weight: 700; border-radius: 3px; padding: 1px 5px; margin-left: 6px; text-transform: uppercase; vertical-align: 1px; }
.cip.yon { background: var(--vurgu); color: #fff; }
.cip.sus { background: var(--kirmizi); color: #fff; }
.bos-yazi { color: var(--soluk); }

/* Ekran paylaşımı */
.secenekler { display: grid; gap: 8px; margin: 16px 0 8px; }
.secenek { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--bg2); border: 1px solid transparent; border-radius: 6px; padding: 12px 14px; }
.secenek:hover { border-color: var(--vurgu); background: var(--bg4); }
.secenek b { color: var(--baslik-yazi); font-weight: 600; }
.secenek span { color: var(--soluk); font-size: 13px; }

/* Bildirimler */
#toastlar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--bg0); color: var(--yazi); border-radius: 6px; padding: 10px 16px; max-width: 420px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 16px rgba(0, 0, 0, .3); animation: toast-gel .18s ease-out; }
.toast.hata-toast { background: #a12828; color: #fff; }
.duyuru-toast { background: var(--vurgu); color: #fff; padding: 14px 20px; }
.duyuru-toast b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; margin-bottom: 2px; }
@keyframes toast-gel { from { transform: translateY(10px); opacity: 0; } }

/* ============ Mobil ============ */
.mobil { display: none; }
@media (max-width: 1000px) { #uyeler { display: none; } #uyeler.mobil-acik { display: block; position: fixed; right: 0; top: 48px; bottom: 0; z-index: 30; box-shadow: -8px 0 24px rgba(0, 0, 0, .4); } }
@media (max-width: 760px) {
  #uygulama { grid-template-columns: minmax(0, 1fr); }
  #kenar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 35; transform: translateX(-102%); transition: transform .2s ease-out; }
  #kenar.acik { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .mobil { display: grid; }
  .baslik-aciklama { display: none; }
  .genis-pano { grid-template-columns: 1fr; }
  .pano-nav { flex-direction: row; overflow-x: auto; padding: 12px; }
  .pano-nav h2, .nav-alt { display: none; }
  .nav-oge { white-space: nowrap; }
  .balon-sar { padding-right: 12px; }
  .balon-arac { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#mesajGiris:focus-visible { outline: none; }
#mesajGiris:focus { box-shadow: none; }
#toastlar { top: 60px; bottom: auto; }
.ikon-dugme.ayril svg { width: 22px; height: 22px; }

/* ============ Roller ve profil resmi ============ */
.avatar.resimli { background-color: var(--bg1); background-size: cover; background-position: center; color: transparent; }
.rol-cipler { display: flex; flex-wrap: wrap; gap: 4px; }
.rol-cip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: 4px; background: var(--bg2); font-size: 12.5px; font-weight: 500; color: var(--yazi); border: 1px solid rgba(78, 80, 88, .5); }
.rol-cip i { width: 12px; height: 12px; border-radius: 50%; background: var(--r); flex-shrink: 0; display: grid; place-items: center; font-style: normal; font-size: 10px; line-height: 1; color: transparent; }
.rol-cip button { width: 12px; height: 12px; border-radius: 50%; background: var(--r); color: transparent; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.rol-cip button:hover { color: #000; }
.rol-ekle { position: relative; }
.rol-ekle select { width: auto; padding: 2px 6px; font-size: 12.5px; border-radius: 4px; background: var(--bg2); border: 1px dashed #4e5058; color: var(--soluk); cursor: pointer; }
.rol-liste li { gap: 8px; }
.rol-liste input[type=color] { width: 36px; height: 32px; padding: 2px; background: var(--bg1); cursor: pointer; }
.rol-liste input.rol-ad { flex: 1; min-width: 120px; padding: 8px 10px; }
.rol-liste .sira button { width: 28px; height: 28px; border-radius: 4px; color: var(--soluk); font-size: 14px; }
.rol-liste .sira button:hover { background: var(--secili); color: var(--yazi); }
.rol-liste .rol-sayi { color: var(--soluk); font-size: 12px; width: 52px; text-align: right; }
.dosya-dugme { display: inline-block; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 500; color: #fff; cursor: pointer; }
.profil-onizleme { position: relative; background: var(--bg1); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.profil-afis { height: 64px; background: var(--c, var(--vurgu)); }
.profil-avatar { position: absolute; top: 20px; left: 16px; padding: 6px; background: var(--bg1); border-radius: 50%; }
.profil-avatar .avatar { width: 72px; height: 72px; font-size: 28px; }
.profil-bilgi { padding: 44px 16px 14px; }
.profil-ad { font-size: 18px; font-weight: 700; color: var(--baslik-yazi); margin-bottom: 6px; }
.kart-roller { margin-top: 2px; }
/* Rol adları yazıldığı gibi görünsün (Warrior → WARRİOR olmasın) */
.uye-grup { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
