/* =========================================================
   Sohbet, destek talepleri ve canlı bağlantı göstergeleri
   ========================================================= */

/* ---------------- Canlı gösterge ---------------- */

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f6d;
  box-shadow: 0 0 8px #ff5f6d;
}
.live-dot.is-on {
  background: #5ce6a8;
  box-shadow: 0 0 10px #5ce6a8;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  50% { opacity: 0.35; transform: scale(0.75); }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.75rem 0.28rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(4, 8, 22, 0.7);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.live-pill.is-on { color: #9ff0cb; border-color: rgba(92, 230, 168, 0.4); }
.live-pill em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-dim);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- Sohbet ---------------- */

.chat-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
}

.chat-channels {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.7rem;
  background: rgba(4, 8, 22, 0.55);
  border-right: 1px solid var(--line);
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chat-channel {
  padding: 0.6rem 0.75rem;
  background: none;
  border: 0;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chat-channel strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--text-soft);
}
.chat-channel em { font-style: normal; font-size: 0.74rem; color: var(--text-dim); }
.chat-channel:hover { background: rgba(255, 255, 255, 0.05); }
.chat-channel.is-active {
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.16), transparent);
  box-shadow: inset 2px 0 0 var(--gold-500);
}
.chat-channel.is-active strong { color: var(--gold-200); }

.chat-main { display: flex; flex-direction: column; min-width: 0; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.3rem;
  max-height: 460px;
  scroll-behavior: smooth;
}
.chat-empty { display: grid; place-items: center; min-height: 220px; text-align: center; }

.chat-day {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chat-day::before, .chat-day::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s var(--ease);
}
.chat-message:hover { background: rgba(255, 255, 255, 0.03); }
.chat-avatar { flex: none; }
.chat-body { min-width: 0; flex: 1; }
.chat-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.15rem; }
.chat-meta a { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; color: var(--accent, var(--gold-300)); }
.chat-meta time { font-size: 0.72rem; color: var(--text-dim); }
.chat-meta .tag { font-size: 0.6rem; min-height: 18px; padding: 0.15rem 0.4rem 0.12rem; }
.chat-body p { margin: 0; font-size: 0.94rem; color: var(--text-soft); overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-removed { color: var(--text-dim); }
.chat-message.is-deleted { opacity: 0.55; }

.chat-delete {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.chat-message:hover .chat-delete { opacity: 1; }
.chat-delete:hover { color: #ff9aa4; }

.chat-error { margin: 0 1.3rem; }

.chat-form { padding: 0.9rem 1.3rem 1.1rem; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 66px; resize: none; }
.chat-form-foot { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
.chat-form-foot .hint { margin: 0; flex: 1; }

.chat-locked {
  padding: 1.2rem 1.3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.chat-locked p { margin-bottom: 0.8rem; }
.chat-locked .row { justify-content: center; }

@media (max-width: 760px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-channels { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-status { display: none; }
  .chat-channel { flex: none; min-width: 130px; }
}

/* ---------------- Destek talepleri ---------------- */

.ticket-list { display: flex; flex-direction: column; gap: 0.7rem; }
.ticket-row { overflow: hidden; transition: border-color 0.3s var(--ease); }
.ticket-row.is-unread { border-color: var(--line-gold); box-shadow: 0 0 22px -14px rgba(245, 196, 81, 0.9); }

.ticket-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.ticket-code {
  flex: none;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--gold-400);
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  padding: 0.22rem 0.45rem 0.18rem;
}
.ticket-subject { min-width: 0; }
.ticket-subject strong { display: block; font-family: var(--font-ui); font-size: 0.98rem; }
.ticket-subject em { font-style: normal; font-size: 0.78rem; color: var(--text-dim); }
.ticket-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 10px var(--gold-500);
  animation: live-pulse 2s ease-in-out infinite;
}

.ticket-thread { padding: 0 1.1rem 1.1rem; border-top: 1px solid var(--line); }
.ticket-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}
.ticket-toolbar select { width: auto; min-width: 150px; padding: 0.45rem 2.4rem 0.45rem 0.7rem; font-size: 0.85rem; }

.ticket-messages { display: flex; flex-direction: column; gap: 0.7rem; }
.ticket-message {
  padding: 0.85rem 1rem;
  background: rgba(4, 8, 22, 0.55);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
}
.ticket-message.is-staff {
  border-left-color: var(--gold-500);
  background: linear-gradient(165deg, rgba(245, 196, 81, 0.09), rgba(4, 8, 22, 0.7));
}
.ticket-message-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.ticket-message-head strong { font-family: var(--font-ui); font-size: 0.88rem; color: var(--gold-300); }
.ticket-message-head time { font-size: 0.74rem; color: var(--text-dim); }
.ticket-message p { margin: 0; font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.ticket-reply { margin-top: 1rem; }
.ticket-reply textarea { min-height: 92px; margin-bottom: 0.6rem; }

/* Yönetim panelinde bekleyen talep rozeti */
.admin-nav-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 0.1rem 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: #0a0f1e;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  border-radius: 999px;
}

/* =============================================================
   SOHBET — Discord tarzı tek ekran
   Solda metin + sesli kanallar · ortada yayın, akış ve yazma kutusu
   ============================================================= */

.sohbet-sayfa {
  padding: calc(var(--nav-h) + 14px) 0 30px;
}

.sohbet-izgara {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  align-items: stretch;
  min-height: calc(100vh - var(--nav-h) - 60px);
}

/* ---------------- Sol kenar ---------------- */
.sohbet-kenar {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h) - 60px);
  scrollbar-width: thin;
}
.sohbet-kenar::-webkit-scrollbar { width: 7px; }
.sohbet-kenar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.sohbet-grup {
  margin: 12px 0 5px; padding: 0 8px;
  font-family: var(--font-ui);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}
.sohbet-grup:first-child { margin-top: 0; }

.sohbet-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }

.sohbet-kanal {
  width: 100%;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px;
  font: inherit; font-size: 0.88rem;
  color: var(--text-soft);
  background: transparent;
  border: 0; border-radius: 8px;
  cursor: pointer; text-align: left; text-decoration: none;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.sohbet-kanal:hover { background: rgba(120, 160, 255, 0.09); color: var(--text); text-decoration: none; }
.sohbet-kanal.is-active { background: rgba(245, 196, 81, 0.13); color: var(--gold-300); }

.sohbet-kare {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; color: var(--text-dim); font-weight: 700;
}
.sohbet-kanal:hover .sohbet-kare,
.sohbet-kanal.is-active .sohbet-kare { color: inherit; }

.sohbet-kanal-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sohbet-rozet {
  font-style: normal; font-size: 0.72rem; color: var(--text-dim);
  background: rgba(0, 0, 0, 0.32);
  padding: 1px 6px; border-radius: 999px;
  min-width: 18px; text-align: center;
}
.sohbet-rozet:empty { display: none; }

/* Sesli kanaldaki kişiler */
.sohbet-kisiler { list-style: none; margin: 1px 0 4px; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 1px; }
.sohbet-kisi {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 6px;
  font-size: 0.8rem; color: var(--text-dim);
}
.sohbet-kisi.is-konusuyor {
  color: var(--cyan-200);
  background: rgba(53, 208, 255, 0.1);
  box-shadow: inset 2px 0 0 var(--cyan-400);
}
.sohbet-kisi.is-sessiz { opacity: 0.5; }
.sohbet-kisi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sohbet-kisi em { font-style: normal; font-size: 0.68rem; }
.sohbet-kisi button {
  font: inherit; font-size: 0.7rem; line-height: 1; cursor: pointer;
  padding: 2px 5px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 5px;
}
.sohbet-kisi button:hover { color: #ff6b8b; border-color: rgba(255, 107, 139, 0.45); }

/* Ses kontrol kutusu */
.sohbet-ses-kutu {
  margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--line);
}
.sohbet-ses-durum { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-soft); margin-bottom: 8px; }
.sohbet-nokta { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-dim); }
.sohbet-nokta.is-canli    { background: #5ce6a8; box-shadow: 0 0 8px rgba(92, 230, 168, 0.7); }
.sohbet-nokta.is-bekliyor { background: var(--gold-500); }
.sohbet-nokta.is-hata     { background: #ff6b8b; }
.sohbet-ses-dugmeler { display: flex; gap: 8px; align-items: center; }

/* Katılımcı avatarı + konuşma göstergesi */
.sohbet-kisi .ses-av {
  flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, #1a2238);
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s;
}
.sohbet-kisi .ses-av img { width: 100%; height: 100%; object-fit: cover; }
.sohbet-kisi .ses-av-bos { font-size: 0.7rem; font-weight: 700; color: var(--text-soft); }
.sohbet-kisi .ses-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sohbet-kisi .ses-av { position: relative; }
.sohbet-kisi.is-konusuyor .ses-av {
  box-shadow: 0 0 0 2px #4ade80, 0 0 10px rgba(74, 222, 128, 0.85);
  animation: ses-nabiz 1.1s ease-out infinite;
}
.sohbet-kisi.is-konusuyor { color: #86efac; }
/* konuşurken avatarın köşesinde yeşil mikrofon noktası */
.ses-dalga { display: none; }
.sohbet-kisi.is-konusuyor .ses-dalga {
  display: block; position: absolute; right: -2px; bottom: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 2px var(--surface, #0d1424);
}
@keyframes ses-nabiz {
  0%   { box-shadow: 0 0 0 2px #4ade80, 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 2px #4ade80, 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 2px #4ade80, 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .sohbet-kisi.is-konusuyor .ses-av { animation: none; }
}
.sohbet-kisi .ses-mic-kapali { color: #ff6b8b; }
.sohbet-kisi .ses-at { margin-left: 2px; }

/* Discord tarzı yuvarlak ikon butonlar (mikrofon / kulaklık / ayrıl) */
.sohbet-ses-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-soft);
  background: var(--surface-2, #1a2238);
  border: 1px solid var(--line);
  transition: background .13s, color .13s, transform .1s, box-shadow .13s;
}
.sohbet-ses-btn:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-1px); }
.sohbet-ses-btn:active { transform: translateY(0); }
.sohbet-ses-btn.is-kapali {
  background: #e23b5a; color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px rgba(226, 59, 90, 0.4);
}
.sohbet-ses-ayril { color: #ff8fa3; }
.sohbet-ses-ayril:hover { background: #e23b5a; color: #fff; border-color: transparent; }

.sohbet-ses-izin {
  width: 100%; margin-top: 8px;
  background: linear-gradient(180deg, var(--gold-400, #f5c451), var(--gold-500, #e0a92e));
  color: #201700; font-weight: 700; border: none;
}

.sohbet-not { font-size: 0.8rem; color: var(--text-dim); line-height: 1.55; margin: 6px 8px 0; }

/* ---------------- Orta ---------------- */
.sohbet-ana {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: calc(100vh - var(--nav-h) - 60px);
}

.sohbet-ust {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.sohbet-ust h1 { margin: 0; font-size: 1.05rem; font-family: var(--font-ui); }
.sohbet-aciklama { font-size: 0.82rem; color: var(--text-dim); flex: 1; min-width: 0; }
.sohbet-canli {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  color: #ff6b8b; background: rgba(255, 107, 139, 0.13);
  border: 1px solid rgba(255, 107, 139, 0.4);
  padding: 3px 9px; border-radius: 999px;
}

/* Gömülü yayın */
.sohbet-yayin {
  position: relative; aspect-ratio: 16 / 9;
  background: #05070f;
  border-bottom: 1px solid var(--line);
  max-height: 46vh;
}
.sohbet-yayin iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mesaj akışı */
.sohbet-akis {
  flex: 1; min-height: 160px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 11px;
  scrollbar-width: thin;
}
.sohbet-akis::-webkit-scrollbar { width: 8px; }
.sohbet-akis::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.sohbet-bos {
  margin: auto; text-align: center;
  display: flex; flex-direction: column; gap: 5px;
}
.sohbet-bos strong { font-family: var(--font-ui); color: var(--text-soft); }
.sohbet-bos span { font-size: 0.85rem; color: var(--text-dim); }

.sohbet-mesaj { display: flex; gap: 10px; }
.sohbet-mesaj.is-silinmis { opacity: 0.5; }
.sohbet-avatar { flex: none; line-height: 0; }
.sohbet-govde { min-width: 0; flex: 1; }

.sohbet-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.sohbet-meta form { margin: 0; display: inline; }
.sohbet-yazar { font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; color: var(--cyan-200); text-decoration: none; }
.sohbet-yazar:hover { text-decoration: underline; }
.sohbet-yazar.is-yonetici { color: var(--gold-500); }
.sohbet-meta time { font-size: 0.72rem; color: var(--text-dim); }
.sohbet-dm, .sohbet-sil {
  font: inherit; font-size: 0.72rem; cursor: pointer;
  background: transparent; border: 0; padding: 0;
  color: var(--text-dim); text-decoration: none;
}
.sohbet-dm:hover { color: var(--cyan-400); }
.sohbet-sil:hover { color: #ff6b8b; }

.sohbet-govde p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); word-break: break-word; }
.sohbet-kaldirildi { color: var(--text-dim); }

/* Yazma kutusu */
.sohbet-yaz {
  display: flex; gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.sohbet-yaz input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 0.9rem;
  padding: 9px 13px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sohbet-yaz input:focus { outline: none; border-color: var(--line-gold); }

.sohbet-hata { margin: 0; padding: 7px 16px 11px; font-size: 0.8rem; color: #ff9db1; }

.sohbet-kilit {
  padding: 18px 16px; text-align: center;
  border-top: 1px solid var(--line);
}
.sohbet-kilit p { margin: 0 0 9px; font-size: 0.88rem; color: var(--text-soft); }
.sohbet-kilit .row { display: flex; gap: 8px; justify-content: center; }

/* =============================================================
   Duyarlı yerleşim
   ============================================================= */
@media (max-width: 860px) {
  .sohbet-izgara { grid-template-columns: 1fr; min-height: 0; }
  .sohbet-kenar {
    max-height: none;
    order: 2;
    flex-direction: row; flex-wrap: wrap; gap: 6px;
  }
  .sohbet-kenar .sohbet-liste { flex-direction: row; flex-wrap: wrap; }
  .sohbet-grup { width: 100%; }
  .sohbet-kisiler { padding-left: 0; }
  .sohbet-ses-kutu { width: 100%; margin-top: 8px; }
  .sohbet-ana { order: 1; max-height: none; }
  .sohbet-akis { max-height: 52vh; }
}

/* ============================================================
   DİZİLİM OLUŞTURUCU
   ============================================================ */

/* Kahraman seçimi ızgarası */
.hero-secim-izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.7rem;
}
.hero-secim {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-soft);
  transition: border-color .15s var(--ease), transform .15s var(--ease), background .15s var(--ease);
}
.hero-secim:hover {
  border-color: var(--line-gold);
  background: var(--surface-2);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-secim img { border-radius: 10px; }
.hero-secim span {
  font-size: 0.78rem; font-weight: 600; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

/* Düzenleyici düzeni */
.dizilim-izgara {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.dizilim-secim h2 { font-size: 1.05rem; margin: 0 0 0.7rem; }

/* Seçilen 6 eşya yuvası */
.secilen-esyalar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.secilen-yuva {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed var(--line);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}
.secilen-yuva.dolu { border-style: solid; border-color: var(--line-gold); background: rgba(245, 196, 81, 0.08); }
.secilen-yuva img { width: 100%; height: 100%; object-fit: cover; }
.secilen-bos { font-size: 1.3rem; color: var(--text-dim); }

/* Eşya kataloğu */
.dizilim-katalog { max-height: 74vh; overflow-y: auto; scrollbar-width: thin; }
.esya-izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.5rem;
}
.esya-kart {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.5rem 0.3rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text-soft);
  transition: border-color .12s, background .12s, transform .12s;
}
.esya-kart:hover { border-color: var(--line-gold); transform: translateY(-1px); }
.esya-kart.is-secili { border-color: var(--gold-500); background: rgba(245, 196, 81, 0.14); }
.esya-kart img { border-radius: 8px; }
.esya-ad {
  font-size: 0.68rem; text-align: center; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.esya-fiyat { font-size: 0.66rem; color: var(--gold-400); font-weight: 700; }

/* Dizilimlerim listesi */
.dizilim-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dizilim-kart { padding: 1rem; }
.dizilim-kart-bas { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.dizilim-kart-bas img { border-radius: 10px; }
.dizilim-kart-bas strong { display: block; font-family: var(--font-ui); }
.dizilim-kart-bas .hint { font-size: 0.78rem; }
.dizilim-begeni { margin-left: auto; color: #ff6b8b; font-weight: 700; font-size: 0.85rem; }
.dizilim-esyalar { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 34px; align-items: center; }
.dizilim-esyalar img { border-radius: 7px; border: 1px solid var(--line); }
.dizilim-not { margin: 0.6rem 0 0; font-size: 0.83rem; color: var(--text-dim); font-style: italic; }
.sil-btn:hover { color: #ff6b8b; border-color: rgba(255, 107, 139, 0.4); }

@media (max-width: 780px) {
  .dizilim-izgara { grid-template-columns: 1fr; }
  .dizilim-katalog { max-height: 50vh; }
}

/* ============================================================
   SOHBET — Discord benzeri: sabit düzen + sağ-tık menüsü
   ============================================================ */

/* Sayfa sabit: kaydırma iç panellerde olur, sayfa kaymaz */
.sohbet-sayfa {
  height: 100vh;
  padding-top: calc(var(--nav-h) + 10px);
  padding-bottom: 10px;
  overflow: hidden;
}
.sohbet-izgara {
  height: 100%;
  min-height: 0;
}
.sohbet-kenar { max-height: 100%; }
.sohbet-ana { max-height: 100%; }

/* Duyuru kanalları */
.sohbet-duyuru { opacity: .95; }
.sohbet-duyuru .sohbet-kare { font-size: 0.9rem; }
.sohbet-duyuru[disabled] { opacity: .45; cursor: default; }
.sohbet-duyuru-kutu {
  margin: 0.2rem 0 0.4rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem; line-height: 1.5;
  color: var(--text-soft);
  background: rgba(245, 196, 81, 0.08);
  border: 1px solid var(--line-gold);
  border-radius: 9px;
}

/* Sağ-tık moderasyon menüsü — OPAK */
.sohbet-ctx {
  position: fixed;
  z-index: 9999;
  min-width: 190px;
  padding: 5px;
  display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(180deg, #0d1430, #080d22);
  border: 1px solid var(--line-gold);
  border-radius: 11px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.85), 0 0 22px rgba(245,196,81,.12);
  animation: ctx-in 0.14s var(--ease);
}
@keyframes ctx-in { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.sohbet-ctx button, .sohbet-ctx a {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: 0.85rem;
  padding: 7px 10px;
  background: transparent; border: 0; border-radius: 7px;
  color: var(--text-soft); text-decoration: none; cursor: pointer;
}
.sohbet-ctx button:hover, .sohbet-ctx a:hover {
  background: rgba(120, 160, 255, 0.12); color: var(--text); text-decoration: none;
}
.sohbet-ctx .ctx-tehlike:hover { background: rgba(255, 107, 139, 0.15); color: #ffb3c4; }
.sohbet-ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* Sağ-tıkta mesaj vurgusu */
.sohbet-mesaj { border-radius: 8px; transition: background .12s; }
.sohbet-mesaj:hover { background: rgba(255,255,255,.02); }

/* Sohbet sayfasinda footer gizli, sayfa tam sabit (kaydirma ic panelde) */
body.sohbet-aktif { overflow: hidden; }
body.sohbet-aktif .site-footer { display: none; }
.sohbet-sayfa { height: calc(100vh - var(--nav-h) - 18px); padding-bottom: 18px; }

/* Sohbet sayfa-ici bildirim (alert yerine) */
.sohbet-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 10001; max-width: 90vw;
  padding: 0.7rem 1.1rem; border-radius: 11px;
  font-size: 0.88rem; font-weight: 600;
  background: linear-gradient(180deg,#0d1430,#080d22);
  border: 1px solid var(--line-gold); color: var(--text);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.sohbet-toast.is-acik { opacity: 1; transform: translateX(-50%) translateY(0); }
.sohbet-toast.is-hata { border-color: rgba(255,107,139,.5); color: #ffb3c4; }
.sohbet-toast.is-ok { border-color: rgba(92,230,168,.5); color: #a7f3d0; }

/* Owner (yönetici) dizilim kartları parlar */
.community-build.is-owner {
  border-color: var(--line-gold);
  box-shadow: 0 0 0 1px rgba(245,196,81,.35), 0 0 28px rgba(245,196,81,.22), var(--shadow-card);
  animation: owner-parla 3.4s ease-in-out infinite;
}
.community-build.is-owner::before {
  content: '★ Yönetici';
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: .06em;
  color: #1a1205; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
}
@keyframes owner-parla {
  0%,100% { box-shadow: 0 0 0 1px rgba(245,196,81,.35), 0 0 22px rgba(245,196,81,.18), var(--shadow-card); }
  50%     { box-shadow: 0 0 0 1px rgba(245,196,81,.6), 0 0 38px rgba(245,196,81,.4), var(--shadow-card); }
}

/* Duyuru kanalı zengin biçim */
.duyuru-baslik { display:block; font-family:var(--font-ui); font-weight:700; font-size:1.02rem; color:var(--gold-300); margin:0.2rem 0; }
.duyuru-madde { display:block; padding-left:1.1rem; position:relative; }
.duyuru-madde::before { content:'▸'; position:absolute; left:0; color:var(--gold-500); }
.sohbet-bicim-ipucu { margin:0 0 0.4rem; font-size:0.74rem; color:var(--text-dim); }
.sohbet-bicim-ipucu code { font-size:0.72rem; background:rgba(0,0,0,.3); padding:1px 5px; border-radius:4px; }


/* Ekran paylaşımı (yayın) */
.sohbet-ses-btn.is-acik {
  background: #22c55e; color: #04210f; border-color: transparent;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.4);
}
.yayin-sahne {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  width: min(520px, 42vw); max-width: 92vw;
  background: var(--surface, #0d1424); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.yayin-sahne[hidden] { display: none; }
.yayin-sahne-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 0.8rem; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}
.yayin-kapat { cursor: pointer; background: transparent; border: none; color: var(--text-soft); font-size: 1.1rem; line-height: 1; padding: 0 8px; }
.yayin-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; padding: 6px; }
.yayin-sahne.is-kucuk .yayin-izgara { display: none; }
.yayin-kutu { position: relative; background: #000; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.yayin-kutu video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.yayin-etiket {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 0.72rem; padding: 1px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
}
@media (max-width: 767px) {
  .yayin-sahne { width: auto; right: 8px; left: 8px; bottom: 8px; }
}
