/* ===========================
   NEXUS — Style v5
   Açık/Koyu tema, tüm özellikler
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  18px;
    --r-xl:  24px;
    --sidebar-w: 240px;
    --right-w:   280px;
    --feed-max:  600px;
    --t: 0.18s cubic-bezier(.4,0,.2,1);
}

/* ===== AÇIK TEMA (varsayılan) ===== */
[data-theme="light"] {
    --bg:        #f2f2f8;
    --bg2:       #ffffff;
    --bg3:       #f7f7fc;
    --bg-hover:  #eeeef6;
    --bg-input:  #f4f4fb;
    --border:    #e2e2ee;
    --border2:   #eaeaf4;
    --text:      #0f0f1e;
    --text2:     #50507a;
    --text3:     #9898b8;
    --accent:    #6c5ce7;
    --accent-h:  #7c6af7;
    --accent-r:  108,92,231;
    --accent-s:  rgba(108,92,231,.1);
    --danger:    #e5485b;
    --success:   #10b981;
    --warning:   #f59e0b;
    --online:    #22c55e;
    --shadow:    0 4px 24px rgba(0,0,0,.08);
    --shadow-s:  0 2px 10px rgba(0,0,0,.05);
    --msg-sent-bg:    #6c5ce7;
    --msg-sent-text:  #ffffff;
    --msg-recv-bg:    #efeffa;
    --msg-recv-text:  #0f0f1e;
}

/* ===== KOYU TEMA ===== */
[data-theme="dark"] {
    --bg:        #0d0d12;
    --bg2:       #13131a;
    --bg3:       #1a1a24;
    --bg-hover:  #1f1f2c;
    --bg-input:  #181822;
    --border:    #2a2a3a;
    --border2:   #222230;
    --text:      #eeeef8;
    --text2:     #8888aa;
    --text3:     #55556a;
    --accent:    #7c6af7;
    --accent-h:  #9580ff;
    --accent-r:  124,106,247;
    --accent-s:  rgba(124,106,247,.12);
    --danger:    #f25f6a;
    --success:   #22d3a0;
    --warning:   #f59e0b;
    --online:    #22c55e;
    --shadow:    0 8px 32px rgba(0,0,0,.45);
    --shadow-s:  0 2px 10px rgba(0,0,0,.3);
    --msg-sent-bg:    #7c6af7;
    --msg-sent-text:  #ffffff;
    --msg-recv-bg:    #1f1f2c;
    --msg-recv-text:  #eeeef8;
}

/* Geriye dönük alias'lar */
[data-theme="light"], [data-theme="dark"] {
    --bg-card:       var(--bg2);
    --bg-secondary:  var(--bg3);
    --text-primary:  var(--text);
    --text-secondary:var(--text2);
    --text-muted:    var(--text3);
    --accent-soft:   var(--accent-s);
    --radius-sm:     var(--r-sm);
    --radius-md:     var(--r-md);
    --radius-lg:     var(--r-lg);
    --radius-xl:     var(--r-xl);
    --shadow-md:     var(--shadow);
    --shadow-sm:     var(--shadow-s);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
    font-family:var(--font-body);
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
    min-height:100vh;
    transition:background var(--t), color var(--t);
}
a { color:var(--accent); text-decoration:none; transition:color var(--t); }
a:hover { color:var(--accent-h); }
img { max-width:100%; }
button,input,textarea,select { font-family:var(--font-body); outline:none; border:none; }

/* ===== LAYOUT ===== */
.app-layout { display:flex; min-height:100vh; }
.sidebar-spacer { width:var(--sidebar-w); flex-shrink:0; }
.main-content {
    flex:1; min-width:0;
    padding:28px 24px;
    max-width:calc(var(--feed-max) + var(--right-w) + 48px);
    margin:0 auto; width:100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position:fixed; top:0; left:0;
    width:var(--sidebar-w); height:100vh;
    background:var(--bg2); border-right:1px solid var(--border);
    display:flex; flex-direction:column;
    padding:20px 12px; z-index:100;
    transition:background var(--t), border-color var(--t);
}
.sidebar-logo { padding:8px 10px 24px; }
.logo-link { display:flex; align-items:center; gap:9px; color:var(--text) !important; font-family:var(--font-display); font-weight:800; font-size:20px; }
.logo-icon {
    width:32px; height:32px; border-radius:8px;
    background:var(--accent); color:#fff;
    font-size:16px; font-weight:800; font-family:var(--font-display);
    display:inline-flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.sidebar-nav { flex:1; display:flex; flex-direction:column; gap:2px; }
.nav-item {
    display:flex; align-items:center; gap:12px;
    padding:11px 14px; border-radius:var(--r-md);
    color:var(--text2); font-size:14px; font-weight:500;
    font-family:var(--font-display);
    transition:all var(--t); position:relative;
}
.nav-item svg { width:19px; height:19px; flex-shrink:0; }
.nav-item:hover { background:var(--bg-hover); color:var(--text); }
.nav-item.active { background:var(--accent-s); color:var(--accent); }
.nav-item .badge { margin-left:auto; background:var(--accent); color:#fff; font-size:10px; font-weight:700; padding:2px 7px; border-radius:20px; font-family:var(--font-body); }
.sidebar-user { display:flex; align-items:center; gap:10px; padding:12px 10px 0; border-top:1px solid var(--border); margin-top:8px; }
.sidebar-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid var(--accent); flex-shrink:0; }
.sidebar-user-link { display:flex; align-items:center; gap:10px; flex:1; min-width:0; text-decoration:none; }
.sidebar-user-link:hover .sidebar-username { color:var(--accent); }
.sidebar-username { display:block; font-weight:600; font-size:13px; font-family:var(--font-display); color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-handle { display:block; font-size:11px; color:var(--text3); }
.logout-btn { color:var(--text3); display:flex; padding:7px; border-radius:8px; transition:all var(--t); flex-shrink:0; }
.logout-btn:hover { color:var(--danger); background:rgba(229,72,91,.1); }
.logout-btn svg { width:17px; height:17px; }

/* ===== MOBILE HEADER ===== */
.mobile-header { display:none; position:fixed; top:0; left:0; right:0; height:54px; background:var(--bg2); border-bottom:1px solid var(--border); align-items:center; justify-content:space-between; padding:0 16px; z-index:200; }
.mobile-nav { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--bg2); border-top:1px solid var(--border); padding:8px 0 max(8px,env(safe-area-inset-bottom)); z-index:200; justify-content:space-around; align-items:center; }
.mobile-nav-item { display:flex; flex-direction:column; align-items:center; color:var(--text3); padding:8px 14px; border-radius:var(--r-sm); transition:all var(--t); position:relative; }
.mobile-nav-item svg { width:23px; height:23px; }
.mobile-nav-item.active { color:var(--accent); }
.badge-dot { position:absolute; top:6px; right:12px; width:8px; height:8px; background:var(--accent); border-radius:50%; border:2px solid var(--bg2); }

/* ===== PAGE WITH SIDEBAR ===== */
.page-with-sidebar { display:flex; gap:24px; align-items:flex-start; }
.feed-column { flex:1; min-width:0; max-width:var(--feed-max); }
.right-sidebar { width:var(--right-w); flex-shrink:0; position:sticky; top:28px; display:flex; flex-direction:column; gap:14px; }

/* ===== AUTH ===== */
.auth-layout { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--bg); }
.auth-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-xl); padding:36px 32px; width:100%; max-width:420px; box-shadow:var(--shadow); }
.auth-logo { text-align:center; margin-bottom:28px; }
.auth-title { font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--text); margin-bottom:6px; }
.auth-sub { font-size:14px; color:var(--text3); }
.auth-footer { text-align:center; font-size:13px; color:var(--text3); margin-top:20px; }

/* ===== FORMS ===== */
.form-group { margin-bottom:16px; }
.form-label { display:block; font-size:13px; font-weight:500; color:var(--text2); margin-bottom:6px; }
.form-input {
    width:100%; background:var(--bg-input); border:1.5px solid var(--border);
    border-radius:var(--r-md); padding:11px 14px; font-size:14px; color:var(--text);
    transition:all var(--t);
}
.form-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-r),.12); background:var(--bg2); }
.form-input::placeholder { color:var(--text3); }
textarea.form-input { resize:vertical; min-height:90px; }

/* ===== BUTTONS ===== */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 20px; border-radius:var(--r-md); font-size:14px; font-weight:500; font-family:var(--font-display); cursor:pointer; transition:all var(--t); border:none; white-space:nowrap; }
.btn-primary   { background:var(--accent); color:#fff; }
.btn-primary:hover { background:var(--accent-h); transform:translateY(-1px); box-shadow:0 4px 12px rgba(var(--accent-r),.35); }
.btn-secondary { background:var(--bg3); color:var(--text2); border:1px solid var(--border); }
.btn-secondary:hover { background:var(--bg-hover); color:var(--text); }
.btn-outline   { background:transparent; color:var(--accent); border:1.5px solid var(--accent); }
.btn-outline:hover { background:var(--accent-s); }
.btn-danger    { background:var(--danger); color:#fff; }
.btn-danger:hover { opacity:.88; }
.btn-full { width:100%; }
.btn-sm  { padding:7px 14px; font-size:13px; }
.btn-xs  { padding:4px 11px; font-size:12px; }
.btn:disabled { opacity:.55; cursor:not-allowed; transform:none !important; }

/* ===== WIDGETS ===== */
.widget { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; transition:background var(--t), border-color var(--t); }
.widget-title { font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--text); margin-bottom:14px; }
.search-box { display:flex; align-items:center; gap:9px; background:var(--bg-input); border:1.5px solid var(--border); border-radius:var(--r-md); padding:9px 13px; transition:all var(--t); }
.search-box:focus-within { border-color:var(--accent); background:var(--bg2); }
.search-icon { width:16px; height:16px; color:var(--text3); flex-shrink:0; }
.search-input { flex:1; background:none; border:none; font-size:13.5px; color:var(--text); }
.search-input::placeholder { color:var(--text3); }
.search-results { margin-top:8px; }
.user-item { display:flex; align-items:center; gap:11px; padding:9px 0; border-bottom:1px solid var(--border2); }
.user-item:last-child { border-bottom:none; padding-bottom:0; }
.user-item-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.user-item-info { flex:1; min-width:0; }
.user-item-name { font-weight:600; font-size:14px; font-family:var(--font-display); color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.user-item-handle { font-size:12px; color:var(--text3); }

/* ===== COMPOSE ===== */
.compose-box { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); padding:18px 20px; margin-bottom:14px; transition:background var(--t), border-color var(--t); }
.compose-inner { display:flex; gap:13px; margin-bottom:12px; }
.compose-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid var(--border); flex-shrink:0; }
.compose-right { flex:1; min-width:0; }
.compose-textarea { width:100%; background:none; border:none; font-size:15px; color:var(--text); resize:none; min-height:56px; line-height:1.6; }
.compose-textarea::placeholder { color:var(--text3); }
.compose-footer { display:flex; align-items:center; justify-content:space-between; padding-top:10px; border-top:1px solid var(--border2); }
.compose-actions { display:flex; gap:4px; }
.compose-action { color:var(--text3); padding:7px; border-radius:50%; transition:all var(--t); display:flex; }
.compose-action svg { width:18px; height:18px; }
.compose-action:hover { color:var(--accent); background:var(--accent-s); }
.char-count { font-size:12px; color:var(--text3); }
.char-count.warning { color:var(--warning); }
.char-count.danger  { color:var(--danger); }
.image-preview-wrap { display:none; position:relative; margin-top:10px; border-radius:var(--r-md); overflow:hidden; border:1px solid var(--border); }
#imagePreview { width:100%; max-height:200px; object-fit:cover; display:block; }
.remove-image-btn { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.55); color:#fff; border:none; width:26px; height:26px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }

/* ===== POSTS ===== */
.post-card {
    background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg);
    padding:18px 20px; margin-bottom:14px;
    transition:border-color var(--t), box-shadow var(--t), background var(--t);
    animation:fadeUp .25s ease;
}
.post-card:hover { border-color:rgba(var(--accent-r),.3); box-shadow:0 2px 16px rgba(var(--accent-r),.06); }

/* ===== REKLAM BLOKLARI ===== */
.ad-block {
    background:var(--bg2); border:1px solid var(--border);
    border-radius:var(--r-lg); margin-bottom:14px; overflow:hidden;
    transition:border-color var(--t), box-shadow var(--t);
}
.ad-block:hover { border-color:rgba(var(--accent-r),.25); box-shadow:0 2px 12px rgba(var(--accent-r),.07); }
.ad-placement-sidebar { margin-bottom:0; }
.ad-label {
    font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase;
    color:var(--text3); padding:7px 14px 0;
}
.ad-image-wrap { width:100%; overflow:hidden; max-height:200px; }
.ad-image { width:100%; height:100%; object-fit:cover; display:block; }
.ad-placement-sidebar .ad-image-wrap { max-height:140px; }
.ad-body { padding:12px 14px 14px; }
.ad-title { font-family:var(--font-display); font-weight:700; font-size:14.5px; color:var(--text); margin-bottom:4px; line-height:1.35; }
.ad-desc { font-size:12.5px; color:var(--text3); line-height:1.5; margin-bottom:10px; }
.ad-cta-btn {
    display:inline-flex; align-items:center; gap:4px;
    background:var(--accent); color:#fff; border-radius:var(--r-sm);
    padding:6px 14px; font-size:12.5px; font-weight:600; font-family:var(--font-display);
    text-decoration:none; transition:opacity var(--t);
}
.ad-cta-btn:hover { opacity:.88; }
/* Header banner */
.ad-placement-header_banner {
    border-radius:0; margin-bottom:0; border-left:0; border-right:0; border-top:0;
    display:flex; align-items:center; gap:14px; padding:0;
}
.ad-placement-header_banner .ad-label { padding:0; white-space:nowrap; }
.ad-placement-header_banner .ad-image-wrap { width:52px; height:38px; flex-shrink:0; max-height:38px; border-radius:6px; overflow:hidden; }
.ad-placement-header_banner .ad-body { padding:8px 14px 8px 0; display:flex; align-items:center; gap:12px; flex:1; flex-wrap:wrap; }
.ad-placement-header_banner .ad-title { font-size:13px; margin-bottom:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-placement-header_banner .ad-desc { display:none; }
.ad-header-banner-wrap { background:var(--bg2); border-bottom:1px solid var(--border); padding:0 20px; }

.post-header { display:flex; align-items:flex-start; gap:11px; margin-bottom:12px; }
.post-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; border:2px solid var(--border); flex-shrink:0; transition:border-color var(--t); }
.post-avatar:hover { border-color:var(--accent); }
.post-meta { flex:1; min-width:0; overflow:visible; }
.post-author { font-family:var(--font-display); font-weight:600; font-size:14.5px; color:var(--text); display:flex; align-items:center; gap:5px; overflow:visible; }
.post-handle-time { font-size:12px; color:var(--text3); margin-top:1px; }
.post-content { font-size:15px; line-height:1.7; color:var(--text); margin-bottom:12px; word-break:break-word; }
.post-image-wrap { position:relative; margin-bottom:12px; border-radius:var(--r-md); overflow:hidden; background:var(--bg3); min-height:200px; }
.post-image-wrap.img-loaded { min-height:0; }
.post-image {
    width:100%; max-height:460px; object-fit:cover; display:block;
    -webkit-user-drag:none; user-select:none; pointer-events:none;
}
.post-image-wrap a { pointer-events:auto; display:block; }

/* ===== ÖZEL VİDEO OYNATICI ===== */
.post-video-wrap {
    position:relative; margin-bottom:12px;
    border-radius:var(--r-md); overflow:hidden;
    background:#000; cursor:pointer;
    /* Tarayıcı native kontrolleri gizle */
}
.post-video-wrap video::-webkit-media-controls { display:none !important; }
.post-video-wrap video::-webkit-media-controls-enclosure { display:none !important; }
.post-video {
    width:100%; max-height:500px; display:block;
    border-radius:var(--r-md); outline:none; background:#000;
}
/* Oynatıcı overlay */
.vid-overlay {
    position:absolute; inset:0; display:flex;
    flex-direction:column; justify-content:flex-end;
    background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.0) 45%);
    opacity:0; transition:opacity .22s ease;
    border-radius:var(--r-md);
}
.post-video-wrap:hover .vid-overlay,
.post-video-wrap.paused .vid-overlay { opacity:1; }
/* Merkez play/pause butonu */
.vid-center-btn {
    position:absolute; inset:0; display:flex;
    align-items:center; justify-content:center;
    pointer-events:none;
}
.vid-center-btn svg {
    width:56px; height:56px;
    background:rgba(0,0,0,.55); border-radius:50%;
    padding:12px; backdrop-filter:blur(4px);
    transform:scale(0.8); opacity:0;
    transition:transform .18s ease, opacity .18s ease;
}
.post-video-wrap.paused .vid-center-btn svg,
.post-video-wrap.vid-ended .vid-center-btn svg {
    transform:scale(1); opacity:1;
}
/* Alt kontrol çubuğu */
.vid-controls {
    padding:10px 14px 12px;
    display:flex; flex-direction:column; gap:7px;
}
/* Progress bar */
.vid-progress {
    width:100%; height:4px; background:rgba(255,255,255,.25);
    border-radius:2px; cursor:pointer; position:relative;
    transition:height .15s;
}
.vid-progress:hover { height:6px; }
.vid-progress-fill {
    height:100%; background:var(--accent);
    border-radius:2px; width:0%; transition:width .1s linear;
    pointer-events:none;
}
.vid-progress-thumb {
    position:absolute; top:50%; right:-5px;
    width:12px; height:12px; background:#fff;
    border-radius:50%; transform:translateY(-50%) scale(0);
    transition:transform .15s; pointer-events:none;
    box-shadow:0 1px 4px rgba(0,0,0,.4);
}
.vid-progress:hover .vid-progress-thumb { transform:translateY(-50%) scale(1); }
/* Alt butonlar */
.vid-bottom {
    display:flex; align-items:center; gap:10px;
}
.vid-btn {
    background:none; border:none; color:#fff;
    cursor:pointer; padding:3px; display:flex;
    align-items:center; justify-content:center;
    opacity:.85; transition:opacity .15s;
    flex-shrink:0;
}
.vid-btn:hover { opacity:1; }
.vid-btn svg { width:18px; height:18px; }
.vid-time {
    font-size:11.5px; color:rgba(255,255,255,.85);
    font-variant-numeric:tabular-nums; font-family:var(--font-body);
    flex:1; letter-spacing:.3px;
}
.vid-volume-wrap { display:flex; align-items:center; gap:6px; }
.vid-volume-slider {
    -webkit-appearance:none; appearance:none;
    width:60px; height:3px; border-radius:2px;
    background:rgba(255,255,255,.3); cursor:pointer; outline:none;
}
.vid-volume-slider::-webkit-slider-thumb {
    -webkit-appearance:none; width:12px; height:12px;
    border-radius:50%; background:#fff; cursor:pointer;
}
.vid-fullscreen-btn { margin-left:auto; }
/* Mesaj videolarında küçük oynatıcı */
.message-bubble .post-video-wrap { margin-bottom:0; border-radius:10px; }
.message-bubble .post-video { max-height:220px; border-radius:10px; }

/* Compose medya önizleme */
#mediaPreviewWrap { background:var(--bg3); }
#videoPreview { background:transparent; }
/* Global indirme engeli */
img, video { -webkit-user-drag:none; }
img { user-select:none; }

.post-actions { display:flex; align-items:center; gap:2px; padding-top:10px; border-top:1px solid var(--border2); }
.post-action-btn { display:flex; align-items:center; gap:6px; padding:7px 12px; border-radius:var(--r-md); font-size:13.5px; color:var(--text3); background:none; border:none; cursor:pointer; transition:all var(--t); font-family:var(--font-body); }
.post-action-btn:hover { background:var(--bg-hover); color:var(--text); }
.post-action-btn svg { width:17px; height:17px; }
.post-action-btn.like-btn.liked { color:var(--danger); }
.post-action-btn.like-btn.liked svg { fill:var(--danger); }
.post-action-btn.comment-btn:hover { color:var(--accent); }
.post-options { color:var(--text3); background:none; border:none; cursor:pointer; padding:5px 8px; border-radius:8px; font-size:18px; line-height:1; transition:all var(--t); flex-shrink:0; }
.post-options:hover { background:var(--bg-hover); color:var(--text); }

/* ===== VERIFIED BADGE — JS tooltip kullanır ===== */
.verified-badge {
    display:inline-flex; background:var(--accent); color:#fff;
    border-radius:50%; width:16px; height:16px;
    align-items:center; justify-content:center; font-size:9px; font-weight:700;
    flex-shrink:0; cursor:default;
}
/* Tooltip #verified-tooltip — JS tarafından body'e eklenir, position:fixed */
#verified-tooltip {
    position:fixed;
    background:var(--bg2); border:1px solid var(--border);
    color:var(--text); font-size:11px; font-weight:500; font-family:var(--font-body);
    padding:5px 11px; border-radius:7px; white-space:nowrap;
    box-shadow:0 4px 20px rgba(0,0,0,.15);
    pointer-events:none; z-index:99999;
    opacity:0; transition:opacity .15s ease;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align:center; padding:48px 24px; color:var(--text3); }
.empty-state-icon { font-size:42px; margin-bottom:12px; }
.empty-state-title { font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--text2); margin-bottom:6px; }
.empty-state-text { font-size:14px; }

/* ===== PROFILE ===== */
.profile-cover { width:100%; height:200px; object-fit:cover; border-radius:var(--r-lg) var(--r-lg) 0 0; background:linear-gradient(135deg,rgba(var(--accent-r),.25),rgba(var(--accent-r),.05)); display:block; }
.profile-cover-placeholder { width:100%; height:200px; background:linear-gradient(135deg,rgba(var(--accent-r),.2),rgba(var(--accent-r),.05)); border-radius:var(--r-lg) var(--r-lg) 0 0; }
.profile-info-card { background:var(--bg2); border:1px solid var(--border); border-radius:0 0 var(--r-lg) var(--r-lg); padding:0 24px 24px; margin-bottom:14px; }
.profile-info-section { padding:0 24px 24px; }
.profile-avatar-wrap { position:relative; display:inline-flex; align-items:center; justify-content:center; margin-top:-48px; margin-bottom:12px; }
.profile-avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; border:4px solid var(--bg2); display:block; }
.profile-verified-badge { position:absolute !important; bottom:4px; right:4px; width:22px !important; height:22px !important; font-size:12px !important; border:2px solid var(--bg2); }
.profile-name { font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--text); display:flex; align-items:center; gap:8px; margin-bottom:2px; }
.profile-handle, .profile-username { font-size:14px; color:var(--text3); margin-bottom:10px; }
.profile-bio { font-size:14.5px; color:var(--text2); line-height:1.6; margin-bottom:12px; }
.profile-meta { display:flex; flex-wrap:wrap; gap:14px; font-size:13px; color:var(--text3); margin-bottom:14px; }
.profile-meta-item { display:flex; align-items:center; gap:5px; }
.profile-stats { display:flex; gap:24px; margin-bottom:4px; flex-wrap:wrap; }
.profile-stat { text-align:left; text-decoration:none; color:inherit; }
.profile-stat:hover .profile-stat-count, .profile-stat:hover .profile-stat-num { color:var(--accent); }
.profile-stat-count, .profile-stat-num { font-family:var(--font-display); font-weight:700; font-size:17px; color:var(--text); display:block; }
.profile-stat-label { font-size:12px; color:var(--text3); display:block; }
.profile-actions { display:flex; gap:8px; align-items:center; }

/* ===== NOTIFICATIONS ===== */
.notif-list { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }
.notif-item { display:flex; align-items:flex-start; gap:13px; padding:15px 18px; border-bottom:1px solid var(--border2); transition:background var(--t); cursor:pointer; }
.notif-item:last-child { border-bottom:none; }
.notif-item.unread { background:var(--accent-s); }
.notif-item:hover { background:var(--bg-hover); }
.notif-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.notif-text { flex:1; font-size:14px; color:var(--text2); line-height:1.5; }
.notif-text strong { color:var(--text); font-weight:600; }
.notif-time { font-size:11px; color:var(--text3); flex-shrink:0; }
.notif-unread-dot { width:8px; height:8px; background:var(--accent); border-radius:50%; flex-shrink:0; margin-top:6px; }

/* ===== CONVERSATIONS ===== */
.conversations-list {
    width: 320px; border-right: 1px solid var(--border);
    overflow-y: auto; flex-shrink: 0;
    display: flex; flex-direction: column; background: var(--bg2);
}
.conversations-header {
    padding: 18px 20px 14px; font-family: var(--font-display); font-weight: 700; font-size: 18px;
    border-bottom: 1px solid var(--border); flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg2); position: sticky; top: 0; z-index: 2;
}
.conversation-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer;
    transition: background var(--t); text-decoration: none; color: inherit;
}
.conversation-item:hover { background: var(--bg3); }
.conversation-item.active { background: var(--accent-s); }
.conv-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-name {
    font-weight: 600; font-size: 14px; font-family: var(--font-display);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text); margin-bottom: 2px;
}
.conv-last { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 11px; color: var(--text3); flex-shrink: 0; }

/* ===== CHAT ===== */
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--bg); }
.chat-header {
    padding: 12px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0; background: var(--bg2);
}
.chat-header-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.chat-header-info .chat-name {
    font-weight: 600; font-family: var(--font-display); font-size: 15px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-status { font-size: 12px; color: var(--text3); font-weight: 400; display: flex; align-items: center; gap: 5px; transition: color .2s; }
.chat-status.online { color: var(--online); }
.chat-status.typing-status { color: var(--accent); font-style: italic; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); display: inline-block; flex-shrink: 0; animation: pulse-online 2s infinite; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 20px 20px 12px;
    display: flex; flex-direction: column; gap: 2px; background: var(--bg);
}
.msg-date-sep { text-align: center; margin: 14px 0 10px; }
.msg-date-sep span { background: var(--bg3); color: var(--text3); font-size: 11px; padding: 3px 12px; border-radius: 999px; }

/* ===== MESSAGE BUBBLES ===== */
.msg-row { display: flex; flex-direction: column; margin-bottom: 2px; }
.message-bubble {
    max-width: 80%; padding: 10px 14px; border-radius: 18px;
    font-size: 14px; line-height: 1.55; word-break: break-word;
    transition: background var(--t);
}
.message-bubble.sent { background: var(--msg-sent-bg); color: var(--msg-sent-text); border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--msg-recv-bg); color: var(--msg-recv-text); border-bottom-left-radius: 4px; }
.message-time { font-size: 10px; opacity: .65; margin-top: 3px; }
.msg-tick { font-size: 11px; margin-left: 2px; color: rgba(255,255,255,0.45); transition: color .25s; }
.msg-tick.read { color: #93c5fd; }
[data-theme="dark"] .msg-tick.read { color: #60a5fa; }
/* Silinmiş mesaj */
.msg-deleted { opacity: .6; }
.msg-deleted em { font-style: italic; font-size: 13px; }

/* ===== 3-NOKTA & DROPDOWN ===== */
.conv-dots-btn, .msg-dots-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text3); font-size: 15px; font-weight: 700; letter-spacing: 1px;
    padding: 4px 7px; border-radius: var(--r-sm);
    opacity: 0; transition: opacity .15s, background .15s;
    line-height: 1; flex-shrink: 0;
}
.conversation-item-wrap:hover .conv-dots-btn,
.msg-sent-wrap:hover .msg-dots-btn { opacity: 1; }
#headerDotsBtn { opacity: 0.45; }
#headerDotsBtn:hover { opacity: 1; background: var(--bg3); }
.conv-dots-btn:hover, .msg-dots-btn:hover { background: var(--bg3); color: var(--text); }
/* Mobilde her zaman görünür */
@media (max-width: 768px) {
    .conv-dots-btn { opacity: 1; }
}
.conv-dropdown, .msg-dropdown {
    position: absolute; right: 0; top: calc(100% + 4px);
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow);
    min-width: 160px; z-index: 999; overflow: hidden;
}
.msg-dropdown { right: auto; left: 0; min-width: 110px; }
.conv-dd-item, .msg-dd-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 14px; background: none; border: none;
    font-size: 13px; color: var(--text2); cursor: pointer;
    transition: background .15s; white-space: nowrap;
}
.conv-dd-item:hover, .msg-dd-item:hover { background: var(--bg3); }
.conv-dd-item.danger, .msg-dd-item.danger { color: var(--danger); }

/* ===== CHAT INPUT ===== */
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0; background: var(--bg2); }
/* Yanıt çubuğu */
.reply-bar { display:none; align-items:center; gap:10px; padding:7px 14px; background:var(--bg3); border-top:1px solid var(--border); flex-shrink:0; }
.reply-bar.active { display:flex; }
.reply-bar-text { flex:1; min-width:0; border-left:3px solid var(--accent); padding-left:8px; }
.reply-bar-sender { font-size:12px; font-weight:700; color:var(--accent); }
.reply-bar-content { font-size:12px; color:var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Swipe animasyonu */
.message-bubble {
    transition: transform .15s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS uzun basma menüsünü engelle */
}
/* Mesaj metnini kopyalamak isteyenler için çift tıkla seçim açık kalır */
.message-bubble p,
.message-bubble .msg-text { user-select: text; }

/* ===== EMOJİ TEPKİLER ===== */
.msg-reaction-bar {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: 4px;
}
.msg-reaction-chip {
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 20px; padding: 2px 7px;
    font-size: 13px; cursor: pointer;
    transition: all .15s; user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.msg-reaction-chip:hover { background: var(--bg-hover); border-color: var(--accent); }
.msg-reaction-chip.mine { background: var(--accent-s); border-color: var(--accent); }
.msg-reaction-chip .rc-count { font-size: 11px; font-weight: 700; color: var(--text2); }

/* Emoji picker popup */
.emoji-picker-popup {
    position: absolute; z-index: 9999;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 16px; padding: 8px 10px;
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,.28);
    animation: fadeUp .15s ease;
    min-width: 220px;
}
.emoji-picker-popup button {
    background: none; border: none; font-size: 22px;
    cursor: pointer; padding: 4px 5px; border-radius: 8px;
    transition: transform .1s, background .1s;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.emoji-picker-popup button:hover,
.emoji-picker-popup button:active { transform: scale(1.3); background: var(--bg3); }

/* Yanıtla ikonu — masaüstü hover'da çıkar */
.msg-reply-btn {
    display: none;
    align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--text3); cursor: pointer;
    padding: 5px; border-radius: 50%;
    opacity: 0; transition: opacity .15s, background .15s;
    flex-shrink: 0; align-self: center;
    -webkit-tap-highlight-color: transparent;
}
.msg-reply-btn svg { width: 15px; height: 15px; }
.msg-reply-btn:hover { background: var(--bg3); color: var(--accent); }
/* Emoji tetikleyici buton — kaldırıldı, longpress ile açılıyor */
@media (hover: hover) {
    .msg-reply-btn { display: flex; }
    .msg-sent-wrap:hover .msg-reply-btn,
    .msg-recv-wrap:hover .msg-reply-btn { opacity: 1; }
}
.chat-input {
    flex: 1; background: var(--bg3); border: 1.5px solid transparent;
    border-radius: 22px; padding: 10px 16px;
    font-size: 14px; color: var(--text); resize: none;
    max-height: 120px; min-height: 42px; transition: all var(--t); line-height: 1.5;
}
.chat-input:focus { border-color: var(--accent); background: var(--bg-input); outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-r),.1); }
.send-btn { background: var(--accent); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--t); flex-shrink: 0; }
.send-btn:hover { background: var(--accent-h); transform: scale(1.06); }
.send-btn svg { width: 16px; height: 16px; }

/* ===== YAZÍYOR ===== */
.typing-indicator { display: flex; align-items: flex-end; gap: 8px; padding: 4px 0; animation: fadeUp .2s ease; }
.typing-bubble { background: var(--msg-recv-bg); border-radius: 18px; border-bottom-left-radius: 4px; padding: 10px 16px; display: flex; align-items: center; gap: 4px; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); animation: typingBounce 1.2s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-6px);opacity:1} }
@keyframes pulse-online { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ===== MOBİL ===== */
.chat-back-btn { display: none; }

@media (max-width: 768px) {
    /* Layout: tam ekran sabit konteyner */
    .messages-layout {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 54px !important;  /* mobile header yüksekliği */
        bottom: 60px !important; /* mobile nav yüksekliği */
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
        overflow: hidden;
        /* Klavye açılınca yukarı kaymaması için */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Konuşma listesi — tam katman */
    .conversations-list {
        width: 100%;
        border-right: none;
        position: absolute;
        inset: 0;
        z-index: 10;
        transform: translateX(0);
        transition: transform .3s cubic-bezier(.25,.46,.45,.94),
                    opacity .3s ease;
        will-change: transform;
        opacity: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .conversations-list.slide-out {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Chat alanı — tam katman */
    .chat-area {
        position: absolute;
        inset: 0;
        z-index: 5;
        transform: translateX(100%);
        transition: transform .3s cubic-bezier(.25,.46,.45,.94),
                    opacity .3s ease;
        will-change: transform;
        opacity: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .chat-area.slide-in {
        transform: translateX(0);
        opacity: 1;
        z-index: 15;
    }

    /* Chat mesaj alanı scroll */
    .chat-messages {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Input alanı klavye açılınca yerinde kalsın */
    .chat-input-area {
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    /* Geri butonu */
    .chat-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        margin-right: 4px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .chat-back-btn:active { background: var(--bg3); }

    /* Baloncuklar mobilde biraz daha geniş */
    .message-bubble { max-width: 88%; }

    /* Dots butonları her zaman görünür */
    .conv-dots-btn, .msg-dots-btn { opacity: 1 !important; }

    /* Medya önizleme */
    #msgMediaPreview img, #msgMediaPreview video { max-height: 90px; }
}

/* ===== COMMENTS ===== */
.comment-item { display:flex; gap:11px; padding:13px 0; border-bottom:1px solid var(--border2); }
.comment-item:last-child { border-bottom:none; }
.comment-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.comment-body { flex:1; min-width:0; background:var(--bg3); border-radius:var(--r-md); padding:11px 14px; }
.comment-author { font-weight:600; font-family:var(--font-display); font-size:13.5px; color:var(--text); margin-bottom:3px; }
.comment-text { font-size:14px; color:var(--text2); line-height:1.55; }
.comment-time { font-size:11px; color:var(--text3); margin-top:5px; }

/* ===== SETTINGS ===== */
.settings-section { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; margin-bottom:16px; }
.settings-section-title { font-family:var(--font-display); font-weight:700; font-size:16px; margin-bottom:18px; color:var(--text); padding-bottom:12px; border-bottom:1px solid var(--border); }
.settings-row { display:flex; align-items:center; justify-content:space-between; padding:13px 0; border-bottom:1px solid var(--border2); gap:16px; }
.settings-row:last-child { border-bottom:none; padding-bottom:0; }
.settings-row-label { font-weight:500; font-size:14.5px; color:var(--text); margin-bottom:2px; }
.settings-row-desc { font-size:12.5px; color:var(--text3); }
.toggle-switch { position:relative; width:42px; height:23px; cursor:pointer; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; inset:0; background:var(--border); border-radius:999px; transition:all var(--t); }
.toggle-slider::before { content:''; position:absolute; width:17px; height:17px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform var(--t); }
.toggle-switch input:checked + .toggle-slider { background:var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(19px); }

/* ===== DROPDOWN ===== */
.dropdown { position:relative; display:inline-block; }
.dropdown-menu { display:none; position:absolute; top:calc(100% + 6px); right:0; background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow); min-width:155px; z-index:1000; overflow:hidden; }
.dropdown-menu.open { display:block; animation:fadeUp .12s ease; }
.dropdown-item { display:flex; align-items:center; gap:9px; padding:11px 15px; font-size:13.5px; color:var(--text2); cursor:pointer; transition:all var(--t); border:none; background:none; width:100%; text-align:left; font-family:var(--font-body); }
.dropdown-item:hover { background:var(--bg-hover); color:var(--text); }
.dropdown-item.danger:hover { background:rgba(229,72,91,.1); color:var(--danger); }
.dropdown-item svg { width:15px; height:15px; flex-shrink:0; }

/* ===== MODAL ===== */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.modal-overlay.open { display:flex; }
.modal-box { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-xl); padding:26px; width:100%; max-width:400px; box-shadow:var(--shadow); animation:fadeUp .2s ease; margin:16px; }
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.modal-title { font-family:var(--font-display); font-weight:700; font-size:17px; }
.modal-close { background:none; border:none; color:var(--text3); font-size:22px; cursor:pointer; padding:4px; line-height:1; }
.modal-close:hover { color:var(--text); }
#reportModal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9998; align-items:center; justify-content:center; backdrop-filter:blur(4px); }

/* ===== THEME TOGGLE ===== */
.theme-toggle { background:var(--bg-input); border:1.5px solid var(--border); color:var(--text2); width:36px; height:36px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all var(--t); }
.theme-toggle:hover { color:var(--accent); border-color:var(--accent); background:var(--accent-s); }
.theme-toggle svg { width:17px; height:17px; }

/* ===== CARD ===== */
.card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:999px; }
::-webkit-scrollbar-thumb:hover { background:var(--text3); }

/* ===== DIVIDER ===== */
.divider { height:1px; background:var(--border); margin:18px 0; }

/* ===== ADMIN BADGE ===== */
.admin-badge { display:inline-flex; background:var(--warning); color:#000; border-radius:4px; font-size:10px; font-weight:700; padding:1px 6px; letter-spacing:.3px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes imgFadeIn { from{opacity:0} to{opacity:1} }

/* Resim yükleme shimmer */
.img-loading {
    position: relative; overflow: hidden;
    background: var(--bg3);
}
.img-loading::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,.07) 40%,
        rgba(255,255,255,.13) 50%,
        rgba(255,255,255,.07) 60%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}
.img-loading img,
.img-loading video { opacity: 0; transition: opacity .3s ease; }
.img-loading.img-loaded::before { display: none; }
.img-loading.img-loaded img,
.img-loading.img-loaded video { opacity: 1; animation: imgFadeIn .3s ease; }

/* Mesaj balonu içi resim */
.message-bubble .img-loading {
    min-height: 120px; border-radius: 10px;
}

/* Hikaye canvas yüklenirken */
#storyCanvas.img-loading::before { border-radius: 18px; }

/* Blur-up placeholder — küçük önizleme büyütülür */
.img-blur-placeholder {
    filter: blur(12px);
    transform: scale(1.05);
    transition: filter .4s ease, transform .4s ease;
}
.img-blur-placeholder.loaded {
    filter: none;
    transform: scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width:1100px) { .right-sidebar { display:none; } }

/* Feed öneri kartı — masaüstünde gizli (sidebar'da var), mobilde görünür */
.feed-suggestion-card { display: none; }
@media (max-width: 1100px) { .feed-suggestion-card { display: block; } }
@media (max-width:768px) {
    .sidebar,.sidebar-spacer { display:none; }
    .mobile-header { display:flex; }
    .mobile-nav { display:flex; }
    .app-layout { padding-top:54px; padding-bottom:70px; }
    .main-content { padding:14px; max-width:100%; }
    /* mobil mesaj layout JS ile yönetiliyor */
    .auth-card { padding:30px 22px; }
    .page-with-sidebar { flex-direction:column; }
    .feed-column { max-width:100%; }
}
@media (max-width:480px) {
    .profile-stats { gap:14px; }
    .profile-actions { flex-direction:column; }
    .post-actions { flex-wrap:wrap; gap:0; }
}

/* ===== HİKAYELER ===== */
.stories-bar {
    display: flex; gap: 12px; overflow-x: auto; padding: 14px 0 10px;
    scrollbar-width: none; -ms-overflow-style: none;
    margin-bottom: 12px;
}
.stories-bar::-webkit-scrollbar { display: none; }

.story-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; cursor: pointer; flex-shrink: 0; width: 68px;
}
.story-ring {
    width: 64px; height: 64px; border-radius: 50%;
    padding: 2px; flex-shrink: 0;
}
.story-ring-unseen { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.story-ring-seen   { background: var(--border); }
.story-ring-own    { background: linear-gradient(135deg, var(--accent), #a855f7); }
.story-ring-add    { background: var(--bg3); border: 2px dashed var(--border); padding: 1px; }

.story-avatar-wrap { width: 100%; height: 100%; border-radius: 50%; overflow: visible; background: var(--bg3); position: relative; border: 2px solid var(--bg2); }
.story-avatar      { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.story-add-plus    {
    position: absolute; bottom: -2px; right: -2px;
    width: 22px; height: 22px; background: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: #fff; border: 2px solid var(--bg2);
    z-index: 2; line-height: 1; pointer-events: none;
}
.story-name { font-size: 11px; color: var(--text2); text-align: center; line-height: 1.3; width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Progress bar */
.sv-progress-bar { height: 2px; background: rgba(255,255,255,.35); border-radius: 2px; flex: 1; overflow: hidden; }
.sv-progress-fill { height: 100%; background: #fff; width: 0%; border-radius: 2px; }

/* Story type butonları */
.story-type-btn {
    flex: 1; padding: 8px; border: 1px solid var(--border); background: var(--bg3);
    border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer;
    color: var(--text2); transition: all .15s; font-family: var(--font-body);
}
.story-type-btn.active { background: var(--accent-s); border-color: var(--accent); color: var(--accent); }

/* Renk seçici */
.story-color-btn { transition: transform .1s; }
.story-color-btn:hover, .story-color-btn.active { transform: scale(1.2); border-color: #fff !important; }

/* Hikaye oluşturma yeni tasarım */
.sc-tab {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7); cursor: pointer; font-family: var(--font-body);
    transition: all .15s; white-space: nowrap;
}
.sc-tab.active { background: rgba(124,106,247,.35); border-color: var(--accent); color: #fff; }
.sc-tab:hover  { background: rgba(255,255,255,.14); color: #fff; }

.sc-color-btn { transition: transform .1s; }
.sc-color-btn.active { border-color: #fff !important; transform: scale(1.15); }
