/* Ana sayfaya ozel stiller. Onceden index.ejs icine gomuluydu ve HTML ile
   birlikte her ziyarette yeniden iniyordu (~32 KB); ayri dosya olarak 7 gun
   onbellekte kaliyor. style.css'ten SONRA yuklenir (kaskad sirasi ayni). */

.aco-banner-link{display:block;text-decoration:none;}
.aco-banner{
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.9rem 2rem;
  background:linear-gradient(100deg, #1a0505 0%, #2a0d00 40%, #1c0808 70%, #2b1000 100%);
  border-top:1px solid rgba(255,196,0,.18);
  border-bottom:1px solid rgba(255,196,0,.18);
  cursor:pointer;
  transition:filter .2s ease;
}
.aco-banner:hover{filter:brightness(1.12);}
/* Açık tema: afiş sabit koyu gradyanla yazıldığı için beyaz sayfada koyu bir
   şerit olarak kalıyordu. Altın kimliği korunuyor ama zemin krem tonuna,
   yazılar da açık zeminde okunur koyu altına çekiliyor. */
[data-theme="light"] .aco-banner{
  background:linear-gradient(100deg,#fdf6e3 0%,#f7e9c8 40%,#fdf7e6 70%,#f5e4bd 100%);
  border-top-color:rgba(154,116,10,.28);
  border-bottom-color:rgba(154,116,10,.28);
}
[data-theme="light"] .aco-banner-glow{
  background:radial-gradient(ellipse at 60% 50%, rgba(154,116,10,.1), transparent 65%);
}
[data-theme="light"] .aco-banner-title{background:linear-gradient(90deg,#8a6508,#9a740a 40%,#8b1a1a);-webkit-background-clip:text;background-clip:text;}
[data-theme="light"] .aco-banner-sub{color:#7a5c0e;}
[data-theme="light"] .aco-bc-box{background:rgba(154,116,10,.1);border-color:rgba(154,116,10,.25);}
[data-theme="light"] .aco-bc-num{background:linear-gradient(180deg,#8a6508,#6d4f06);-webkit-background-clip:text;background-clip:text;}
[data-theme="light"] .aco-bc-lbl{color:#8a6b1e;}
[data-theme="light"] .aco-bc-sep{color:rgba(154,116,10,.5);}
[data-theme="light"] .aco-banner-arrow{color:#8a6508;}
.aco-banner-glow{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 60% 50%, rgba(212,160,23,.13), transparent 65%);
}
.aco-banner-left{display:flex;align-items:center;gap:.9rem;flex:1;min-width:0;}
.aco-banner-logo{width:44px;height:44px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 0 8px rgba(255,196,0,.5));}
.aco-banner-text{display:flex;flex-direction:column;gap:.15rem;min-width:0;}
.aco-banner-title{font-size:.85rem;font-weight:800;letter-spacing:.08em;background:linear-gradient(90deg,#f5e6b0,#d4a017 40%,#8b1a1a);-webkit-background-clip:text;background-clip:text;color:transparent;white-space:nowrap;}
.aco-banner-sub{font-size:.75rem;color:rgba(255,220,160,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.aco-banner-countdown{display:flex;align-items:center;gap:.35rem;flex-shrink:0;}
.aco-bc-box{display:flex;flex-direction:column;align-items:center;gap:.1rem;min-width:38px;padding:.35rem .3rem;border-radius:8px;background:rgba(255,196,0,.08);border:1px solid rgba(255,196,0,.2);}
.aco-bc-num{font-size:1.1rem;font-weight:800;font-variant-numeric:tabular-nums;background:linear-gradient(180deg,#fff6dd,#d4a017);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1;}
.aco-bc-lbl{font-size:.58rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,210,120,.5);}
.aco-bc-sep{font-size:1.1rem;font-weight:800;color:rgba(255,196,0,.4);margin-top:-.5rem;}
.aco-banner-arrow{color:rgba(255,196,0,.6);flex-shrink:0;}
.aco-banner-arrow svg{width:20px;height:20px;}

/* ── Duyuru Bandı ── */
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  background: var(--accent, #c8415a);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  z-index: 50;
}
.announcement-text { flex: 1; text-align: center; }

/* ── Hero İç Layout ── */
.hero-inner-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.hero-text { flex: 1; min-width: 0; }
.hero-badge-wrap {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroBadgeFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 40px rgba(165,28,48,.25));
}
.hero-badge-img {
  width: 100%;
  max-width: 300px;
  border-radius: 18px;
  opacity: .92;
}
@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}
@media (max-width: 860px) {
  .hero-inner-layout { flex-direction: column; text-align: center; }
  .hero-badge-wrap { width: 200px; }
  .hero-actions { justify-content: center; }
}

/* ── Anı Showcase ── */
.ani-showcase {
  padding: 4rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ani-showcase-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
@media (max-width: 800px) {
  .ani-showcase-inner { flex-direction: column; }
}
.ani-showcase-text {
  flex: 1;
  min-width: 0;
}
.ani-showcase-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.ani-showcase-text p {
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.7;
}
/* Dış kap KIRPMIYOR: rozet alt kenardan taşacak şekilde konumlanıyor,
   kırpma burada olsaydı alt kısmı kesilirdi. Kırpma .ani-slayt-kutu'da. */
/* cursor: zoom-in kaldırıldı: fotoğraf büyütme özelliği kapatıldı, büyüteç
   imleci artık olmayan bir işlevin sözünü veriyordu. */
.ani-showcase-img-wrap {
  flex-shrink: 0;
  position: relative;
  width: 520px;
  max-width: 100%;
}
.ani-slayt-kutu {
  position: relative;
  /* Oran SABİT: kareler farklı en-boy oranlarında, serbest bırakılsa her
     geçişte kutu zıplardı. 16/10, anıların ortanca oranına (~1.6) en yakın. */
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color .18s;
}
.ani-showcase-img-wrap:hover .ani-slayt-kutu { border-color: var(--accent); }
/* Kareler üst üste duruyor, görünen olanın opaklığı 1 */
.ani-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .7s ease;
}
.ani-showcase-img.aktif { opacity: 1; }

/* Gezinme okları. Ekstralar'daki büyütme ekranındaki oklarla aynı dil:
   yuvarlak, koyu yarı saydam zemin — fotoğrafın üstünde de okunur kalsın. */
.ani-slayt-ok {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  /* HEP görünür: hover'da belirmesi, düğmelerin varlığını fark ettirmiyordu. */
  opacity: .8;
  transition: opacity .15s, background .15s, border-color .15s;
  z-index: 3;
}
.ani-slayt-ok svg { width: 18px; height: 18px; }
.ani-slayt-ok--geri  { left: .5rem; }
.ani-slayt-ok--ileri { right: .5rem; }
.ani-showcase-img-wrap:hover .ani-slayt-ok { opacity: 1; }
.ani-slayt-ok:hover { background: rgba(0,0,0,.72); border-color: rgba(255,255,255,.45); opacity: 1; }
.ani-slayt-ok:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }

.ani-slayt-noktalar {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  display: flex;
  gap: .15rem;
  z-index: 2;
}
/* Noktalar artık düğme: dokunulabilir alan noktadan büyük tutuluyor
   (görsel 7 px ama tıklama alanı 22 px), yoksa parmakla isabet ettirmek zor. */
.ani-slayt-nokta {
  appearance: none; -webkit-appearance: none;
  border: none; background: none;
  width: 22px; height: 22px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ani-slayt-nokta::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  transition: background .3s, transform .3s;
}
/* Mobilde dokunma hedefleri: ok 34px, nokta 22px ölçülmüştü — parmak için
   önerilen alt sınır ~44px. Görsel değişmiyor: okun simgesi aynı, noktanın
   görünen kısmı zaten ::before içindeki 7px'lik yuvarlak; yalnızca
   dokunulabilir alan büyüyor. */
@media (max-width: 768px) {
  .ani-slayt-ok { width: 44px; height: 44px; opacity: .9; }
  .ani-slayt-nokta { width: 34px; height: 34px; }
}
.ani-slayt-nokta:hover::before { background: rgba(255,255,255,.75); }
.ani-slayt-nokta.aktif::before { background: #fff; transform: scale(1.3); }
.ani-slayt-nokta:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .ani-showcase-img { transition: none; }
  .ani-slayt-nokta::before { transition: none; }
}
.ani-showcase-badge {
  position: absolute;
  bottom: -12px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px var(--accent-glow);
  pointer-events: none;
}

/* ── Aktif Üyeler ── */
.aktif-uyeler-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.aktif-uyeler-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.aktif-uyeler-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .25rem 0 0;
}
.aktif-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  min-width: 22px;
  height: 22px;
  padding: 0 .45rem;
  border-radius: 20px;
  letter-spacing: .03em;
}
.aktif-uyeler-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.aktif-uye-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  width: 72px;
}
.aktif-uye-card--davet { text-decoration: none; opacity: .65; transition: opacity var(--gecis); }
.aktif-uye-card--davet:hover { opacity: 1; }
.aktif-uye-avatar-wrap--davet {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed !important; color: var(--text-3);
}
.aktif-uye-avatar-wrap--davet svg { width: 20px; height: 20px; }
.aktif-uye-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yuzey);
  border: 1px solid var(--border);
  overflow: hidden;
}
.aktif-uye-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.aktif-uye-name {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Mobil yazı tabanı: style.css'teki genel kural bu satır içi stile kaynak
   sırası gereği yenik düşüyor (aynı ağırlık, bu blok daha sonra geliyor);
   bu yüzden mobil değeri burada, tanımın yanında veriliyor. */
@media (max-width: 768px) {
  .aktif-uye-name { font-size: .7rem; }
}

/* ── Ana Sayfa Layout ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  /* minmax(0,1fr) şart: düz "1fr" aslında minmax(auto,1fr) demek ve sütun,
     içeriğin min-content genişliğinin altına inemiyor. Bu yüzden sohbet
     widget'ı dar ekranda kapsayıcıdan taşıyor, sağ kenarı ("Canlı" yazısı ve
     gönder düğmesi) kırpılıyordu. */
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .home-chat { order: -1; }
}

/* ── Sohbet Widget ── */
.home-chat { position: sticky; top: 80px; }

.home-chat-box {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 590px;
}

.home-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  position: relative;
  border-bottom: none;
  background: rgba(255,255,255,0.03);
}
.home-chat-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, rgba(0,229,176,.45) 65%, transparent);
}
.home-chat-header-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-1);
}

.home-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.home-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin-bottom: .5rem;
}
.home-chat-msg--grouped { margin-bottom: .15rem; }
.home-chat-msg--grouped:not(.home-chat-msg--own) .home-chat-bubble { border-radius: 4px 14px 14px 3px; }
.home-chat-msg--own.home-chat-msg--grouped .home-chat-bubble { border-radius: 14px 4px 3px 14px; }

.home-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
/* Aynalama yok — avatar habbo-imaging'den doğru yönde isteniyor (direction 4) */

.home-chat-bubble {
  max-width: 80%;
  padding: .55rem .9rem;
  border-radius: 14px 14px 14px 3px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: .1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  position: relative;
}
/* Balon renkleri style.css'teki :root --balon-* değişkenlerinden gelir; ana
   sayfa widget'ı da sohbet sayfasıyla aynı kaynağı kullanır (önceden burada
   dördüncü bir sabit renk seti duruyordu ve kaymaya açıktı).
   Üçgen kuyruk (::before/::after) kaldırıldı: balon zaten köşe çentiği
   kullanıyor, ikisi üst üste biniyor ve kuyruk rengi dolguyla uyuşmuyordu. */
.home-chat-bubble--red    { background: linear-gradient(135deg,rgba(var(--balon-red),.22),   rgba(var(--balon-red),.1));    border-color: rgba(var(--balon-red),.28); }
.home-chat-bubble--blue   { background: linear-gradient(135deg,rgba(var(--balon-blue),.22),  rgba(var(--balon-blue),.1));   border-color: rgba(var(--balon-blue),.28); }
.home-chat-bubble--yellow { background: linear-gradient(135deg,rgba(var(--balon-yellow),.22),rgba(var(--balon-yellow),.1)); border-color: rgba(var(--balon-yellow),.28); }
.home-chat-bubble--green  { background: linear-gradient(135deg,rgba(var(--balon-green),.22), rgba(var(--balon-green),.1));  border-color: rgba(var(--balon-green),.28); }
.home-chat-bubble--purple { background: linear-gradient(135deg,rgba(var(--balon-purple),.22),rgba(var(--balon-purple),.1)); border-color: rgba(var(--balon-purple),.28); }
.home-chat-bubble--pink   { background: linear-gradient(135deg,rgba(var(--balon-pink),.22),  rgba(var(--balon-pink),.1));   border-color: rgba(var(--balon-pink),.28); }

/* Premium balonlar: sohbet sayfasındaki gibi daha güçlü kenar + parıltı */
.home-chat-bubble--platinium {
  background: linear-gradient(135deg,rgba(var(--balon-platinium),.2),rgba(var(--balon-platinium),.06));
  border-color: rgba(var(--balon-platinium),.5);
  box-shadow: inset 0 1px 0 rgba(255,231,150,.18), 0 0 12px rgba(var(--balon-platinium),.16);
}
.home-chat-bubble--discord {
  background: linear-gradient(135deg,rgba(var(--balon-discord),.22),rgba(var(--balon-discord),.07));
  border-color: rgba(var(--balon-discord),.5);
  box-shadow: inset 0 1px 0 rgba(140,150,255,.2), 0 0 12px rgba(var(--balon-discord),.16);
}

.home-chat-bubble--red    .home-chat-user { color: var(--balon-red-isim); }
.home-chat-bubble--blue   .home-chat-user { color: var(--balon-blue-isim); }
.home-chat-bubble--yellow .home-chat-user { color: var(--balon-yellow-isim); }
.home-chat-bubble--green  .home-chat-user { color: var(--balon-green-isim); }
.home-chat-bubble--purple .home-chat-user { color: var(--balon-purple-isim); }
.home-chat-bubble--pink   .home-chat-user { color: var(--balon-pink-isim); }
/* Üyelik rengi balon rengini ezer (sohbet sayfasındaki davranışın aynısı):
   balon hangi renk olursa olsun üyenin adı kendi tonunda görünür. */
.home-chat-bubble .home-chat-user.tier-platinium       { color: var(--balon-platinium-isim); }
.home-chat-bubble .home-chat-user.tier-discord-special { color: var(--balon-discord-isim); }

.home-chat-user {
  font-size: .72rem;
  font-weight: 700;
  /* --accent (var(--accent)) koyu balonda ~2.4:1 kontrast veriyordu */
  color: #d9566d;
  font-family: 'Syne', sans-serif;
}
.home-chat-msg--own .home-chat-user { text-align: right; }
.home-chat-text {
  font-size: .8rem;
  color: var(--text-1);
  line-height: 1.4;
  word-break: break-word;
}
.home-chat-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: .1rem;
}
.home-chat-time {
  font-size: .62rem;
  /* --text-3 koyu balonda ~2.1:1 kontrast veriyordu, saat okunmuyordu */
  color: #927e82;
}

/* Input alanı */
.home-chat-input {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: .65rem .85rem;
  background: rgba(255,255,255,0.02);
}

.home-bubble-selector {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: rgba(18,10,16,.97);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: .45rem .6rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  z-index: 100;
  gap: .4rem;
  flex-wrap: nowrap;
  align-items: center;
}
.home-palette-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: .4rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.home-palette-btn:hover { color: var(--text-1); background: rgba(255,255,255,.06); }
.home-palette-btn.active { color: var(--accent); }
.home-bubble-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  padding: 0;
}
.home-bubble-dot:hover { transform: scale(1.2); }
.home-bubble-dot.active { border-color: rgba(255,255,255,0.6); transform: scale(1.15); }
/* Noktalar balonun gerçek rengini gösterir — ikisi de aynı değişkenden */
.home-bubble-dot--normal { background: rgba(255,255,255,0.3); }
.home-bubble-dot--red    { background: rgb(var(--balon-red)); }
.home-bubble-dot--blue   { background: rgb(var(--balon-blue)); }
.home-bubble-dot--yellow { background: rgb(var(--balon-yellow)); }
.home-bubble-dot--green  { background: rgb(var(--balon-green)); }
.home-bubble-dot--purple { background: rgb(var(--balon-purple)); }
.home-bubble-dot--pink   { background: rgb(var(--balon-pink)); }
.home-bubble-dot--platinium { background: linear-gradient(135deg, rgb(var(--balon-platinium)), #ffe796); }
.home-bubble-dot--discord   { background: linear-gradient(135deg, rgb(var(--balon-discord)),   #8c96ff); }

/* Temel renkleri ayrıcalıklı renklerden ayıran ince çizgi */
.home-bubble-ayirici { width: 1px; height: 11px; background: rgba(255,255,255,.14); margin: 0 .1rem; flex-shrink: 0; }

/* Açık premium nokta: ortada yıldız, çevresinde tier renginde nefes alan halka */
.home-bubble-dot--premium { position: relative; }
.home-bubble-dot--platinium { color: rgb(var(--balon-platinium)); }
.home-bubble-dot--discord   { color: rgb(var(--balon-discord)); }
.home-bubble-dot--premium.home-bubble-dot--yellow { color: rgb(var(--balon-yellow)); }
.home-bubble-dot--premium.home-bubble-dot--purple { color: rgb(var(--balon-purple)); }
.home-bubble-dot--premium:not(.kilitli)::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 1px solid currentColor;
  animation: ayricalikNefes 2.6s ease-in-out infinite;
  pointer-events: none;
}
.home-bubble-dot--premium:not(.kilitli)::after {
  content: '★'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-size: 7px; line-height: 1;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .home-bubble-dot--premium:not(.kilitli)::before { animation: none; opacity: .5; }
}
/* Kilitli premium nokta: gösterilir ama seçilemez */
.home-bubble-dot.kilitli { position: relative; opacity: .38; filter: grayscale(.5); cursor: not-allowed; }
.home-bubble-dot.kilitli:hover { transform: none; opacity: .55; }
.home-bubble-dot.kilitli::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 4px; transform: translate(-50%,-30%);
  background: rgba(255,255,255,.95); border-radius: 1px;
  box-shadow: 0 -2px 0 -1px rgba(255,255,255,.95);
}
.home-bubble-dot.kilit-uyari { animation: kilitSalla .3s ease; }

/* ── Boş durum ── */
.home-chat-bos {
  margin: auto; display: flex; flex-direction: column; align-items: center;
  gap: .4rem; padding: 1.5rem .75rem; text-align: center;
  color: var(--text-3); font-size: .78rem; line-height: 1.5;
}
.home-chat-bos svg { width: 32px; height: 32px; stroke: rgba(255,255,255,.15); }
.home-chat-bos-cta {
  margin-top: .5rem; padding: .45rem .95rem;
  border: 1px solid var(--cizgi-belirgin); border-radius: var(--r-tam);
  color: var(--text-2); font-size: .76rem; font-weight: 600;
  text-decoration: none; transition: color var(--gecis), border-color var(--gecis);
}
.home-chat-bos-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ── Yanıt önizlemesi (salt görüntü) ── */
.home-chat-reply {
  display: flex; flex-direction: column; gap: .05rem;
  background: rgba(255,255,255,.05);
  border-left: 2px solid var(--accent);
  border-radius: 4px; padding: .2rem .4rem; margin-bottom: .2rem;
  text-decoration: none; overflow: hidden;
}
.home-chat-reply:hover { background: rgba(255,255,255,.09); }
.home-chat-reply-user { font-size: .62rem; font-weight: 700; color: #d9566d; }
.home-chat-reply-text {
  font-size: .66rem; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}

/* ── Kendi mesajını silme (15 sn) ── */
.home-chat-bubble-footer { gap: .35rem; }
.home-self-del {
  display: inline-flex; align-items: center; gap: .15rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.55);
  padding: .1rem .2rem; border-radius: 4px;
  font-size: .58rem; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, color .15s, background .15s;
}
.home-chat-msg:hover .home-self-del { opacity: 1; pointer-events: auto; }
.home-self-del:hover { color: #e05252; background: rgba(224,82,82,.12); }
.home-self-del-sn { font-variant-numeric: tabular-nums; }
/* İkinci basışı bekleyen hâl — kazara silmeyi önler */
.home-self-del.onay-bekliyor {
  opacity: 1; pointer-events: auto;
  color: #e05252; background: rgba(224,82,82,.18);
  box-shadow: 0 0 0 1px rgba(224,82,82,.4) inset;
}
.home-self-del:disabled { opacity: .5; cursor: default; }
/* Dokunmatikte hover yok: düğme her zaman görünür ve parmakla basılabilir olsun */
@media (hover: none), (pointer: coarse) {
  .home-self-del { opacity: 1; pointer-events: auto; min-width: 28px; min-height: 24px; justify-content: center; }
}

/* ── Mention bildirimi ── */
.home-mention-toast {
  margin: .5rem .85rem 0;
  padding: .4rem .6rem;
  font-size: .72rem; line-height: 1.35;
  color: #ffe0a3;
  background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 7px;
  cursor: pointer;
  animation: homeToastGir .2s ease;
}
.home-mention-toast:hover { background: rgba(212,175,55,.22); }
@keyframes homeToastGir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Bildirime tıklanınca ilgili mesajı kısa süre vurgula */
.home-chat-msg--vurgu .home-chat-bubble {
  outline: 2px solid rgba(212,175,55,.55);
  outline-offset: 2px;
  transition: outline-color .3s;
}

/* ── Susturma banner'ı ── */
.home-mute-banner {
  display: flex; align-items: center; gap: .4rem;
  margin: .5rem .85rem 0;
  padding: .4rem .6rem;
  font-size: .72rem; line-height: 1.35;
  color: #ffb3c0;
  background: rgba(255,58,92,.12);
  border: 1px solid rgba(255,58,92,.3);
  border-radius: 7px;
}
.home-mute-countdown { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Gönderme hatası satırı ── */
.home-chat-hata {
  font-size: .72rem; line-height: 1.4;
  color: #ffb3c0;
  background: rgba(255,58,92,.12);
  border: 1px solid rgba(255,58,92,.28);
  border-radius: 7px;
  padding: .35rem .55rem;
  margin-bottom: .45rem;
}

/* ── Reaksiyonlar (salt görüntü) ── */
.home-chat-reactions { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .2rem; }
.home-chat-reactions:empty { display: none; }   /* reaksiyon yokken boşluk bırakmasın */
.home-chat-reaction {
  font-size: .64rem; line-height: 1;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .15rem .35rem; color: var(--text-2);
}

.home-chat-input-row {
  display: flex;
  gap: .4rem;
}
.home-chat-field {
  flex: 1;
  /* Flex ögesinin varsayılan min-width:auto değeri, input'un doğal genişliğinin
     (~173px) altına inmesini engelliyordu; dar ekranda gönder düğmesini kutunun
     dışına itiyordu. */
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--cizgi);
  border-radius: 8px;
  padding: .5rem .75rem;
  color: var(--text-1);
  font-size: .82rem;
  outline: none;
  transition: border-color .2s;
}
.home-chat-field:focus { border-color: var(--accent, #6366f1); }
.home-chat-field::placeholder { color: var(--text-3); }

.home-chat-send {
  background: var(--accent, #6366f1);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
  transition: opacity .2s;
}
.home-chat-send:hover { opacity: .85; }
.home-chat-send svg { width: 14px; height: 14px; }

/* ── Kendi Mesajı Sağa Hizala ── */
.home-chat-msg--own { flex-direction: row-reverse; }
.home-chat-msg--own .home-chat-bubble { border-radius: 14px 14px 3px 14px; }
.home-chat-msg--own .home-chat-bubble--normal {
  background: linear-gradient(135deg,rgba(165,28,48,.18),rgba(165,28,48,.08));
  border-color: rgba(165,28,48,.25);
}

/* ── Scroll-to-bottom ── */
.home-chat-box { position: relative; }
.home-scroll-btn {
  position: absolute;
  bottom: 100px; right: .65rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  z-index: 10; transition: transform .15s;
}
.home-scroll-btn:hover { transform: scale(1.1); }
.home-scroll-badge {
  position: absolute; top: -5px; right: -5px;
  background: #22c55e; color: #fff;
  font-size: .55rem; font-weight: 700;
  min-width: 14px; height: 14px; border-radius: 8px; padding: 0 .2rem;
  display: none; align-items: center; justify-content: center;
}

/* ── Glassmorphism ──
   Renkler BİLEREK sabit: bu kutu /sohbet sayfasındaki .chat-container ile aynı
   içeriği (aynı balon stillerini) gösteriyor ve o panel, style.css'te gerekçesi
   yazılı bir kararla iki temada da koyu cam olarak bırakılmış. Buradaki kutuyu
   tek başına açık yapmak, balon metinlerini okunmaz hâle getiriyor —
   denendi ve geri alındı. */
.home-chat-box {
  background: rgba(12,6,10,.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ── Yazıyor Göstergesi ── */
.home-chat-typing {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .85rem;
  font-size: .72rem;
  color: var(--text-3);
  min-height: 24px;
}
.typing-dots-sm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.typing-dots-sm span {
  width: 4px;
  height: 4px;
  background: var(--text-3);
  border-radius: 50%;
  animation: typingBounceSm .8s ease-in-out infinite;
}
.typing-dots-sm span:nth-child(2) { animation-delay: .15s; }
.typing-dots-sm span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounceSm {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-4px); }
}

/* ── Tarih Ayracı ── */
.home-chat-date-sep {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 .6rem;
}
.home-chat-date-sep::before,
.home-chat-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}
.home-chat-date-sep span {
  font-size: .62rem;
  font-weight: 600;
  color: var(--text-3);
  font-family: 'Syne', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── @Mention ── */
.mention { color: var(--accent); font-weight: 600; }
.mention--me {
  background: rgba(165,28,48,.15);
  border-radius: 4px;
  padding: 0 .2em;
}

/* ── Emoji butonu ── */
.home-emoji-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-2); padding: .4rem; border-radius: 8px;
  transition: color .15s, background .15s; flex-shrink: 0; display: flex; align-items: center;
}
.home-emoji-btn:hover { color: var(--text-1); background: rgba(255,255,255,.06); }
.home-emoji-btn.active { color: var(--accent); }

/* ── Emoji picker paneli ── */
.home-emoji-picker {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  background: rgba(18,10,16,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: .5rem; z-index: 200;
  box-shadow: 0 12px 36px rgba(0,0,0,.5); width: 276px;
}
.home-emoji-tabs {
  display: flex; gap: .2rem; margin-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: .4rem;
  overflow-x: auto; scrollbar-width: none;
}
.home-emoji-tabs::-webkit-scrollbar { display: none; }
.home-emoji-tab {
  background: none; border: none; cursor: pointer; font-size: 1.1rem;
  padding: .2rem .3rem; border-radius: 6px; transition: background .1s; opacity: .6;
}
.home-emoji-tab:hover, .home-emoji-tab.active { background: rgba(255,255,255,.08); opacity: 1; }
.home-emoji-grid {
  display: grid; grid-template-columns: repeat(8,1fr); gap: .15rem;
  max-height: 180px; overflow-y: auto;
}
.home-emoji-grid::-webkit-scrollbar { width: 4px; }
.home-emoji-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.home-emoji-btn-icon {
  background: none; border: none; cursor: pointer; font-size: 1.2rem;
  padding: .25rem; border-radius: 6px; transition: background .1s; line-height: 1;
}
.home-emoji-btn-icon:hover { background: rgba(255,255,255,.08); }

/* ── @Mention dropdown ── */
.home-mention-dropdown {
  position: absolute; bottom: calc(100% + 4px); left: 0;
  background: rgba(18,10,16,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; overflow: hidden; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); min-width: 180px;
}
.home-mention-item {
  display: flex; align-items: center; gap: .6rem; padding: .45rem .75rem;
  cursor: pointer; font-size: .83rem; color: var(--text-1); transition: background .1s;
}
.home-mention-item:hover { background: rgba(255,255,255,.06); }
.home-mention-item img { width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; }

/* Kilitli input */
.home-chat-input--locked { text-align: center; }
.home-chat-locked-msg {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
}
.home-chat-locked-msg:hover { color: var(--accent, #6366f1); }
