/*  Baglam menusu ve profil acilir karti  */
.pv-role-row { display: flex; gap: 0.4rem; }
.pv-role-row .role-select { flex: 1; font-size: 0.85rem; padding: 0.45rem 0.5rem; }
.pv-role-row .btn { flex: 1; }
/* ---------- Hareket: acilis animasyonlari ----------
   Eleman gorunur oldugu an (DOM'a eklenince ya da .hidden kalkinca) bir kez oynar.
   Kapanis animasyonsuz: .hidden/remove() anlik. */
.ctx-menu {
    animation: pop-in var(--d-base) var(--e-out);
}
.ctx-menu { transform-origin: top left; }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
.pv-body {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(0,0,0,0.2); border-radius: var(--radius);
    padding: 0.5rem;
}
.pv-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); }
.pv-ico { font-size: 1.5rem; }
.pv-info { flex: 1; min-width: 0; }
.pv-name { font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-size { font-size: 0.7rem; color: var(--muted); }
.pv-bar { height: 3px; background: rgba(var(--ov), 0.1); border-radius: var(--radius); margin-top: 4px; 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(--muted); cursor: pointer;
    font-size: 1.1rem; padding: 4px; transition: color var(--d-fast) var(--e-out);
}
.pv-remove:hover { color: var(--danger, #ef4444); }
.pv-volume { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.55rem 0.7rem; border-radius: var(--radius); background: var(--bg-darker); text-align: left; }
.pv-volume label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; }
.pv-volume label small { color: var(--text-muted); }
.pv-volume label b { margin-left: auto; font-variant-numeric: tabular-nums; }
.pv-volume input[type=range] { width: 100%; padding: 0; }
/* =========================================================================
   VoiceLink v5 - Sosyal katman stilleri
   Baglam menusu, arkadaslik, rapor, e-posta dogrulama, kanal turleri,
   DM paneli, ekler ve sesli mesaj.
   ========================================================================= */
/* ---------- Baglam menusu ---------- */
.ctx-menu {
    /* Uzun basliklar (sunucu / kisi adi) menuyu genisletip ekrandan tasirmasin - baslik "…" ile kisalir */
    position: fixed; z-index: 5000; min-width: 210px; max-width: min(300px, calc(100vw - 16px));
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius); 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: var(--radius); 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-item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-sep { height: 1px; background: var(--border); margin: 0.25rem 0.3rem; }
/* 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: var(--radius); padding: 0.45rem; }
.pv-item.sending .pv-remove { visibility: hidden; }
.pv-body { display: flex; align-items: center; gap: 0.7rem; }
.pv-thumb { width: 44px; height: 44px; border-radius: var(--radius); 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: var(--radius); 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); }
.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);
}
@media (max-width: 768px) {
    .ctx-menu { min-width: 190px; }
}
/* Satir ici durum noktasi (durum menusu, bilgi kutusu) */
.ctx-ico .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); }
/* Menu icinde surgu (sesteki kisinin ses duzeyi): menu kapanmadan ayarlanir */
.ctx-range { padding: .35rem .6rem .5rem; }
.ctx-range label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); margin-bottom: .2rem; }
.ctx-range label b { color: var(--text-main); font-weight: 600; }
.ctx-range input[type="range"] { width: 100%; accent-color: var(--primary); }
.ctx-srv, .ctx-srv-img {
    width: 18px; height: 18px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.5rem; font-weight: 700; color: #fff; object-fit: cover; vertical-align: middle;
}
/* ---------- Profil kartinda ---------- */
.pv-pets { margin: 0.9rem 0 0.2rem; padding: 0.7rem; border-radius: 0; background: var(--bg-panel); display: flex; flex-direction: column; gap: 0.5rem; }
.pv-pets-title { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.pv-pets-title .i { width: 14px; height: 14px; color: #f59e0b; }
.pv-pets-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pv-pet { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; width: 58px; }
.pv-pet .pet-art { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rc) 60%, transparent)); }
.pv-pet small { font-size: 0.68rem; color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-pets .btn { align-self: flex-start; }

/* Mini profil karti: isme tiklayinca ismin yaninda (social.js openUserPopout). Zemin kisinin kart temasi. */
.user-pop { position: fixed; z-index: 3900; width: 300px; max-width: calc(100vw - 16px); animation: pop-in var(--d-base) var(--e-out); }
.user-pop .uc-card.mini { max-width: none; box-shadow: var(--shadow), inset 0 0 0 1px var(--uc-glass-line); }
.user-pop .uc-avatar { margin-top: 0.4rem; }
.up-sec {
    width: 100%; margin: 0.7rem 0 0.3rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--uc-ink-soft);
}
.up-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
.up-chip {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.5rem; font: inherit; font-size: 0.75rem;
    color: var(--uc-ink); background: var(--uc-glass); border: 1px solid var(--uc-glass-line); border-radius: var(--radius);
}
.up-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.up-chip.add { cursor: pointer; padding: 0.12rem 0.4rem; }
.up-chip.add::before { display: none; }
.up-chip.add:hover { border-color: var(--uc-accent); }
.up-chip.add .i { width: 0.9em; height: 0.9em; }
.up-mutual { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin-top: 0.7rem; font-size: 0.8rem; color: var(--uc-ink-soft); }
.up-stack { display: inline-flex; }
.up-stack > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--pdot-bg); border-radius: 50%; }
.up-stack > :first-child { margin-left: 0; }
.up-btns { width: 100%; display: flex; gap: 0.4rem; margin-top: 0.85rem; }
.up-btns .btn { flex: 1; padding: 0.45rem 0.5rem; font-size: 0.84rem; justify-content: center; }
.up-btns .up-more { flex: none; width: 38px; }
/* Mini kart "Su an": sesli kanal satiri (oyun etkinligi ileride ayni kalipla) */
.up-act {
    width: 100%; display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.6rem; text-align: left;
    background: var(--uc-glass); border: 1px solid var(--uc-glass-line); border-radius: var(--radius);
}
.up-act > .i { flex: none; color: var(--ok-text, #86efac); }
.up-act-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.up-act-text b { font-size: 0.8rem; }
.up-act-text small { font-size: 0.75rem; color: var(--uc-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-act-icons { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--uc-ink-soft); }
.up-act-icons .i { width: 0.95em; height: 0.95em; }
