/* ================================================================
   SNL // CHAT.CSS — DM & Profil Stilleri
   ================================================================
   Satır     : ~400
   Değişiklik:
     - width çift tanım düzeltildi (chat-send-btn, delete-photo-btn)
     - side-close-btn width çift tanım düzeltildi
     - Tüm stiller var() kullanıyor
     - header-btn width düzeltildi
     - [YENİ] Mobil responsive — paneller üst üste, boşluk sorunu giderildi
     - [FIX] DM mesaj alanı scroll — min-height:0 eklendi, yukarı kaydırma
       çalışıyor. Header/input flex-shrink:0 ile sabit kaldı.
================================================================ */

/* ================================================================
   MESAJLAR (DM) SAYFASI
================================================================ */

.inbox-container {
    display:       flex;
    height:        calc(100vh - 115px);
    height:        calc(100dvh - 115px); /* [MOBİL FIX] gerçek görünen yükseklik */
    background:    var(--surface);
    border:        1px solid var(--border);
    border-radius: 16px;
    overflow:      hidden;
}

.conversations-panel {
    width:          100%;
    max-width:      320px;
    border-right:   1px solid var(--border);
    display:        flex;
    flex-direction: column;
    background:     var(--bg3);
}

.conversations-header {
    padding:       14px 16px;
    border-bottom: 1px solid var(--border);
    display:       flex;
    align-items:   center;
    justify-content: space-between;
}

.conversations-header h2 {
    font-family:   var(--font-title);
    font-size:     13px;
    color:         var(--neon);
    margin:        0;
}

.conversations-search {
    padding:       10px 12px;
    border-bottom: 1px solid var(--border);
}

.conversations-search input {
    width:         100%;
    background:    var(--surface);
    border:        1px solid var(--border);
    padding:       8px 12px;
    border-radius: 20px;
    font-size:     13px;
    margin-bottom: 0;
}

.conversations-list { flex: 1; overflow-y: auto; }

.conversation-item {
    display:       flex;
    align-items:   center;
    gap:           12px;
    padding:       12px 16px;
    cursor:        pointer;
    transition:    0.15s;
    border-bottom: 1px solid var(--border);
    position:      relative;
}

.conversation-item:hover       { background: var(--surface2); }
.conversation-item.active      { background: rgba(168,85,247,0.1); border-left: 3px solid var(--accent); }
.conversation-item.has-unread  { background: rgba(236,72,153,0.05); }

.conv-avatar {
    width:          44px;
    height:         44px;
    border-radius:  50%;
    border:         2px solid var(--border);
    display:        flex;
    align-items:    center;
    justify-content: center;
    font-weight:    700;
    color:          var(--neon);
    font-size:      13px;
    background:     var(--surface2);
    overflow:       hidden;
    flex-shrink:    0;
}

.conv-avatar img  { width: 100%; height: 100%; object-fit: cover; }
.conv-avatar.online { border-color: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.3); }
.conv-info        { flex: 1; min-width: 0; }
.conv-name        { font-weight: 700; font-size: 14px; color: var(--text); }
.conv-preview     { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-meta        { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.conv-time        { font-size: 11px; color: var(--muted); }

.conv-unread-badge {
    background:    var(--pink);
    color:         #fff;
    font-size:     10px;
    font-weight:   700;
    min-width:     20px;
    height:        20px;
    border-radius: 10px;
    display:       flex;
    align-items:   center;
    justify-content: center;
}

/* [FIX] min-height:0 — flex child'ın taşmasını engeller, iç scroll çalışır */
.chat-panel       { flex: 1; display: flex; flex-direction: column; background: var(--bg); min-height: 0; min-width: 0; overflow: hidden; }
.chat-panel.empty { align-items: center; justify-content: center; }
.chat-empty-state { text-align: center; color: var(--muted); }
.chat-empty-state .icon { font-size: 60px; margin-bottom: 12px; }
.chat-empty-state h3    { font-family: var(--font-title); color: var(--border); font-size: 14px; }

/* [FIX] header sabit kalsın, scroll'da kaybolmasın */
#chatHeaderArea { flex-shrink: 0; }

.chat-header {
    padding:       12px 16px;
    border-bottom: 1px solid var(--border);
    display:       flex;
    align-items:   center;
    gap:           12px;
    background:    var(--bg3);
    flex-shrink:   0;
}

.chat-header-back {
    display:    none;
    background: none;
    border:     none;
    color:      var(--neon);
    font-size:  20px;
    cursor:     pointer;
    padding:    4px 8px;
    width:      auto;
}

.chat-header-avatar {
    width:          36px;
    height:         36px;
    border-radius:  50%;
    border:         2px solid var(--accent);
    display:        flex;
    align-items:    center;
    justify-content: center;
    font-weight:    700;
    color:          var(--neon);
    font-size:      11px;
    background:     var(--surface2);
    overflow:       hidden;
    flex-shrink:    0;
}

.chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-info       { flex: 1; min-width: 0; }
.chat-header-name       { font-weight: 700; font-size: 14px; color: var(--text); }
.chat-header-status     { font-size: 11px; color: var(--success); }

/* [FIX] min-height:0 — asıl scroll fix burada. Mesaj alanı artık
   kendi içinde kayar, yukarı çıkıp eski mesajları görebilirsin. */
.chat-messages {
    flex:           1;
    overflow-y:     auto;
    padding:        16px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
    min-height:     0;
}

.chat-bubble {
    max-width:     75%;
    padding:       10px 14px;
    border-radius: 16px;
    font-size:     14px;
    line-height:   1.4;
    word-break:    break-word;
    animation:     bubbleIn 0.2s ease-out;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-bubble.sent {
    align-self:          flex-end;
    background:          var(--gradient);
    color:               #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    align-self:         flex-start;
    background:         var(--fill-soft);
    border:             1px solid var(--border);
    color:              var(--text);
    border-bottom-left-radius: 4px;
}

.bubble-sender { font-size: 11px; font-weight: 700; color: var(--neon); margin-bottom: 3px; }
.bubble-time   { font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 4px; text-align: right; }
.chat-bubble.received .bubble-time { color: var(--muted); }
.read-tick     { color: rgba(255,255,255,0.8); }

/* [FIX] input alanı da sabit kalsın */
.chat-input-area {
    padding:     12px 16px;
    border-top:  1px solid var(--border);
    display:     flex;
    gap:         10px;
    align-items: flex-end;
    background:  var(--bg3);
    flex-shrink: 0;
}

.chat-input-wrapper { flex: 1; }

.chat-input-wrapper textarea {
    width:         100%;
    background:    var(--surface);
    border:        1px solid var(--border);
    color:         var(--text);
    padding:       10px 14px;
    border-radius: 20px;
    font-size:     14px;
    resize:        none;
    max-height:    100px;
    min-height:    40px;
    margin-bottom: 0;
}

/* ✅ Düzeltildi — width tek kez */
.chat-send-btn {
    height:          42px;
    border-radius:   50%;
    background:      var(--gradient);
    color:           #fff;
    border:          none;
    font-size:       18px;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    padding:         0 14px;
    width:           auto;
}

/* [FOTO DM] 📎 ekle butonu — send-btn'in nötr kardeşi */
.chat-attach-btn {
    height:          42px;
    width:           42px;
    border-radius:   50%;
    background:      var(--surface);
    color:           var(--neon);
    border:          1px solid var(--border);
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    padding:         0;
    transition:      opacity 0.15s;
}
.chat-attach-btn.uploading { opacity: 0.5; pointer-events: none; animation: attachPulse 0.9s ease-in-out infinite; }
@keyframes attachPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* [REPLY] baloncuk satırı + yanıtla butonu */
.bubble-row {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}
.bubble-row.sent     { justify-content: flex-end; }
.bubble-row.received { justify-content: flex-start; }
.bubble-row .chat-bubble { align-self: auto; }
.bubble-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.bubble-row:hover .bubble-actions { opacity: 1; }
/* Dokunmatik cihazda hover yok → butonları hafif görünür tut */
@media (hover: none) { .bubble-actions { opacity: 0.5; } }
.bubble-reply-btn, .bubble-react-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
    /* İçerik artık emoji değil SVG: taban çizgisine değil ortaya otursun */
    display: flex;
    align-items: center;
    justify-content: center;
}
.bubble-reply-btn:hover, .bubble-react-btn:hover { background: var(--hover); color: var(--text); }

/* [REAKSİYON] baloncuk altı emoji rozetleri */
.bubble-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.reaction-chip {
    background: rgba(0,0,0,0.22);
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
    user-select: none;
}
.chat-bubble.received .reaction-chip { background: rgba(0,0,0,0.08); }

/* [İSTEK] mesaj istekleri geçiş satırı */
.dm-requests-bar {
    padding: 10px 16px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    color: var(--neon);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.dm-requests-bar:hover { background: var(--hover); }

/* [ARAMA] sohbet içi arama çubuğu */
.dm-chat-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
}
.dm-chat-search input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 13px;
    margin: 0;
}
.dm-chat-search-count { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.dm-chat-search-close { background: transparent; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px 6px; flex-shrink: 0; width: auto; } /* width:auto SART: global button %100 kurali dugmeyi tum satira yayip inputu 26px'e eziyordu (grup arama cubugunda olculdu) */
.dm-chat-search-close:hover { color: var(--text); }

/* [SİLME] silinmiş mesaj görünümü */
.chat-bubble.deleted { opacity: 0.6; }
.bubble-deleted-text { font-style: italic; font-size: 13px; }

/* [REAKSİYON] yüzen emoji seçici — 12 emoji (6'dan çıktı, native ile aynı
   set) tek satıra sığmıyor: 6'şarlı iki satıra sarılır */
.dm-reaction-picker {
    position: fixed;
    z-index: 100001;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    max-width: 236px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 6px 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.dm-reaction-picker button {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    transition: transform 0.1s;
    /* Global `button{width:100%}` kuralı flex-wrap ile birleşince her emoji
       kendi satırına geçiyordu (canlıda ölçüldü) — tek sütun akıyordu. */
    width: auto;
}
.dm-reaction-picker button:hover { transform: scale(1.25); }

/* [REPLY] baloncuk içi alıntı kutusu */
.bubble-quote {
    border-left: 3px solid rgba(255,255,255,0.5);
    padding: 3px 8px;
    margin-bottom: 5px;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    max-width: 100%;
}
.chat-bubble.received .bubble-quote { border-left-color: var(--neon); background: rgba(0,0,0,0.06); }
.bubble-quote-sender { font-size: 11px; font-weight: 700; opacity: 0.85; }
.bubble-quote-text   { font-size: 12px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* [REPLY] input üstündeki "yanıtlanıyor" çubuğu */
.dm-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg3);
    border-top: 1px solid var(--border);
}
.dm-reply-bar-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dm-reply-bar-icon { color: var(--neon); font-size: 18px; flex-shrink: 0; }
.dm-reply-bar-content { min-width: 0; border-left: 2px solid var(--neon); padding-left: 8px; }
.dm-reply-bar-sender { font-size: 12px; font-weight: 700; color: var(--text); }
.dm-reply-bar-text   { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
/* [İNCELEME] width:auto ŞART — base.css global `button{width:100%}` düğmeyi
   tam satıra yayıp gövdeyi 0px'e eziyordu (alıntı metni görünmüyordu; hem
   global sohbet hem DM çubuğu bu sınıfı kullanıyor, canlıda ölçüldü). */
.dm-reply-bar-close  { background: transparent; border: none; color: var(--muted); font-size: 16px; cursor: pointer; flex-shrink: 0; padding: 4px 8px; width: auto; }
.dm-reply-bar-close:hover { color: var(--text); }

/* [FOTO DM] baloncuk içi görsel */
.chat-bubble.has-image { padding: 6px; }
.bubble-image {
    display:       block;
    max-width:     220px;
    max-height:    260px;
    border-radius: 12px;
    cursor:        zoom-in;
    object-fit:    cover;
}
.chat-bubble.has-image > span { display: block; padding: 4px 8px 2px; }

/* ================================================================
   [YENİ] MOBİL RESPONSIVE — Paneller üst üste, boşluk giderildi
   ================================================================
   Telefonda iki panel yan yana sığmıyordu (boşluk sorunu).
   dm.js şu class'ları kullanıyor:
     - openConversation()   → conversationsPanel'e 'hidden-mobile' ekler,
                               chatPanel'den 'hidden-mobile' kaldırır
     - backToConversations()→ tam tersi
   Bu CSS o class'ları mobilde anlamlı hale getirir.
================================================================ */
@media (max-width: 768px) {

    /* Konuşma listesi mobilde tam genişlik */
    .conversations-panel {
        max-width:    100%;
        width:        100%;
        border-right: none;
    }

    /* Inbox dikey ve tam yükseklik, kenar boşlukları sıfır */
    .inbox-container {
        height:        100%;
        border-radius: 0;
        border:        none;
    }

    /* Sohbet paneli mobilde de tam ekran kaplasın */
    .chat-panel {
        width:    100%;
        flex:     1;
    }

    /* dm.js bu class'ı ekleyince ilgili panel gizlenir.
       Böylece aynı anda ya liste ya sohbet görünür — boşluk kalmaz. */
    .hidden-mobile {
        display: none !important;
    }

    /* Mobilde sohbet başlığındaki geri oku görünür olsun */
    .chat-header-back {
        display: inline-flex;
    }

    /* Boş durum (hiç konuşma seçilmemişken sağ panel) mobilde gizli —
       çift boş-ekran sorununu önler. Liste zaten kendi boş mesajını gösteriyor. */
    .chat-panel.empty {
        display: none;
    }
}

/* ================================================================
   PROFİL SAYFASI
================================================================ */

.profile-avatar-lg {
    width:          80px;
    height:         80px;
    border-radius:  50%;
    border:         3px solid var(--accent);
    box-shadow:     var(--glow);
    margin:         0 auto 10px;
    display:        flex;
    align-items:    center;
    justify-content: center;
    font-size:      24px;
    font-weight:    700;
    color:          var(--neon);
    overflow:       hidden;
    background:     var(--surface2);
}

.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.profile-bio {
    font-size:     13px;
    color:         var(--muted);
    background:    var(--surface2);
    padding:       8px;
    border-radius: 8px;
    margin:        10px 0;
    border:        1px solid var(--border);
    font-style:    italic;
}

.profile-photo-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   3px;
    border-radius:         8px;
    overflow:              hidden;
}

.profile-photo-item {
    aspect-ratio: 1;
    overflow:     hidden;
    cursor:       pointer;
    position:     relative;
}

.profile-photo-item img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.profile-photo-item:hover img { transform: scale(1.05); }

/* [VİDEO + TWEET] Izgara üç içerik tipi taşıyor.
   Video: kapak görselinin üstünde oynat rozeti — kare, fotoğraftan ayırt
   edilebilsin. Metin: görsel yok, metnin kendisi kare olur (yoksa boş `url`
   kırık görsel kutusu çiziyordu). */
.profile-photo-item .profile-photo-play {
    position:       absolute;
    right:          6px;
    bottom:         6px;
    color:          #fff;
    font-size:      22px;
    text-shadow:    0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.profile-photo-item .profile-photo-text {
    width:           100%;
    height:          100%;
    padding:         10px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    overflow:        hidden;
    background:      var(--surface);
    border:          1px solid var(--border);
    color:           var(--text);
    text-align:      center;
    font-size:       13px;
    font-weight:     600;
    line-height:     1.4;
    word-break:      break-word;
}
.profile-photo-item .profile-photo-text span {
    display:            -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow:           hidden;
}

/* ✅ Düzeltildi — width tek kez */
.profile-photo-item .delete-photo-btn {
    position:        absolute;
    top:             4px;
    right:           4px;
    background:      rgba(239,68,68,0.8);
    color:           #fff;
    border:          none;
    width:           22px;
    height:          22px;
    border-radius:   50%;
    font-size:       11px;
    cursor:          pointer;
    display:         none;
    align-items:     center;
    justify-content: center;
    padding:         0;
}

.profile-photo-item:hover .delete-photo-btn { display: flex; }

/* [PROFİL AKIŞI] Açıklama düzenleme kalemi — silme (sağ üst) ile aynı kalıp,
   sol üstte ve accent zeminli; base.css'in global button width'ine karşı
   width burada da sabit. */
.profile-photo-item .edit-photo-btn {
    position:        absolute;
    top:             4px;
    left:            4px;
    background:      rgba(99,102,241,0.85);
    color:           #fff;
    border:          none;
    width:           22px;
    height:          22px;
    border-radius:   50%;
    font-size:       11px;
    cursor:          pointer;
    display:         none;
    align-items:     center;
    justify-content: center;
    padding:         0;
}

.profile-photo-item:hover .edit-photo-btn { display: flex; }
.chat-menu-btn:hover { background: rgba(99,102,241,0.1); border-radius: 50%; }
.chat-menu-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: #fff; border: 1px solid var(--border, #e0e7ff);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px; z-index: 50; overflow: hidden;
}
.chat-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-size: 14px; font-family: 'Rajdhani', sans-serif;
    font-weight: 600; color: var(--text, #1e293b); cursor: pointer; transition: background .15s;
}
.chat-menu-item:hover { background: var(--hover); }
.chat-menu-item .material-symbols-outlined { font-size: 19px; }
.chat-menu-item.danger { color: #ef4444; }
.chat-menu-item.danger:hover { background: #fff1f5; }
body.dark-theme .chat-menu-dropdown { background: #1e293b; border-color: #334155; }
body.dark-theme .chat-menu-item { color: #e2e8f0; }
body.dark-theme .chat-menu-item:hover { background: #283548; }

/* ── [DM TEMALARI] Sohbet başına kişisel tema (⋮ > Sohbet Teması) ── */
#chatMessagesArea.dm-theme-pink { background: #fdf2f8; }
#chatMessagesArea.dm-theme-pink .chat-bubble.sent { background: linear-gradient(135deg,#ec4899,#f472b6); }
#chatMessagesArea.dm-theme-ocean { background: #eff6ff; }
#chatMessagesArea.dm-theme-ocean .chat-bubble.sent { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
#chatMessagesArea.dm-theme-forest { background: #f0fdf4; }
#chatMessagesArea.dm-theme-forest .chat-bubble.sent { background: linear-gradient(135deg,#16a34a,#84cc16); }
#chatMessagesArea.dm-theme-night { background: #0f172a; }
#chatMessagesArea.dm-theme-night .chat-bubble.sent { background: linear-gradient(135deg,#334155,#1f2937); }
#chatMessagesArea.dm-theme-night .chat-bubble.received { background: #1e293b; border-color: #334155; color: #e5e7eb; }

/* ── [GRUPLAMA] Ardışık mesajlar tek blok (Telegram dizilimi) ── */
.bubble-row.grouped { margin-top: -5px; }
.bubble-row.grouped .bubble-sender { display: none; }   /* gönderen adı tekrar etmesin */
.bubble-row.grouped .chat-bubble.sent { border-top-right-radius: 5px; }
.bubble-row.grouped .chat-bubble.received { border-top-left-radius: 5px; }

/* ── [ALINTIYA GİT] alıntı tıklanınca hedef mesaj parlar ── */
@keyframes dmQuoteFlash {
    0%   { background: rgba(99,102,241,0.35); }
    100% { background: transparent; }
}
.bubble-row.quote-flash { animation: dmQuoteFlash 1.5s ease-out; border-radius: 12px; }
/* [GRUP ARAMA] Grup mesaj satırı .bubble-row taşımıyor — aynı parlamayı
   data-msg-id'li grup satırına da ver (grupMesajaGit hedefi) */
#groupMessagesArea [data-msg-id].quote-flash { animation: dmQuoteFlash 1.5s ease-out; border-radius: 12px; }

/* ── [DM 10/10 F2] Sesli mesaj ── */
.dm-ses-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; background: var(--bg2);
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text);
}
.dm-ses-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ef4444; animation: dmSesNabiz 1s infinite;
}
@keyframes dmSesNabiz { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.dm-ses-sure { font-weight: 800; min-width: 38px; }
.dm-ses-ipucu { flex: 1; font-size: 11px; color: var(--muted); }
.dm-ses-iptal {
    width: auto; background: none; border: none; color: #ef4444;
    font-family: 'Rajdhani'; font-weight: 700; font-size: 13px; cursor: pointer;
}
.chat-attach-btn.recording { color: #ef4444; animation: dmSesNabiz 1s infinite; }
.dm-audio { display: flex; align-items: center; gap: 8px; min-width: 180px; padding: 2px 0; }
.dm-audio-btn {
    width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
    border: none; cursor: pointer; display: flex; align-items: center;
    justify-content: center; background: rgba(255,255,255,0.22); color: inherit;
}
.chat-bubble.received .dm-audio-btn { background: rgba(0,0,0,0.12); }
.dm-audio-track {
    flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3);
    cursor: pointer; overflow: hidden;
}
.chat-bubble.received .dm-audio-track { background: rgba(0,0,0,0.15); }
.dm-audio-fill { height: 100%; width: 0%; background: currentColor; border-radius: 2px; }
.dm-audio-time { font-size: 11px; font-weight: 700; opacity: 0.85; min-width: 30px; }

/* ── [DM 10/10 F5] Link önizleme kartı ── */
.dm-linkkart {
    display: flex; flex-direction: column; margin-top: 6px;
    max-width: 300px; border-radius: 10px; overflow: hidden;
    background: rgba(0,0,0,0.14); cursor: pointer;
    border-left: 3px solid rgba(255,255,255,0.55);
}
.chat-bubble.received .dm-linkkart {
    background: rgba(0,0,0,0.05); border-left-color: #6366f1;
}
.dm-linkkart-gorsel { width: 100%; max-height: 150px; object-fit: cover; display: block; }
.dm-linkkart-govde { padding: 8px 10px; min-width: 0; }
.dm-linkkart-baslik {
    font-size: 13px; font-weight: 800; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-linkkart-aciklama {
    font-size: 11px; opacity: 0.8; margin-top: 3px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-linkkart-site { font-size: 10px; font-weight: 700; opacity: 0.6; margin-top: 4px; text-transform: uppercase; }

/* ── [DM 10/10 F6] Sunucu taraflı arama sonuçları ── */
.dm-arama-sonuc {
    margin: 10px 4px 4px; border-radius: 12px; overflow: hidden;
    background: var(--bg2); border: 1px solid var(--border);
}
.dm-arama-baslik {
    padding: 8px 12px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--muted); border-bottom: 1px solid var(--border);
}
.dm-arama-satir { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.dm-arama-satir:last-child { border-bottom: none; }
.dm-arama-satir:hover { background: rgba(99,102,241,0.08); }
.dm-arama-kim { font-size: 11px; font-weight: 800; color: var(--text); }
.dm-arama-tarih { font-size: 11px; color: var(--muted); }
.dm-arama-metin {
    font-size: 13px; color: var(--text); margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-arama-metin mark { background: rgba(99,102,241,0.35); color: inherit; border-radius: 3px; padding: 0 2px; }
/* Kutu artık arama çubuğunun kardeşi (mesaj alanı yeniden çizilince silinmesin) */
#dmAramaSonuc { max-height: 40vh; overflow-y: auto; margin: 6px 10px; }
/* [GRUP ARAMA] Grup sonuç kutusu aynı görünümü paylaşır */
#grupAramaSonuc { max-height: 40vh; overflow-y: auto; margin: 6px 10px; }
