/* ============================================================
   Sesli Chat Panel — stil
   ============================================================ */
:root {
    --sc-bg: #0b1020;
    --sc-bg2: #111a33;
    --sc-card: #151f3d;
    --sc-border: #243152;
    --sc-text: #e8edf7;
    --sc-muted: #8b96b5;
    --sc-primary: #4f7cff;
    --sc-primary2: #6a5cff;
    --sc-danger: #ff4d6d;
    --sc-success: #22c55e;
    --sc-vip: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.sc-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--sc-bg);
    color: var(--sc-text);
    min-height: 100vh;
}

a { color: var(--sc-primary); text-decoration: none; }

.sc-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ============ ÜST BAR ============ */
.sc-topbar {
    background: rgba(10, 15, 30, 0.9);
    border-bottom: 1px solid var(--sc-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sc-topbar .sc-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.sc-brand { font-size: 1.15rem; color: var(--sc-text); display: flex; align-items: center; gap: 6px; }
.sc-brand b { color: var(--sc-primary); }
.sc-brand span { color: var(--sc-muted); font-weight: 400; }
.sc-nav { display: flex; gap: 6px; flex: 1; }
.sc-nav a {
    color: var(--sc-muted);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all .2s;
}
.sc-nav a:hover { color: var(--sc-text); background: rgba(255,255,255,.06); }
.sc-nav a.active { color: var(--sc-text); background: var(--sc-primary); }
.sc-userbox { display: flex; align-items: center; gap: 10px; font-size: .95rem; }

/* ============ BUTONLAR ============ */
.sc-btn {
    display: inline-block;
    border: 1px solid transparent;
    background: transparent;
    color: var(--sc-text);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all .18s;
    text-align: center;
    line-height: 1.2;
}
.sc-btn:hover { transform: translateY(-1px); opacity: .92; }
.sc-btn-primary { background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary2)); border: none; color: #fff; }
.sc-btn-outline { border-color: var(--sc-border); color: var(--sc-text); }
.sc-btn-ghost { background: rgba(255,255,255,.06); color: var(--sc-muted); }
.sc-btn-danger { background: var(--sc-danger); color: #fff; border: none; }
.sc-btn-lg { padding: 13px 26px; font-size: 1.05rem; border-radius: 12px; }
.sc-btn-sm { padding: 5px 10px; font-size: 0.8rem; border-radius: 7px; }
.sc-btn.active { background: var(--sc-vip); color: #1a1205; }

/* ============ ROZETLER ============ */
.sc-badge {
    background: var(--sc-danger);
    color: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}
.sc-vip-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #1a1205;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .5px;
}
.sc-admin-badge {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .5px;
}
.sc-live { color: var(--sc-success); font-size: .8rem; font-weight: 700; }
.sc-idle { color: var(--sc-muted); font-size: .8rem; }
.sc-hint { color: var(--sc-muted); font-size: .9rem; line-height: 1.6; }
.sc-loading { color: var(--sc-muted); padding: 40px; text-align: center; }
.sc-empty { text-align: center; padding: 60px 20px; color: var(--sc-muted); }
.sc-empty h3 { color: var(--sc-text); margin-bottom: 8px; }

/* ============ AVATAR ============ */
.sc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c, var(--sc-primary));
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
    user-select: none;
}

/* ============ ANA SAYFA ============ */
.sc-main { padding: 40px 16px 80px; }
.sc-hero { text-align: center; padding: 50px 20px 40px; }
.sc-hero h1 { font-size: 2.2rem; margin-bottom: 14px; background: linear-gradient(135deg, #7aa2ff, #b18cff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sc-hero p { color: var(--sc-muted); max-width: 640px; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.7; }
.sc-hero-sm { padding: 30px 20px 20px; }
.sc-hero-sm h1 { font-size: 1.6rem; }
.sc-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sc-hero .sc-hint { margin-top: 18px; }

.sc-room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sc-room-card {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 20px;
    transition: all .2s;
}
.sc-room-card:hover { border-color: var(--sc-primary); transform: translateY(-2px); }
.sc-room-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sc-room-head h3 { font-size: 1.15rem; }
.sc-room-desc { color: var(--sc-muted); font-size: .9rem; margin-bottom: 10px; line-height: 1.5; }
.sc-room-meta { color: var(--sc-muted); font-size: .82rem; margin-bottom: 14px; }
.sc-room-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .sc-grid-2 { grid-template-columns: 1fr; } }

.sc-card {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 20px;
}
.sc-card h3 { margin-bottom: 14px; font-size: 1.05rem; }
.sc-search { position: relative; }
.sc-search input, .sc-mod-site input[type="text"] {
    width: 100%;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .95rem;
    outline: none;
}
.sc-search input:focus { border-color: var(--sc-primary); }
.sc-search-result { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

.sc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    flex-wrap: wrap;
}
.sc-row b { flex: 1; min-width: 80px; }

/* ============ ODA SAYFASI ============ */
body.sc-room { overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
.sc-room-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(10, 15, 30, 0.95);
    border-bottom: 1px solid var(--sc-border);
    flex-wrap: wrap;
}
.sc-room-title { flex: 1; min-width: 200px; }
.sc-room-title h1 { font-size: 1.2rem; }
.sc-room-owner { color: var(--sc-muted); font-size: .8rem; }
.sc-room-top-actions { display: flex; gap: 8px; align-items: center; }

.sc-room-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* SOL: yayıncılar + katılımcılar (dar kolon) */
.sc-broadcast-side {
    width: 310px;
    max-width: 30vw;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sc-border);
    background: var(--sc-bg2);
    min-width: 0;
    overflow-y: auto;
    flex-shrink: 0;
}
.sc-broadcasters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}
.sc-broadcasters .sc-speaker { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: 10px; padding: 8px 10px; transition: border-color .2s, background .2s; }
.sc-broadcasters .sc-speaker.talking { border-color: var(--sc-success); background: rgba(34, 197, 94, .07); }
.sc-broadcasters .sc-speaker-avatar { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
.sc-broadcasters .sc-speaker-avatar .sc-avatar { width: 38px; height: 38px; font-size: 15px; }
.sc-broadcasters .sc-speaker-name { font-size: .78rem; color: var(--sc-text); margin-top: 0; max-width: 130px; flex: 1; }

/* Mikrofon ikonu + ses dalgası çubukları (konuşunca görünür) */
.sc-speaker-mic {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    color: var(--sc-success);
    flex-shrink: 0;
}
.sc-wave-bars { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.sc-speaker.talking .sc-wave-bars { display: inline-flex; }
.sc-wave-bars i {
    width: 3px;
    background: var(--sc-success);
    border-radius: 2px;
    height: 14px;
    animation: scBar 0.85s ease-in-out infinite;
}
.sc-wave-bars i:nth-child(2) { animation-delay: .12s; }
.sc-wave-bars i:nth-child(3) { animation-delay: .24s; }
.sc-wave-bars i:nth-child(4) { animation-delay: .36s; }
@keyframes scBar {
    0%, 100% { transform: scaleY(.4); }
    50% { transform: scaleY(var(--vol, .9)); }
}

/* SAĞ: sohbet ana kolonu */
.sc-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: var(--sc-bg);
}

.sc-side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sc-border);
    font-weight: 700;
    font-size: .9rem;
    position: sticky;
    top: 0;
    background: var(--sc-bg2);
    z-index: 5;
}
.sc-hands-head { border-top: 1px solid var(--sc-border); }
.sc-participants, .sc-hands-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}
.sc-participant {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    padding: 7px 10px;
}
.sc-participant.me { border-color: var(--sc-primary); }
.sc-participant .sc-avatar { width: 34px; height: 34px; font-size: 14px; }
.sc-p-info { flex: 1; min-width: 0; font-size: .88rem; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sc-p-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.sc-p-flag { font-size: .8rem; }
.sc-p-status { font-size: 1rem; flex-shrink: 0; }
.sc-p-status.mic { animation: scMicPulse 1.6s ease-in-out infinite; }
@keyframes scMicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); filter: drop-shadow(0 0 4px rgba(34,197,94,.8)); }
}

/* Sohbet kilidi rozeti + açma düğmesi */
.sc-lock-badge {
    background: rgba(255, 77, 109, .15);
    color: var(--sc-danger);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .72rem;
    font-weight: 800;
    margin-left: 6px;
}
.sc-chat-head { display: flex; align-items: center; gap: 8px; }
.sc-chat-head .sc-chat-title { flex: 1; display: flex; align-items: center; }

@media (max-width: 900px) {
    .sc-room-layout { flex-direction: column; overflow-y: auto; }
    .sc-broadcast-side { width: 100%; max-width: 100%; border-right: none; border-bottom: 1px solid var(--sc-border); max-height: 38vh; }
    body.sc-room { overflow: auto; height: auto; }
    .sc-chat-main { min-height: 55vh; }
}

/* ============ MOBİL: sohbet tam ekran + katılımcı drawer ============ */
.sc-mobil-ac { display: none; } /* sadece mobilde görünür */
.sc-mobil-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.65);
    z-index: 350;
}
@media (max-width: 900px) {
    .sc-mobil-ac { display: inline-flex; }
    body.sc-room { overflow: hidden; height: 100vh; }
    .sc-room-layout { display: block; overflow: hidden; }
    .sc-chat-main {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        z-index: 10;
        background: var(--sc-bg);
    }
    .sc-chat-messages { height: auto; }
    /* katılımcı/yayıncı paneli: soldan kayarak açılan drawer */
    .sc-broadcast-side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 86%;
        max-width: 360px;
        height: 100%;
        max-height: 100vh;
        border-right: 1px solid var(--sc-border);
        border-bottom: none;
        background: var(--sc-bg2);
        z-index: 400;
        transform: translateX(-105%);
        transition: transform .28s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    .sc-broadcast-side.open { transform: translateX(0); }
    .sc-mobil-overlay.show { display: block; }
    .sc-room-top { position: relative; z-index: 500; padding-right: 8px; }
    .sc-room-top-actions .sc-btn { padding: 6px 9px; font-size: .74rem; }
    .sc-room-title h1 { font-size: 1rem; }
    .sc-room-title span { font-size: .68rem; }
    .sc-participant .sc-p-info b { max-width: 120px; }
}

.sc-stage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--sc-muted);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.sc-stage-count { background: var(--sc-primary); color: #fff; padding: 1px 9px; border-radius: 12px; font-size: .75rem; }

/* yayıncılar (broadcast) */
.sc-broadcasters { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-hint { width: 100%; }

/* ============ MİKROFON STRIP (sohbetin üstünde) ============ */
.sc-mic-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(79, 124, 255, 0.08);
    border-bottom: 1px solid var(--sc-border);
    min-height: 58px;
    overflow-x: auto;
}
.sc-mic-strip-label { color: var(--sc-muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sc-mic-strip-users { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; }

.sc-speaker { text-align: center; min-width: 64px; }
.sc-speaker-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-speaker-avatar .sc-avatar { width: 44px; height: 44px; font-size: 18px; position: relative; z-index: 2; }
.sc-speaker-name { font-size: .7rem; color: var(--sc-muted); margin-top: 4px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ses dalgası halkaları */
.sc-wave-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--sc-primary);
    opacity: 0;
    pointer-events: none;
}
.sc-speaker-avatar.talking .sc-wave-ring.r1 { animation: scWave 1.2s ease-out infinite; }
.sc-speaker-avatar.talking .sc-wave-ring.r2 { animation: scWave 1.2s ease-out .35s infinite; }
.sc-speaker-avatar.talking .sc-wave-ring.r3 { animation: scWave 1.2s ease-out .7s infinite; }
@keyframes scWave {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(calc(1 + var(--wave, 1.4))); opacity: 0; }
}
.sc-speaker-avatar.talking .sc-avatar {
    box-shadow: 0 0 18px 4px color-mix(in srgb, var(--sc-primary) 60%, transparent);
}

/* ============ SOHBET ============ */
.sc-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sc-border);
    font-weight: 700;
    font-size: .9rem;
}
.sc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;             /* flex scroll için şart */
    scrollbar-width: thin;
    scrollbar-color: var(--sc-primary) transparent;
}
.sc-chat-messages::-webkit-scrollbar { width: 8px; }
.sc-chat-messages::-webkit-scrollbar-thumb { background: var(--sc-border); border-radius: 8px; }
.sc-chat-messages::-webkit-scrollbar-thumb:hover { background: var(--sc-primary); }
.sc-chat-sys {
    text-align: center;
    color: var(--sc-muted);
    font-size: .78rem;
    background: rgba(255,255,255,.04);
    border-radius: 8px;
    padding: 5px 10px;
    margin: 4px 0;
}
.sc-msg-row { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.sc-msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.sc-msg-row.them { align-self: flex-start; }
.sc-msg-row.private { max-width: 92%; }
.sc-msg-row.private .sc-msg-bubble { background: rgba(245, 158, 11, .15); border: 1px solid rgba(245, 158, 11, .4); }
.sc-msg-body { display: flex; flex-direction: column; gap: 2px; }
.sc-msg-name { font-size: .72rem; color: var(--sc-muted); }
.sc-msg-vip { color: var(--sc-vip); font-weight: 800; }
.sc-msg-bubble {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: .92rem;
    line-height: 1.45;
    word-break: break-word;
}
.sc-msg-row.me .sc-msg-bubble { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }
.sc-msg-time { font-size: .68rem; color: var(--sc-muted); margin-left: 6px; }

.sc-chat-input { position: relative; border-top: 1px solid var(--sc-border); padding: 10px; display: flex; gap: 8px; flex-shrink: 0; background: var(--sc-bg2); }
.sc-chat-input input {
    flex: 1;
    background: var(--sc-bg);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .92rem;
    outline: none;
}
.sc-chat-input input:focus { border-color: var(--sc-primary); }
.sc-chat-input input:disabled { opacity: .5; }

.sc-emoji-panel {
    position: absolute;
    bottom: 56px;
    left: 10px;
    right: 10px;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    z-index: 50;
    max-height: 160px;
    overflow-y: auto;
}
.sc-emoji { background: transparent; border: none; font-size: 1.3rem; cursor: pointer; border-radius: 6px; padding: 3px; }
.sc-emoji:hover { background: rgba(255,255,255,.08); }

.sc-mic-controls {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--sc-border);
    flex-wrap: wrap;
    flex-shrink: 0;
    background: var(--sc-bg2);
}

/* ============ EL KALDIRMA ÇEKMECESİ ============ */
.sc-queue-drawer {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 320px;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 12px;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.sc-queue-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; font-size: .9rem; }

/* ============ MOD PANELİ ============ */
.sc-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 16px;
}
.sc-modal-box {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 18px;
    padding: 22px;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
}
.sc-modal-lg { max-width: 760px; }
.sc-modal-box h3 { margin-bottom: 16px; }
.sc-modal-box label { display: block; font-size: .85rem; color: var(--sc-muted); margin: 12px 0 5px; }
.sc-modal-box input[type="text"], .sc-modal-box input[type="number"] {
    width: 100%;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .95rem;
    outline: none;
}
.sc-check { display: flex !important; align-items: center; gap: 8px; }
.sc-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sc-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sc-modal-head h3 { margin: 0; }

.sc-mod-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.sc-mod-tabs .sc-btn.active { background: var(--sc-primary); color: #fff; }
.sc-mod-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.sc-mod-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sc-bg2);
    border-radius: 10px;
    padding: 8px 10px;
    flex-wrap: wrap;
}
.sc-mod-info { flex: 1; min-width: 120px; font-size: .9rem; }
.sc-mod-info small { color: var(--sc-muted); }
.sc-mod-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.sc-mod-footer { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.sc-mod-site { display: flex; flex-direction: column; gap: 12px; }
.sc-mod-site h4 { margin-bottom: 4px; }

.sc-muted-badge {
    background: rgba(255, 77, 109, .15);
    color: var(--sc-danger);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: .7rem;
    font-weight: 700;
}

/* ============ ROL ETİKETLERİ ============ */
.sc-role-tag { border-radius: 6px; padding: 1px 7px; font-size: .68rem; font-weight: 800; letter-spacing: .3px; }
.sc-role-super { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.sc-role-owner { background: #f59e0b; color: #1a1205; }
.sc-role-admin { background: #4f7cff; color: #fff; }
.sc-role-mod { background: #22c55e; color: #04150a; }
.sc-role-visitor { background: rgba(255,255,255,.1); color: var(--sc-muted); }

/* ============ ÖZEL MESAJ ============ */
.sc-pm-wrap { display: flex; gap: 16px; height: calc(100vh - 200px); min-height: 400px; }
.sc-pm-list {
    width: 320px;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sc-pm-list-title { font-size: .8rem; color: var(--sc-muted); font-weight: 800; margin: 10px 0 4px; }
.sc-pm-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
}
.sc-pm-item:hover { background: rgba(255,255,255,.05); }
.sc-pm-item.active { background: rgba(79,124,255,.15); }
.sc-pm-item b { font-size: .9rem; }
.sc-pm-item p { color: var(--sc-muted); font-size: .78rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sc-pm-chat {
    flex: 1;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sc-pm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sc-border);
}
.sc-pm-head b { flex: 1; }
.sc-pm-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sc-pm-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--sc-border); }
.sc-pm-input input {
    flex: 1;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .95rem;
    outline: none;
}
.sc-pm-input input:focus { border-color: var(--sc-primary); }
.sc-pm-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--sc-muted); text-align: center; gap: 10px; }

.sc-msg { position: relative; display: flex; gap: 8px; max-width: 80%; }
.sc-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.sc-msg.them { align-self: flex-start; }
.sc-msg-bubble { background: var(--sc-bg2); border: 1px solid var(--sc-border); border-radius: 14px; padding: 9px 13px; font-size: .93rem; line-height: 1.5; word-break: break-word; }
.sc-msg.me .sc-msg-bubble { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }
.sc-msg-meta { font-size: .68rem; color: var(--sc-muted); margin-top: 3px; }
.sc-msg.me .sc-msg-meta { color: rgba(255,255,255,.75); }
.sc-read { color: #7ee2a8; font-weight: 700; }
.sc-msg-del {
    background: transparent;
    border: none;
    color: var(--sc-muted);
    cursor: pointer;
    font-size: .85rem;
    opacity: 0;
    align-self: center;
    transition: opacity .15s;
}
.sc-msg:hover .sc-msg-del { opacity: 1; }

/* ============ EKRAN / VİDEO ============ */
.sc-screen-box { position: relative; }
.sc-screen-item { background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--sc-border); }
.sc-screen-item video { width: 100%; max-height: 45vh; display: block; background: #000; }
.sc-screen-name { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); padding: 4px 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.sc-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sc-video-item { position: relative; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--sc-border); }
.sc-video-item video { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.sc-video-name { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.7); padding: 3px 8px; border-radius: 7px; display: flex; align-items: center; gap: 5px; font-size: .75rem; }

.sc-self-box { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-self-box video { width: 240px; border-radius: 10px; border: 1px solid var(--sc-border); }

/* ============ TOAST ============ */
.sc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: .92rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all .3s;
    max-width: 340px;
    border: 1px solid var(--sc-border);
}
.sc-toast.show { opacity: 1; transform: translateY(0); }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sc-border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--sc-primary); }

/* KAMERA SEÇİCİ (OBS Virtual Camera dahil) */
.sc-cam-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
.sc-cam-list .sc-cam-item { text-align: left; justify-content: flex-start; white-space: normal; }
.sc-cam-list .sc-hint { margin-top: 4px; }

/* CANLI rozeti + yayın türü ikonları + izleyici sayacı */
.sc-live-badge { display: inline-block; background: #e0245e; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 8px; vertical-align: middle; margin-left: 4px; letter-spacing: .4px; }
.sc-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4757; margin-right: 6px; animation: scBlink 1.1s infinite; vertical-align: middle; }
@keyframes scBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.sc-stream-head { display: flex; align-items: center; gap: 5px; font-size: 11px; padding: 6px 8px; background: rgba(255,255,255,.05); border-radius: 8px 8px 0 0; color: var(--sc-text); }
.sc-stream-head b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-viewers { display: inline-block; background: rgba(0,0,0,.35); border: 1px solid var(--sc-border); border-radius: 10px; padding: 0 7px; font-size: 10px; color: #9be39b; cursor: help; margin-left: auto; white-space: nowrap; }
.sc-screen-item, .sc-video-item { border: 1px solid var(--sc-border); border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: var(--sc-bg2); cursor: pointer; transition: border-color .2s, transform .15s; }
.sc-screen-item:hover, .sc-video-item:hover { border-color: var(--sc-primary); transform: translateY(-1px); }
.sc-screen-video video, .sc-video-item-box video { width: 100%; display: block; max-height: 200px; background: #000; }
.sc-video-item-box { position: relative; }
.sc-video-item-box video { max-height: 170px; }
.sc-screen-name, .sc-video-name { padding: 5px 8px; font-size: 11px; display: flex; align-items: center; gap: 6px; }

/* BÜYÜK EKRAN İZLEME */
.sc-big-modal { z-index: 900; }
.sc-big-box { max-width: 860px; width: calc(100vw - 40px); background: var(--sc-bg2); border: 1px solid var(--sc-border); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.6); position: relative; }
.sc-big-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0,0,0,.45); cursor: grab; font-weight: 700; font-size: 14px; user-select: none; }
.sc-big-head:active { cursor: grabbing; }
.sc-big-head .sc-btn { margin-left: auto; }
.sc-big-video { background: #000; aspect-ratio: 16/9; }
.sc-big-video video { width: 100%; height: 100%; display: block; max-height: 70vh; }
.sc-big-viewers { padding: 8px 14px; font-size: 12px; color: #9be39b; min-height: 20px; }
/* TAM EKRAN modu — kutu tüm ekranı kaplar, başlık üstte video doldurur */
.sc-big-box:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
.sc-big-box:fullscreen .sc-big-video {
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
}
.sc-big-box:fullscreen .sc-big-video video {
    height: 100%;
    max-height: none;
}

/* ============================================================
   YENİ ODA DÜZENİ v20260901h — kullanıcı görselindeki 3 panelli koyu tasarım
   (sol: Online/VIP + Talep + Yayındakiler + Oda Kontrolleri | orta: yayınlar | sağ: Mesajlar)
   ============================================================ */

/* Koyu gri tema — yalnızca oda sayfasında (sc-room) */
body.sc-room {
    --sc-bg: #131417;
    --sc-bg2: #1b1e23;
    --sc-card: #23262d;
    --sc-border: #2f333a;
    --sc-text: #e7e9ec;
    --sc-muted: #8f959e;
    --sc-primary: #5865f2;
    --sc-primary2: #4752c4;
    --sc-danger: #ed4245;
    --sc-success: #23a55a;
    --sc-vip: #f0b232;
    background: var(--sc-bg);
}

/* 3 panelli grid: sol üye | ORTA sohbet | sağ yayın */
body.sc-room .sc-room-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 330px;
    grid-template-areas: "sol sohbet yayin";
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
.sc-left-panel { grid-area: sol; }
body.sc-room .sc-chat-main { grid-area: sohbet; }
.sc-stage { grid-area: yayin; }

/* ---------- SOL PANEL ---------- */
.sc-left-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    border-right: 1px solid var(--sc-border);
    background: var(--sc-bg2);
    padding: 10px;
    gap: 8px;
    flex-shrink: 0;
}
/* SEKMELİ SOL PANEL: Online | Yayındakiler | VIP */
.sc-left-panel { overflow: hidden; }
.sc-tabs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.sc-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    border-radius: 9px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-border);
    color: var(--sc-muted);
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.sc-tab:hover { border-color: var(--sc-primary); color: var(--sc-text); }
.sc-tab.active {
    background: var(--sc-primary);
    border-color: var(--sc-primary);
    color: #fff;
}
.sc-tab-count {
    background: rgba(0,0,0,.28);
    border-radius: 9px;
    padding: 0 6px;
    font-size: .66rem;
    min-width: 18px;
    text-align: center;
}
.sc-tab.active .sc-tab-count { background: rgba(255,255,255,.25); }
.sc-sekme-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0 -2px;
}
.sc-oda-kontrol { flex-shrink: 0; }
.sc-hand-cikar {
    border: none;
    background: rgba(255, 200, 0, .15);
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 15px;
    line-height: 1;
}
.sc-hand-cikar:hover { background: rgba(255, 200, 0, .35); }
.sc-left-panel .sc-side-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--sc-muted);
    padding: 2px 2px;
}
.sc-online-txt { color: var(--sc-success); }
.sc-vip-badge {
    background: linear-gradient(135deg, #f0b232, #d48806);
    color: #1a1205;
    font-size: .66rem;
    font-weight: 800;
    padding: 1px 8px;
    border-radius: 10px;
    letter-spacing: .3px;
}
.sc-left-panel .sc-stage-count {
    margin-left: auto;
    background: var(--sc-border);
    color: var(--sc-text);
    border-radius: 10px;
    padding: 0 7px;
    font-size: .72rem;
    line-height: 1.6;
}

/* katılımcı satırları */
.sc-left-panel .sc-participant {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: transparent;
}
.sc-left-panel .sc-participant:hover { background: rgba(255,255,255,.05); }
/* yayın türü ikonları (🖥️/📷/🎙️) — tıklanınca yayını büyük ekranda açar */
.sc-p-status.sc-p-tikla { cursor: pointer; padding: 2px 5px; border-radius: 6px; transition: background .15s; }
.sc-p-status.sc-p-tikla:hover { background: rgba(255,255,255,.18); }
.sc-left-panel .sc-participant .sc-p-info { flex: 1; min-width: 0; }
.sc-left-panel .sc-participant .sc-p-info b { font-size: .83rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-left-panel .sc-hint { font-size: .76rem; color: var(--sc-muted); padding: 4px 8px; }

/* Yayındakiler */
.sc-yayindakiler { display: flex; flex-direction: column; gap: 6px; }
.sc-yayin-kisi {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: .82rem;
}
.sc-yayin-kisi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-yayin-kisi .sc-live-badge { margin-left: auto; font-size: .62rem; padding: 1px 7px; }

/* Oda Kontrolleri */
.sc-oda-kontrol { position: relative; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--sc-border); }
.sc-oda-kontrol-btn { width: 100%; justify-content: center; }
.sc-oda-kontrol-pop {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.55);
    z-index: 60;
}
.sc-oda-kontrol-pop .sc-btn { width: 100%; justify-content: flex-start; text-align: left; }

/* ---------- SAĞ YAYIN ALANI ---------- */
.sc-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    background: var(--sc-bg);
    border-left: 1px solid var(--sc-border);
}
.sc-stage .sc-side-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--sc-muted);
}
.sc-stage .sc-stage-count {
    background: var(--sc-border);
    color: var(--sc-text);
    border-radius: 10px;
    padding: 0 7px;
    font-size: .72rem;
    line-height: 1.6;
}
.sc-stage .sc-broadcasters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.sc-stage .sc-hint { font-size: .78rem; color: var(--sc-muted); }

/* ---------- ORTA SOHBET PANELİ ---------- */
body.sc-room .sc-chat-main {
    background: var(--sc-bg2);
}
body.sc-room .sc-chat-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--sc-border);
    font-weight: 700;
    background: var(--sc-bg2);
}
body.sc-room .sc-chat-messages {
    background: var(--sc-bg);
}
body.sc-room .sc-msg-row { max-width: 94%; }
body.sc-room .sc-msg-bubble {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 7px 12px;
    font-size: .86rem;
    line-height: 1.45;
    color: var(--sc-text);
}
body.sc-room .sc-msg-row.me .sc-msg-bubble {
    background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary2));
    border-color: transparent;
    color: #fff;
}
body.sc-room .sc-msg-row.private .sc-msg-bubble {
    background: rgba(240,178,50,.13);
    border-color: rgba(240,178,50,.4);
}
body.sc-room .sc-msg-name { color: var(--sc-muted); }
body.sc-room .sc-msg-time { color: var(--sc-muted); }
body.sc-room .sc-chat-sys {
    text-align: center;
    font-size: .74rem;
    color: var(--sc-muted);
    background: rgba(255,255,255,.04);
    border-radius: 20px;
    padding: 3px 12px;
    align-self: center;
}

/* masaüstünde 📡 ikonu gizli (yayınlar zaten sağ panelde) — mobil kuralı bunu ezmeli */
.sc-mobil-yayin-ac { display: none; }

/* ---------- MOBİL (900px altı): tam ekran sohbet + ikonla açılan drawer'lar ---------- */
@media (max-width: 900px) {
    body.sc-room { overflow: hidden; height: 100vh; }
    body.sc-room .sc-room-layout {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    /* SOHBET tam ekran: başlık + mesaj listesi (ortada, esnek) + en altta mesaj kutusu */
    body.sc-room .sc-chat-main {
        position: relative;
        inset: auto;
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid var(--sc-border);
    }
    body.sc-room .sc-chat-messages {
        flex: 1;
        min-height: 0;
        height: auto;
    }
    /* YAYINLAR: 📡 ikonuyla açılan drawer (sol panel ile aynı mantık) */
    .sc-stage {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 86%;
        max-width: 360px;
        background: var(--sc-bg2);
        z-index: 400;
        transform: translateX(-105%);
        transition: transform .28s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-left: none;
        border-right: 1px solid var(--sc-border);
        padding: 12px;
    }
    .sc-stage.open { transform: translateX(0); }
    .sc-left-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 86%;
        max-width: 360px;
        height: 100%;
        max-height: 100vh;
        border-right: 1px solid var(--sc-border);
        background: var(--sc-bg2);
        z-index: 400;
        transform: translateX(-105%);
        transition: transform .28s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,.5);
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    .sc-left-panel.open { transform: translateX(0); }
    /* mobil: 📡 Yayınlar ikonu sadece mobilde görünür */
    .sc-mobil-yayin-ac { display: inline-flex; }
}

/* ============================================================
   VIDEO ÖNİZLEME + EMBED KART + POPUP (v20260901l)
   - textbox üstünde önizleme (sc-video-preview)
   - mesaj altında tıklanabilir kart (sc-msg-video)
   - popup oynatıcı (sc-video-modal)
   ============================================================ */

/* textbox üstü önizleme */
.sc-video-preview { margin-bottom: 8px; }
.sc-vp-kart {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    padding: 6px 10px;
    max-width: 100%;
}
.sc-vp-kart img {
    width: 88px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.sc-vp-ikon { font-size: 1.5rem; flex-shrink: 0; }
.sc-vp-bilgi { display: flex; flex-direction: column; min-width: 0; }
.sc-vp-bilgi b { font-size: .82rem; color: var(--sc-text); }
.sc-vp-bilgi span { font-size: .7rem; color: var(--sc-muted); }

/* mesaj altı video kartı */
.sc-msg-video {
    position: relative;
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sc-border);
    background: var(--sc-card);
    cursor: pointer;
    max-width: 340px;
}
.sc-msg-video img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.sc-msg-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .8);
    pointer-events: none;
}
.sc-msg-video-ad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 10px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.sc-msg-video:hover { border-color: var(--sc-primary); }
.sc-msg-video:hover .sc-msg-video-play { background: var(--sc-primary); }

/* ikonlu kart (thumbnail'sız platformlar) */
.sc-msg-video-ikon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}
.sc-msg-video-ikon-b { font-size: 1.4rem; }
.sc-msg-video-ikon .sc-msg-video-ad {
    position: static;
    background: none;
    padding: 0;
    color: var(--sc-text);
}

/* popup oynatıcı */
.sc-video-modal { display: none; align-items: center; justify-content: center; z-index: 900; }
.sc-video-box {
    width: min(860px, 94vw);
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.sc-video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sc-border);
    font-weight: 700;
    background: var(--sc-bg2);
}
.sc-video-frame { position: relative; padding-top: 56.25%; background: #000; }
.sc-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   ALINTI (REPLY) + BİLDİRİM + VIDEO SÜRÜKLEME (v20260901n)
   ============================================================ */

/* WhatsApp tarzı alıntı çubuğu — input'un üstünde */
.sc-reply-bar { margin-bottom: 8px; }
.sc-reply-bar-ic {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sc-card);
    border-left: 4px solid var(--sc-primary);
    border-radius: 10px;
    padding: 7px 10px;
    cursor: pointer;
}
.sc-reply-bar-ikon { font-size: 1.1rem; color: var(--sc-primary); }
.sc-reply-bar-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-reply-bar-bilgi b { font-size: .78rem; color: var(--sc-primary); }
.sc-reply-bar-bilgi span { font-size: .74rem; color: var(--sc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mesaj içi alıntı kutusu (balonun üstünde) */
.sc-msg-quote {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, .07);
    border-left: 3px solid var(--sc-primary);
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    max-width: 100%;
}
.sc-msg-quote:hover { background: rgba(255, 255, 255, .12); }
.sc-msg-quote-ad { font-size: .7rem; font-weight: 700; color: var(--sc-primary); }
.sc-msg-quote-txt {
    font-size: .74rem;
    color: var(--sc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* hover'da görünen alıntı butonu (mesajın solunda) */
.sc-msg-quote-btn {
    opacity: 0;
    align-self: center;
    flex-shrink: 0;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    border-radius: 8px;
    width: 26px;
    height: 26px;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity .15s ease;
}
.sc-msg-row:hover .sc-msg-quote-btn { opacity: 1; }
.sc-msg-quote-btn:hover { background: var(--sc-primary); border-color: var(--sc-primary); }

/* alıntıya gidince mesaj vurgusu */
.sc-msg-hl .sc-msg-bubble,
.sc-msg-hl .sc-msg-video { animation: scMsgHl 2.5s ease; }
@keyframes scMsgHl {
    0%, 60% { box-shadow: 0 0 0 3px var(--sc-primary); }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* bildirim popover */
.sc-notif-btn { position: relative; }
.sc-notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--sc-danger);
    color: #fff;
    border-radius: 10px;
    font-size: .62rem;
    font-weight: 800;
    padding: 1px 6px;
    line-height: 1.5;
}
.sc-notif-pop {
    position: absolute;
    top: 52px;
    right: 10px;
    width: min(360px, 92vw);
    max-height: 60vh;
    overflow-y: auto;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    z-index: 700;
}
.sc-notif-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--sc-border);
    font-weight: 700;
    font-size: .85rem;
    position: sticky;
    top: 0;
    background: var(--sc-bg2);
}
.sc-notif-list { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.sc-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--sc-card);
    font-size: .78rem;
}
.sc-notif-item.yeni { border-left: 3px solid var(--sc-primary); }
.sc-notif-ikon { flex-shrink: 0; }
.sc-notif-txt { flex: 1; color: var(--sc-text); }
.sc-notif-zaman { font-size: .64rem; color: var(--sc-muted); white-space: nowrap; margin-top: 2px; }

/* video popup sürüklenebilir (başlıktan tutunca) */
.sc-video-box { user-select: none; }
.sc-video-head { cursor: grab; }
.sc-video-head:active { cursor: grabbing; }

/* video popup başlık aksiyonları (🔗 orijinalde aç + ✕) */
.sc-video-head-actions { display: inline-flex; align-items: center; gap: 6px; }
.sc-video-head-actions a {
    color: var(--sc-muted);
    font-size: .95rem;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 6px;
}
.sc-video-head-actions a:hover { color: var(--sc-text); background: rgba(255,255,255,.08); }

/* ============================================================
   FAZ 1 (2026-09-02): KATEGORİ ŞERİDİ + ARAMA + ŞİFRELİ ODALAR
   ============================================================ */
.sc-kategori-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.sc-chip {
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-muted);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: .88rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}
.sc-chip:hover { color: var(--sc-text); border-color: var(--sc-primary); }
.sc-chip.active { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }

.sc-arama-bar { margin-bottom: 22px; }
.sc-arama-bar input {
    width: 100%;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 11px 16px;
    border-radius: 12px;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.sc-arama-bar input:focus { border-color: var(--sc-primary); }
.sc-arama-bar input::placeholder { color: var(--sc-muted); }

.sc-room-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}
.sc-room-cat {
    display: inline-block;
    background: rgba(79, 124, 255, .14);
    color: #9db8ff;
    border: 1px solid rgba(79, 124, 255, .35);
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.sc-kilit-rozet { font-size: 1.05rem; cursor: default; flex-shrink: 0; }

/* modal: kategori + şifre alanları */
.sc-form-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: end; }
.sc-modal-box input[type="password"], .sc-modal-box select {
    width: 100%;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .95rem;
    outline: none;
    font-family: inherit;
}
.sc-modal-box input[type="password"]:focus, .sc-modal-box select:focus { border-color: var(--sc-primary); }
.sc-modal-box select option { background: var(--sc-card); color: var(--sc-text); }

@media (max-width: 640px) {
    .sc-form-row { grid-template-columns: 1fr; gap: 0; }
    .sc-kategori-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .sc-kategori-bar::-webkit-scrollbar { display: none; }
}

/* ============================================================
   SOSYAL PROFİL (2026-09-02) — profile.php
   ============================================================ */
body.sc-profil { background: var(--sc-bg); }
.sc-profil-main { padding: 28px 16px 80px; max-width: 900px; }

.sc-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.sc-alert-danger { background: rgba(255,77,109,.12); border: 1px solid rgba(255,77,109,.4); color: #ffb3c0; }
.sc-alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: #a7f3c3; }

.sc-profil-kart {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
}
.sc-profil-ust { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }

.sc-avatar-buyuk {
    width: 108px; height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sc-primary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
}
.sc-avatar-buyuk-harf { background: var(--sc-bg2); }

.sc-profil-bilgi { flex: 1; min-width: 240px; }
.sc-profil-bilgi h1 { font-size: 1.5rem; margin-bottom: 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-profil-username { color: var(--sc-muted); font-size: .95rem; margin-bottom: 10px; }
.sc-profil-bio { color: var(--sc-text); line-height: 1.6; margin-bottom: 12px; white-space: pre-line; }
.sc-profil-meta { display: flex; gap: 16px; color: var(--sc-muted); font-size: .85rem; margin-bottom: 14px; flex-wrap: wrap; }
.sc-profil-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sc-profil-duzenle {
    margin-top: 22px;
    border-top: 1px dashed var(--sc-border);
    padding-top: 18px;
}
.sc-profil-duzenle h3 { margin-bottom: 14px; font-size: 1.05rem; }
.sc-profil-duzenle label { display: block; font-size: .83rem; color: var(--sc-muted); margin: 12px 0 5px; }
.sc-profil-duzenle input[type="text"], .sc-profil-duzenle input[type="email"],
.sc-profil-duzenle input[type="password"], .sc-profil-duzenle textarea,
.sc-profil-duzenle input[type="file"] {
    width: 100%;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .95rem;
    outline: none;
    font-family: inherit;
}
.sc-profil-duzenle input:focus, .sc-profil-duzenle textarea:focus { border-color: var(--sc-primary); }
.sc-profil-duzenle textarea { resize: vertical; }

.sc-avatar-img {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}
.sc-userbox .sc-avatar-img { border: 2px solid var(--sc-border); }

.sc-duvar-hazir {
    background: var(--sc-card);
    border: 1px dashed var(--sc-border);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
}
.sc-duvar-hazir h3 { margin-bottom: 6px; }

@media (max-width: 640px) {
    .sc-profil-ust { flex-direction: column; align-items: center; text-align: center; }
    .sc-profil-meta, .sc-profil-actions { justify-content: center; }
}


/* ============ PM PAKETİ (Sosyal Faz 4) ============ */
.sc-pm-durum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    font-size: .83rem;
}
.sc-pm-placeholder .sc-pm-durum { max-width: 520px; margin: 18px auto 0; }
.sc-pm-durum.ok { border-color: #2ecc71; background: rgba(46, 204, 113, .1); }
.sc-pm-durum.bek { border-color: #f39c12; background: rgba(243, 156, 18, .1); }
.sc-pm-durum.dolu { border-color: #e74c3c; background: rgba(231, 76, 60, .12); }
.sc-pm-durum.ok span { color: #2ecc71; }
.sc-pm-durum.bek span { color: #f1c40f; }
.sc-pm-durum.dolu span { color: #e74c3c; }
.sc-modal-x {
    background: none;
    border: none;
    color: var(--sc-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}
.sc-modal-x:hover { background: var(--sc-bg2); color: var(--sc-text); }
.sc-btn-blok { width: 100%; margin-top: 14px; }
.sc-paket-box { max-width: 480px; }
.sc-paket-ozet {
    background: linear-gradient(135deg, rgba(88,101,242,.16), rgba(142,68,173,.12));
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.sc-paket-ozellik { margin: 0 0 6px; }
.sc-paket-fiyat { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--sc-primary); }
.sc-paket-havale {
    background: var(--sc-bg2);
    border: 1px dashed var(--sc-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
}
.sc-paket-banka { margin: 0 0 4px; font-weight: 700; }
.sc-paket-iban { margin: 0 0 4px; }
.sc-paket-holder { margin: 0; font-size: .85rem; color: var(--sc-muted); }
.sc-paket-label { display: block; font-size: .85rem; color: var(--sc-muted); margin: 12px 0 5px; }
.sc-paket-box input[type="file"] {
    width: 100%;
    background: var(--sc-bg2);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    padding: 9px 10px;
    border-radius: 10px;
    font-size: .85rem;
}
