/* =========================================================================
   VoiceLink v5 - Sosyal katman stilleri
   Baglam menusu, arkadaslik, rapor, e-posta dogrulama, kanal turleri,
   DM paneli, ekler ve sesli mesaj.
   ========================================================================= */

/* ---------- Baglam menusu ---------- */
.ctx-menu {
    position: fixed; z-index: 5000; min-width: 210px;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.35rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.55);
    display: flex; flex-direction: column; gap: 0.1rem;
}
.ctx-title {
    font-size: 0.72rem; color: var(--text-muted);
    padding: 0.4rem 0.6rem 0.5rem; font-weight: 600;
    border-bottom: 1px solid var(--border); margin-bottom: 0.25rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ctx-item {
    display: flex; align-items: center; gap: 0.6rem;
    background: none; border: none; color: var(--text-main);
    font: inherit; font-size: 0.84rem; text-align: left;
    padding: 0.5rem 0.6rem; border-radius: 6px; cursor: pointer; width: 100%;
}
.ctx-item:hover:not(:disabled) { background: var(--bg-panel); }
.ctx-item.danger { color: var(--danger-text); }
.ctx-item.danger:hover:not(:disabled) { background: rgba(239,68,68,.14); }
.ctx-item.disabled, .ctx-item:disabled { opacity: .45; cursor: not-allowed; }
.ctx-ico { width: 18px; text-align: center; flex: none; }
.ctx-sep { height: 1px; background: var(--border); margin: 0.25rem 0.3rem; }

/* ---------- Profil kartindaki eylemler ---------- */
.profile-actions {
    display: flex; flex-direction: column; gap: 0.45rem;
    width: 100%; margin-top: 0.8rem;
}

/* ---------- E-posta dogrulama ---------- */
.verify-step { display: flex; flex-direction: column; gap: 0.9rem; text-align: center; }
.verify-icon { font-size: 2.6rem; }
.verify-step h2 { font-size: 1.15rem; }
.verify-sub { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.verify-sub b { color: var(--text-main); word-break: break-all; }
.verify-code {
    text-align: center; font-size: 1.7rem !important; letter-spacing: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    padding: 0.8rem !important;
}
.verify-actions { display: flex; gap: 0.5rem; }
.verify-actions .btn { flex: 1; }
.warn-box {
    background: rgba(245,158,11,.12); color: var(--warn-text);
    border-radius: 8px; padding: 0.6rem 0.75rem;
    font-size: 0.76rem; line-height: 1.5;
}

/* ---------- Kanal turu secimi ---------- */
.kind-row { display: flex; gap: 0.5rem; }
.kind-opt { flex: 1; cursor: pointer; }
.kind-opt input { display: none; }
.kind-box {
    display: flex; flex-direction: column; gap: 0.15rem; align-items: center;
    background: var(--bg-darker); border: 2px solid transparent;
    border-radius: 10px; padding: 0.6rem 0.4rem; text-align: center;
    transition: border-color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.kind-box b { font-size: 0.78rem; font-weight: 600; }
.kind-box small { font-size: 0.65rem; color: var(--text-muted); }
.kind-opt:hover .kind-box { background: var(--bg-panel); }
.kind-opt input:checked + .kind-box { border-color: var(--primary); background: rgba(99,102,241,0.12); }

/* ---------- Kanal listesi gruplari ---------- */
.room-group {
    font-size: 0.66rem; font-weight: 700; letter-spacing: .06em;
    color: var(--text-muted); padding: 0.75rem 0.6rem 0.3rem;
}
.room-group:first-child { padding-top: 0.35rem; }
.room-lock { font-size: 0.7rem; opacity: .8; }

/* ---------- Sohbet basligi eylemleri ---------- */
.chat-header-actions { margin-left: auto; display: flex; gap: 0.4rem; flex: none; }

/* Sohbetteki yazar adi tiklanabilir */
.msg-author { cursor: pointer; }
.msg-author:hover { text-decoration: underline; }

/* ---------- Sunucu rayi: DM butonu ---------- */
/* overflow: visible - rozet simgenin disina tasar; eskiden .server-icon'un overflow:hidden'i onu kirpiyordu */
.server-icon.dm { background: var(--bg-panel); font-size: 1.2rem; position: relative; overflow: visible; }
.server-icon.dm:hover, .server-icon.dm.active { background: var(--primary); }
.rail-sep { width: 32px; height: 2px; background: var(--border); border-radius: 1px; flex: none; }
.rail-badge {
    position: absolute; top: -5px; right: -5px; z-index: 1;
    background: var(--danger); color: #fff; font-size: 0.62rem; font-weight: 700; line-height: 1;
    min-width: 19px; height: 19px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
    border: 2px solid var(--bg-rail); box-sizing: border-box;
}

/* ---------- Arkadaslik istekleri paneli (sidebar'daki bildirim bolumu icinde) ---------- */
.notif-title { font-size: 0.85rem; }
.friend-req-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0.5rem; border-radius: 6px;
}
.friend-req-row:hover { background: var(--bg-panel); }
.freq-name {
    flex: 1; min-width: 0; font-size: 0.84rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.freq-actions { display: flex; gap: 0.3rem; flex: none; }
.freq-actions button {
    background: none; border: none; cursor: pointer;
    font-size: 0.95rem; padding: 0.2rem; border-radius: 4px; line-height: 1;
}
.freq-actions button:hover { background: var(--bg-darker); }
.freq-empty { color: var(--text-muted); font-size: 0.8rem; text-align: center; padding: 1rem 0.6rem; }

/* ---------- DM paneli ---------- */
.dm-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dm-search { padding: 0.5rem; border-bottom: 1px solid var(--border); }
.dm-search input { font-size: 0.85rem; padding: 0.5rem 0.65rem; }
.dm-list { flex: 1; overflow-y: auto; padding: 0.35rem; }
.dm-empty { color: var(--text-muted); font-size: 0.8rem; text-align: center; padding: 1.5rem 1rem; }
.dm-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem; border-radius: 8px; cursor: pointer; position: relative;
}
.dm-item:hover { background: var(--bg-panel); }
.dm-item.active { background: var(--bg-panel); }
.dm-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: #fff; font-size: 0.85rem;
}
.dm-info { min-width: 0; flex: 1; }
.dm-name { font-size: 0.85rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-last { font-size: 0.72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-unread {
    background: var(--danger); color: #fff; font-size: 0.65rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; flex: none;
}

/* ---------- Sohbet araclari (ek / sesli mesaj) ---------- */
.chat-tool { flex: none; }
.attach-preview {
    background: var(--bg-darker); border-radius: 10px;
    padding: 0.5rem; margin-bottom: 0.5rem;
    display: flex; gap: 0.5rem; overflow-x: auto;
}
.attach-preview.hidden { display: none; }
/* Birden fazla secilen dosya: yan yana kartlar */
.pv-item { flex: 0 0 auto; width: 210px; max-width: 70vw; }
.pv-item .pv-body { background: var(--bg-panel); border-radius: 8px; padding: 0.45rem; }
.pv-item.sending .pv-remove { visibility: hidden; }
.pv-body { display: flex; align-items: center; gap: 0.7rem; }
.chat-area.drop-target { outline: 2px dashed var(--primary); outline-offset: -8px; }
.send-btn:disabled { opacity: 0.55; cursor: progress; }
.pv-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.pv-ico { font-size: 1.6rem; width: 44px; text-align: center; flex: none; }
.pv-info { flex: 1; min-width: 0; }
.pv-name { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-size { font-size: 0.7rem; color: var(--text-muted); }
.pv-bar { height: 4px; background: var(--bg-panel); border-radius: 2px; margin-top: 0.35rem; overflow: hidden; }
.pv-bar-fill { height: 100%; background: var(--primary); transition: width var(--d-fast) var(--e-out); }
.pv-remove {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 0.9rem; padding: 0.3rem; flex: none;
}
.pv-remove:hover { color: var(--danger); }

/* ---------- Sesli mesaj kaydi ---------- */
.record-bar {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(239,68,68,.12); border-radius: 10px;
    padding: 0.6rem 0.75rem; margin-bottom: 0.5rem;
}
.rec-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--danger);
    animation: rec-pulse 1s infinite; flex: none;
}
.rec-time { font-family: ui-monospace, Menlo, monospace; font-size: 0.9rem; font-weight: 600; }
.rec-label { font-size: 0.78rem; color: var(--text-muted); flex: 1; }
.icon-btn.recording { color: var(--danger); background: rgba(239,68,68,.14); }

/* ---------- Mesaj ekleri ---------- */
.att { margin-top: 0.4rem; }
.att-image img {
    max-width: min(320px, 100%); max-height: 320px;
    border-radius: 10px; cursor: zoom-in; display: block;
    /* Arka plan yok: seffaf PNG/WebP'nin arkasi sohbetin kendi zemini gibi gorunsun */
}
.att-audio {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--bg-darker); border-radius: 10px; padding: 0.5rem 0.7rem;
    max-width: 360px;
}
.att-audio audio { flex: 1; height: 34px; min-width: 0; }
.att-dur { font-size: 0.72rem; color: var(--text-muted); flex: none; }
.att-video video { max-width: min(360px, 100%); border-radius: 10px; display: block; }
.att-file {
    display: flex; align-items: center; gap: 0.7rem; text-decoration: none;
    background: var(--bg-darker); border-radius: 10px; padding: 0.65rem 0.8rem;
    color: var(--text-main); max-width: 360px;
}
.att-file:hover { background: var(--bg-panel); }
.att-ico { font-size: 1.4rem; flex: none; }
.att-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.att-name { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { font-size: 0.7rem; color: var(--text-muted); }
.att-dl { flex: none; opacity: .7; }

/* ---------- Fotograf buyutme ---------- */
/* ---------- Fotograf goruntuleyici (tam ekran) ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 6000;
    background: rgba(0,0,0,.92); display: flex; flex-direction: column;
    animation: lbIn var(--d-base) var(--e-out);
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-bar {
    display: flex; align-items: center; gap: .4rem;
    padding: calc(.6rem + var(--safe-top, 0px)) .8rem .6rem .9rem;
    color: #fff; flex-shrink: 0;
}
.lightbox-name {
    flex: 1; min-width: 0; font-size: .85rem; opacity: .8;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lightbox-btn {
    background: rgba(255,255,255,.1); border: none; color: #fff; text-decoration: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lightbox-btn:hover { background: rgba(255,255,255,.24); }
.lightbox-stage {
    flex: 1; min-height: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 0 1rem 1rem;
}
.lightbox-stage img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
/* Gercek boyut: goruntu tasarsa kaydirilabilir */
.lightbox-stage.zoomed { overflow: auto; display: block; text-align: center; }
.lightbox-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
body.lightbox-open { overflow: hidden; }

/* =======================================================================
   AYARLAR (tam sayfa)
   ======================================================================= */
.modal.settings-modal { padding: 0; align-items: stretch; overflow: hidden; }
.settings-shell {
    display: flex; width: 100%; max-width: 1060px; margin: 0 auto;
    height: 100dvh; background: var(--bg-darker);
    box-shadow: var(--shadow);
}
.settings-nav {
    width: 240px; flex-shrink: 0; background: var(--bg-dark);
    padding: calc(1.6rem + var(--safe-top)) 0.75rem 1rem;
    display: flex; flex-direction: column; gap: 0.15rem; overflow-y: auto;
    border-right: 1px solid var(--border);
}
.settings-nav-title {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-muted); padding: 0 0.7rem 0.5rem;
}
.settings-tab {
    background: none; border: none; color: var(--text-muted); text-align: left;
    padding: 0.6rem 0.75rem; border-radius: 8px; cursor: pointer;
    font-family: inherit; font-size: 0.92rem; font-weight: 500;
}
.settings-tab:hover { background: rgba(var(--ov), 0.06); color: var(--text-main); }
.settings-tab.active { background: var(--bg-panel); color: var(--text-main); }
.settings-tab.danger { color: var(--danger); }
.settings-nav-sep { height: 1px; background: var(--border); margin: 0.6rem 0.5rem; }
.settings-content {
    flex: 1; min-width: 0; overflow-y: auto; position: relative;
    padding: calc(1.8rem + var(--safe-top)) 2.2rem calc(2rem + var(--safe-bottom));
}
.settings-close {
    position: sticky; top: 0; float: right; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-dark);
}
.settings-section { display: flex; flex-direction: column; gap: 1.1rem; max-width: 720px; }
.settings-section > h2 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.settings-section form { display: flex; flex-direction: column; gap: 0.9rem; }
.settings-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-muted);
}
.info-box {
    background: var(--bg-panel); border-radius: 10px; padding: 0.8rem 1rem;
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
}
.account-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; padding: 1rem;
}
.account-info > div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.account-info b { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; }

/* Profil duzenleyici + canli onizleme */
.profile-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; }
.profile-preview-col { display: flex; flex-direction: column; gap: 0.6rem; position: sticky; top: 0; }
.profile-preview-card {
    background: var(--bg-dark); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.pcard-banner { height: 70px; }
.pcard-body { padding: 0 1rem 1rem; }
.pcard-avatar { margin-top: -38px; display: inline-flex; border: 5px solid var(--bg-dark); border-radius: 50%; position: relative; }
.pcard-name { font-size: 1.15rem; font-weight: 700; margin-top: 0.3rem; }
.pcard-user { font-size: 0.82rem; color: var(--text-muted); }
.pcard-status { font-size: 0.85rem; margin-top: 0.5rem; }
.pcard-bio {
    font-size: 0.85rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border);
    white-space: pre-wrap; word-break: break-word; color: var(--text-main);
}
.color-row .color-none {
    background: repeating-linear-gradient(45deg, var(--bg-panel) 0 4px, var(--bg-hover) 4px 8px) !important;
}

/* Tema secimi */
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.theme-opt { display: flex; flex-direction: column; gap: 0.25rem; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt small { color: var(--text-muted); font-size: 0.75rem; }
.theme-card {
    display: flex; height: 84px; border-radius: 10px; overflow: hidden;
    border: 2px solid var(--border); transition: border-color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}
.theme-opt:hover .theme-card { transform: translateY(-2px); }
.theme-opt input:checked + .theme-card { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.25); }
.tc-sidebar { width: 32%; }
.tc-chat { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 10px; }
.tc-chat i { display: block; height: 7px; border-radius: 4px; }
.tc-chat i:nth-child(2) { width: 70%; } .tc-chat i:nth-child(3) { width: 45%; }
.theme-card-dark .tc-sidebar { background: #0e0e10; } .theme-card-dark .tc-chat { background: #000; }
.theme-card-dark .tc-chat i { background: #2a2a30; }
.theme-card-light .tc-sidebar { background: #f1eee7; } .theme-card-light .tc-chat { background: #faf8f3; }
.theme-card-light .tc-chat i { background: #d9d4c8; }
.theme-card-system .tc-sidebar { background: linear-gradient(135deg, #0e0e10 50%, #f1eee7 50%); }
.theme-card-system .tc-chat { background: linear-gradient(135deg, #000 50%, #faf8f3 50%); }
.theme-card-system .tc-chat i { background: #7d7a74; }
.segmented { display: inline-flex; background: var(--bg-panel); border-radius: 10px; padding: 3px; gap: 3px; align-self: flex-start; }
.segmented button {
    background: none; border: none; color: var(--text-muted); padding: 0.45rem 1rem;
    border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 600;
}
.segmented button.active { background: var(--bg-darker); color: var(--text-main); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

@media (max-width: 860px) {
    .profile-editor { grid-template-columns: 1fr; }
    .profile-preview-col { position: static; order: -1; }
}
@media (max-width: 700px) {
    .settings-shell { flex-direction: column; }
    .settings-nav {
        width: 100%; flex-direction: row; overflow-x: auto; padding: calc(0.6rem + var(--safe-top)) 0.5rem 0.6rem;
        border-right: none; border-bottom: 1px solid var(--border); flex-shrink: 0;
    }
    .settings-nav-title, .settings-nav-sep { display: none; }
    .settings-tab { white-space: nowrap; flex-shrink: 0; }
    .settings-content { padding: 1.2rem 1rem calc(2rem + var(--safe-bottom)); }
    .theme-options { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
    .account-info { grid-template-columns: 1fr; }
}

/* =======================================================================
   DURUM (presence)
   ======================================================================= */
.user-panel { --pdot-bg: var(--bg-darker); }
.avatar-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.pdot {
    position: absolute; right: -2px; bottom: -2px;
    width: 34%; height: 34%; min-width: 10px; min-height: 10px; max-width: 18px; max-height: 18px;
    border-radius: 50%; border: 3px solid var(--pdot-bg, var(--bg-dark)); box-sizing: content-box;
    background: #80848e;
}
.pdot.p-online { background: #23a55a; }
.pdot.p-idle   { background: #f0b232; }
.pdot.p-idle::after {  /* hilal */
    content: ''; position: absolute; top: -1px; left: -1px; width: 62%; height: 62%;
    border-radius: 50%; background: var(--pdot-bg, var(--bg-dark));
}
.pdot.p-dnd    { background: #f23f43; }
.pdot.p-dnd::after {
    content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 22%; transform: translateY(-50%);
    border-radius: 2px; background: var(--pdot-bg, var(--bg-dark));
}
.pdot.p-offline, .pdot.p-invisible { background: #80848e; }
.pdot.p-offline::after, .pdot.p-invisible::after {
    content: ''; position: absolute; inset: 26%; border-radius: 50%; background: var(--pdot-bg, var(--bg-dark));
}
.presence-label { display: inline-flex; align-items: center; gap: 0.35rem; }
.presence-label::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.presence-label.p-online { color: #23a55a; } .presence-label.p-idle { color: #f0b232; }
.presence-label.p-dnd { color: #f23f43; } .presence-label.p-offline, .presence-label.p-invisible { color: #80848e; }
.user-details .status.p-idle { color: #f0b232; } .user-details .status.p-dnd { color: #f23f43; }
.user-details .status.p-invisible { color: var(--text-muted); }

/* =======================================================================
   PANEL BASLIGI / ARKADASLAR
   ======================================================================= */
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.75rem 0.9rem 0.3rem; font-size: 0.95rem;
}
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-family: inherit; font-size: 0.78rem; padding: 0.2rem; }
.link-btn:hover { text-decoration: underline; }
.friends-sections { overflow-y: auto; flex: 1; }
.friends-section-title {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-muted); padding: 0.8rem 0.9rem 0.3rem; display: flex; align-items: center; gap: 0.4rem;
}
.count-pill { background: var(--danger); color: #fff; border-radius: 9px; font-size: 0.65rem; padding: 0.05rem 0.4rem; }
.friend-row {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; margin: 0 0.3rem;
    border-radius: 8px; cursor: default;
}
.friend-row:hover { background: rgba(var(--ov), 0.05); }
.friend-info { flex: 1; min-width: 0; }
.friend-name { font-size: 0.86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-sub { font-size: 0.72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.round-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--bg-panel); color: var(--text-main); font-size: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.round-btn:hover { background: var(--bg-hover); }
.round-btn.ok:hover { background: #23a55a; color: #fff; }
.round-btn.no:hover { background: var(--danger); color: #fff; }
.small-btn {
    border: none; cursor: pointer; border-radius: 6px; padding: 0.35rem 0.7rem; font-family: inherit;
    font-size: 0.78rem; font-weight: 600; background: var(--primary); color: #fff; flex-shrink: 0;
}
.small-btn:disabled { background: var(--bg-panel); color: var(--text-muted); cursor: default; }
.empty-line { color: var(--text-muted); font-size: 0.78rem; padding: 0.3rem 0.9rem 0.5rem; }

/* =======================================================================
   @ETIKET: tiklanabilir + oneriler
   ======================================================================= */
.msg-content .mention.user { cursor: pointer; }
.msg-content .mention.user:hover { text-decoration: underline; }
.chat-input-area { position: relative; }
.mention-suggest {
    position: absolute; left: 1.2rem; right: 1.2rem; bottom: calc(100% - 0.4rem); z-index: 50;
    background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; padding: 0.35rem;
}
.mention-suggest-title {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-muted); padding: 0.3rem 0.5rem 0.35rem;
}
.mention-opt {
    display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
    background: none; border: none; color: var(--text-main); cursor: pointer; font-family: inherit;
    padding: 0.4rem 0.5rem; border-radius: 7px;
}
.mention-opt.active, .mention-opt:hover { background: rgba(var(--ov), 0.08); }
.mention-opt .mo-name { font-weight: 600; font-size: 0.88rem; }
.mention-opt .mo-user { color: var(--text-muted); font-size: 0.78rem; margin-left: auto; }
.mention-opt .mo-everyone {
    width: 28px; height: 28px; border-radius: 50%; background: var(--bg-panel);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.mention-hint { color: var(--text-muted); font-size: 0.7rem; padding: 0.3rem 0.5rem 0.1rem; }
.mention-hint kbd {
    background: var(--bg-panel); border-radius: 4px; padding: 0 0.3rem; font-family: inherit; font-size: 0.68rem;
}

@media (max-width: 768px) {
    .kind-row { flex-direction: column; }
    .kind-box { flex-direction: row; justify-content: flex-start; gap: 0.5rem; }
    .ctx-menu { min-width: 190px; }
    .mention-suggest { left: 0.6rem; right: 0.6rem; }
}
/* Satir ici durum noktasi (durum menusu, bilgi kutusu) */
.ctx-ico .pdot, .info-box .pdot {
    position: relative; display: inline-block; right: auto; bottom: auto; vertical-align: -1px;
    width: 10px; height: 10px; min-width: 0; min-height: 0; border-width: 0;
}
.ctx-menu { --pdot-bg: var(--bg-dark); }
.info-box { --pdot-bg: var(--bg-panel); }
