/**
 * TURKSEN — Sosyal Medya Platformu Premium Tasarım Sistemi (v3.0)
 * Marka Renkleri: #8B000F (Koyu Kırmızı), #6C1F26 (Koyu Bordo), #FFFFFF (Beyaz), #F8F5F3 (Kırık Beyaz), #1F1F1F (Ana Metin)
 * Facebook + Instagram ergonomisi, 3 sütunlu masaüstü, mobil tam genişlik akış ve sabit alt menü.
 */

:root {
    --brand-primary: #8B000F;
    --brand-dark: #6C1F26;
    --brand-light: #FDE8EA;
    --bg-page: #F8F5F3;
    --bg-card: #FFFFFF;
    --bg-hover: #F3F4F6;
    --bg-input: #FFFFFF;
    --text-main: #1F1F1F;
    --text-muted: #6B7280;
    --text: #1F1F1F;
    --primary: #8B000F;
    --border-color: #E5E7EB;
    --border-card: #EDE8E9;
    --border: #E5E7EB;
    --shadow-soft: 0 3px 14px rgba(40, 14, 21, 0.05);
    --shadow-hover: 0 8px 24px rgba(40, 14, 21, 0.09);
    --radius-card: 16px;
    --radius-btn: 10px;
    --radius-pill: 24px;
}

* { box-sizing: border-box; }

/* Global Hidden Attribute Safeguard — guarantees no modal/drawer/element blocks pointer clicks when hidden */
[hidden],
.reels-viewer-modal[hidden],
.story-viewer-modal[hidden],
.lightbox-modal[hidden],
.fb-post-modal-backdrop[hidden],
.reels-comment-drawer-backdrop[hidden],
.fb-reels-upload-modal[hidden],
.tk-mention-dropdown[hidden],
.search-suggest-box[hidden],
.fb-mobile-more-dropdown[hidden],
#story-viewers-sheet[hidden],
#edit-video-modal[hidden],
#edit-story-modal[hidden],
#edit-post-modal[hidden],
#reel-options-sheet[hidden],
#close-friends-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-page);
    color: var(--text-main);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* -------------------------------------------------------------
   1. ÜST ÇUBUK (STICKY HEADER)
------------------------------------------------------------- */
.top-bar.fb-top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #E4E6EB;
    height: 56px;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}
.top-bar.fb-top-bar.bar-hidden {
    transform: translateY(-100%);
}
body.dark-mode .top-bar.fb-top-bar {
    background: #242526 !important;
    border-bottom-color: #393A3B !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.fb-top-inner {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Sol Alan: Logo ve Arama */
.fb-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 380px;
}
.fb-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}
.fb-brand-link:hover {
    text-decoration: none !important;
    opacity: 0.92;
}
.fb-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}
.fb-logo-circle svg {
    border-radius: 50%;
    transition: transform 0.15s ease;
}
.fb-brand-link:hover .fb-logo-circle svg {
    transform: scale(1.05);
}
/* Çift Logo Desteği (Açık ve Koyu Mod) */
.brand-img {
    height: 28px;
    max-height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    vertical-align: middle;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.brand-svg,
.fb-logo-circle svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.15s ease;
}
.fb-brand-link:hover .brand-img {
    transform: scale(1.03);
}
.brand-img.logo-theme-light {
    display: inline-block;
}
.brand-img.logo-theme-dark {
    display: none;
}
html.dark-mode .brand-img.logo-theme-light,
body.dark-mode .brand-img.logo-theme-light {
    display: none !important;
}
html.dark-mode .brand-img.logo-theme-dark,
body.dark-mode .brand-img.logo-theme-dark {
    display: inline-block !important;
}
.fb-brand-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--brand-primary, #8B000F);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1;
    display: inline-block;
    user-select: none;
}
body.dark-mode .fb-brand-text {
    color: #EF4444;
}

@media (max-width: 768px) {
    .brand-img {
        height: 24px !important;
        max-height: 24px !important;
        max-width: 110px !important;
    }
    .brand-svg,
    .fb-logo-circle svg {
        width: 24px !important;
        height: 24px !important;
    }
    .fb-brand-text {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .brand-img {
        height: 21px !important;
        max-height: 21px !important;
        max-width: 95px !important;
    }
    .brand-svg,
    .fb-logo-circle svg {
        width: 21px !important;
        height: 21px !important;
    }
    .fb-brand-text {
        font-size: 14.5px !important;
    }
}
.fb-search-bar {
    flex: 1;
    position: relative;
    max-width: 280px;
}
.top-search-btn,
.mobile-search-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .fb-search-bar {
        display: none !important;
    }
}
.fb-search-bar input {
    height: 40px;
    background: #F0F2F5;
    border: 0;
    border-radius: 50px;
    padding: 0 16px 0 38px;
    font-size: 14.5px;
    color: var(--text-main);
    outline: none;
    transition: background 0.15s, box-shadow 0.15s;
    width: 100%;
}
body.dark-mode .fb-search-bar input {
    background: #3A3B3C;
    color: #E4E6EB;
}
.fb-search-bar input:focus {
    background: #FFFFFF;
    box-shadow: 0 0 0 2px var(--brand-primary);
}
body.dark-mode .fb-search-bar input:focus {
    background: #3A3B3C;
    box-shadow: 0 0 0 2px #EF4444;
}
.fb-search-bar .search-icon {
    position: absolute;
    left: 14px;
    color: #65676B;
    font-size: 14px;
    pointer-events: none;
}
body.dark-mode .fb-search-bar .search-icon { color: #B0B3B8; }

/* Orta Alan: Facebook Ana Gezinti Sekmeleri */
.fb-center-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    flex: 2;
    max-width: 620px;
}
@media (max-width: 768px) {
    .fb-center-nav { display: none !important; }
}
.fb-tab-item {
    flex: 1;
    max-width: 110px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676B;
    font-size: 21px;
    position: relative;
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: 8px;
}
body.dark-mode .fb-tab-item { color: #B0B3B8; }
.fb-tab-item:hover {
    background: #F2F2F2;
    color: var(--brand-primary);
    text-decoration: none;
}
body.dark-mode .fb-tab-item:hover {
    background: #3A3B3C;
    color: #FFFFFF;
}
.fb-tab-item.active {
    color: var(--brand-primary);
}
body.dark-mode .fb-tab-item.active { color: #EF4444; }
.fb-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
body.dark-mode .fb-tab-item.active::after {
    background: #EF4444;
}

/* Sağ Alan: Daire Butonlar */
.fb-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}
.fb-action-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #E4E6EB !important;
    color: #050505 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 16px !important;
    position: relative;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
body.dark-mode .fb-action-circle {
    background: #3A3B3C !important;
    color: #E4E6EB !important;
}
.fb-action-circle:hover {
    background: #D8DADF !important;
    transform: scale(1.04);
}
body.dark-mode .fb-action-circle:hover {
    background: #4E4F50 !important;
}
.fb-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #E41E3F !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 1px 5px !important;
    border-radius: 12px !important;
}
body.dark-mode .fb-badge {
    border-color: #242526 !important;
}
.fb-profile-avatar-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.fb-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.fb-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.user-pill-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    border: 0;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.22);
    user-select: none;
}
.btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 0, 15, 0.32);
    color: #FFFFFF;
    text-decoration: none;
}
.btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 650;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    background: #F3F4F6;
    color: var(--text-main);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: none;
}
.btn-light:hover {
    background: #E5E7EB;
    color: var(--text-main);
    text-decoration: none;
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    background: #10B981;
    color: #FFFFFF;
    border: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    background: #059669;
    color: #FFFFFF;
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

.btn-pill-brand {
    background: #FFFFFF;
    color: var(--brand-primary);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 750;
    transition: all 0.15s ease;
}
.btn-pill-brand:hover {
    background: #F8F5F3;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-pill-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 0;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-pill-small:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-text {
    background: transparent;
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.btn-text:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}
.btn-text.text-danger {
    color: #E11D48 !important;
}
.btn-text.text-danger:hover {
    background: #FFF1F2 !important;
    text-decoration: none;
}

/* Genel Tipografi & Form Yardımcıları */
.muted {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0;
}
.small-text {
    font-size: 11.5px;
    color: var(--text-muted);
}
.center-text {
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--text-muted);
}
.empty-state h1, .empty-state h2, .empty-state h3 {
    color: var(--text-main);
    margin: 0 0 8px;
    font-weight: 800;
}
.empty-state p {
    margin: 0 auto;
    max-width: 440px;
}
.empty-state .btn {
    margin-top: 18px;
}

.content-heading {
    margin-bottom: 16px;
}
.content-heading h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 850;
    color: var(--text-main);
}
.content-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 24px 0 32px;
}
.more-posts-btn {
    min-width: 200px;
}

/* Form Elemanları Ortak Reset */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="file"],
textarea,
select {
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text-main);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 15, 0.1);
}


/* -------------------------------------------------------------
   2. 3 SÜTUNLU MASAÜSTÜ YERLEŞİMİ (DESKTOP SHELL)
------------------------------------------------------------- */
.site-shell {
    max-width: 1440px;
    margin: 18px auto 40px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 240px minmax(0, 680px) 290px;
    gap: 20px;
    justify-content: center;
    align-items: start;
}

/* Sol Navigasyon Sütunu */
.left-sidebar {
    position: sticky;
    top: 78px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sidebar-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.12s, color 0.12s;
}
.nav-item:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    text-decoration: none;
}
.nav-item.active {
    background: var(--brand-primary);
    color: #FFFFFF;
}
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
    position: relative;
}
.nav-icon i {
    font-size: 17px;
    line-height: 1;
}
.nav-icon .nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 10px;
    padding: 1px 5px;
}
.nav-text { flex: 1; }
.nav-badge {
    background: #e11d48;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
}

.sidebar-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}
.sidebar-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    min-width: 0;
}
.sidebar-user-link:hover { text-decoration: none; }
.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.fb-user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    min-width: 0;
}
.fb-user-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--brand-primary);
    text-decoration: none;
}
body.dark-mode .fb-user-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.fb-user-nav-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0 !important;
}
.fb-user-nav-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.user-avatar-small {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0 !important;
}
.user-avatar-small img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}
.sidebar-user-info strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-info small { color: var(--text-muted); font-size: 11px; }
.sidebar-logout-btn {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
}
.sidebar-logout-btn:hover { color: #e11d48; background: #fff1f2; }

.sidebar-promo {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 18px 16px;
}
.sidebar-promo h4 { margin: 0 0 6px; font-size: 14px; }
.sidebar-promo p { margin: 0; font-size: 12px; opacity: 0.88; line-height: 1.45; }

/* Sağ Yan Panel */
.right-sidebar {
    position: sticky;
    top: 78px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tk-rail-card {
    padding: 16px !important;
    margin-bottom: 0 !important;
}
.tk-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tk-rail-head h3 { margin: 0; font-size: 13.5px; font-weight: 750; }
.tk-rail-head a { font-size: 11.5px; font-weight: 650; }

.tk-person-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.tk-person-row:last-child { border-bottom: 0; }
.tk-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.tk-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.tk-person-meta { flex: 1; min-width: 0; }
.tk-person-meta a { color: var(--text-main); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-person-meta small { color: var(--text-muted); font-size: 11px; }
.tk-btn-pill {
    background: var(--brand-primary);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}
.tk-btn-pill:hover { background: var(--brand-dark); color: #FFFFFF; text-decoration: none; }

.tk-comm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-main);
    font-size: 12.5px;
}
.tk-comm-row:last-child { border-bottom: 0; }
.tk-comm-row:hover { text-decoration: none; color: var(--brand-primary); }
.tk-comm-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-light);
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
}
.tk-comm-name { flex: 1; min-width: 0; font-weight: 600; }
.tk-comm-name small { display: block; color: var(--text-muted); font-weight: 400; font-size: 11px; }

.tk-safety-card {
    background: #FFFBFB !important;
    border-color: #F8D7DA !important;
}
.tk-safety-card h3 { margin: 0 0 6px; font-size: 13.5px; color: var(--brand-primary); }
.tk-safety-card p { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.tk-btn-text { font-size: 12px; font-weight: 700; color: var(--brand-primary); }

.side-footer {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0;
}
.side-footer a { color: var(--text-muted); }

/* -------------------------------------------------------------
   3. ORTA SÜTUN (FEED, HİKÂYELER, PAYLAŞIM KUTUSU)
------------------------------------------------------------- */
.center-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

/* Flash Uyarı Bildirimleri */
.flash-alert {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 550;
    margin-bottom: 4px;
}
.flash-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

/* Hikâyeler Çubuğu (Büyük Yatay Kaydırmalı Kartlar) */
.stories-feed-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.stories-feed-bar::-webkit-scrollbar { display: none; }

.story-feed-card {
    width: 115px;
    height: 168px;
    flex: 0 0 115px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--brand-dark);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(40, 14, 21, 0.08);
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 8px;
    text-decoration: none;
}
.story-feed-card:hover { transform: translateY(-2px); text-decoration: none; }
.story-feed-card.close-ring { box-shadow: 0 0 0 2.5px #10B981; }

.story-card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-card-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background: var(--brand-primary);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.story-card-badge img { width: 100%; height: 100%; object-fit: cover; }
.story-card-name {
    position: relative;
    z-index: 2;
    font-size: 11.5px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.story-card-text-preview {
    position: absolute;
    top: 45px;
    left: 8px;
    right: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hikâye Ekle Kartı */
.story-add-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 0;
    display: flex;
    flex-direction: column;
}
.story-add-bg {
    height: 115px;
    background: #F3F4F6;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.story-add-bg img { width: 100%; height: 100%; object-fit: cover; }
.story-add-icon { font-size: 32px; color: var(--text-muted); }
.story-add-action {
    flex: 1;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 10px;
}
.add-plus-btn {
    position: absolute;
    top: -16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    border: 2px solid #FFFFFF;
}
.story-add-action small {
    font-size: 11px;
    font-weight: 750;
    color: var(--text-main);
}

/* =============================================================
   FACEBOOK BİREBİR PAYLAŞIM KAPSÜLÜ & POST MODAL
   ============================================================= */
[hidden] {
    display: none !important;
}

.fb-composer-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid #E4E6EB !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
}
body.dark-mode .fb-composer-card {
    background: #242526 !important;
    border-color: #393A3B !important;
}
.fb-composer-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fb-user-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    position: relative;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
}
.fb-user-avatar img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}
.composer-online-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
body.dark-mode .composer-online-badge { border-color: #242526; }

.fb-capsule-input {
    flex: 1;
    height: 42px !important;
    background: #F0F2F5 !important;
    border: 0 !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 8px 0 16px !important;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}
body.dark-mode .fb-capsule-input {
    background: #3A3B3C !important;
}
.fb-capsule-input:hover {
    background: #E4E6E9 !important;
}
body.dark-mode .fb-capsule-input:hover {
    background: #4E4F50 !important;
}
.fb-input-placeholder {
    color: #65676B;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.dark-mode .fb-input-placeholder { color: #B0B3B8; }
.mobile-placeholder { display: none; }

.fb-capsule-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}
.fb-capsule-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease;
}
.fb-capsule-icon-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.15);
}
body.dark-mode .fb-capsule-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.fb-mobile-photo-btn {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #050505;
    padding: 4px 8px;
    border-radius: 6px;
}
body.dark-mode .fb-mobile-photo-btn { color: #E4E6EB; }

/* -------------------------------------------------------------
   FACEBOOK GÖNDERİ OLUŞTURMA MODAL DİYALOGU (POP-UP)
------------------------------------------------------------- */
.fb-post-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 16px;
    animation: tkFadeIn 0.2s ease-out;
}
.fb-post-modal-backdrop[hidden] {
    display: none !important;
}
.fb-post-modal-dialog {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #E4E6EB;
    display: flex;
    flex-direction: column;
    animation: tkScaleUp 0.2s ease-out;
}
body.dark-mode .fb-post-modal-dialog {
    background: #242526;
    border-color: #393A3B;
}
@keyframes tkScaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.fb-modal-head {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E4E6EB;
    position: relative;
}
body.dark-mode .fb-modal-head { border-color: #393A3B; }
.fb-modal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
}
.fb-modal-close-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E4E6EB;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    color: #65676B;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s;
}
body.dark-mode .fb-modal-close-btn {
    background: #3A3B3C;
    color: #E4E6EB;
}
.fb-modal-close-btn:hover {
    background: #D8DADF;
    color: #050505;
}
body.dark-mode .fb-modal-close-btn:hover {
    background: #4E4F50;
    color: #FFFFFF;
}
.fb-modal-form {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-modal-form textarea {
    width: 100%;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    resize: none;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100px;
    padding: 6px 0;
    color: var(--text-main);
    box-shadow: none !important;
}

/* Mobil Marka Başlığı ve 6'lı Facebook Sekme Çubuğu */
.fb-mobile-brand-title {
    display: none;
    font-size: 26px;
    font-weight: 850;
    color: #8B000F;
    text-decoration: none;
    letter-spacing: -0.6px;
}
.fb-mobile-tabs-row {
    display: none;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid #E4E6EB;
    height: 48px;
    align-items: stretch;
}
body.dark-mode .fb-mobile-tabs-row {
    background: #242526;
    border-color: #393A3B;
}
.fb-mobile-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676B;
    font-size: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.15s ease;
}
body.dark-mode .fb-mobile-tab-btn { color: #B0B3B8; }
.fb-mobile-tab-btn.active {
    color: #8B000F;
    border-bottom: 3px solid #8B000F;
}
.fb-tab-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fb-tab-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #E41E3F;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    border: 2px solid #FFFFFF;
}
body.dark-mode .fb-tab-badge { border-color: #242526; }

/* Facebook Tarzı Gönderi Aksiyon Çubuğu */
.fb-post-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #E4E6EB;
    border-bottom: 1px solid #E4E6EB;
    padding: 3px 6px;
    margin: 4px 12px 0;
}
body.dark-mode .fb-post-action-bar {
    border-color: #393A3B;
}
.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #65676B;
    font-size: 13.5px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
}
body.dark-mode .fb-action-btn { color: #B0B3B8; }
.fb-action-btn:hover {
    background: #F0F2F5;
    color: #050505;
    text-decoration: none;
}
body.dark-mode .fb-action-btn:hover {
    background: #3A3B3C;
    color: #FFFFFF;
}
.fb-action-btn.liked {
    color: #8B000F;
}
.fb-action-text {
    font-size: 13px;
    font-weight: 650;
}

/* Facebook Tarzı Hızlı Yorum Alanı */
.fb-quick-comment-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 12px;
    background: transparent;
    animation: tkFadeIn 0.15s ease-out;
}
.fb-quick-comment-form[hidden] {
    display: none !important;
}
.quick-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.quick-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quick-comment-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #F0F2F5;
    border-radius: 20px;
    padding: 2px 10px 2px 14px;
    border: 1px solid transparent;
}
body.dark-mode .quick-comment-input-wrap {
    background: #3A3B3C;
}
.quick-comment-input {
    flex: 1;
    border: 0 !important;
    background: transparent !important;
    padding: 8px 0 !important;
    font-size: 13.5px !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-main);
}
.quick-comment-send-btn {
    background: transparent;
    border: 0;
    color: #8B000F;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.12s;
}
.quick-comment-send-btn:hover {
    transform: scale(1.18);
}

/* =============================================================
   FACEBOOK BİREBİR HİKÂYELER BÖLÜMÜ (GÖRSELDEKİYLE AYNI DÜZEN)
   ============================================================= */
.fb-stories-container {
    display: flex !important;
    gap: 10px !important;
    padding: 2px 2px 8px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    position: relative;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 16px !important;
}
.fb-stories-container::-webkit-scrollbar { display: none; }

/* 1. Kart: Hikâye Oluştur Kartı */
.fb-story-create-card {
    width: 125px !important;
    height: 200px !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    border: 1px solid #E4E6EB !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.dark-mode .fb-story-create-card {
    background: #242526 !important;
    border-color: #393A3B !important;
}
.fb-story-create-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}
.fb-story-create-cover {
    height: 140px;
    width: 100%;
    background: #F0F2F5;
    overflow: hidden;
    position: relative;
}
.fb-story-create-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.fb-story-create-card:hover .fb-story-create-cover img {
    transform: scale(1.06);
}
.fb-story-create-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B000F, #6C1F26);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 850;
}
.fb-story-create-footer {
    height: 60px;
    background: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
}
body.dark-mode .fb-story-create-footer {
    background: #242526;
}
.fb-story-create-plus-btn {
    position: absolute;
    top: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8B000F;
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 17px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
body.dark-mode .fb-story-create-plus-btn {
    border-color: #242526;
}
.fb-story-create-footer strong {
    font-size: 12px;
    font-weight: 700;
    color: #050505;
}
body.dark-mode .fb-story-create-footer strong { color: #E4E6EB; }

/* 2. Kartlar: Arkadaşların Hikâyeleri (Birebir Facebook) */
.fb-story-item-card {
    width: 125px !important;
    height: 200px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px !important;
    box-sizing: border-box !important;
}
.fb-story-item-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}
.fb-story-item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 1;
}
.fb-story-item-card .story-card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.25s ease;
}
.fb-story-item-card:hover .story-card-bg-img {
    transform: scale(1.06);
}

/* Facebook Tarzı Mavi Halkalı Üst Avatar */
.fb-story-author-badge {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3.5px solid #8B000F;
    overflow: hidden;
    background: #FFFFFF;
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.fb-story-author-badge img { width: 100%; height: 100%; object-fit: cover; }

.fb-story-author-name {
    position: relative;
    z-index: 2;
    font-size: 12.5px;
    font-weight: 750;
    color: #FFFFFF;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-story-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Hikâye Medya Sarıcı & Video Önizleme Katmanı (Reels Mantığı ile Birebir) */
.fb-story-media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    border-radius: inherit;
}

.fb-story-video-tag,
.fb-story-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.fb-story-item-card:hover .fb-story-video-tag,
.fb-story-item-card:hover .fb-story-poster-img,
.story-grid-card:hover .fb-story-video-tag,
.story-grid-card:hover .fb-story-poster-img {
    transform: scale(1.06);
}

.fb-story-play-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-story-play-symbol i {
    margin-left: 2px;
}

.fb-story-item-card:hover .fb-story-play-symbol,
.story-grid-card:hover .fb-story-play-symbol {
    background: rgba(139, 0, 15, 0.85);
    border-color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.12);
}

/* Önizleme Oynatılırken Oynat Simgesini Zarifçe Gizle */
.fb-story-item-card.is-previewing .fb-story-play-symbol,
.story-grid-card.is-previewing .fb-story-play-symbol,
.fb-reel-item.is-previewing .fb-reel-play-symbol {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
}

/* Sağa Kaydırma Butonu */
.fb-stories-scroll-btn {
    position: sticky;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #CED0D4;
    color: #050505;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 17px;
    z-index: 10;
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.15s ease, background 0.15s ease;
}
body.dark-mode .fb-stories-scroll-btn {
    background: #3A3B3C;
    border-color: #4E4F50;
    color: #E4E6EB;
}
.fb-stories-scroll-btn:hover {
    transform: translateY(-50%) scale(1.08);
    background: #F2F2F2;
}
.composer-action-btn {
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 650;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.12s;
}
.composer-action-btn:hover { background: #F3F4F6; text-decoration: none; color: var(--text-main); }

/* Genişleyen Form */
.composer-full-form {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.composer-full-form textarea {
    width: 100%;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 12px;
    resize: vertical;
    font-size: 13.5px;
    outline: none;
}
.composer-full-form textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 15, 0.08);
}

/* Sürükle Bırak Görsel Geri Bildirimi */
.composer-card.composer-drag-over {
    border: 2px dashed var(--brand-primary) !important;
    background: #FFF5F5 !important;
}
body.dark-mode .composer-card.composer-drag-over {
    background: #250B10 !important;
    border-color: #EF4444 !important;
}

/* Hızlı Emoji Çubuğu */
.composer-emoji-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    overflow-x: auto;
}
body.dark-mode .composer-emoji-bar {
    background: #1B1B22;
    border-color: #2D2D38;
}
.emoji-bar-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.composer-quick-emoji {
    background: transparent;
    border: 0;
    font-size: 18px;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.12s ease, background 0.12s ease;
}
.composer-quick-emoji:hover {
    background: #EDE8E9;
    transform: scale(1.25);
}
body.dark-mode .composer-quick-emoji:hover {
    background: #2E2E3A;
}

.composer-file-inputs .file-label {
    background: var(--brand-light);
    color: var(--brand-primary);
    border: 1px solid rgba(139, 0, 15, 0.15);
    font-weight: 650;
    font-size: 12.5px;
}
.composer-file-inputs .file-label:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
}
body.dark-mode .composer-file-inputs .file-label {
    background: #2A0B10;
    color: #F87171;
    border-color: #4C111A;
}
body.dark-mode .composer-file-inputs .file-label:hover {
    background: #9E1020;
    color: #FFFFFF;
}
.composer-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.composer-file-inputs {
    display: flex;
    gap: 8px;
}
.file-label {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.file-label:hover { background: #ECEFF1; }
.composer-visibility select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    font-size: 12px;
    background: #FFFFFF;
}

/* Facebook Tarzı Gönderi Oluşturucu & Anket Tasarımı */
body.fb-modal-open {
    overflow: hidden !important;
}
.fb-style-composer {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-style-composer[hidden] {
    display: none !important;
}
.composer-author-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
}
.composer-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.composer-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.composer-author-meta strong {
    font-size: 13.5px;
    color: var(--text-main);
}
.composer-visibility-pill select {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
}
body.dark-mode .composer-visibility-pill select {
    background: #23232C;
    border-color: #353542;
    color: #E2E8F0;
}

/* Facebook Tarzı Açılır / Kapanır Anket Kartı */
.fb-poll-card {
    background: #FFFBF0;
    border: 1.5px solid #FDE68A;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: tkFadeIn 0.2s ease-out;
}
.fb-poll-card[hidden] {
    display: none !important;
}
body.dark-mode .fb-poll-card {
    background: #231B0E;
    border-color: #614614;
}
.fb-poll-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
}
.fb-poll-title {
    font-size: 13.5px;
    color: #B45309;
    display: flex;
    align-items: center;
    gap: 6px;
}
body.dark-mode .fb-poll-title { color: #FBBF24; }
.fb-poll-remove-btn {
    background: transparent;
    border: 0;
    color: #DC2626;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
}
.fb-poll-remove-btn:hover { background: rgba(220, 38, 38, 0.1); }
.fb-poll-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#poll-question-input {
    width: 100%;
    font-weight: 650;
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}
body.dark-mode #poll-question-input {
    background: #181820;
    border-color: #31313E;
    color: #F3F4F6;
}
.poll-inputs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.poll-opt-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.poll-opt-row .opt-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.poll-opt-row input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}
body.dark-mode .poll-opt-row input {
    background: #181820;
    border-color: #31313E;
    color: #F3F4F6;
}
.btn-del-poll-opt {
    background: transparent;
    border: 0;
    color: #9CA3AF;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.btn-del-poll-opt:hover { color: #DC2626; background: #FEE2E2; }
.btn-add-poll-option {
    align-self: flex-start;
    background: transparent;
    border: 1px dashed #D97706;
    color: #B45309;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.12s;
}
.btn-add-poll-option:hover { background: rgba(217, 119, 6, 0.1); }
body.dark-mode .btn-add-poll-option {
    border-color: #F59E0B;
    color: #FBBF24;
}

/* Facebook Tarzı "Gönderine Ekle" Araç Çubuğu */
.fb-add-to-post-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #FAFAFA;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
body.dark-mode .fb-add-to-post-bar {
    background: #181820;
    border-color: #2D2D38;
}
.fb-add-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}
.fb-add-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fb-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease;
}
.fb-tool-btn:hover {
    background: #EDE8E9;
    transform: scale(1.15);
}
body.dark-mode .fb-tool-btn:hover {
    background: #2A2A36;
}

.composer-submit-wrap {
    margin-top: 2px;
}
.composer-publish-btn {
    height: 42px;
    font-size: 14.5px;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
}

.composer-media-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0;
}
.preview-thumb-item {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Akış Başlığı */
.feed-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 2px 0;
}
.feed-section-header h2 { margin: 0; font-size: 15px; font-weight: 750; color: var(--text-main); }
.feed-section-header a { font-size: 12px; font-weight: 650; }

/* -------------------------------------------------------------
   4. GÖNDERİ KARTI (FEED POST CARD)
------------------------------------------------------------- */
.feed-post-card {
    padding: 0;
    overflow: hidden;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 8px;
    position: relative;
}
.post-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-info { flex: 1; min-width: 0; }
.post-author-line {
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-author-name {
    font-size: 14px;
    font-weight: 750;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-username {
    font-size: 12px;
    color: var(--text-muted);
}
.post-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.post-visibility-icon { font-size: 11px; }

/* Dropdown Seçenekler */
.post-options-dropdown {
    position: relative;
}
.post-options-btn {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 6px;
}
.post-options-btn:hover { background: #F3F4F6; }
.post-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 190px;
    padding: 6px;
    z-index: 50;
    display: flex;
    flex-direction: column;
}
.post-menu-dropdown[hidden] { display: none; }
.post-menu-item {
    background: transparent;
    border: 0;
    text-align: left;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-main);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.post-menu-item:hover { background: #F3F4F6; }
.post-menu-item.text-danger { color: #E11D48; }

/* Gönderi Metni */
.post-body-text {
    padding: 8px 16px 12px;
    font-size: 13.5px;
    line-height: 1.6;
    word-break: break-word;
}

/* Medya Alanı — Facebook Tarzı Tam Görünürlük & Doğal En/Boy Oranı */
.post-media-grid {
    display: grid;
    gap: 3px;
    background: #0B0B0E;
    overflow: hidden;
    position: relative;
}
.grid-count-1 {
    display: block !important;
    background: #0A0A0C !important;
}
.grid-count-1 .post-media-item {
    max-height: 640px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0A0A0C !important;
    overflow: hidden;
    cursor: pointer;
}
.grid-count-1 .post-media-img {
    width: 100% !important;
    height: auto !important;
    max-height: 620px !important;
    object-fit: contain !important; /* Görsel asla kırpılmaz, tam ve net gözükür */
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.2s ease;
}
.grid-count-1 .post-media-item:hover .post-media-img {
    transform: scale(1.01);
}

.grid-count-2 { grid-template-columns: 1fr 1fr; }
.grid-count-2 .post-media-item { height: 320px; }

.grid-count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-count-3 .post-media-item { height: 180px; }
.grid-count-3 .post-media-item:first-child { grid-row: span 2; height: 364px; }

.grid-count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-count-4 .post-media-item { height: 195px; }

.post-media-item {
    position: relative;
    max-height: 540px;
    overflow: hidden;
    cursor: pointer;
}
.post-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.has-more-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.more-images-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 800;
    z-index: 2;
}

.post-video-container {
    background: #000000;
    max-height: 540px;
    overflow: hidden;
}
.post-video {
    width: 100%;
    max-height: 540px;
    display: block;
    object-fit: contain;
}

/* Anket Kartı */
.post-poll-card {
    margin: 8px 16px 12px;
    padding: 14px;
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
}
.poll-question {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}
.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.poll-vote-form { margin: 0; }
.poll-option-btn {
    width: 100%;
    position: relative;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 14px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    font-size: 13px;
}
.poll-option-btn:hover:not(:disabled) {
    border-color: var(--brand-primary);
}
.poll-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--brand-light);
    z-index: 1;
    transition: width 0.3s ease;
}
.poll-opt-text { position: relative; z-index: 2; font-weight: 600; }
.poll-opt-pct { position: relative; z-index: 2; font-weight: 700; color: var(--brand-primary); }
.poll-option-btn.my-vote { border-color: var(--brand-primary); }
.poll-footer-meta { margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }

/* Etkileşim Butonları (Sadece İkon + Sayaç - Görseldeki Tasarım) */
.post-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 12px;
    border-top: 1px solid #F3F4F6;
}
body.dark-mode .post-action-bar {
    border-top-color: #393A3B;
}
.post-action-form { margin: 0; display: inline-flex; }

.fb-clean-actions-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}
.fb-clean-actions-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.clean-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0;
    color: #4B5563;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
body.dark-mode .clean-action-btn {
    color: #B0B3B8;
}
.clean-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    text-decoration: none;
}
body.dark-mode .clean-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}
.clean-action-btn:active {
    transform: scale(0.92);
}
.clean-action-btn i {
    font-size: 18px;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
}
.clean-action-btn .count {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    min-width: 8px;
}
/* Beğeni Aktif / Liked */
.clean-action-btn.like-btn.liked,
.clean-action-btn.like-btn.liked i {
    color: #1877F2 !important;
}
.clean-action-btn.like-btn.liked i {
    transform: scale(1.1);
}
/* Kaydedildi / Saved */
.clean-action-btn.bookmark-btn.saved,
.clean-action-btn.bookmark-btn.saved i {
    color: #8B000F !important;
}
body.dark-mode .clean-action-btn.bookmark-btn.saved,
body.dark-mode .clean-action-btn.bookmark-btn.saved i {
    color: #EF4444 !important;
}

/* Sağdaki Facebook Beğeni Rozeti (Görseldeki Mavi Daire Buton/İkon) */
.fb-post-reaction-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1877F2;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 1px 4px rgba(24, 119, 242, 0.4);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.fb-post-reaction-dot:hover {
    transform: scale(1.1);
}
.fb-post-reaction-dot[hidden] {
    display: none !important;
}

@media (max-width: 500px) {
    .post-action-bar {
        padding: 8px 12px 10px;
    }
    .fb-clean-actions-left {
        gap: 16px;
    }
    .clean-action-btn {
        gap: 5px;
        padding: 4px 3px;
    }
    .clean-action-btn i {
        font-size: 16px;
    }
    .clean-action-btn .count {
        font-size: 13px;
    }
    .fb-post-reaction-dot {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}


/* Hızlı Yorum Alanı */
.post-quick-comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid #F9FAFB;
}
.quick-comment-input {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 12.5px;
    outline: none;
    background: #F9FAFB;
}
.quick-comment-input:focus {
    background: #FFFFFF;
    border-color: var(--brand-primary);
}
.quick-comment-submit {
    background: var(--brand-primary);
    color: #FFFFFF;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
}
.quick-comment-submit:hover { background: var(--brand-dark); }

/* -------------------------------------------------------------
   5. DİKEY VİDEO (REELS) STİLİ
------------------------------------------------------------- */
.reels-feed-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.reels-top-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.reel-item {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    max-height: 82vh;
    border-radius: 18px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.reel-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}
.reel-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reel-sound-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    border: 0;
    font-size: 16px;
    display: grid;
    place-items: center;
    z-index: 10;
}
.reel-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 65px;
    padding: 30px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #FFFFFF;
    z-index: 5;
    pointer-events: none;
}
.reel-creator-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    pointer-events: auto;
}
.reel-creator-info:hover { text-decoration: none; }
.reel-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFF;
    display: grid;
    place-items: center;
    color: var(--brand-primary);
}
.reel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reel-caption {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}
.reel-action-rail {
    position: absolute;
    right: 12px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}
.reel-rail-btn {
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
}
.reel-rail-btn .rail-icon { font-size: 18px; }
.reel-rail-btn small { font-size: 10px; font-weight: 700; margin-top: 2px; }

/* -------------------------------------------------------------
   6. TAM EKRAN HİKÂYE GÖRÜNTÜLEYİCİ (STORY VIEWER MODAL)
------------------------------------------------------------- */
.story-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(10, 5, 7, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-viewer-modal[hidden] { display: none !important; }
.story-modal-stage {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100vh;
    max-height: 860px;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
}
.story-progress-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    display: flex;
    gap: 4px;
    z-index: 35;
}
.story-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.story-segment-fill {
    width: 0%;
    height: 100%;
    background: #FFFFFF;
    transition: width 0.1s linear;
}
.story-segment.passed .story-segment-fill {
    width: 100% !important;
    transition: none !important;
}
.story-progress-fill {
    width: 0%;
    height: 100%;
    background: #FFFFFF;
    transition: width 0.1s linear;
}
.story-multi-badge, .fb-story-count-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.story-top-author-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid #8B000F;
    box-shadow: 0 0 0 2px #FFFFFF, 0 2px 6px rgba(0,0,0,0.25);
    overflow: hidden;
    background: #8B000F;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    z-index: 5;
}
.story-top-author-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.close-friend-ring .story-top-author-badge {
    border-color: #10B981 !important;
}
.story-modal-header {
    position: absolute;
    top: 20px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
    z-index: 30;
}
.story-modal-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.story-modal-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFF;
    display: grid;
    place-items: center;
}
.story-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-modal-close, .story-modal-delete-btn, .story-modal-edit-btn {
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    color: #FFFFFF;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease, transform 0.15s ease;
}
.story-modal-close {
    font-size: 20px;
}
.story-modal-close:hover, .story-modal-delete-btn:hover, .story-modal-edit-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}
.story-modal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.story-display-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-view-image, .story-view-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.story-view-text {
    padding: 30px;
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.45;
}
.story-interaction-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 30;
}
.story-emoji-bar {
    display: flex;
    justify-content: space-around;
}
.story-emoji-bar button {
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 20px;
}
.story-reply-form {
    display: flex;
    gap: 8px;
}
.story-reply-form input {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0 14px;
    outline: none;
}
.story-reply-form button {
    background: var(--brand-primary);
    color: #FFFFFF;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0 16px;
    font-weight: 700;
}
.story-nav-tap {
    position: absolute;
    top: 60px;
    bottom: 100px;
    width: 45%;
    z-index: 20;
}
.tap-left { left: 0; }
.tap-right { right: 0; }

/* -------------------------------------------------------------
   7. MOBİL ALT SABİT NAVİGASYON (MOBILE BOTTOM NAV)
------------------------------------------------------------- */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.06);
    z-index: 90;
    align-items: center;
    justify-content: space-around;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}
body.dark-mode .mobile-nav-bar {
    background: #242526;
    border-top-color: #393A3B;
}
.mobile-nav-bar.bar-hidden {
    transform: translateY(100%);
}
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    font-size: 9.5px;
    font-weight: 600;
    gap: 2px;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 2px 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.12s ease;
}
.mobile-nav-link svg {
    flex-shrink: 0;
    transition: transform 0.12s ease;
}
.mobile-nav-link:active svg {
    transform: scale(0.92);
}
.mobile-nav-link.active {
    color: var(--brand-primary);
    font-weight: 750;
}
.mobile-nav-link:hover { text-decoration: none; }
.mobile-nav-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.mobile-nav-icon-wrap .badge {
    position: absolute;
    top: -4px;
    right: -7px;
    background: #E11D48;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
    line-height: 1.1;
}
.mobile-avatar-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 11px;
}
.mobile-avatar-icon img { width: 100%; height: 100%; object-fit: cover; }
.modern-icon-nav .mobile-nav-link {
    font-size: 20px;
    padding: 0;
    gap: 0;
    flex: 1;
}
.modern-icon-nav .mobile-nav-link i {
    font-size: 20px;
    line-height: 1;
}
.modern-icon-nav .mobile-avatar-icon {
    width: 25px;
    height: 25px;
    font-size: 12px;
}
.modern-icon-nav .mobile-badge-dot {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #E11D48;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
}
body.dark-mode .modern-icon-nav .mobile-badge-dot,
html.dark-mode .modern-icon-nav .mobile-badge-dot {
    border-color: #242526;
}

/* -------------------------------------------------------------
   8. RESPONSIVE DÜZENLEME & MOBİL AYARLAR
------------------------------------------------------------- */
/* -------------------------------------------------------------
   8. HİKÂYELER SAYFASI (/stories) ÖZEL STİLLERİ
------------------------------------------------------------- */
.story-create-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 22px;
    margin-bottom: 24px;
}
.story-create-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.story-create-top-bar h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 850;
    color: var(--text-main);
}
.story-creator-panel {
    border-top: 1px solid #F3F4F6;
    padding-top: 20px;
    margin-top: 16px;
}
.story-creator-panel[hidden] {
    display: none !important;
}

/* 1. Aşama: Facebook Tarzı Tür Seçim Kartları */
.story-type-chooser {
    text-align: center;
    margin-bottom: 10px;
}
.chooser-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}
.story-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 580px;
    margin: 0 auto 10px;
}
.story-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 18px;
    border-radius: 18px;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.story-choice-card.choice-media {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.06) 0%, rgba(0, 198, 255, 0.08) 100%), #FFFFFF;
    border-color: rgba(24, 119, 242, 0.22);
}
.story-choice-card.choice-media:hover {
    transform: translateY(-4px);
    border-color: #1877F2;
    box-shadow: 0 10px 28px rgba(24, 119, 242, 0.2);
}
.story-choice-card.choice-media .choice-icon-badge {
    background: linear-gradient(135deg, #1877F2, #00C6FF);
    color: #FFFFFF;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
    transition: transform 0.2s ease;
}
.story-choice-card.choice-text {
    background: linear-gradient(135deg, rgba(255, 81, 47, 0.06) 0%, rgba(221, 36, 118, 0.08) 100%), #FFFFFF;
    border-color: rgba(221, 36, 118, 0.22);
}
.story-choice-card.choice-text:hover {
    transform: translateY(-4px);
    border-color: #DD2476;
    box-shadow: 0 10px 28px rgba(221, 36, 118, 0.2);
}
.story-choice-card.choice-text .choice-icon-badge {
    background: linear-gradient(135deg, #FF512F, #DD2476);
    color: #FFFFFF;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(221, 36, 118, 0.35);
    transition: transform 0.2s ease;
}
.story-choice-card:hover .choice-icon-badge {
    transform: scale(1.08);
}
.story-choice-card .choice-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}
.story-choice-card .choice-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    display: block;
}
.story-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 6px;
    font-size: 12px;
}
.story-quick-link {
    color: var(--brand-primary);
    font-weight: 650;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(139, 0, 15, 0.05);
    transition: background 0.15s ease;
}
.story-quick-link:hover {
    background: rgba(139, 0, 15, 0.12);
    text-decoration: underline;
}
.story-quick-sep {
    color: var(--text-muted);
    opacity: 0.6;
}
@media (max-width: 540px) {
    .story-choice-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .story-choice-card {
        flex-direction: row;
        text-align: left;
        padding: 14px 16px;
        gap: 14px;
        justify-content: flex-start;
    }
    .story-choice-card .choice-icon-badge {
        margin-bottom: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
        flex-shrink: 0;
    }
}

/* 2. Aşama: Seçilen Türün Formu */
.story-form-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.story-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 20px;
    border: 2px dashed #D1D5DB;
    border-radius: 14px;
    background: #FAF9F8;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    margin: 10px 0;
}
.story-dropzone:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
}
.story-dropzone .dropzone-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.story-dropzone .dropzone-text {
    font-size: 14px;
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 4px;
}
.story-preview-box {
    max-width: 320px;
    margin: 0 auto 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    background: #000;
    text-align: center;
}
.story-preview-box img,
.story-preview-box video {
    max-width: 100%;
    max-height: 440px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.story-preview-ctrls {
    padding: 10px 14px;
    background: rgba(18, 18, 18, 0.9);
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Yazı Hikâyesi Canlı Kartı */
.story-text-live-card {
    width: 100%;
    max-width: 380px;
    height: 260px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}
.story-text-live-card textarea {
    width: 100%;
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    resize: none;
    outline: none;
    line-height: 1.4;
}
.story-text-live-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}
.story-color-picker-wrap {
    text-align: center;
    margin: 12px 0 16px;
}
.story-color-picker-wrap label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}
.story-color-palette {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
    justify-content: center;
}
.story-color-palette label { cursor: pointer; margin: 0; }
.story-color-palette input[type="radio"] { display: none; }
.story-color-palette span {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}
.story-color-palette input:checked + span {
    transform: scale(1.18);
    outline: 2px solid var(--brand-primary);
}

.story-visibility-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}
.story-visibility-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    font-size: 13px;
}
.close-friends-manage-link {
    font-size: 12.5px;
    font-weight: 650;
    color: #10B981;
}

/* Aktif Hikâyeler Izgarası */
.story-gallery-section h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 750;
}
.story-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.story-grid-card {
    position: relative;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}
.story-grid-card:hover { transform: translateY(-2px); }
.story-grid-card.close-friend-ring { outline: 3px solid #10B981; }
.story-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-thumb-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.35);
}
.story-thumb-text {
    position: absolute;
    inset: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
}
.story-grid-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    margin: -10px;
    padding: 20px 10px 10px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.story-grid-author {
    font-size: 11.5px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.story-view-cnt { font-size: 10px; opacity: 0.9; }

/* -------------------------------------------------------------
   9. VİDEOLAR / REELS ODAKLI DÜZEN (Tam 3 Sütunlu Sayfa Düzeni Korunur)
------------------------------------------------------------- */
body:has(.reels-feed-container) .site-shell {
    grid-template-columns: 240px minmax(0, 680px) 290px;
}

/* -------------------------------------------------------------
   10. GİRİŞ, KAYIT VE DOĞRULAMA (AUTH PAGES)
------------------------------------------------------------- */
.auth-container {
    max-width: 440px;
    margin: 36px auto;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 850;
    color: var(--brand-primary);
}
.auth-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
    color: var(--text-main);
}
.auth-form input {
    height: 44px;
    border-radius: 10px;
}
.auth-hint {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: -8px;
    line-height: 1.4;
}
.auth-hint code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--brand-dark);
    font-weight: 600;
}
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-wrap input {
    width: 100%;
    padding-right: 75px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    background: transparent;
    border: 0;
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 750;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
}
.password-toggle:hover {
    background: var(--brand-light);
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}
.auth-footer p {
    margin: 6px 0;
}

/* -------------------------------------------------------------
   11. KULLANICI PROFİLİ (/u/{username})
------------------------------------------------------------- */
.profile-header-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 18px;
}
.profile-cover-banner {
    position: relative;
    width: 100%;
    min-height: 180px;
    max-height: 400px;
    background: #0f1117;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-cover-banner:not(.has-custom-cover) {
    height: 220px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
}
.profile-cover-ambient-bg {
    position: absolute;
    inset: -25px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.5);
    opacity: 0.88;
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
}
.profile-cover-full-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.profile-cover-form {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    margin: 0;
}
.cover-change-btn {
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}
.cover-change-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-1px);
}
.profile-info-block {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    width: max-content;
    margin-top: -60px;
    align-self: flex-start;
}
.profile-avatar-large {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-size: 44px;
    font-weight: 850;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-form {
    margin: 0;
}
.avatar-change-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 10;
}
.avatar-change-btn:hover {
    transform: scale(1.1);
    background: var(--brand-dark);
}
.profile-details {
    margin-top: 14px;
}
.profile-display-name {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-username {
    margin: 3px 0 12px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 550;
}
.profile-stats-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.profile-stats-bar span strong {
    color: var(--text-main);
    font-weight: 800;
    font-size: 14.5px;
}
.profile-bio {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 16px;
    color: var(--text-main);
    word-break: break-word;
}
.profile-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* -------------------------------------------------------------
   12. YORUMLAR VE TEK GÖNDERİ (/post/{id})
------------------------------------------------------------- */
.comments-section {
    margin-top: 16px;
    padding: 20px;
}
.comments-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}
.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-content {
    flex: 1;
    min-width: 0;
}
.comment-bubble {
    background: #F3F4F6;
    padding: 10px 14px;
    border-radius: 14px;
    display: inline-block;
    max-width: 100%;
}
.comment-author {
    display: block;
    font-weight: 750;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 2px;
}
.comment-author:hover {
    text-decoration: underline;
}
.comment-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.45;
    word-break: break-word;
}
.comment-content small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.post-add-comment-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post-add-comment-box textarea {
    border-radius: 12px;
    padding: 12px;
    resize: vertical;
    min-height: 70px;
    font-size: 13.5px;
}
.post-add-comment-box button {
    align-self: flex-end;
}

/* -------------------------------------------------------------
   13. MESAJLAŞMA VE ANLIK SOHBET (/messages) - ULTRA-PREMIUM UI
------------------------------------------------------------- */
.chat-container-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    height: calc(100vh - 110px);
    max-height: 820px;
}
.chat-sidebar {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card, 16px);
}
.chat-sidebar-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-head-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-head-title-wrap h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.3px;
}
.chat-total-badge {
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}
body.dark-mode .chat-total-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}
.chat-sidebar-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main);
    display: grid;
    place-items: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, color 0.15s;
}
.chat-sidebar-action-btn:hover {
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    transform: scale(1.05);
}
body.dark-mode .chat-sidebar-action-btn {
    background: #2D3035 !important;
    color: #E4E6EB !important;
    border: 1px solid #3A3B3C !important;
}
body.dark-mode .chat-sidebar-action-btn:hover {
    background: #3A3B3C !important;
    color: #FFFFFF !important;
    border-color: #4E4F50 !important;
}

/* Sohbet Arama Çubuğu */
.chat-search-wrap {
    padding: 10px 14px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.chat-search-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted, #9CA3AF);
    pointer-events: none;
}
.chat-search-wrap input {
    width: 100%;
    background: var(--bg-hover, #F3F4F6) !important;
    border: 1px solid transparent !important;
    border-radius: 20px !important;
    padding: 8px 14px 8px 36px !important;
    font-size: 13px !important;
    color: var(--text-main) !important;
    outline: none !important;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.chat-search-wrap input:focus {
    background: var(--bg-card, #FFFFFF) !important;
    border-color: var(--brand-primary, #8B000F) !important;
    box-shadow: 0 0 0 2px rgba(139, 0, 15, 0.12);
}
body.dark-mode .chat-search-wrap input {
    background: #2A2B2D !important;
}

/* Aktif Arkadaşlar / Hızlı Mesaj Barı */
.chat-active-bar {
    padding: 10px 12px 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card, #FFFFFF);
}
.chat-active-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.chat-active-scroll::-webkit-scrollbar { display: none; }
.chat-active-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
    width: 54px;
    transition: transform 0.15s;
}
.chat-active-user-item:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.chat-active-av-wrap {
    position: relative;
    width: 44px;
    height: 44px;
}
.chat-active-av-wrap .chat-thread-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid var(--brand-primary, #8B000F);
    padding: 1px;
}
.chat-active-name {
    font-size: 11px;
    font-weight: 600;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Sohbet Satırları Listesi */
.chat-threads-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.chat-threads-empty {
    padding: 36px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.chat-threads-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 12px;
}
.chat-threads-empty h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 750;
}
.chat-threads-empty p {
    margin: 0;
    font-size: 12.5px;
}

.chat-thread-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #F3F4F6);
    transition: background 0.12s ease;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
}
.chat-thread-item:hover {
    background: var(--bg-hover, #F9FAFB);
    text-decoration: none;
}
.chat-thread-item.active {
    background: rgba(139, 0, 15, 0.06);
    border-left: 3.5px solid var(--brand-primary, #8B000F);
}
body.dark-mode .chat-thread-item.active {
    background: rgba(239, 68, 68, 0.12);
    border-left-color: #EF4444;
}
.chat-thread-av-wrap {
    position: relative;
    flex-shrink: 0;
}
.chat-thread-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.chat-thread-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
.chat-online-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid var(--bg-card, #FFFFFF);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
body.dark-mode .chat-online-dot {
    border-color: #242526;
}

.chat-thread-meta {
    flex: 1;
    min-width: 0;
}
.chat-thread-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}
.chat-thread-name {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-thread-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    margin-left: 6px;
}
.chat-thread-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.chat-thread-snippet {
    font-size: 12.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}
.chat-thread-item.has-unread .chat-thread-snippet {
    font-weight: 700;
    color: var(--text-main);
}
.snippet-mine-prefix {
    color: var(--text-muted);
    font-weight: 600;
}
.chat-unread-badge {
    background: #E11D48;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(225, 29, 72, 0.4);
}

/* Sağ Alan: Aktif Sohbet Penceresi */
.chat-window {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card, 16px);
}
.chat-window-head {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card, #FFFFFF);
    flex-shrink: 0;
}
.chat-peer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.chat-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.chat-back-btn:hover {
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    text-decoration: none;
}
body.dark-mode .chat-back-btn {
    background: #2D3035 !important;
    color: #E4E6EB !important;
    border: 1px solid #3A3B3C !important;
}
body.dark-mode .chat-back-btn:hover {
    background: #3A3B3C !important;
    color: #FFFFFF !important;
    border-color: #4E4F50 !important;
}
.chat-peer-av-wrap {
    position: relative;
    flex-shrink: 0;
}
.chat-peer-text-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chat-peer-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-peer-name-row strong {
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-peer-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    margin-top: 1px;
}
.status-online {
    color: #10B981;
    font-weight: 700;
}
.status-offline {
    color: var(--text-muted);
}
.chat-typing-pill {
    color: #10B981;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.typing-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.typing-wave span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #10B981;
    animation: typingJump 1.2s infinite ease-in-out;
}
.typing-wave span:nth-child(2) { animation-delay: 0.2s; }
.typing-wave span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingJump {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}
.chat-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.chat-head-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main);
    display: grid;
    place-items: center;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.chat-head-action-btn:hover {
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    text-decoration: none;
}
body.dark-mode .chat-head-action-btn {
    background: #2D3035 !important;
    color: #E4E6EB !important;
    border: 1px solid #3A3B3C !important;
}
body.dark-mode .chat-head-action-btn:hover {
    background: #3A3B3C !important;
    color: #FFFFFF !important;
    border-color: #4E4F50 !important;
}

/* Mesajlar Listesi Gövdesi */
.chat-messages-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.dark-mode .chat-messages-body {
    background: #18191A;
}
.chat-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
}
.chat-loading-spinner {
    font-size: 22px;
    color: var(--brand-primary, #8B000F);
}
.chat-conversation-start-badge {
    align-self: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 16px 0;
}

/* Telegram / WhatsApp Tarzı Mesaj Baloncukları */
.tk-chat-bubble {
    position: relative;
    max-width: 76%;
    padding: 9px 14px 7px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    animation: bubblePop 0.14s ease-out;
}
@keyframes bubblePop {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tk-chat-bubble.tk-mine {
    margin-left: auto;
    background: linear-gradient(135deg, #8B000F 0%, #A81324 100%);
    color: #FFFFFF;
    border-radius: 18px 18px 4px 18px;
}
.tk-chat-bubble.tk-peer {
    margin-right: auto;
    background: #FFFFFF;
    color: var(--text-main, #1F2937);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px 18px 18px 4px;
}
body.dark-mode .tk-chat-bubble.tk-peer {
    background: #242526;
    color: #E4E6EB;
    border-color: #3E4042;
}

.tk-bubble-text {
    margin: 0;
    white-space: pre-wrap;
}
.tk-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.82;
}
.tk-bubble-time {
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.tk-check {
    font-size: 10px;
    line-height: 1;
}
.tk-check.double-read {
    color: #93C5FD;
}

/* Balon İçi Fotoğraf Eki */
.tk-chat-photo-wrap {
    display: block;
    margin: 2px 0 6px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 280px;
}
.tk-chat-photo-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tk-chat-photo-img:hover {
    transform: scale(1.02);
}

/* WhatsApp / Telegram Tarzı Özel Sesli Mesaj Oynatıcı */
.tk-voice-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 4px;
    min-width: 210px;
    user-select: none;
    -webkit-user-select: none;
}
.tk-voice-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}
.tk-peer .tk-voice-play-btn {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
}
.tk-voice-play-btn:hover {
    transform: scale(1.08);
}
.tk-voice-waves {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 24px;
    flex: 1;
}
.tk-voice-waves span {
    width: 3px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.65;
    transition: height 0.15s ease, opacity 0.15s ease;
}
.tk-voice-player.is-playing .tk-voice-waves span {
    animation: wavePulse 0.7s infinite alternate ease-in-out;
    opacity: 0.95;
}
.tk-voice-player.is-playing .tk-voice-waves span:nth-child(2) { animation-delay: 0.1s; }
.tk-voice-player.is-playing .tk-voice-waves span:nth-child(3) { animation-delay: 0.25s; }
.tk-voice-player.is-playing .tk-voice-waves span:nth-child(4) { animation-delay: 0.15s; }
.tk-voice-player.is-playing .tk-voice-waves span:nth-child(5) { animation-delay: 0.3s; }
.tk-voice-player.is-playing .tk-voice-waves span:nth-child(6) { animation-delay: 0.05s; }
@keyframes wavePulse {
    from { transform: scaleY(0.4); }
    to { transform: scaleY(1.3); }
}
.tk-voice-time {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Mesaja Tepki Butonu (Hover/Tap) */
.chat-msg-react-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card, #FFFFFF);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    opacity: 0;
    transition: opacity 0.15s, transform 0.1s;
}
.tk-mine .chat-msg-react-btn {
    left: -32px;
}
.tk-peer .chat-msg-react-btn {
    right: -32px;
}
.tk-chat-bubble:hover .chat-msg-react-btn {
    opacity: 1;
}

/* Tepki Baloncukları */
.chat-reactions-wrap {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.chat-reaction-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #1F2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.1s;
}
.chat-reaction-pill:hover {
    transform: scale(1.1);
}
body.dark-mode .chat-reaction-pill {
    background: #242526;
    border-color: #3E4042;
    color: #E4E6EB;
}

/* Mesaj Giriş Barı (Telegram / WhatsApp Tarzı Ultra Geniş Kapsül) */
.chat-input-bar {
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card, #FFFFFF);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}
.chat-bar-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s, transform 0.1s;
    margin: 0 0 2px 0;
}
.chat-bar-tool-btn:hover {
    color: var(--brand-primary, #8B000F);
    background: var(--bg-hover, #F3F4F6);
}
.chat-bar-tool-btn:active {
    transform: scale(0.92);
}

/* Kapsül İçi Emoji Butonu & Popover */
.chat-emoji-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.chat-capsule-emoji-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.12s;
    padding: 0;
    margin: 0;
}
.chat-capsule-emoji-btn:hover {
    color: #F59E0B;
    transform: scale(1.18);
}
.chat-capsule-emoji-btn:active {
    transform: scale(0.92);
}
.chat-quick-emojis-pop {
    position: absolute;
    bottom: calc(100% + 12px);
    left: -4px;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 6px 10px;
    display: flex;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    animation: popInAnim 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-quick-emojis-pop[hidden] {
    display: none !important;
}
.chat-quick-emojis-pop button {
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    transition: transform 0.12s;
}
.chat-quick-emojis-pop button:hover {
    transform: scale(1.3);
}

/* Kapsül Textarea Alanı (Ultra Geniş & Ergonomik) */
.chat-textarea-box {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: var(--bg-hover, #F3F4F6);
    border: 1.5px solid transparent;
    border-radius: 24px;
    padding: 3px 12px 3px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.chat-textarea-box:focus-within {
    background: var(--bg-card, #FFFFFF);
    border-color: var(--brand-primary, #8B000F);
    box-shadow: 0 0 0 2px rgba(139, 0, 15, 0.12);
}
body.dark-mode .chat-textarea-box {
    background: #242526;
}
.chat-textarea-box textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    resize: none !important;
    padding: 7px 4px !important;
    font-size: 15px !important;
    line-height: 20px !important;
    max-height: 120px !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Yüzen Fotoğraf Önizleme Çipi */
.chat-preview-chip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 14px;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    z-index: 50;
    animation: popInAnim 0.15s ease-out;
}
.chat-preview-chip[hidden] {
    display: none !important;
}
.chat-preview-chip img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.chat-preview-chip button {
    background: #EF4444;
    color: #FFFFFF;
    border: 0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: transform 0.1s;
}
.chat-preview-chip button:hover {
    transform: scale(1.15);
}

/* Dinamik Aksiyon Butonu (Mikrofon & Gönder) */
.chat-submit-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--brand-primary, #8B000F) 0%, #A81324 100%);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    margin-bottom: 2px;
}
.chat-submit-circle-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(139, 0, 15, 0.5);
}
.chat-submit-circle-btn:active {
    transform: scale(0.92);
}
.chat-submit-circle-btn.is-send {
    background: linear-gradient(135deg, var(--brand-primary, #8B000F) 0%, #C01427 100%);
    box-shadow: 0 2px 10px rgba(139, 0, 15, 0.45);
}

/* Canlı Ses Kaydı Çubuğu */
.chat-recording-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 24px;
    padding: 6px 14px;
}
body.dark-mode .chat-recording-bar {
    background: #2D1014;
    border-color: #6C1F26;
}
.rec-live-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EF4444;
    animation: recDotBlink 1s infinite alternate;
}
@keyframes recDotBlink {
    from { opacity: 0.3; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1.15); }
}
.rec-timer {
    font-size: 13px;
    font-weight: 800;
    color: #991B1B;
    font-variant-numeric: tabular-nums;
}
body.dark-mode .rec-timer { color: #F87171; }
.rec-wave-anim {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}
.rec-wave-anim span {
    width: 2.5px;
    height: 100%;
    border-radius: 2px;
    background: #DC2626;
    animation: wavePulse 0.5s infinite alternate ease-in-out;
}
.rec-wave-anim span:nth-child(2) { animation-delay: 0.1s; }
.rec-wave-anim span:nth-child(3) { animation-delay: 0.25s; }
.rec-wave-anim span:nth-child(4) { animation-delay: 0.15s; }
.rec-wave-anim span:nth-child(5) { animation-delay: 0.3s; }
.rec-wave-anim span:nth-child(6) { animation-delay: 0.05s; }
.rec-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rec-btn-cancel {
    background: #F3F4F6;
    border: 0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #4B5563;
    cursor: pointer;
    font-size: 12px;
}
.rec-btn-send {
    background: #8B000F;
    border: 0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 12px;
}

/* Boş Durum (Placeholder) */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;
}
.chat-empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    display: grid;
    place-items: center;
    font-size: 32px;
    margin-bottom: 16px;
}
.chat-empty-state h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}
.chat-empty-state p {
    margin: 0 0 16px;
    max-width: 320px;
    font-size: 13.5px;
    line-height: 1.45;
}

/* Yeni Sohbet Modalı (Modal Dialog / Bottom Sheet) */
.chat-new-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.chat-new-modal-backdrop[hidden] {
    display: none !important;
}
.chat-new-modal-dialog {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.chat-new-modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-new-modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
}
.chat-new-modal-close {
    background: var(--bg-hover, #F3F4F6);
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
}
.chat-new-modal-search {
    padding: 12px 18px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.chat-new-modal-search i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}
.chat-new-modal-search input {
    width: 100%;
    background: var(--bg-hover, #F3F4F6);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 8px 14px 8px 36px;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
}
.chat-new-modal-search input:focus {
    background: var(--bg-card, #FFFFFF);
    border-color: var(--brand-primary, #8B000F);
}
.chat-new-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.chat-new-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.12s;
}
.chat-new-user-row:hover {
    background: var(--bg-hover, #F9FAFB);
    text-decoration: none;
}
.chat-new-user-meta {
    flex: 1;
    min-width: 0;
}
.chat-new-user-meta strong {
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-new-user-meta small {
    display: block;
    font-size: 12px;
}
.chat-new-send-pill {
    font-size: 11.5px;
    font-weight: 700;
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}


/* -------------------------------------------------------------
   14. BİLDİRİMLER (/notifications)
------------------------------------------------------------- */
.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.notifications-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
}
.notifications-title p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}
.notification-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: background 0.15s;
}
.notification-card.is-unread {
    background: #FFF8F8;
    border-left: 3.5px solid var(--brand-primary);
}
.notif-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
    flex-shrink: 0;
}
.notif-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-content p {
    margin: 0 0 2px;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.4;
}
.notif-content small {
    font-size: 11px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   15. KEŞFET VE ARAMA (/explore)
------------------------------------------------------------- */
.explore-search-card {
    padding: 20px;
    margin-bottom: 18px;
}
.explore-search-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 850;
}
.explore-search-form {
    display: flex;
    gap: 10px;
}
.explore-search-form input {
    flex: 1;
    height: 44px;
    border-radius: var(--radius-pill);
    padding: 0 18px;
    font-size: 14px;
}
.explore-search-form button {
    border-radius: var(--radius-pill);
    padding: 0 24px;
}
.section-title {
    margin: 20px 0 10px;
}
.section-title h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

/* -------------------------------------------------------------
   16. ARKADAŞLAR VE TOPLULUKLAR (/friends, /communities)
------------------------------------------------------------- */
.person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.person-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 17px;
    overflow: hidden;
    flex-shrink: 0;
}
.person-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.person-card-info {
    flex: 1;
    min-width: 0;
}
.person-card-info a {
    color: var(--text-main);
    font-size: 14px;
    display: block;
}
.person-card-info small {
    font-size: 12px;
    color: var(--text-muted);
}
.person-card-bio {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.35;
}
.person-card-actions {
    flex-shrink: 0;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.comm-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.comm-card-info {
    flex: 1;
    min-width: 0;
}
.comm-card-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}
.comm-card-info p {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.comm-card-info small {
    font-size: 12px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   17. PROFİL VE GİZLİLİK AYARLARI (/settings, /privacy-settings, /close-friends)
------------------------------------------------------------- */
.settings-card {
    padding: 24px;
    margin-bottom: 18px;
}
.settings-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 850;
    color: var(--text-main);
}
.settings-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}
.settings-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 22px;
    overflow-x: auto;
}
.settings-tabs a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 650;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.settings-tabs a:hover {
    background: #F3F4F6;
    color: var(--text-main);
}
.settings-tabs a.active {
    background: var(--brand-light);
    color: var(--brand-primary);
    font-weight: 750;
}
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 580px;
}
.settings-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
    color: var(--text-main);
}
.settings-form input,
.settings-form textarea,
.settings-form select {
    border-radius: 10px;
    font-size: 13.5px;
}
.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-label span {
    font-size: 13px;
    font-weight: 550;
    color: var(--text-main);
}
.tk-friend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}
.tk-friend-row:last-child {
    border-bottom: 0;
}
.tk-friend-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------
   18. RESPONSIVE DÜZENLEME & MOBİL AYARLAR
------------------------------------------------------------- */
@media (max-width: 1180px) {
    .site-shell {
        grid-template-columns: 220px minmax(0, 680px);
    }
    .right-sidebar { display: none; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    .site-shell {
        display: block !important;
        padding: 0 0 calc(70px + env(safe-area-inset-bottom)) !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .left-sidebar, .right-sidebar { display: none !important; }
    
    /* Mobil Alt Bar Menüsü Aktif (Geri Getirildi) */
    .mobile-nav-bar { display: flex !important; }
    .fb-mobile-tabs-row { display: none !important; }
    .fb-mobile-brand-title { display: inline-block !important; color: #8B000F !important; }
    .fb-logo-circle { display: flex !important; }
    .search-form { display: none !important; }
    .mobile-search-btn { display: grid !important; }
    .mobile-menu-btn { display: grid !important; }
    .desktop-only-action { display: none !important; }
    .top-bar-actions .top-icon-btn[href*="stories"],
    .top-bar-actions .desktop-only-btn,
    .top-bar-actions .top-notif-btn,
    .user-pill { display: none !important; }

    /* Mobil Kapsül Görünümü (Görsel 1 ile Birebir) */
    .desktop-placeholder { display: none !important; }
    .mobile-placeholder { display: inline !important; }
    .desktop-capsule-icons { display: none !important; }
    .fb-mobile-photo-btn { display: flex !important; }
    .fb-stories-scroll-btn { display: none !important; }

    .top-bar {
        height: auto !important;
        padding: 0 !important;
    }
    .top-bar-inner {
        height: 52px !important;
        padding: 0 14px !important;
        gap: 8px !important;
    }
    .top-bar-actions {
        gap: 6px !important;
    }
    .top-icon-btn, .mobile-icon-btn {
        width: 36px !important;
        height: 36px !important;
    }

    /* Kartlar & Boşluklar */
    .card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        margin-bottom: 8px !important;
        box-shadow: none !important;
        padding: 12px 14px !important;
    }
    .composer-card {
        margin-bottom: 6px !important;
    }
    .feed-post-card {
        margin-bottom: 8px !important;
        border-top: 1px solid var(--border-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    /* Facebook Mobil Hikâyeler Boyutlandırması (Görsel 1) */
    .fb-stories-container {
        padding: 8px 10px 10px !important;
        margin-bottom: 6px !important;
        gap: 8px !important;
    }
    .fb-story-create-card,
    .fb-story-item-card {
        width: 105px !important;
        height: 175px !important;
    }
    .fb-story-create-cover {
        height: 118px !important;
    }
    .fb-story-create-footer {
        height: 57px !important;
    }
    .fb-story-create-plus-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
        top: -16px !important;
    }
    .fb-story-author-badge {
        width: 34px !important;
        height: 34px !important;
        border-width: 2.5px !important;
    }
    .fb-story-author-name {
        font-size: 11.5px !important;
    }

    /* Reels Mobil Tam Boyut */
    .reels-feed-container {
        padding: 0 !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .reels-top-banner {
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .reel-item {
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 120px - env(safe-area-inset-bottom)) !important;
        max-height: calc(100vh - 120px - env(safe-area-inset-bottom)) !important;
    }

    /* Hikâyeler Sayfası & Tam Ekran Modal Mobil */
    .story-card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .story-grid-card {
        height: 160px !important;
    }
    .story-viewer-modal {
        background: #000000 !important;
    }
    .story-modal-stage {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }
    .unused-residual-rules {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh;
        /* del */
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        box-shadow: none !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    /* Auth Ekranları Mobil */
    .auth-container {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 24px 16px !important;
        box-shadow: none !important;
        border: 0 !important;
        max-width: 100% !important;
    }

    /* Profil Sayfası Mobil */
    .profile-cover-banner {
        min-height: 140px !important;
        max-height: 260px !important;
        height: auto !important;
    }
    .profile-cover-banner:not(.has-custom-cover) {
        height: 140px !important;
    }
    .profile-cover-full-img {
        max-height: 260px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    .profile-avatar-wrapper {
        margin-top: -43px !important;
    }
    .profile-avatar-large {
        width: 86px !important;
        height: 86px !important;
        font-size: 32px !important;
        margin-top: 0 !important;
    }
    .cover-change-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
    .avatar-change-btn {
        width: 28px !important;
        height: 28px !important;
        bottom: 2px !important;
        right: 2px !important;
    }
    .profile-info-block {
        padding: 0 16px 18px !important;
        margin-top: 0 !important;
    }
    .profile-display-name {
        font-size: 19px !important;
    }
    .profile-stats-bar {
        gap: 16px !important;
        font-size: 12.5px !important;
    }

    /* Facebook Tarzı Hikâye Oluşturma Kartları Mobil */
    .story-choice-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .story-choice-card {
        padding: 14px 16px !important;
        flex-direction: row !important;
        text-align: left !important;
        gap: 14px !important;
        align-items: center !important;
    }
    .story-choice-icon {
        font-size: 26px !important;
    }
    .story-choice-card strong {
        font-size: 14px !important;
    }
    .story-choice-card span {
        font-size: 11.5px !important;
    }

    /* Mesajlar / Sohbet Mobil - Sohbet İçi Tam Ekran & Liste */
    .chat-back-btn {
        display: inline-flex !important;
    }

    body:has(.chat-window-head) .top-bar,
    body.mobile-chat-fullscreen .top-bar,
    body.page-messages-active .top-bar,
    body:has(.chat-window-head) .mobile-nav-bar,
    body.mobile-chat-fullscreen .mobile-nav-bar,
    body.page-messages-active .mobile-nav-bar {
        display: none !important;
    }

    body:has(.chat-window-head) .site-shell,
    body.mobile-chat-fullscreen .site-shell,
    body.page-messages-active .site-shell {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        margin: 0 !important;
        box-shadow: none !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        background: transparent !important;
    }

    .chat-container-layout {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 110px - env(safe-area-inset-bottom)) !important;
        gap: 0 !important;
        margin: 0 -12px !important;
    }

    /* 1. Sohbet Listesi Görünümü (Konuşma Seçilmemişken) */
    .chat-container-layout:not(:has(.chat-window-head)) .chat-window {
        display: none !important;
    }
    .chat-container-layout:not(:has(.chat-window-head)) .chat-sidebar {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 0 !important;
    }

    /* 2. Aktif Konuşma Görünümü (Tam Ekran WhatsApp/Telegram Modu) */
    .chat-container-layout:has(.chat-window-head),
    body.mobile-chat-fullscreen .chat-container-layout,
    body.page-messages-active .chat-container-layout {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh;
        /* del */
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        box-shadow: none !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        background: transparent !important;
        z-index: 9999 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #FFFFFF !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head),
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout {
        background: #18191A !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-sidebar,
    body.mobile-chat-fullscreen .chat-container-layout .chat-sidebar {
        display: none !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-window,
    body.mobile-chat-fullscreen .chat-container-layout .chat-window,
    body.page-messages-active .chat-container-layout .chat-window,
    .chat-container-layout .chat-window.card {
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        box-shadow: none !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        border: 0 !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-window-head,
    body.mobile-chat-fullscreen .chat-container-layout .chat-window-head {
        padding: 10px 14px !important;
        padding-top: max(10px, env(safe-area-inset-top)) !important;
        background: var(--bg-card, #FFFFFF) !important;
        border-bottom: 1px solid var(--border-color) !important;
        flex-shrink: 0 !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head) .chat-window-head,
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout .chat-window-head {
        background: #242526 !important;
        border-bottom-color: #393A3B !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-messages-body,
    body.mobile-chat-fullscreen .chat-container-layout .chat-messages-body {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 10px !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-input-bar,
    body.mobile-chat-fullscreen .chat-container-layout .chat-input-bar {
        padding: 6px 8px max(10px, env(safe-area-inset-bottom)) !important;
        gap: 6px !important;
        background: var(--bg-card, #FFFFFF) !important;
        border-top: 1px solid var(--border-color) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head) .chat-input-bar,
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout .chat-input-bar {
        background: #242526 !important;
        border-top-color: #393A3B !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-textarea-box,
    body.mobile-chat-fullscreen .chat-container-layout .chat-textarea-box {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 2px 8px 2px 4px !important;
        border-radius: 22px !important;
        gap: 4px !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-textarea-box textarea,
    body.mobile-chat-fullscreen .chat-container-layout .chat-textarea-box textarea {
        font-size: 15px !important;
        padding: 6px 2px !important;
        min-height: 24px !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-bar-tool-btn,
    body.mobile-chat-fullscreen .chat-container-layout .chat-bar-tool-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 17px !important;
        margin-bottom: 2px !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-capsule-emoji-btn,
    body.mobile-chat-fullscreen .chat-container-layout .chat-capsule-emoji-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 17px !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-submit-circle-btn,
    body.mobile-chat-fullscreen .chat-container-layout .chat-submit-circle-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
        margin-bottom: 2px !important;
    }

    .chat-new-modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        height: 85vh !important;
        max-height: 85vh !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin-top: auto !important;
        animation: slideUp 0.22s ease-out !important;
    }

    /* Ayarlar & Liste Kartları Mobil */
    .settings-card {
        padding: 16px 14px !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .person-card, .community-card, .notification-card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        margin-bottom: 4px !important;
    }
}

/* -------------------------------------------------------------
   19. YENİ GELİŞMİŞ ÖZELLİKLER: LİNKLER, MENTIONS, HASHTAGS
------------------------------------------------------------- */
.tk-mention {
    color: var(--brand-primary) !important;
    font-weight: 750;
    text-decoration: none;
    border-radius: 4px;
    padding: 0 2px;
    transition: background 0.12s;
}
.tk-mention:hover {
    background: var(--brand-light);
    text-decoration: underline;
}
.tk-hashtag {
    color: #0284C7 !important;
    font-weight: 700;
    text-decoration: none;
}
.tk-hashtag:hover {
    text-decoration: underline;
}
.tk-link {
    color: #2563EB !important;
    text-decoration: underline;
    word-break: break-all;
}

/* Çevrimiçi Yeşil Canlılık Noktası */
.online-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
    margin-left: 4px;
    vertical-align: middle;
}

/* -------------------------------------------------------------
   20. SOHBETTE FOTOĞRAF GÖNDERME & ÖNİZLEME
------------------------------------------------------------- */
.chat-file-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #4B5563;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin: 0;
}
.chat-file-btn:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
}
.chat-preview-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F3F4F6;
    padding: 4px 8px;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--border-color);
}
.chat-preview-chip[hidden] {
    display: none !important;
}
.chat-preview-chip img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.chat-preview-chip button {
    background: #DC2626;
    color: #FFF;
    border: 0;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.chat-photo-wrap {
    margin: 6px 0 4px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 260px;
}
.chat-photo-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.chat-photo-img:hover {
    transform: scale(1.02);
}

/* -------------------------------------------------------------
   21. HİKÂYE GÖRÜNTÜLEYENLER LİSTESİ (STORY VIEWERS SHEET)
------------------------------------------------------------- */
.story-viewers-trigger-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: background 0.15s;
    align-self: center;
}
.story-viewers-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}
.story-viewers-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    max-height: 450px;
    background: #FFFFFF;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    z-index: 50;
    animation: slideUp 0.22s ease-out;
}
.story-viewers-sheet[hidden] {
    display: none !important;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.viewers-sheet-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.viewers-sheet-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}
.viewers-sheet-close {
    background: #F3F4F6;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--text-main);
}
.viewers-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.viewer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    transition: background 0.12s;
    text-decoration: none;
    color: var(--text-main);
}
.viewer-row:hover {
    background: #F9FAFB;
    text-decoration: none;
}
.viewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.viewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.viewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.viewer-time {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   22. CANLI ARAMA ÖNERİLERİ (HEADER LIVE SEARCH)
------------------------------------------------------------- */
.search-form {
    position: relative;
}
.search-suggest-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 360px;
    overflow-y: auto;
    z-index: 100;
    padding: 6px 0;
}
.search-suggest-box[hidden] {
    display: none !important;
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.12s;
}
.suggest-item:hover {
    background: #F9FAFB;
    text-decoration: none;
}
.suggest-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}
.suggest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.suggest-meta strong { display: block; font-size: 13px; }
.suggest-meta small { display: block; font-size: 11px; color: var(--text-muted); }

/* -------------------------------------------------------------
   ARKADAŞINI DAVET ET (INVITE CARD) BİLEŞENİ
------------------------------------------------------------- */
.tk-invite-rail-card {
    padding: 16px 18px;
    border-radius: var(--radius-card, 16px);
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-card, #EDE8E9);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tk-invite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tk-invite-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tk-invite-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B000F, #EF4444);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.35);
    flex-shrink: 0;
}
.tk-invite-heading {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}
.tk-invite-sub {
    font-size: 11px;
    color: var(--text-muted);
}
.tk-invite-user-badge {
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    border: 1px solid rgba(139, 0, 15, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}
.tk-invite-desc {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.tk-invite-social-btns {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tk-invite-btn-wa {
    flex: 1 1 auto;
    min-width: 105px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: transform 0.12s ease, filter 0.12s ease;
}
.tk-invite-btn-wa:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.tk-invite-btn-fb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1877F2;
    color: #FFFFFF !important;
    display: grid;
    place-items: center;
    text-decoration: none !important;
    font-size: 13px;
    transition: transform 0.12s ease;
}
.tk-invite-btn-fb:hover {
    transform: translateY(-1px);
}
.tk-invite-btn-ig {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #FFFFFF !important;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.12s ease;
}
.tk-invite-btn-ig:hover {
    transform: translateY(-1px);
}
.tk-invite-btn-tt {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #000000;
    color: #25F4EE !important;
    border: 1px solid #222;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.12s ease;
}
.tk-invite-btn-tt:hover {
    transform: translateY(-1px);
}
.tk-invite-btn-x {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #000000;
    color: #FFFFFF !important;
    border: 1px solid #222;
    display: grid;
    place-items: center;
    text-decoration: none !important;
    font-size: 12px;
    transition: transform 0.12s ease;
}
.tk-invite-btn-x:hover {
    transform: translateY(-1px);
}
.tk-invite-btn-tg {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #229ED9;
    color: #FFFFFF !important;
    display: grid;
    place-items: center;
    text-decoration: none !important;
    font-size: 13px;
    transition: transform 0.12s ease;
}
.tk-invite-btn-tg:hover {
    transform: translateY(-1px);
}

.tk-invite-copy-box {
    display: flex;
    gap: 6px;
    align-items: center;
    background: var(--bg-hover, #F8F5F3);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 8px;
    padding: 4px 6px;
}
.tk-invite-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    outline: none !important;
    padding: 3px 6px !important;
}
.tk-invite-copy-action {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    border: 0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, transform 0.12s ease;
}
.tk-invite-copy-action:hover {
    background: var(--brand-dark, #6C1F26);
    transform: scale(1.02);
}
.tk-invite-toast {
    display: none;
    margin-top: 8px;
    font-size: 11.5px;
    color: #10B981;
    font-weight: 600;
    text-align: center;
}

/* -------------------------------------------------------------
   PROFİL DOLULUK & EKSİK TAMAMLAMA KARTI (GAMIFICATION)
------------------------------------------------------------- */
.tk-profile-completion-box {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    transition: all 0.2s ease;
}
.tk-profile-completion-box.is-complete {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.03));
    border: 1px solid #10B981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}
.tk-profile-completion-box.is-incomplete {
    background: linear-gradient(135deg, rgba(139, 0, 15, 0.06), rgba(108, 31, 38, 0.02));
    border: 1px solid rgba(139, 0, 15, 0.22);
    box-shadow: 0 4px 16px rgba(139, 0, 15, 0.05);
}
.tk-comp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tk-comp-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tk-comp-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tk-profile-completion-box.is-complete .tk-comp-badge-icon {
    background: #10B981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.tk-profile-completion-box.is-incomplete .tk-comp-badge-icon {
    background: #8B000F;
    box-shadow: 0 4px 10px rgba(139, 0, 15, 0.25);
}
.tk-comp-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-main);
}
.tk-comp-desc {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}
.tk-comp-score-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tk-comp-tc-badge {
    background: #e6f4ea;
    color: #137333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tk-comp-percent-text {
    font-size: 18px;
    font-weight: 900;
}
.tk-profile-completion-box.is-complete .tk-comp-percent-text {
    color: #10B981;
}
.tk-profile-completion-box.is-incomplete .tk-comp-percent-text {
    color: #8B000F;
}

.tk-comp-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
}
.tk-comp-progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}
.tk-profile-completion-box.is-complete .tk-comp-progress-fill {
    background: linear-gradient(90deg, #10B981, #059669);
}
.tk-profile-completion-box.is-incomplete .tk-comp-progress-fill {
    background: linear-gradient(90deg, #8B000F, #EF4444);
}

.tk-comp-missing-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.tk-comp-missing-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}
.tk-comp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 750;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.25);
    white-space: nowrap;
}
.tk-comp-cta-btn:hover {
    background: var(--brand-dark, #6C1F26);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 15, 0.35);
    color: #FFFFFF !important;
}
.tk-comp-progress-link {
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.tk-comp-progress-link:hover .tk-comp-progress-track {
    filter: brightness(0.96);
}
.tk-comp-chip {
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px dashed rgba(139, 0, 15, 0.35); color: #8B000F; font-size: 11.5px; font-weight: 650; padding: 4px 11px; border-radius: 12px;
}
.tk-comp-chip:hover {
    background: #8B000F !important;
    color: #FFFFFF !important;
    border-style: solid !important;
    border-color: #8B000F !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 0, 15, 0.25);
    text-decoration: none !important;
}
body.dark-mode .tk-comp-chip {
    background: #18191A;
    border-color: rgba(239, 68, 68, 0.4);
    color: #F87171;
}
body.dark-mode .tk-comp-chip:hover {
    background: #8B000F !important;
    color: #FFFFFF !important;
    border-color: #8B000F !important;
}
.tk-comp-chip-legacy {
    color: #8B000F;
    font-size: 11.5px;
    font-weight: 650;
    padding: 3px 10px;
    border-radius: 12px;
}

/* -------------------------------------------------------------
   23. KARANLIK MOD (DARK MODE / GECE TEMASI - PREMIUM & EKSİKSİZ)
------------------------------------------------------------- */
.dark-mode-toggle {
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 0;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 17px;
    transition: transform 0.15s ease, background 0.15s ease;
}
.dark-mode-toggle:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.28) !important;
}
body.dark-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FBBF24 !important;
}

html.dark-mode,
body.dark-mode {
    --brand-primary: #9E1020 !important;
    --brand-dark: #6C1F26 !important;
    --brand-light: #2A0B10 !important;
    --bg-page: #0C0C0F !important;
    --bg-card: #15151A !important;
    --bg-hover: #1A1A22 !important;
    --bg-input: #1E1E25 !important;
    --text-main: #F4F4F6 !important;
    --text-muted: #9CA3AF !important;
    --text: #F4F4F6 !important;
    --primary: #EF4444 !important;
    --border-color: #26262E !important;
    --border-card: #26262E !important;
    --border: #26262E !important;
    --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.7) !important;
    background-color: #0C0C0F !important;
    color: #F4F4F6 !important;
}

body.dark-mode .top-bar {
    background: linear-gradient(100deg, #38070D, #200407) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .mobile-nav-bar {
    background: #131317 !important;
    border-top: 1px solid #24242C !important;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .mobile-nav-link {
    color: #8C8C9A !important;
}
body.dark-mode .mobile-nav-link.active {
    color: #EF4444 !important;
}

body.dark-mode .card,
body.dark-mode .sidebar-menu,
body.dark-mode .sidebar-user-card,
body.dark-mode .auth-container,
body.dark-mode .settings-card,
body.dark-mode .community-card,
body.dark-mode .person-card,
body.dark-mode .notification-card,
body.dark-mode .composer-card,
body.dark-mode .story-create-card {
    background: #15151A !important;
    border-color: #26262E !important;
    color: #F4F4F6 !important;
}

/* Karanlık Mod Form Inputları */
body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode input[type="email"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="number"],
body.dark-mode input[type="url"],
body.dark-mode textarea,
body.dark-mode select {
    background: #1E1E25 !important;
    color: #F4F4F6 !important;
    border-color: #2D2D38 !important;
}
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}
body.dark-mode input[type="file"] {
    color: #D1D5DB !important;
}

/* Karanlık Mod: Davet Kartı Uyumu */
body.dark-mode .tk-invite-rail-card {
    background: linear-gradient(135deg, #181822 0%, #201317 100%) !important;
    border-color: rgba(139, 0, 15, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}
body.dark-mode .tk-invite-heading {
    color: #F4F4F6 !important;
}
body.dark-mode .tk-invite-sub {
    color: #9CA3AF !important;
}
body.dark-mode .tk-invite-desc {
    color: #D1D5DB !important;
}
body.dark-mode .tk-invite-user-badge {
    background: rgba(139, 0, 15, 0.25) !important;
    color: #FCA5A5 !important;
    border-color: rgba(139, 0, 15, 0.45) !important;
}
body.dark-mode .tk-invite-copy-box {
    background: #111116 !important;
    border-color: #2D2D38 !important;
}
body.dark-mode .tk-invite-input {
    color: #F4F4F6 !important;
}
body.dark-mode .tk-invite-copy-action {
    background: #9E1020 !important;
}
body.dark-mode .tk-invite-copy-action:hover {
    background: #6C1F26 !important;
}
body.dark-mode .tk-invite-toast {
    color: #34D399 !important;
}

/* Karanlık Mod: Profil Doluluk Kartı Uyumu */
body.dark-mode .tk-profile-completion-box.is-complete {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(21, 21, 26, 0.95)) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .tk-profile-completion-box.is-incomplete {
    background: linear-gradient(135deg, rgba(139, 0, 15, 0.2), rgba(21, 21, 26, 0.95)) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .tk-comp-title {
    color: #F4F4F6 !important;
}
body.dark-mode .tk-comp-desc {
    color: #9CA3AF !important;
}
body.dark-mode .tk-comp-progress-track {
    background: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .tk-profile-completion-box.is-incomplete .tk-comp-percent-text {
    color: #EF4444 !important;
}
body.dark-mode .tk-comp-tc-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
body.dark-mode .tk-comp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 750;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.25);
    white-space: nowrap;
}
.tk-comp-cta-btn:hover {
    background: var(--brand-dark, #6C1F26);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 15, 0.35);
    color: #FFFFFF !important;
}
.tk-comp-progress-link {
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.tk-comp-progress-link:hover .tk-comp-progress-track {
    filter: brightness(0.96);
}
.tk-comp-chip {
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #1C1C24 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #FCA5A5 !important;
}

/* Karanlık Mod: Ayarlar Sayfası Kutuları */
body.dark-mode .settings-theme-box,
body.dark-mode .settings-verif-box,
body.dark-mode .settings-social-sync-box,
body.dark-mode .settings-data-export-box,
body.dark-mode .settings-push-box,
body.dark-mode .settings-sessions-box {
    background: #1A1A22 !important;
    border-color: #2D2D38 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .settings-form label {
    color: #E5E7EB !important;
}
body.dark-mode .settings-form hr {
    border-top-color: #26262E !important;
}
body.dark-mode .settings-form h4 {
    color: #F4F4F6 !important;
}
body.dark-mode .settings-form small.muted {
    color: #9CA3AF !important;
}
body.dark-mode .settings-logout-card {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

body.dark-mode .composer-fake-input {
    background: #1E1E25 !important;
    border-color: #2D2D38 !important;
    color: #9CA3AF !important;
}
body.dark-mode .composer-action-btn {
    color: #D1D5DB !important;
}
body.dark-mode .composer-action-btn:hover {
    background: #24242E !important;
    color: #FFFFFF !important;
}
body.dark-mode .file-label,
body.dark-mode .btn-light {
    background: #22222B !important;
    border-color: #2D2D38 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .btn-light:hover {
    background: #2B2B36 !important;
}

body.dark-mode .post-poll-card,
body.dark-mode .composer-poll-box {
    background: #1C1C23 !important;
    border-color: #2A2A34 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .poll-option-btn {
    background: #23232C !important;
    border-color: #2D2D38 !important;
    color: #F4F4F6 !important;
}

body.dark-mode .post-menu-dropdown,
body.dark-mode .new-chat-dropdown form,
body.dark-mode .search-suggest-box,
body.dark-mode .story-viewers-sheet {
    background: #1B1B22 !important;
    border-color: #2D2D38 !important;
    color: #F4F4F6 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65) !important;
}
body.dark-mode .post-menu-item {
    color: #F4F4F6 !important;
}
body.dark-mode .post-menu-item:hover,
body.dark-mode .post-options-btn:hover,
body.dark-mode .suggest-item:hover,
body.dark-mode .viewer-row:hover {
    background: #262631 !important;
}
body.dark-mode .suggest-meta strong {
    color: #F4F4F6 !important;
}

body.dark-mode .chat-sidebar {
    background: #15151A !important;
    border-color: #26262E !important;
}
body.dark-mode .chat-thread-item {
    background: #15151A !important;
    border-color: #202026 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .chat-thread-item:hover,
body.dark-mode .chat-thread-item.active {
    background: #22222A !important;
}
body.dark-mode .chat-window-head {
    background: #15151A !important;
    border-color: #26262E !important;
}
body.dark-mode .chat-messages-body {
    background: #0E0E12 !important;
}
body.dark-mode .chat-peer {
    background: #1F1F27 !important;
    color: #F4F4F6 !important;
    border: 1px solid #2B2B36 !important;
}
body.dark-mode .chat-input-bar {
    background: #15151A !important;
    border-color: #26262E !important;
}
body.dark-mode .chat-file-btn {
    background: #24242D !important;
    color: #D1D5DB !important;
}
body.dark-mode .chat-preview-chip {
    background: #22222B !important;
    border-color: #2D2D38 !important;
}
body.dark-mode .chat-back-btn {
    background: #22222B !important;
    color: #F4F4F6 !important;
    border-color: #2D2D38 !important;
}

body.dark-mode .stories-feed-bar {
    background: transparent !important;
    border-color: #26262E !important;
}
body.dark-mode .story-add-card {
    background: #1A1A21 !important;
    border-color: #2A2A34 !important;
}
body.dark-mode .story-add-action {
    background: #15151A !important;
    color: #F4F4F6 !important;
}
body.dark-mode .story-choice-card {
    background: #1A1A21 !important;
    border-color: #2A2A34 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .story-dropzone {
    background: #181820 !important;
    border-color: #2A2A34 !important;
    color: #D1D5DB !important;
}

body.dark-mode .nav-item {
    color: #D1D5DB !important;
}
body.dark-mode .nav-item:hover {
    background: #271216 !important;
    color: #EF4444 !important;
}
body.dark-mode .nav-item.active {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
}
body.dark-mode .tk-person-row,
body.dark-mode .tk-comm-row,
body.dark-mode .tk-friend-row {
    border-color: #202026 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .tk-person-meta a,
body.dark-mode .tk-comm-row,
body.dark-mode .post-author-name,
body.dark-mode .profile-display-name {
    color: #F4F4F6 !important;
}

body.dark-mode .comment-bubble {
    background: #1F1F27 !important;
    color: #F4F4F6 !important;
    border: 1px solid #2B2B36 !important;
}
body.dark-mode .comment-author {
    color: #F4F4F6 !important;
}
body.dark-mode .comment-input-row textarea {
    background: #1E1E25 !important;
}

body.dark-mode .profile-avatar-large {
    border-color: #15151A !important;
    background: #22222A !important;
    color: #EF4444 !important;
}
body.dark-mode .online-dot {
    border-color: #15151A !important;
}

body.dark-mode .settings-tabs a {
    background: #1D1D24 !important;
    color: #9CA3AF !important;
}
body.dark-mode .settings-tabs a.active {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
}

body.dark-mode .empty-state h1,
body.dark-mode .empty-state h2,
body.dark-mode .empty-state h3 {
    color: #F4F4F6 !important;
}
body.dark-mode .flash-ok {
    background: #064E3B !important;
    color: #A7F3D0 !important;
    border-color: #047857 !important;
}
body.dark-mode .flash-error {
    background: #4C0519 !important;
    color: #FECDD3 !important;
    border-color: #9F1239 !important;
}

body.dark-mode .stories-feed-bar {
    background: #15151A !important;
    border-color: #26262E !important;
}
body.dark-mode .chat-window-head,
body.dark-mode .chat-sidebar-head,
body.dark-mode .chat-input-bar {
    background: #15151A !important;
    border-color: #26262E !important;
}
body.dark-mode .chat-messages-body {
    background: #0E0E12 !important;
}
body.dark-mode .chat-thread-item {
    border-color: #1F1F26 !important;
    color: #F4F4F6 !important;
}
body.dark-mode .chat-thread-item:hover {
    background: #1C1C24 !important;
}
body.dark-mode .chat-thread-item.active {
    background: #250C11 !important;
    border-left-color: var(--brand-primary) !important;
}
body.dark-mode .chat-peer {
    background: #1D1D25 !important;
    color: #F4F4F6 !important;
    border-color: #2A2A35 !important;
}
body.dark-mode .chat-mine {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
}
body.dark-mode .chat-back-btn {
    background: #22222B !important;
    color: #F4F4F6 !important;
}
body.dark-mode .chat-container-layout:has(.chat-window-head),
body.dark-mode.mobile-chat-fullscreen .chat-container-layout {
    background: #15151A !important;
}
body.dark-mode .profile-header-card {
    background: #15151A !important;
    border-color: #26262E !important;
}
body.dark-mode .cover-change-btn {
    background: rgba(21, 21, 26, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #F4F4F6 !important;
}
body.dark-mode .cover-change-btn:hover {
    background: rgba(21, 21, 26, 0.95) !important;
}
body.dark-mode .table,
body.dark-mode table {
    color: #F4F4F6 !important;
}
body.dark-mode table th,
body.dark-mode table td {
    border-color: #26262E !important;
}

/* -------------------------------------------------------------
   24. TAM EKRAN FOTOĞRAF BÜYÜTECİ (LIGHTBOX MODAL)
------------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 5, 8, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    animation: tkFadeIn 0.2s ease-out;
}
.lightbox-modal[hidden] {
    display: none !important;
}
@keyframes tkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lightbox-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    user-select: none;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    max-height: 82dvh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.85);
    transition: transform 0.2s ease;
}

/* Üst Transparan Kontrol Başlığı */
.lightbox-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(16px, env(safe-area-inset-top)) 20px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
.lightbox-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}
.lightbox-author-avatar-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 50%;
}
.lightbox-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B000F;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.lightbox-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.lightbox-author-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lightbox-author-name {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: color 0.15s;
}
.lightbox-author-name:hover {
    color: #FCA5A5;
}
.lightbox-counter-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.lightbox-close-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 26px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

/* Navigasyon Okları */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 32px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10015;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}
.lightbox-prev-btn { left: 20px; }
.lightbox-next-btn { right: 20px; }

/* Alt Şeffaf Etkileşim Barı */
.lightbox-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 20px max(20px, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
.lightbox-caption {
    color: #F1F5F9;
    font-size: 14px;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    max-width: 720px;
    text-align: center;
    max-height: 70px;
    overflow-y: auto;
    pointer-events: auto;
    padding: 0 12px;
}
.lightbox-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: auto;
    flex-wrap: wrap;
}
.lightbox-action-btn {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    user-select: none;
}
.lightbox-action-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    transform: translateY(-2px);
}
.lightbox-action-btn:active {
    transform: scale(0.96);
}
.lightbox-action-btn.is-liked {
    background: rgba(225, 29, 72, 0.35);
    border-color: rgba(244, 63, 94, 0.6);
    color: #FDA4AF;
}
.lightbox-action-btn.is-liked i {
    color: #F43F5E;
}
.lightbox-counter {
    display: none;
}
.post-media-img {
    cursor: zoom-in;
}

/* Mobilde Tam Ekran Şeffaf Lightbox */
@media (max-width: 768px) {
    .lightbox-modal {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        background: #000000;
        overflow: hidden;
    }
    .lightbox-image-wrap {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        padding: 0;
        margin: 0;
    }
    .lightbox-img {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        object-fit: contain;
    }
    .lightbox-top-bar {
        padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    }
    .lightbox-author-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .lightbox-author-name {
        font-size: 13.5px;
    }
    .lightbox-close-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 26px;
        background: rgba(0, 0, 0, 0.35);
    }
    .lightbox-prev-btn { left: 8px; }
    .lightbox-next-btn { right: 8px; }
    .lightbox-bottom-bar {
        padding: 10px 12px max(14px, env(safe-area-inset-bottom));
        gap: 8px;
    }
    .lightbox-caption {
        font-size: 13px;
        max-height: 52px;
        padding: 0 6px;
    }
    .lightbox-actions-row {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .lightbox-action-btn {
        padding: 7px 14px;
        font-size: 12.5px;
        gap: 6px;
        flex-shrink: 0;
    }
}

/* -------------------------------------------------------------
   25. ÇİFT DOKUNUŞLA BEĞENME (DOUBLE-TAP TO LIKE) ANİMASYONU
------------------------------------------------------------- */
.double-tap-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    font-size: 72px;
    color: #E11D48;
    pointer-events: none;
    z-index: 30;
    animation: tkHeartPop 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}
@keyframes tkHeartPop {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
    40% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

/* -------------------------------------------------------------
   26. SOHBETTE SESLİ MESAJ / SES KAYDI (VOICE NOTES)
------------------------------------------------------------- */
.chat-mic-btn {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}
.chat-mic-btn:hover {
    color: var(--brand-primary);
    background: #FEE2E2;
}
body.dark-mode .chat-mic-btn:hover {
    background: #2A0E13;
    color: #EF4444;
}
.chat-recording-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 24px;
    padding: 6px 14px;
}
body.dark-mode .chat-recording-bar {
    background: #250C10;
    border-color: #6C1F26;
}
.rec-dot {
    font-size: 11px;
    animation: tkBlink 1s infinite;
}
@keyframes tkBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
.rec-timer {
    font-size: 13px;
    font-weight: 800;
    color: #991B1B;
    font-variant-numeric: tabular-nums;
}
body.dark-mode .rec-timer {
    color: #F87171;
}
.rec-label {
    font-size: 12px;
    color: #7F1D1D;
    flex: 1;
}
body.dark-mode .rec-label {
    color: #D1D5DB;
}
.rec-btn-cancel {
    background: #F3F4F6;
    border: 0;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #4B5563;
    cursor: pointer;
}
.rec-btn-send {
    background: #8B000F;
    border: 0;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
}
.chat-audio-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F3F4F6;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 12px;
}
body.dark-mode .chat-audio-chip {
    background: #202028;
    border-color: #2D2D38;
    color: #F4F4F6;
}
.chat-audio-player {
    max-width: 240px;
    height: 38px;
    border-radius: 20px;
    outline: none;
    margin-top: 4px;
}

/* -------------------------------------------------------------
   27. İSKELET YÜKLEYİCİLER (SKELETON SHIMMER LOADERS)
------------------------------------------------------------- */
.skeleton-shimmer {
    background: linear-gradient(90deg, #F0F0F2 25%, #E4E4E7 37%, #F0F0F2 63%);
    background-size: 400% 100%;
    animation: tkShimmer 1.4s ease infinite;
    border-radius: 10px;
}
body.dark-mode .skeleton-shimmer {
    background: linear-gradient(90deg, #181820 25%, #262633 37%, #181820 63%);
    background-size: 400% 100%;
}
@keyframes tkShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* -------------------------------------------------------------
   28. MOBİL ÇEKEREK YENİLEME (PULL TO REFRESH) & MAVİ TİK
------------------------------------------------------------- */
#tk-ptr-indicator {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translate3d(-50%, -70px, 0);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #8B000F;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 15, 0.15);
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease;
    opacity: 0;
}
body.dark-mode #tk-ptr-indicator {
    background: #1F1F24;
    color: #F87171;
    border-color: #374151;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
#tk-ptr-indicator .tk-ptr-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}
#tk-ptr-indicator.ptr-ready .tk-ptr-icon {
    transform: rotate(180deg);
}
#tk-ptr-indicator.ptr-refreshing .tk-ptr-icon {
    animation: ptrSpin 0.7s linear infinite;
}
@keyframes ptrSpin {
    100% { transform: rotate(360deg); }
}

.tk-verified-badge {
    color: #1D9BF0;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;
}
.tk-pinned-badge {
    background: rgba(139, 0, 15, 0.08);
    color: #8B000F;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}
body.dark-mode .tk-pinned-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

/* -------------------------------------------------------------
   29. MASAÜSTÜ SAĞ ALT FACEBOOK SOHBET DOCK (MESSENGER POP-UP)
------------------------------------------------------------- */
.fb-chat-dock {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 324px;
    height: 420px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), width 0.22s ease, transform 0.2s ease;
}
body.dark-mode .fb-chat-dock {
    background: #242526;
    border-color: #393A3B;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}
.fb-chat-dock.minimized {
    height: 44px !important;
    width: 220px !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}
.fb-chat-dock.minimized .fb-dock-body,
.fb-chat-dock.minimized .fb-dock-footer {
    display: none !important;
}
.fb-dock-header {
    background: #8B000F;
    color: #FFFFFF;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
body.dark-mode .fb-dock-header {
    background: #1C1C22;
    border-bottom: 1px solid #33333F;
}
.fb-dock-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.fb-dock-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}
.fb-dock-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-dock-user-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fb-dock-name {
    font-size: 13px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.fb-dock-status {
    font-size: 10px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fb-dock-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
}
.fb-dock-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.fb-dock-btn {
    background: transparent;
    border: 0;
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s, background 0.15s;
}
.fb-dock-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #FFFFFF;
}
.fb-dock-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.dark-mode .fb-dock-body {
    background: #18191A;
}
.fb-dock-bubble {
    max-width: 80%;
    padding: 7px 12px;
    font-size: 12.5px;
    line-height: 1.4;
    word-break: break-word;
}
.fb-dock-bubble.self {
    align-self: flex-end;
    background: #8B000F;
    color: #FFFFFF;
    border-radius: 14px 14px 3px 14px;
}
.fb-dock-bubble.peer {
    align-self: flex-start;
    background: #E4E6EB;
    color: #050505;
    border-radius: 14px 14px 14px 3px;
}
body.dark-mode .fb-dock-bubble.peer {
    background: #3A3B3C;
    color: #E4E6EB;
}
.fb-dock-footer {
    padding: 8px 10px;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
    align-items: center;
}
body.dark-mode .fb-dock-footer {
    background: #242526;
    border-color: #393A3B;
}
.fb-dock-footer input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #F0F2F5;
    color: var(--text-main);
    padding: 7px 12px;
    font-size: 12.5px;
    outline: none;
}
body.dark-mode .fb-dock-footer input {
    background: #3A3B3C;
    border-color: #4E4F50;
    color: #E4E6EB;
}
.fb-dock-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8B000F;
    color: #FFFFFF;
    border: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.12s;
}
.fb-dock-send-btn:hover {
    transform: scale(1.06);
}
@media (max-width: 768px) {
    .fb-chat-dock {
        display: none !important;
    }
}

/* Masaüstü Sağ Alt Sabit Sohbet Açma Butonu (Messenger Floating Launcher) */
.fb-dock-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #8B000F;
    color: #FFFFFF;
    border: 0;
    box-shadow: 0 4px 20px rgba(139, 0, 15, 0.45);
    z-index: 9996;
    display: grid;
    place-items: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.18s ease;
}
.fb-dock-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(139, 0, 15, 0.6);
}
.fb-dock-launcher:active {
    transform: scale(0.95);
}
.fb-dock-launcher .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FFFFFF !important;
    color: #8B000F !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 2px solid #8B000F;
}
/* Dock açıkken launcher'ı temiz bir şekilde gizle */
#fb-chat-dock:not([hidden]) ~ .fb-dock-launcher {
    display: none !important;
}

@media (max-width: 768px) {
    .fb-chat-dock,
    .fb-dock-launcher {
        display: none !important;
    }
}

/* ==========================================================================
   FACEBOOK TARZI REACTION (TEPKİ) POPOVER SİSTEMİ
   ========================================================================== */
.fb-reaction-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fb-reaction-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 36px;
    padding: 4px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.85);
    transform-origin: bottom left;
    transition: opacity 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

body.dark-mode .fb-reaction-popover {
    background: #242526;
    border-color: #3E4042;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Masaüstünde hover, mobilde ise active / popover-open sınıfı ile açılır */
.fb-reaction-wrapper:hover .fb-reaction-popover,
.fb-reaction-wrapper.popover-open .fb-reaction-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.fb-reaction-emoji-btn {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
}

.fb-reaction-emoji-btn:hover {
    transform: scale(1.38) translateY(-4px);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

.fb-reaction-emoji-btn:active {
    transform: scale(1.15) translateY(-2px);
}

.reaction-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reaction-emoji-icon {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

/* ==========================================================================
   KULLANICI ÇEVRİMİÇİ DURUM ROZETİ (ONLINE STATUS BADGE)
   ========================================================================== */
.post-author-avatar,
.tk-avatar-sm,
.fb-avatar-wrap,
.comment-avatar,
.user-avatar-small {
    position: relative !important;
}

.user-online-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background: #22C55E;
    border: 2px solid var(--card-bg, #FFFFFF);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

body.dark-mode .user-online-badge {
    border-color: #242526;
}

/* ==========================================================================
   KAYDEDİLENLER FİLTRE HAPLARI (SAVED FILTER PILLS)
   ========================================================================== */
.saved-filter-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-filter-pill {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-filter-pill:hover {
    color: var(--text);
    background: var(--border);
}

.btn-filter-pill.active {
    background: #8B000F !important;
    color: #FFFFFF !important;
    border-color: #8B000F !important;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.25);
}

/* ==========================================================================
   YORUMLARA FOTOĞRAF EKLEME & ÖNİZLEME
   ========================================================================== */
.quick-comment-attach-btn {
    cursor: pointer;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 15px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.quick-comment-attach-btn:hover {
    color: #10B981;
    transform: scale(1.1);
}

.quick-comment-preview {
    margin-top: 6px;
    padding: 6px 10px;
    background: var(--bg-hover);
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.quick-comment-preview img {
    max-height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.comment-image-attachment img {
    max-width: 260px;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-top: 6px;
    display: block;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.comment-image-attachment img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* ==========================================================================
   TURKSEN GELİŞMİŞ YORUM SİSTEMİ (FACEBOOK & INSTAGRAM STİLİ)
   ========================================================================== */
.tk-comments-container {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.tk-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.tk-comments-count-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tk-comments-sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tk-comments-sort-select {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tk-comments-sort-select:hover,
.tk-comments-sort-select:focus {
    border-color: var(--brand-primary);
    color: var(--text-main);
}

/* Yorum Listesi & Konu Öğeleri */
.tk-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tk-comment-thread {
    display: flex;
    gap: 10px;
    position: relative;
    transition: background 0.2s ease;
}

.tk-comment-thread.is-highlighted {
    animation: tkCommentPulse 1.5s ease;
}

@keyframes tkCommentPulse {
    0% { background: rgba(139, 0, 15, 0.08); border-radius: 12px; }
    100% { background: transparent; }
}

.tk-comment-avatar-link {
    flex-shrink: 0;
    text-decoration: none;
}

.tk-comment-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light, #8B000F);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.tk-comment-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.tk-comment-avatar-mini {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light, #8B000F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.tk-comment-avatar-mini img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.tk-comment-avatar.avatar-placeholder {
    display: grid;
    place-items: center;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 14px;
}

.tk-comment-content-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Yorum Baloncuğu */
.tk-comment-bubble {
    background: #F0F2F5;
    border-radius: 18px;
    padding: 8px 14px;
    max-width: 100%;
    word-break: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

body.dark-mode .tk-comment-bubble {
    background: #3A3B3C !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.tk-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.tk-comment-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tk-comment-author-name:hover {
    text-decoration: underline;
    color: var(--brand-primary);
}

.tk-comment-body {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-main);
    margin: 2px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.tk-comment-deleted {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.75;
}

.tk-comment-edited-tag {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
    font-style: italic;
    font-weight: 400;
}

/* Yorum Aksiyon Çubuğu (Beğen, Yanıtla, Süre, 3 Nokta) */
.tk-comment-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 3px;
    margin-left: 10px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

.tk-comment-time {
    font-size: 11.5px;
    color: var(--text-muted);
}

.tk-comment-act-btn {
    background: transparent;
    border: 0;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.12s, transform 0.12s;
}

.tk-comment-act-btn:hover {
    color: var(--text-main);
}

.tk-comment-like-btn.liked {
    color: #E41E3F !important;
    font-weight: 700;
}

.tk-comment-like-btn.liked i {
    animation: heartPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.tk-comment-reply-btn:hover {
    color: var(--brand-primary);
}

/* 3 Nokta Menüsü & Dropdown */
.tk-comment-menu-btn {
    opacity: 0.6;
    padding: 2px 6px;
}

.tk-comment-menu-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.tk-comment-dropdown {
    position: absolute;
    top: 24px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    min-width: 140px;
    z-index: 50;
    display: none;
    flex-direction: column;
    padding: 4px;
    animation: fadeInFast 0.15s ease;
}

.tk-comment-dropdown.is-open {
    display: flex;
}

.tk-comment-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-main);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.12s;
    text-decoration: none;
}

.tk-comment-dropdown-item:hover {
    background: var(--bg-page);
    color: var(--brand-primary);
    text-decoration: none;
}

.tk-comment-dropdown-item.text-danger:hover {
    background: #FFF1F2;
    color: #E11D48;
}

/* Yorum Düzenleme Formu */
.tk-comment-edit-form {
    margin-top: 6px;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.tk-comment-edit-form.is-active {
    display: flex;
}

.tk-comment-edit-textarea {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--brand-primary);
    background: var(--bg-card);
    color: var(--text-main);
    resize: vertical;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 0, 15, 0.15);
}

.tk-comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.tk-comment-edit-save-btn {
    background: var(--brand-primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.tk-comment-edit-cancel-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Yanıt Giriş Kutusu (Inline Reply Box) */
.tk-comment-inline-reply-box {
    margin-top: 8px;
    margin-left: 20px;
    width: calc(100% - 20px);
    display: none;
    align-items: flex-start;
    gap: 8px;
    animation: fadeInFast 0.2s ease;
}

.tk-comment-inline-reply-box.is-active {
    display: flex;
}

.tk-reply-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tk-reply-input-row {
    display: flex;
    align-items: center;
    background: #F0F2F5;
    border-radius: 20px;
    padding: 4px 8px 4px 14px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

body.dark-mode .tk-reply-input-row {
    background: #3A3B3C;
}

.tk-reply-input-row:focus-within {
    background: var(--bg-card);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(139, 0, 15, 0.12);
}

.tk-reply-input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 6px 0;
    font-size: 13px;
    outline: none;
    color: var(--text-main);
}

.tk-reply-submit-btn {
    background: transparent;
    border: 0;
    color: var(--brand-primary);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.15s;
}

.tk-reply-submit-btn:hover {
    transform: scale(1.15);
}

/* Yanıtlar Bölümü (Nested Replies - Facebook/Instagram Hiyerarşisi) */
.tk-replies-wrap {
    margin-top: 8px;
    margin-left: 24px;
    padding-left: 14px;
    border-left: 2px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.dark-mode .tk-replies-wrap {
    border-left-color: #393A3B;
}

.tk-replies-toggle-btn {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: color 0.15s;
}

.tk-replies-toggle-btn:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.tk-replies-toggle-btn i {
    font-size: 11px;
}

.tk-replies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tk-replies-list.is-collapsed {
    display: none;
}

/* Yanıt kartı (2. Seviye) */
.tk-comment-reply {
    display: flex;
    gap: 8px;
}

.tk-comment-reply .tk-comment-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    font-size: 11px;
}

.tk-comment-reply .tk-comment-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.tk-comment-reply .tk-comment-bubble {
    padding: 6px 12px;
}

.tk-comment-reply .tk-comment-body {
    font-size: 13px;
}

.tk-comments-empty {
    text-align: center;
    padding: 24px 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.tk-comments-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.5;
}

@keyframes fadeInFast {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .tk-comment-avatar {
        width: 30px;
        height: 30px;
    }
    .tk-comment-reply .tk-comment-avatar {
        width: 24px;
        height: 24px;
    }
    .tk-replies-wrap {
        margin-left: 10px;
        padding-left: 8px;
    }
    .tk-comment-inline-reply-box {
        margin-left: 10px;
        width: calc(100% - 10px);
    }
    .comment-image-attachment img {
        max-width: 100%;
    }
}

/* -------------------------------------------------------------
   14. @MENTION FLOATING AUTOCOMPLETE DROPDOWN
------------------------------------------------------------- */
.tk-mention-dropdown {
    position: absolute;
    z-index: 99999;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
}
body.dark-mode .tk-mention-dropdown {
    background: #242526;
    border-color: #393A3B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.tk-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.tk-mention-item:hover {
    background: var(--bg-hover, #F3F4F6);
}
body.dark-mode .tk-mention-item:hover {
    background: #3A3B3C;
}
.tk-mention-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary, #8B000F);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.tk-mention-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tk-mention-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tk-mention-info strong {
    font-size: 13px;
    color: var(--text-main, #1F2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dark-mode .tk-mention-info strong {
    color: #E4E6EB;
}
.tk-mention-info small {
    font-size: 11.5px;
    color: var(--text-muted, #6B7280);
}

/* -------------------------------------------------------------
   15. BADGE PULSE ANIMATION
------------------------------------------------------------- */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); box-shadow: 0 0 10px rgba(225, 29, 72, 0.6); }
    100% { transform: scale(1); }
}
.badge-pulse {
    animation: badgePulse 0.4s ease 2;
}

/* -------------------------------------------------------------
   16. PROFİL ÖNE ÇIKARILANLAR & SEKMELER (HIGHLIGHTS & TABS)
------------------------------------------------------------- */
.profile-highlights-card {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}
body.dark-mode .profile-highlights-card {
    background: #242526;
    border-color: #393A3B;
}
.highlight-circle-item:hover span {
    transform: scale(1.05);
}
.btn-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--border-color);
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-muted, #4B5563);
    text-decoration: none;
    transition: all 0.18s ease;
}
body.dark-mode .btn-filter-pill {
    background: #3A3B3C;
    border-color: #4E4F50;
    color: #B0B3B8;
}
.btn-filter-pill:hover {
    color: var(--text-main, #111827);
    border-color: var(--brand-primary, #8B000F);
    text-decoration: none;
}
body.dark-mode .btn-filter-pill:hover {
    color: #FFFFFF;
}
.btn-filter-pill.active {
    background: var(--brand-primary, #8B000F) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-primary, #8B000F) !important;
}

/* -------------------------------------------------------------
   17. TIKTOK REELS YORUM ÇEKMECESİ (SLIDE-UP DRAWER)
------------------------------------------------------------- */
.reels-comment-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity 0.25s ease;
}
.reels-comment-drawer-backdrop[hidden] {
    display: none !important;
}
.reels-comment-drawer-dialog {
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    max-height: 72vh;
    height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    animation: slideUpReelsDrawer 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}
body.dark-mode .reels-comment-drawer-dialog {
    background: #242526;
    color: #E4E6EB;
}
@keyframes slideUpReelsDrawer {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.reels-drawer-drag-pill {
    width: 42px;
    height: 4.5px;
    border-radius: 3px;
    background: #D1D5DB;
    margin: 8px auto 6px;
    display: block;
}
body.dark-mode .reels-drawer-drag-pill {
    background: #4E4F50;
}
.reels-drawer-head {
    padding: 4px 18px 12px;
    border-bottom: 1px solid var(--border-color);
}
body.dark-mode .reels-drawer-head {
    border-bottom-color: #393A3B;
}
.reels-drawer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reels-drawer-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
}
.reels-drawer-close-btn {
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted, #6B7280);
    padding: 4px 8px;
}
body.dark-mode .reels-drawer-close-btn {
    color: #B0B3B8;
}
.reels-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reels-drawer-comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.reels-drawer-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary, #8B000F);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.reels-drawer-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reels-drawer-bubble {
    background: #F3F4F6;
    padding: 8px 14px;
    border-radius: 14px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.45;
}
body.dark-mode .reels-drawer-bubble {
    background: #3A3B3C;
    color: #E4E6EB;
}
.reels-drawer-bubble strong {
    display: block;
    font-size: 12.5px;
    margin-bottom: 2px;
    color: var(--brand-primary, #8B000F);
}
body.dark-mode .reels-drawer-bubble strong {
    color: #F87171;
}
.reels-drawer-bubble p {
    margin: 0;
    word-break: break-word;
}
.reels-drawer-bubble small {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    color: var(--text-muted, #9CA3AF);
}
.reels-drawer-input-form {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--border-color);
    background: #FFFFFF;
    align-items: center;
}
body.dark-mode .reels-drawer-input-form {
    background: #242526;
    border-top-color: #393A3B;
}
.reels-drawer-input-form input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 9px 16px;
    font-size: 13.5px;
    background: #F9FAFB;
    color: inherit;
    outline: none;
}
body.dark-mode .reels-drawer-input-form input {
    background: #3A3B3C;
    border-color: #4E4F50;
    color: #E4E6EB;
}
.reels-drawer-input-form input:focus {
    border-color: var(--brand-primary, #8B000F);
}
.reels-drawer-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-primary, #8B000F);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.reels-drawer-send-btn:hover {
    transform: scale(1.05);
}
body.reels-drawer-open {
    overflow: hidden;
}

/* ==========================================================================
   TURKSEN ULTRA-LIVE TOAST, HASHTAG AUTOCOMPLETE, LOCATION & PINNED BADGE
   ========================================================================== */

/* 1. Ultra-Live Toast Bildirim Konteyneri & Kartı */
.tk-live-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 32px);
}

@media (max-width: 640px) {
    .tk-live-toast-container {
        top: 60px;
        bottom: auto;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

.tk-live-toast-card {
    pointer-events: auto;
    background: #FFFFFF;
    color: #1F1F1F;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(139, 0, 15, 0.08);
    border: 1px solid rgba(139, 0, 15, 0.15);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: tkToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.2s ease, opacity 0.25s ease;
}

body.dark-mode .tk-live-toast-card {
    background: #242526;
    color: #E4E6EB;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tk-live-toast-card:hover {
    transform: translateY(-2px);
}

.tk-live-toast-card.tk-toast-leaving {
    animation: tkToastSlideOut 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes tkToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tkToastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-15px) scale(0.92);
    }
}

.tk-toast-avatar-box {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.tk-toast-av-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brand-primary, #8B000F);
}

.tk-toast-av-text {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #8B000F;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 17px;
}

.tk-toast-type-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #FFFFFF;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

body.dark-mode .tk-toast-type-badge {
    background: #18191A;
}

.tk-toast-body {
    flex: 1;
    min-width: 0;
}

.tk-toast-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tk-toast-desc {
    font-size: 12.5px;
    color: #555;
    line-height: 1.35;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .tk-toast-desc {
    color: #B0B3B8;
}

.tk-toast-time small {
    font-size: 11px;
    color: #888;
}

.tk-toast-action-btn {
    padding: 6px 12px;
    background: #8B000F;
    color: #FFFFFF !important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.tk-toast-action-btn:hover {
    background: #6C1F26;
}

.tk-toast-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
}

.tk-toast-close:hover {
    color: #1F1F1F;
    background: rgba(0,0,0,0.05);
}

body.dark-mode .tk-toast-close:hover {
    color: #FFF;
    background: rgba(255,255,255,0.1);
}

/* 2. Sayaç Nabız Efekti (Badge Pulse) */
.tk-badge-pulse {
    animation: tkPulseAnim 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2;
}

@keyframes tkPulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); box-shadow: 0 0 10px rgba(228, 30, 63, 0.8); }
    100% { transform: scale(1); }
}

/* 3. Hashtag Otomatik Tamamlama Kutusu */
.tk-hashtag-box {
    position: absolute;
    z-index: 10000;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

body.dark-mode .tk-hashtag-box {
    background: #242526;
    border-color: #393A3B;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tk-hashtag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    color: inherit;
    transition: background 0.12s ease;
}

.tk-hashtag-item:hover, .tk-hashtag-item.selected {
    background: #F3F4F6;
}

body.dark-mode .tk-hashtag-item:hover, body.dark-mode .tk-hashtag-item.selected {
    background: #3A3B3C;
}

.tk-hashtag-sym {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(139, 0, 15, 0.1);
    color: #8B000F;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.tk-hashtag-name {
    flex: 1;
    color: #1F1F1F;
}

body.dark-mode .tk-hashtag-name {
    color: #E4E6EB;
}

.tk-hashtag-cnt {
    font-size: 11.5px;
    color: #888;
}

/* 4. Sabitlenmiş Gönderi Rozeti & Konum Etiketi */
.post-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 0, 15, 0.08);
    color: #8B000F;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

body.dark-mode .post-pinned-badge {
    background: rgba(228, 30, 63, 0.15);
    color: #FF6B81;
}

.post-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.post-location-tag:hover {
    text-decoration: underline;
}

/* 5. Geri Alınan Mesaj Bildirimi */
.chat-deleted-notice {
    font-size: 13px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}

.chat-msg.is-unsend {
    opacity: 0.75;
    background: rgba(0,0,0,0.04) !important;
    border: 1px dashed #ccc !important;
}

body.dark-mode .chat-msg.is-unsend {
    background: rgba(255,255,255,0.04) !important;
    border-color: #555 !important;
}

/* 6. Yakın Arkadaşlar Yönetim Modalı */
.close-friends-modal-dialog {
    max-width: 460px;
    width: 100%;
}

.cf-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.cf-user-row:hover {
    background: var(--bg-hover, #F8F5F3);
}

/* 7. Sosyal Giriş Butonları (Google, Facebook, Instagram) */
.auth-social-row {
    display: flex;
    gap: 10px;
    margin: 16px 0 20px 0;
}
.auth-social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border-color, #E4E6EB);
    background: var(--bg-card, #FFFFFF);
    color: var(--text, #1F1F1F);
    transition: all 0.18s ease;
    cursor: pointer;
}
.auth-social-btn:hover {
    background: var(--bg-hover, #F0F2F5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
}
.auth-social-btn i {
    font-size: 16px;
}
.auth-social-btn.btn-google {
    border-color: #F87171;
    color: #DC2626;
}
.auth-social-btn.btn-facebook {
    border-color: #93C5FD;
    color: #1D4ED8;
}
.auth-social-btn.btn-instagram {
    border-color: #F472B6;
    color: #DB2777;
}

body.dark-mode .auth-social-btn {
    background: #242526;
    border-color: #3E4042;
    color: #E4E6EB;
}
body.dark-mode .auth-social-btn:hover {
    background: #3A3B3C;
}

/* 8. Mobil 3 Nokta Üst Menü & Dropdown */
.fb-mobile-more-dropdown {
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 14px;
    background: var(--bg-card, #FFFFFF);
    animation: fadeInDropdown 0.15s ease;
}
body.dark-mode .fb-mobile-more-dropdown {
    background: #242526 !important;
    border-color: #3E4042 !important;
}
body.dark-mode .fb-mobile-more-dropdown .fb-menu-item {
    color: #E4E6EB !important;
}
body.dark-mode .fb-mobile-more-dropdown .fb-menu-item:hover {
    background: #3A3B3C !important;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. Akış İçi Yorum Önizleme (Comments Preview) */
.post-comments-preview-wrap {
    padding: 0 14px;
    margin-bottom: 8px;
}
.view-all-comments-link {
    display: block;
    font-size: 13px;
    color: var(--text-muted, #65676B);
    font-weight: 600;
    margin: 6px 0 8px 0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.view-all-comments-link:hover {
    color: var(--brand-primary, #8B000F);
    text-decoration: underline;
}
body.dark-mode .view-all-comments-link {
    color: #B0B3B8;
}
body.dark-mode .view-all-comments-link:hover {
    color: #FF6B81;
}
.feed-comment-mini-row {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
body.dark-mode .feed-comment-mini-row a {
    color: #E4E6EB !important;
}
body.dark-mode .feed-comment-mini-row span {
    color: #D1D5DB !important;
}

/* 10. Çift Dokunuş Kalp Animasyonu (Instagram / TikTok Double-Tap Heart) */
.double-tap-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 78px;
    color: #FF2D55;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 50;
    animation: doubleTapHeartAnim 0.75s ease-out forwards;
}

@keyframes doubleTapHeartAnim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    25% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -65%) scale(1.4); opacity: 0; }
}

/* 11. His & Aktivite Etiketi */
.post-feeling-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #65676B);
}
body.dark-mode .post-feeling-tag {
    color: #9CA3AF;
}

/* 12. Chat Reaksiyon Balonları & Menüsü */
.chat-reactions-wrap {
    margin-top: 4px;
}
.chat-reaction-pill {
    transition: transform 0.15s ease, background 0.15s ease;
}
.chat-reaction-pill:hover {
    transform: scale(1.1);
    background: #FFF !important;
}
.chat-reaction-popover {
    animation: popInAnim 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popInAnim {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
body.dark-mode .chat-reaction-popover {
    background: #242526 !important;
    border-color: #3E4042 !important;
}
body.dark-mode .chat-reaction-pill {
    background: #3A3B3C !important;
    border-color: #4E4F50 !important;
    color: #E4E6EB !important;
}
body.dark-mode .chat-msg-react-btn {
    background: #242526 !important;
    border-color: #3E4042 !important;
    color: #E4E6EB !important;
}

/* =========================================================
   GLOBAL AVATAR & PROFILE IMAGE SAFEGUARDS
   Ensures no avatar image can ever expand to raw dimensions
   ========================================================= */
.fb-user-nav-avatar,
.sidebar-avatar,
.user-avatar-small,
.tk-avatar-sm,
.fb-avatar-wrap,
.fb-user-avatar,
.post-author-avatar,
.story-user-avatar,
.chat-user-avatar,
.comment-author-avatar,
.author-avatar,
.user-avatar {
    flex-shrink: 0 !important;
}

.fb-user-nav-avatar img,
.sidebar-avatar img,
.user-avatar-small img,
.tk-avatar-sm img,
.fb-avatar-wrap img,
.post-author-avatar img,
.story-user-avatar img,
.chat-user-avatar img,
.comment-author-avatar img,
.author-avatar img,
.user-avatar img,
img.avatar,
.avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* =============================================================
   FACEBOOK REELS AKIŞ KARTI (FEED CAROUSEL BİREBİR TASARIM)
   ============================================================= */
.fb-reels-feed-card {
    padding: 14px 16px 16px !important;
    margin-bottom: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
body.dark-mode .fb-reels-feed-card {
    background: #242526;
    border-color: #393A3B;
}

.fb-reels-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}
.fb-reels-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fb-reels-badge-icon {
    font-size: 19px;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .fb-reels-badge-icon {
    color: #E4E6EB;
}
.fb-reels-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main, #050505);
    letter-spacing: -0.2px;
}
.fb-reels-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fb-reels-see-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #8B000F;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.fb-reels-see-all-link:hover {
    background: rgba(139, 0, 15, 0.08);
}
.fb-reels-options-btn {
    background: transparent;
    border: 0;
    color: #65676B;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}
body.dark-mode .fb-reels-options-btn {
    color: #B0B3B8;
}
.fb-reels-options-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.fb-reels-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.fb-reels-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 14px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.fb-reels-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Dikey Video Kartı (Birebir Görseldeki 9:16 Aspect Oranı) */
.fb-reel-item {
    flex: 0 0 152px !important;
    width: 152px !important;
    min-width: 152px !important;
    max-width: 152px !important;
    height: 250px !important;
    display: block !important;
    flex-shrink: 0 !important;
    border-radius: 12px;
    background: #000000;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box !important;
}
@media (max-width: 480px) {
    .fb-reel-item {
        flex: 0 0 135px !important;
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;
        height: 225px !important;
    }
}
.fb-reel-item:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.fb-reel-media-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.fb-reel-poster-img,
.fb-reel-video-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.fb-reel-item:hover .fb-reel-poster-img,
.fb-reel-item:hover .fb-reel-video-tag {
    transform: scale(1.05);
}

/* 3 Dikey Nokta İkonu (Kart İçi Sağ Üst - Görseldeki Gibi) */
.fb-reel-kebab-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #FFFFFF;
    border: 0;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(4px);
    transition: background 0.15s, transform 0.15s;
}
.fb-reel-kebab-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.1);
}

/* Alt Degrade ve Kullanıcı Bilgisi */
.fb-reel-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #FFFFFF;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}
.fb-reel-author-line {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fb-reel-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 1.5px solid #FFFFFF;
    flex-shrink: 0;
}
.fb-reel-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-reel-author-name {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fb-reel-caption-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fb-reel-play-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 2;
}
.fb-reel-item:hover .fb-reel-play-symbol {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Yuvarlak Beyaz Kaydırma Oku (Görseldeki Birebir Buton) */
.fb-reels-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #050505;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
body.dark-mode .fb-reels-arrow-btn {
    background: #3A3B3C;
    color: #E4E6EB;
    border-color: #4E4F50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.fb-reels-arrow-btn:hover {
    transform: translateY(-50%) scale(1.08);
    background: #F2F2F2;
}
body.dark-mode .fb-reels-arrow-btn:hover {
    background: #4E4F50;
}
.fb-reels-arrow-next {
    right: 4px;
}
.fb-reels-arrow-prev {
    left: 4px;
}
/* Çoklu Video Rozeti (Aynı Kişi Üst Üste Paylaşım Rozeti) */
.fb-reel-count-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 750;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.fb-reel-count-pill i {
    font-size: 11px;
    color: #FBBF24;
}

/* Üst Üste Yığılmış Çoklu Video Kartı (Deck Effect) */
.fb-reel-item.is-stacked {
    overflow: visible !important;
}
.fb-reel-item.is-stacked > .fb-reel-media-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.fb-reel-item.is-stacked::before {
    content: '';
    position: absolute;
    inset: -3px 2px 3px -2px;
    background: #3A3B3C;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 0;
    transform: rotate(-3deg);
    transition: transform 0.2s ease;
    box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.35);
}
.fb-reel-item.is-stacked::after {
    content: '';
    position: absolute;
    inset: -6px -4px 6px 4px;
    background: var(--brand-primary, #8B000F);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 0;
    transform: rotate(3.2deg);
    transition: transform 0.2s ease;
    box-shadow: 2px 4px 12px rgba(139, 0, 15, 0.45);
}
.fb-reel-item.is-stacked:hover::before {
    transform: rotate(-4.5deg) scale(0.98);
}
.fb-reel-item.is-stacked:hover::after {
    transform: rotate(5deg) scale(0.98);
}
.fb-reel-item.is-stacked > * {
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   TURKSEN — TAM EKRAN REELS & VİDEO GÖRÜNTÜLEYİCİ MODAL (STORY TARZI)
   ========================================================================== */
.reels-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    animation: reelsFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reels-viewer-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
@keyframes reelsFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.reels-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.reels-modal-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    height: 92vh;
    max-height: 840px;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
    .reels-modal-stage {
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Üst Segment İlerleme Çubuğu (Story Çizgileri Gibi) */
.reels-progress-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 8px 12px;
    pointer-events: none;
}
.reels-progress-bar {
    width: 100%;
    height: 3px;
    display: flex;
    gap: 4px;
    background: transparent;
}
.reels-progress-bar .reel-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.reels-progress-bar .reel-segment-fill {
    height: 100%;
    width: 0%;
    background: #FFFFFF;
    border-radius: 2px;
    transition: width 0.1s linear;
}
.reels-progress-bar .reel-segment.passed .reel-segment-fill {
    width: 100% !important;
    transition: none !important;
}
.reels-progress-fill {
    height: 100%;
    width: 0%;
    background: #FFFFFF;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Üst Başlık & Kontroller */
.reels-modal-head {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 18;
    padding: 12px 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    pointer-events: auto;
}
.reels-modal-author {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #FFFFFF;
    max-width: 70%;
}
.reels-modal-author:hover {
    text-decoration: none;
    color: #FFFFFF;
}
.reels-modal-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--brand-primary, #8B000F);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}
.reels-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reels-modal-author-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.reels-modal-author-meta strong {
    font-size: 13.5px;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reels-modal-author-meta small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}
.reels-modal-head-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reels-btn-sound,
.reels-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    backdrop-filter: blur(6px);
}
.reels-modal-close {
    font-size: 18px;
}
.reels-btn-sound:hover,
.reels-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.08);
}

/* Video Alanı */
.reels-video-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reels-active-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}
.reels-play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 24px;
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 10;
    animation: reelsPulse 0.3s ease;
}
@keyframes reelsPulse {
    0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Alt Açıklama ve Hızlı Etkileşim Paneli */
.reels-modal-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 18;
    padding: 40px 14px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}
.reels-modal-caption {
    font-size: 13px;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-height: 80px;
    overflow-y: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    word-break: break-word;
}
.reels-modal-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reels-action-btn {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 7px 15px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.reels-action-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}
.reels-action-btn.liked {
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.2);
}

/* Dokunma Alanları (Story Gibi Sol/Sağ Dokunarak Geçme) */
.reels-tap-nav {
    position: absolute;
    top: 70px;
    bottom: 120px;
    width: 35%;
    z-index: 12;
    cursor: pointer;
}
.reels-tap-prev {
    left: 0;
}
.reels-tap-next {
    right: 0;
}

/* Masaüstü Yan Ok Butonları */
.reels-stage-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 20px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1000000;
    transition: background 0.15s ease, transform 0.15s ease;
}
.reels-stage-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}
.reels-arrow-prev {
    left: max(18px, calc(50vw - 320px));
}
.reels-arrow-next {
    right: max(18px, calc(50vw - 320px));
}
@media (max-width: 768px) {
    .reels-stage-arrow {
        display: none !important;
    }
}

/* ==========================================================================
   FACEBOOK DESKTOP REELS WATCH PAGE (Birebir Facebook Reels Arayüzü)
   ========================================================================== */
body.page-reels-watch {
    background: var(--bg-page, #F0F2F5);
    color: var(--text-main, #050505);
    overflow: hidden !important;
}

body.dark-mode.page-reels-watch {
    background: #18191A !important;
    color: #E4E6EB !important;
}

body.page-reels-watch .top-bar {
    background: var(--bg-card, #FFFFFF);
    border-bottom: 1px solid var(--border-color, #E4E6EB);
}

body.dark-mode.page-reels-watch .top-bar {
    background: #242526 !important;
    border-bottom: 1px solid #393A3B !important;
}

body.page-reels-watch .site-shell {
    display: block !important;
    max-width: 100vw !important;
    height: calc(100vh - 56px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.page-reels-watch .left-sidebar,
body.page-reels-watch .right-sidebar {
    display: none !important;
}

body.page-reels-watch .center-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Container */
.fb-reels-watch-container {
    display: flex;
    width: 100vw;
    height: 100%;
    background: var(--bg-page, #F0F2F5);
    overflow: hidden;
    position: relative;
}

body.dark-mode .fb-reels-watch-container {
    background: #18191A;
}

/* Sol Panel (Reels Sidebar) */
.fb-reels-left-panel {
    width: 340px;
    flex-shrink: 0;
    background: var(--bg-card, #FFFFFF);
    border-right: 1px solid var(--border-color, #E4E6EB);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

body.dark-mode .fb-reels-left-panel {
    background: #242526;
    border-right-color: #393A3B;
}

.fb-reels-sidebar-header {
    padding: 6px 10px 0;
}

.fb-reels-main-title {
    font-size: 24px;
    font-weight: 850;
    color: var(--text-main, #050505);
    margin: 0;
    letter-spacing: -0.4px;
}

body.dark-mode .fb-reels-main-title {
    color: #E4E6EB;
}

.fb-reels-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-reels-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-main, #050505);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

body.dark-mode .fb-reels-nav-link {
    color: #E4E6EB;
}

.fb-reels-nav-link:hover {
    background: var(--bg-hover, #F2F2F2);
    color: var(--text-main, #050505);
    text-decoration: none;
}

body.dark-mode .fb-reels-nav-link:hover {
    background: #3A3B3C;
    color: #FFFFFF;
}

.fb-reels-nav-link.active {
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    font-weight: 700;
}

body.dark-mode .fb-reels-nav-link.active {
    background: #3A3B3C;
    color: #FFFFFF;
}

.fb-reels-nav-icon {
    font-size: 18px;
    width: 24px;
    display: grid;
    place-items: center;
}

.fb-reels-sidebar-upload {
    margin-top: auto;
    padding: 10px;
}

.fb-reels-upload-trigger-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B000F, #6C1F26);
    color: #FFFFFF;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(139, 0, 15, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}

.fb-reels-upload-trigger-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #A10012, #8B000F);
}

/* Orta / Sağ Sahne (Reels Tiyatrosu) */
.fb-reels-stage {
    flex: 1;
    height: 100%;
    position: relative;
    background: #0E0E10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.dark-mode .fb-reels-stage {
    background: #18191A;
}
.fb-reels-empty-state {
    text-align: center;
    color: #FFFFFF;
    padding: 40px 20px;
}
.fb-reels-empty-state .empty-icon {
    font-size: 54px;
    margin-bottom: 14px;
    color: #8B000F;
}

/* Dikey Viewport ve Snap Scroll */
.fb-reels-viewport {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fb-reels-viewport::-webkit-scrollbar {
    display: none;
}
.fb-reel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

/* 9:16 Video Kartı */
.fb-reel-card {
    width: 440px;
    max-width: calc(100vw - 440px);
    height: calc(100% - 32px);
    max-height: 820px;
    aspect-ratio: 9/16;
    border-radius: 14px;
    background: #000000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.fb-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
    display: block;
    cursor: pointer;
}

/* Ses Aç / Kapat Butonu */
.fb-reel-sound-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 15px;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fb-reel-sound-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
}
.fb-reel-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 24px;
    z-index: 10;
    pointer-events: none;
    animation: reelsPulse 0.3s ease;
}

/* Alt Bilgi Katmanı */
.fb-reel-bottom-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}
.fb-reel-meta-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.fb-reel-author-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    text-decoration: none;
    max-width: 70%;
}
.fb-reel-author-link:hover {
    text-decoration: none;
    color: #FFFFFF;
}
.fb-reel-avatar-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #8B000F;
    color: #FFFFFF;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.fb-reel-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-reel-author-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fb-reel-follow-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.15s ease;
}
.fb-reel-follow-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.fb-reel-follow-btn.is-following {
    background: rgba(255, 255, 255, 0.22);
    border-color: transparent;
    color: #E4E6EB;
}

/* Müzik / Orijinal Ses */
.fb-reel-audio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.fb-reel-caption-block {
    position: relative;
}
.fb-reel-caption-text {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-height: 48px;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.fb-reel-caption-block.expanded .fb-reel-caption-text {
    max-height: none;
    -webkit-line-clamp: unset;
}
.fb-reel-caption-more-btn {
    background: transparent;
    border: 0;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12.5px;
    padding: 2px 0;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.fb-reel-caption-more-btn:hover {
    text-decoration: underline;
}

/* İlerleme Çubuğu */
.fb-reel-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}
.fb-reel-progress-fill {
    height: 100%;
    width: 0%;
    background: #FFFFFF;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Sağ Eylem Çubuğu (Görseldeki Birebir Butonlar) */
.fb-reel-actions-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 15;
}
.fb-reel-action-btn {
    background: transparent;
    border: 0;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
}
.fb-action-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #FFFFFF;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fb-reel-action-btn:hover .fb-action-icon-circle {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.28);
}
.fb-reel-like-btn.liked .fb-action-icon-circle {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.25);
    border-color: rgba(24, 119, 242, 0.5);
}
.fb-action-label {
    font-size: 12px;
    font-weight: 700;
    color: #E4E6EB;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Sağdaki Sabit Yukarı / Aşağı Yuvarlak Oklar */
.fb-reels-floating-arrows {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 50;
}
.fb-reels-arrow-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fb-reels-arrow-circle:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Video Yükleme Modalı */
.fb-reels-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 16px;
}
.fb-reels-upload-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
.fb-reels-upload-dialog {
    background: var(--bg-card, #FFFFFF);
    color: var(--text-main, #050505);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

body.dark-mode .fb-reels-upload-dialog {
    background: #242526;
    color: #E4E6EB;
    border-color: #393A3B;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.fb-reels-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color, #E4E6EB);
}

body.dark-mode .fb-reels-upload-head {
    border-bottom-color: #393A3B;
}
.fb-reels-upload-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}
.fb-reels-upload-body {
    padding: 18px;
}
.fb-reel-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 16px;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}
.fb-reel-file-dropzone:hover {
    border-color: #8B000F;
    background: rgba(139, 0, 15, 0.1);
}
.fb-reel-file-dropzone i {
    font-size: 36px;
    color: #8B000F;
}
.fb-reel-file-name {
    margin-top: 8px;
    font-size: 12.5px;
    color: #10B981;
    font-weight: 600;
}

/* Mobil Görünüm */
@media (max-width: 768px) {
    .fb-reels-left-panel {
        display: none !important;
    }
    .fb-reels-floating-arrows {
        display: none !important;
    }
    .fb-reel-slide {
        gap: 0;
    }
    .fb-reel-card {
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    .fb-reel-actions-column {
        position: absolute;
        right: 12px;
        bottom: 70px;
        gap: 12px;
    }
    .fb-action-icon-circle {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Reels / Video Yorum Çekmecesi */
.reels-comment-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100010;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.reels-comment-drawer-backdrop[hidden] {
    display: none !important;
}
.reels-comment-drawer-dialog {
    width: 100%;
    max-width: 500px;
    height: 70vh;
    max-height: 600px;
    background: var(--bg-card, #FFFFFF);
    color: var(--text-main, #050505);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: fbDrawerSlideUp 0.22s ease-out;
}

body.dark-mode .reels-comment-drawer-dialog {
    background: #242526;
    color: #E4E6EB;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

@keyframes fbDrawerSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.reels-drawer-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--border-color, #E4E6EB);
    position: relative;
    flex-shrink: 0;
}

body.dark-mode .reels-drawer-head {
    border-bottom-color: #393A3B;
}

.reels-drawer-drag-pill {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: #D1D5DB;
    margin-bottom: 8px;
}

body.dark-mode .reels-drawer-drag-pill {
    background: #4B5563;
}

.reels-drawer-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reels-drawer-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
}
.reels-drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #71717A);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}
.reels-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reels-drawer-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.reels-drawer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #8B000F;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.reels-drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reels-drawer-bubble {
    background: var(--bg-hover, #F0F2F5);
    padding: 8px 12px;
    border-radius: 12px;
    max-width: calc(100% - 44px);
    color: var(--text-main, #050505);
}

body.dark-mode .reels-drawer-bubble {
    background: #3A3B3C;
    color: #E4E6EB;
}

.reels-drawer-bubble strong {
    font-size: 12.5px;
    display: block;
    margin-bottom: 2px;
}
.reels-drawer-bubble p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.reels-drawer-bubble small {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted, #888);
    margin-top: 4px;
}
.reels-drawer-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color, #E4E6EB);
    background: var(--bg-card, #FFFFFF);
    flex-shrink: 0;
}

body.dark-mode .reels-drawer-input-form {
    background: #242526;
    border-top-color: #393A3B;
}

.reels-drawer-input-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color, #E4E6EB);
    background: var(--bg-hover, #F0F2F5);
    color: inherit;
    font-size: 13px;
    outline: none;
}

body.dark-mode .reels-drawer-input-form input {
    background: #3A3B3C;
    border-color: #4B5563;
    color: #E4E6EB;
}
.reels-drawer-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8B000F;
    color: #fff;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* =============================================================
   MODERN İKONİK MOBİL ALT NAVİGASYON BARI (6 İKONLU ESKİ YAPI TASARIMI)
   ============================================================= */
.mobile-nav-bar.modern-icon-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: var(--bg-card, #FFFFFF);
    border-top: 1px solid var(--border-color, #E4E6EB);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 10000;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.dark-mode .mobile-nav-bar.modern-icon-nav {
    background: #242526;
    border-color: #393A3B;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .mobile-nav-bar.modern-icon-nav {
        display: flex;
    }
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.mobile-nav-bar.modern-icon-nav .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    color: var(--text-muted, #65676B);
    text-decoration: none;
    font-size: 19px;
    position: relative;
    transition: transform 0.15s ease, color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body.dark-mode .mobile-nav-bar.modern-icon-nav .mobile-nav-link {
    color: #B0B3B8;
}

.mobile-nav-bar.modern-icon-nav .mobile-nav-link:hover,
.mobile-nav-bar.modern-icon-nav .mobile-nav-link.active {
    color: var(--brand-primary, #8B000F);
}

body.dark-mode .mobile-nav-bar.modern-icon-nav .mobile-nav-link.active {
    color: #FFFFFF;
}

.mobile-nav-bar.modern-icon-nav .mobile-nav-link:active {
    transform: scale(0.88);
}

/* Ortadaki Yuvarlatılmış Kutu İçinde Artı Butonu (Image 1 Birebir) */
.mobile-create-box {
    width: 42px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.18s ease;
}

.mobile-nav-bar.modern-icon-nav .mobile-nav-link:hover .mobile-create-box,
.mobile-nav-bar.modern-icon-nav .mobile-nav-link:active .mobile-create-box {
    background: var(--brand-primary, #8B000F);
    border-color: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
    transform: scale(1.06);
}

/* Küçük Kırmızı Bildirim Noktası */
.mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-badge-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid var(--bg-card, #FFFFFF);
}

body.dark-mode .mobile-badge-dot {
    border-color: #18181B;
}

/* Profil Avatarı Dairesi */
.mobile-avatar-icon {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-avatar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mobile-avatar-icon.active-ring {
    box-shadow: 0 0 0 2px var(--brand-primary, #8B000F);
}

/* =============================================================
   THREADS TARZI MODERN HİKÂYE OLUŞTURUCU (IMAGE 2 BİREBİR TASARIM)
   ============================================================= */
.threads-story-panel {
    max-width: 620px;
    margin: 0 auto 24px auto;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
}

body.dark-mode .threads-story-panel {
    background: #18181B;
    border-color: #27272A;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.threads-composer-form {
    padding: 18px 20px 14px 20px;
    display: flex;
    flex-direction: column;
}

/* 1. Üst Başlık Satırı */
.threads-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.threads-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.threads-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 750;
    flex-shrink: 0;
}

.threads-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.threads-user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.threads-username {
    font-weight: 750;
    font-size: 14px;
    color: var(--text-main, #1F2937);
}

body.dark-mode .threads-username {
    color: #F4F4F5;
}

.threads-arrow-sep {
    font-size: 10px;
    color: var(--text-muted, #9CA3AF);
    opacity: 0.7;
}

.threads-audience-select {
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color, #E4E6EB);
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main, #374151);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

body.dark-mode .threads-audience-select {
    background: #27272A;
    border-color: #3F3F46;
    color: #D4D4D8;
}

.threads-composer-close {
    background: none;
    border: none;
    color: var(--text-muted, #9CA3AF);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all 0.15s ease;
}

.threads-composer-close:hover {
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main, #111827);
}

/* 2. Ana Metin Alanı */
.threads-body-area {
    margin-bottom: 12px;
}

.threads-story-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-main, #111827);
    resize: none;
    min-height: 60px;
    font-family: inherit;
    box-sizing: border-box;
    padding: 4px 0;
}

body.dark-mode .threads-story-textarea {
    color: #F4F4F5;
}

.threads-story-textarea::placeholder {
    color: var(--text-muted, #9CA3AF);
    opacity: 0.8;
}

/* Medya Önizleme Alanı */
.threads-media-preview-wrap {
    position: relative;
    margin: 12px 0 6px 0;
    border-radius: 14px;
    overflow: hidden;
    max-height: 420px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.threads-media-preview-wrap img,
.threads-media-preview-wrap video {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 14px;
}

.threads-preview-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 5;
    transition: transform 0.15s ease, background 0.15s ease;
}

.threads-preview-remove-btn:hover {
    background: #EF4444;
    transform: scale(1.08);
}

/* Canlı Renkli Yazı Kartı Önizlemesi */
.threads-text-card-preview {
    margin: 10px 0;
    border-radius: 14px;
    padding: 26px 20px;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 750;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

/* 3. Araç Çubuğu İkonları */
.threads-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color, #E4E6EB);
}

body.dark-mode .threads-toolbar-row {
    border-color: #27272A;
}

.threads-tool-btn {
    background: none;
    border: none;
    color: var(--text-muted, #71717A);
    font-size: 19px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

body.dark-mode .threads-tool-btn {
    color: #A1A1AA;
}

.threads-tool-btn:hover,
.threads-tool-btn.active {
    background: var(--bg-hover, #F3F4F6);
    color: var(--brand-primary, #8B000F);
    transform: scale(1.08);
}

body.dark-mode .threads-tool-btn:hover,
body.dark-mode .threads-tool-btn.active {
    background: #27272A;
    color: #FFFFFF;
}

/* Açılır Renk Paleti */
.threads-color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.palette-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.palette-dot:hover {
    transform: scale(1.12);
}

.palette-dot.active {
    transform: scale(1.22);
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px var(--brand-primary, #8B000F);
}

/* 4. Alt Bilgi Satırı ("Hikâyeye ekle") */
.threads-subline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 12.5px;
    color: var(--text-muted, #71717A);
}

.threads-subline-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
}

.threads-subline-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. Alt Eylem Çubuğu */
.threads-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color, #E4E6EB);
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 10px;
}

body.dark-mode .threads-footer-row {
    border-color: #27272A;
}

.threads-footer-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #71717A);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.threads-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Reels Switch Toggle */
.threads-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main, #374151);
    user-select: none;
}

body.dark-mode .threads-toggle-wrap {
    color: #D4D4D8;
}

.threads-toggle-wrap input[type="checkbox"] {
    display: none;
}

.threads-toggle-switch {
    width: 34px;
    height: 20px;
    background: #D1D5DB;
    border-radius: 20px;
    position: relative;
    transition: background 0.2s ease;
}

body.dark-mode .threads-toggle-switch {
    background: #3F3F46;
}

.threads-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.threads-toggle-wrap input:checked + .threads-toggle-switch {
    background: var(--brand-primary, #8B000F);
}

.threads-toggle-wrap input:checked + .threads-toggle-switch::after {
    transform: translateX(14px);
}

/* Paylaş Butonu */
.threads-submit-btn {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.25);
}

.threads-submit-btn:hover {
    background: var(--brand-dark, #6C1F26);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 15, 0.35);
}

.threads-submit-btn:active {
    transform: translateY(0);
}

/* -------------------------------------------------------------
   25. GÖNDERİ, REELS & HİKÂYE DÜZENLEME MODALLARI VE EYLEM MENÜLERİ
------------------------------------------------------------- */
.fb-reel-sheet-dialog {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    animation: tkScaleUp 0.18s ease-out;
}
body.dark-mode .fb-reel-sheet-dialog {
    background: #242526 !important;
    border-color: #393A3B !important;
}
.fb-sheet-btn {
    transition: background 0.15s ease, transform 0.1s ease;
}
.fb-sheet-btn:hover {
    background: var(--bg-hover, #F3F4F6) !important;
    transform: translateX(2px);
}
body.dark-mode .fb-sheet-btn:hover {
    background: #3A3B3C !important;
}
.fb-sheet-btn:active {
    transform: translateX(0);
}

/* Hikâye ve Video Düzenleme Form Alanları */
#edit-video-caption, #edit-story-text, #edit-post-body {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#edit-video-caption:focus, #edit-story-text:focus, #edit-post-body:focus {
    border-color: var(--brand-primary, #8B000F) !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 15, 0.12) !important;
    outline: none !important;
}
body.dark-mode #edit-video-caption,
body.dark-mode #edit-story-text,
body.dark-mode #edit-post-body {
    background: #181820 !important;
    border-color: #353542 !important;
    color: #F3F4F6 !important;
}

body.dark-mode #edit-story-visibility,
body.dark-mode #edit-post-visibility {
    background: #181820 !important;
    border-color: #353542 !important;
    color: #F3F4F6 !important;
}

/* Palet Noktaları */
.palette-dot {
    transition: transform 0.15s ease, outline 0.15s ease;
}
.palette-dot:hover {
    transform: scale(1.18);
}

/* -------------------------------------------------------------
   26. KULLANICI ADI GİZLEME (YALNIZCA İSİM SOYİSİM GÖSTERİMİ)
------------------------------------------------------------- */
.post-username,
.comment-username,
.feed-user-username,
.tk-person-meta small,
.chat-peer-username {
    display: none !important;
}

/* -------------------------------------------------------------
   27. MESAJLAR: 3 NOKTA KEBAB MENÜSÜ & ARŞİV / SİLME SEÇENEKLERİ
------------------------------------------------------------- */
.chat-head-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.chat-kebab-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    padding: 6px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: tkFadeIn 0.15s ease-out;
}
body.dark-mode .chat-kebab-dropdown {
    background: #242526 !important;
    border-color: #393A3B !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.chat-kebab-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: var(--text-main, #050505);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}
body.dark-mode .chat-kebab-item {
    color: #E4E6EB;
}
.chat-kebab-item:hover {
    background: var(--bg-hover, #F0F2F5);
}
body.dark-mode .chat-kebab-item:hover {
    background: #3A3B3C;
}
.chat-kebab-item i {
    width: 18px;
    font-size: 14px;
    text-align: center;
}
.chat-kebab-item.text-danger {
    color: #EF4444 !important;
}
.chat-kebab-item.text-danger:hover {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}
body.dark-mode .chat-kebab-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #F87171 !important;
}

/* Mesajlar Arşiv & Gelen Kutusu Sekmeleri */
.chat-tab-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color, #E4E6EB);
    background: var(--bg-card, #FFFFFF);
}
body.dark-mode .chat-tab-filter {
    background: #242526;
    border-color: #393A3B;
}
.chat-filter-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    color: var(--text-muted, #65676B);
    background: var(--bg-hover, #F0F2F5);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.dark-mode .chat-filter-btn {
    background: #3A3B3C;
    color: #B0B3B8;
}
.chat-filter-btn:hover {
    color: var(--brand-primary, #8B000F);
    text-decoration: none;
}
.chat-filter-btn.active {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
}
body.dark-mode .chat-filter-btn.active {
    background: #EF4444;
    color: #FFFFFF !important;
}

/* ==========================================================================
   TURKSEN — REKLAM, SPONSORLU DUYURU VE BANNER STİLLERİ
   ========================================================================== */
.tk-ad-banner-card,
.tk-ad-feed-card,
.tk-ad-rail-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tk-ad-banner-card:hover,
.tk-ad-feed-card:hover,
.tk-ad-rail-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.tk-ad-top-content img,
.tk-ad-feed-content img,
.tk-ad-rail-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
body.dark-mode .tk-ad-banner-card,
body.dark-mode .tk-ad-feed-card,
body.dark-mode .tk-ad-rail-card {
    background: #242526 !important;
    border-color: #393A3B !important;
    color: #E4E6EB !important;
}
body.dark-mode .tk-ad-sponsor-head span {
    color: #9CA3AF !important;
}

/* ==========================================================================
   28. SOHBET & MESAJLAR — DARK MODE GELİŞTİRMELERİ
   ========================================================================== */
body.dark-mode .chat-sidebar {
    background: #242526 !important;
    border-color: #393A3B !important;
}
body.dark-mode .chat-sidebar-head {
    border-bottom-color: #393A3B !important;
}
body.dark-mode .chat-head-title-wrap h2 {
    color: #E4E6EB !important;
}
body.dark-mode .chat-search-wrap {
    border-bottom-color: #393A3B !important;
}
body.dark-mode .chat-active-bar {
    background: #242526 !important;
    border-bottom-color: #393A3B !important;
}
body.dark-mode .chat-threads-list {
    background: #242526 !important;
}
body.dark-mode .chat-thread-item {
    border-bottom-color: #2F3031 !important;
    color: #E4E6EB !important;
}
body.dark-mode .chat-thread-item:hover {
    background: #2D3035 !important;
}
body.dark-mode .chat-thread-name {
    color: #E4E6EB !important;
}
body.dark-mode .chat-thread-time {
    color: #9CA3AF !important;
}
body.dark-mode .chat-thread-last-msg {
    color: #B0B3B8 !important;
}
body.dark-mode .chat-window {
    background: #242526 !important;
    border-color: #393A3B !important;
}
body.dark-mode .chat-window-head {
    background: #242526 !important;
    border-bottom-color: #393A3B !important;
}
body.dark-mode .chat-peer-name-row strong {
    color: #E4E6EB !important;
}
body.dark-mode .chat-messages-body {
    background: #18191A !important;
}
body.dark-mode .chat-conversation-start-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #9CA3AF !important;
}
body.dark-mode .chat-input-bar {
    background: #242526 !important;
    border-top-color: #393A3B !important;
}
body.dark-mode .chat-bar-tool-btn {
    color: #9CA3AF !important;
}
body.dark-mode .chat-bar-tool-btn:hover {
    background: #3A3B3C !important;
    color: #EF4444 !important;
}
body.dark-mode .chat-textarea-box {
    background: #3A3B3C !important;
    border-color: #4E4F50 !important;
}
body.dark-mode .chat-textarea-box textarea {
    color: #E4E6EB !important;
}
body.dark-mode .chat-textarea-box textarea::placeholder {
    color: #9CA3AF !important;
}
body.dark-mode .chat-msg-react-btn {
    background: #3A3B3C !important;
    border-color: #4E4F50 !important;
    color: #E4E6EB !important;
}
body.dark-mode .chat-preview-chip {
    background: #242526 !important;
    border-color: #393A3B !important;
    color: #E4E6EB !important;
}
body.dark-mode .chat-new-modal-dialog {
    background: #242526 !important;
    color: #E4E6EB !important;
}
body.dark-mode .chat-new-modal-head {
    border-bottom-color: #393A3B !important;
}
body.dark-mode .chat-new-modal-head h3 {
    color: #E4E6EB !important;
}
body.dark-mode .chat-new-modal-close {
    color: #9CA3AF !important;
}
body.dark-mode .chat-new-modal-close:hover {
    color: #FFFFFF !important;
    background: #3A3B3C !important;
}
body.dark-mode .chat-new-modal-search input {
    background: #3A3B3C !important;
    color: #E4E6EB !important;
}
body.dark-mode .chat-new-user-row {
    color: #E4E6EB !important;
}
body.dark-mode .chat-new-user-row:hover {
    background: #3A3B3C !important;
}

/* ==========================================================================
   29. PWA MOBİL UYUMLU BAŞLIK GİZLEME (STORIES, MESSAGES, FRIENDS, COMMUNITIES, EXPLORE, MARKET)
   ========================================================================== */
@media (max-width: 768px) {
    body.page-stories .top-bar.fb-top-bar,
    body.page-messages .top-bar.fb-top-bar,
    body.page-friends .top-bar.fb-top-bar,
    body.page-communities .top-bar.fb-top-bar,
    body.page-explore .top-bar.fb-top-bar,
    body.page-market .top-bar.fb-top-bar,
    body.page-notifications .top-bar.fb-top-bar,
    body.page-profile .top-bar.fb-top-bar,
    body[class*="page-u-"] .top-bar.fb-top-bar {
        display: none !important;
    }

    body.page-stories .site-shell,
    body.page-messages .site-shell,
    body.page-friends .site-shell,
    body.page-communities .site-shell,
    body.page-explore .site-shell,
    body.page-market .site-shell,
    body.page-notifications .site-shell,
    body.page-profile .site-shell,
    body[class*="page-u-"] .site-shell {
        padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   30. MARKETPLACE — İKİNCİ EL AL & SAT SİSTEMİ (FACEBOOK MARKETPLACE STİLİ)
   ========================================================================== */
.market-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.market-header-card {
    padding: 18px 20px;
    border-radius: var(--radius-card, 16px);
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
}
.market-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.market-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.market-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B000F 0%, #B91C1C 100%);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(139, 0, 15, 0.25);
    flex-shrink: 0;
}
.market-title-meta h1, .market-title-meta h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.3px;
    color: var(--text-main);
}
.market-title-meta p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}
.market-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.market-btn-sell {
    background: linear-gradient(135deg, var(--brand-primary, #8B000F) 0%, #A81324 100%);
    color: #FFFFFF !important;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(139, 0, 15, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    border: 0;
    cursor: pointer;
}
.market-btn-sell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 0, 15, 0.35);
    text-decoration: none;
}
.market-btn-mine {
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main) !important;
    padding: 9px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.market-btn-mine:hover {
    background: var(--border-color);
    text-decoration: none;
}
.market-search-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.market-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.market-search-box input {
    width: 100%;
    background: var(--bg-hover, #F3F4F6);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 9px 16px 9px 38px;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
}
.market-search-box input:focus {
    background: var(--bg-card);
    border-color: var(--brand-primary);
}
.market-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.market-city-select, .market-sort-select {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.market-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.market-categories-scroll::-webkit-scrollbar { display: none; }
.market-cat-pill {
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-hover, #F3F4F6);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.market-cat-pill:hover {
    color: var(--text-main);
    background: var(--border-color);
    text-decoration: none;
}
.market-cat-pill.active {
    background: var(--brand-primary, #8B000F) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-primary, #8B000F) !important;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.25);
}

/* İlan Kartları Izgarası (Facebook Marketplace Tarzı) */
.market-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    width: 100%;
}
@media (max-width: 600px) {
    .market-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
.market-item-card {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.market-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}
.market-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: #E5E7EB;
    overflow: hidden;
}
.market-card-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.market-item-card:hover .market-card-thumb-wrap img {
    transform: scale(1.04);
}
.market-card-cond-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.market-card-sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.market-card-meta {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.market-card-price {
    font-size: 17px;
    font-weight: 850;
    color: var(--brand-primary, #8B000F);
    letter-spacing: -0.3px;
}
.market-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.market-card-location {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.market-card-time {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 4px;
}

/* İlan Detay Görünümü / Modal */
.market-detail-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .market-detail-stage {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.market-gallery-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.market-main-image {
    width: 100%;
    max-height: 480px;
    border-radius: 14px;
    object-fit: cover;
    background: #000;
}
.market-thumbs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.market-thumb-btn {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}
.market-thumb-btn.is-active {
    border-color: var(--brand-primary, #8B000F);
}
.market-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.market-info-pane {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.market-seller-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-hover, #F9FAFB);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.market-seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.market-seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    overflow: hidden;
}
.market-seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.market-contact-btn {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF !important;
    padding: 12px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 750;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.market-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

/* Dark Mode Marketplace */
body.dark-mode .market-header-card,
body.dark-mode .market-item-card {
    background: #242526 !important;
    border-color: #393A3B !important;
    color: #E4E6EB !important;
}
body.dark-mode .market-title-meta h1,
body.dark-mode .market-title-meta h2,
body.dark-mode .market-card-title {
    color: #E4E6EB !important;
}
body.dark-mode .market-btn-mine {
    background: #3A3B3C !important;
    color: #E4E6EB !important;
}
body.dark-mode .market-btn-mine:hover {
    background: #4E4F50 !important;
}
body.dark-mode .market-search-box input {
    background: #3A3B3C !important;
    border-color: #4E4F50 !important;
    color: #E4E6EB !important;
}
body.dark-mode .market-city-select,
body.dark-mode .market-sort-select {
    background: #3A3B3C !important;
    border-color: #4E4F50 !important;
    color: #E4E6EB !important;
}
body.dark-mode .market-cat-pill {
    background: #3A3B3C !important;
    border-color: #4E4F50 !important;
    color: #B0B3B8 !important;
}
body.dark-mode .market-cat-pill:hover {
    background: #4E4F50 !important;
    color: #FFFFFF !important;
}
body.dark-mode .market-card-thumb-wrap {
    background: #18191A !important;
}
body.dark-mode .market-card-price {
    color: #EF4444 !important;
}
body.dark-mode .market-seller-box {
    background: #18191A !important;
    border-color: #393A3B !important;
}

/* Feed İkinci El Kart Önizlemesi (Minimal & Modern) */
.feed-market-card-preview {
    margin: 10px 16px;
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 14px;
    background: var(--bg-hover, #F8FAFC);
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.feed-market-card-preview:hover {
    border-color: var(--brand-primary, #8B000F) !important;
    box-shadow: 0 4px 14px rgba(139, 0, 15, 0.12);
}
.feed-market-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: inherit !important;
}
.feed-market-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}
.feed-market-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feed-market-thumb-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8B000F, #B91C1C);
    color: #fff;
    font-size: 22px;
}
.feed-market-meta {
    flex: 1;
    min-width: 0;
}
.feed-market-tag {
    font-size: 10.5px;
    font-weight: 750;
    color: var(--brand-primary, #8B000F);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.feed-market-title {
    font-size: 14px;
    font-weight: 750;
    color: var(--text-main, #050505);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-market-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}
.feed-market-price {
    font-size: 14px;
    font-weight: 850;
    color: #16A34A;
}
.feed-market-loc {
    font-size: 11.5px;
    color: var(--text-muted, #65676B);
}
.feed-market-action {
    flex-shrink: 0;
}
.feed-market-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease, color 0.15s ease;
}
.feed-market-card-preview:hover .feed-market-btn {
    background: var(--brand-primary, #8B000F);
    color: #fff;
}

body.dark-mode .feed-market-card-preview {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: #393A3B !important;
}
body.dark-mode .feed-market-card-preview:hover {
    border-color: #EF4444 !important;
}
body.dark-mode .feed-market-title {
    color: #E4E6EB !important;
}
body.dark-mode .feed-market-tag {
    color: #F87171 !important;
}
body.dark-mode .feed-market-price {
    color: #4ADE80 !important;
}
body.dark-mode .feed-market-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
}
body.dark-mode .feed-market-card-preview:hover .feed-market-btn {
    background: #DC2626;
    color: #fff;
}

/* Mesaj İçi Mini İlan Kartı (Chat Product Inquiry Card) */
.chat-market-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    color: inherit !important;
    margin-bottom: 8px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    transition: background 0.15s ease, transform 0.12s ease;
}
.chat-market-card:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}
.chat-market-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #E5E7EB;
}
.chat-market-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chat-market-info {
    flex: 1;
    min-width: 0;
}
.chat-market-badge {
    font-size: 10px;
    font-weight: 750;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.chat-market-title {
    font-size: 13px;
    font-weight: 750;
    color: var(--text-main, #050505);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 1px 0;
}
.chat-market-price {
    font-size: 12.5px;
    font-weight: 800;
    color: #16A34A;
}
.chat-market-arrow {
    flex-shrink: 0;
    color: var(--text-muted, #65676B);
    font-size: 11px;
    margin-left: 4px;
}

/* Gönderici (Kendi Mesajımız - Kırmızı Balon) */
.tk-chat-bubble.tk-mine .chat-market-card,
.tk-msg-bubble.self .chat-market-card,
.fb-dock-bubble.self .chat-market-card {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
}
.tk-chat-bubble.tk-mine .chat-market-badge,
.tk-msg-bubble.self .chat-market-badge,
.fb-dock-bubble.self .chat-market-badge {
    color: #DBEAFE !important;
}
.tk-chat-bubble.tk-mine .chat-market-title,
.tk-msg-bubble.self .chat-market-title,
.fb-dock-bubble.self .chat-market-title {
    color: #FFFFFF !important;
}
.tk-chat-bubble.tk-mine .chat-market-price,
.tk-msg-bubble.self .chat-market-price,
.fb-dock-bubble.self .chat-market-price {
    color: #BBF7D0 !important;
}
.tk-chat-bubble.tk-mine .chat-market-arrow,
.tk-msg-bubble.self .chat-market-arrow,
.fb-dock-bubble.self .chat-market-arrow {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Alıcı (Karşı Tarafın Mesajı - Beyaz/Gri Balon) */
.tk-chat-bubble.tk-peer .chat-market-card,
.fb-dock-bubble.peer .chat-market-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}
body.dark-mode .tk-chat-bubble.tk-peer .chat-market-card,
body.dark-mode .fb-dock-bubble.peer .chat-market-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .chat-market-title {
    color: #E4E6EB !important;
}
body.dark-mode .chat-market-price {
    color: #4ADE80 !important;
}

/* Chat İlan Bağlam Çubuğu (Sohbet Penceresi Üstü Pinned Bar) */
.chat-market-context-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(37, 99, 235, 0.08);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
    font-size: 12.5px;
    color: var(--text-main);
}
.chat-market-context-banner a {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chat-market-context-banner a:hover {
    text-decoration: underline;
}
body.dark-mode .chat-market-context-banner {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}
body.dark-mode .chat-market-context-banner a {
    color: #60A5FA;
}

/* -------------------------------------------------------------
   Üye Profil Analizi & Topluluk İstatistikleri Kartı
------------------------------------------------------------- */
.profile-analytics-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.profile-analytics-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.analytics-metric-box {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.analytics-metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
body.dark-mode .profile-analytics-card {
    background: #1E1F20 !important;
    border-color: #393A3B !important;
}
body.dark-mode .analytics-metric-box {
    background: #242526 !important;
    border-color: #393A3B !important;
}
@media (max-width: 600px) {
    .profile-analytics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .profile-analytics-card {
        padding: 12px 12px !important;
    }
    .analytics-metric-box {
        padding: 8px 6px !important;
    }
}

/* Masaüstü Pop-up Chat Dock İlan Kartı Bağlam Çubuğu */
.fb-dock-market-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: #EFF6FF;
    border-bottom: 1px solid #DBEAFE;
    font-size: 11.5px;
    flex-shrink: 0;
}
body.dark-mode .fb-dock-market-banner {
    background: rgba(37, 99, 235, 0.15);
    border-bottom-color: rgba(37, 99, 235, 0.25);
}
.fb-dock-market-banner .dock-market-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.fb-dock-market-banner .dock-market-meta {
    flex: 1;
    min-width: 0;
}
.fb-dock-market-banner .dock-market-title {
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.fb-dock-market-banner .dock-market-price {
    font-weight: 800;
    color: #16A34A;
    font-size: 11px;
}
.fb-dock-market-banner .dock-market-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    padding: 2px 4px;
    line-height: 1;
}

/* ==========================================================================
   MODERN MOBİL VE MASAÜSTÜ PROFİL SAYFASI (INSTAGRAM / THREADS ERGONOMİSİ)
   ========================================================================== */
.profile-header-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border-color, #E5E7EB);
    background: var(--bg-card, #FFFFFF);
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.profile-cover-banner {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.profile-cover-edit-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #FFFFFF !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.15s ease, transform 0.1s ease;
    z-index: 2;
}
.profile-cover-edit-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-1px);
}
.profile-user-info {
    padding: 0 20px 20px 20px;
}
.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--bg-card, #FFFFFF);
    margin-top: -55px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    object-fit: cover;
    background: var(--bg-card, #FFFFFF);
    position: relative;
    z-index: 3;
    display: block;
}
.profile-main-meta {
    margin-top: 10px;
}
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-display-name {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
    color: var(--text-main, #111827);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.profile-username-tag {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted, #6B7280);
    margin-top: 2px;
}
.profile-bio-text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main, #374151);
    word-break: break-word;
}
.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.profile-city-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #4B5563);
    background: rgba(0, 0, 0, 0.04);
    padding: 3px 10px;
    border-radius: 14px;
}

/* İstatistik Çubuğu (Threads / Instagram tarzı) */
.profile-stats-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #F3F4F6);
}
.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}
.profile-stat-item .stat-num {
    font-size: 17px;
    font-weight: 850;
    color: var(--text-main, #111827);
    line-height: 1.15;
}
.profile-stat-item .stat-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #6B7280);
    margin-top: 2px;
}
.profile-stat-item:hover .stat-num {
    color: var(--brand-primary, #8B000F);
}

/* Aksiyon Butonları */
.profile-actions-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}
.profile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.profile-action-btn.btn-primary {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(139, 0, 15, 0.25);
}
.profile-action-btn.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.profile-action-btn.btn-secondary {
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main, #1F2937) !important;
    border-color: var(--border-color, #E5E7EB);
}
.profile-action-btn.btn-secondary:hover {
    background: #E5E7EB;
}
.profile-action-btn.btn-text {
    background: transparent;
    border-color: transparent;
    padding: 0 10px;
}
.profile-action-btn.btn-text.text-danger {
    color: #DC2626 !important;
}
.profile-action-btn.btn-text:hover {
    background: rgba(220, 38, 38, 0.08);
}

/* Profil Analitik & Metrik Kartı */
.profile-analytics-card {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color, #F3F4F6);
}
.profile-analytics-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}
.analytics-head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main, #111827);
}
.analytics-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(139, 0, 15, 0.1);
    color: var(--brand-primary, #8B000F);
    display: grid;
    place-items: center;
    font-size: 12px;
}
.analytics-head-joined {
    font-size: 11.5px;
    color: var(--text-muted, #6B7280);
    display: flex;
    align-items: center;
    gap: 5px;
}
.profile-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.analytics-metric-box {
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.15s ease;
}
.analytics-metric-box:hover {
    transform: translateY(-2px);
}
.analytics-metric-box .metric-val {
    font-size: 20px;
    font-weight: 850;
    line-height: 1.1;
}
.analytics-metric-box .metric-label {
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.analytics-metric-box.metric-posts {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563EB;
}
.analytics-metric-box.metric-market {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #16A34A;
}
.analytics-metric-box.metric-videos {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #DC2626;
}
.analytics-metric-box.metric-likes {
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.2);
    color: #D97706;
}

/* Dark Mode Uyumluluğu */
body.dark-mode .profile-header-card {
    background: var(--bg-card, #242526);
    border-color: #3E4042;
}
body.dark-mode .profile-avatar-large {
    border-color: var(--bg-card, #242526);
    background: var(--bg-card, #242526);
}
body.dark-mode .profile-city-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #D1D5DB;
}
body.dark-mode .profile-action-btn.btn-secondary {
    background: #3A3B3C;
    border-color: #4E4F50;
    color: #E4E6EB !important;
}
body.dark-mode .profile-action-btn.btn-secondary:hover {
    background: #4E4F50;
}
body.dark-mode .profile-analytics-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: #3E4042;
}
body.dark-mode .analytics-metric-box.metric-posts {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #60A5FA;
}
body.dark-mode .analytics-metric-box.metric-market {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ADE80;
}
body.dark-mode .analytics-metric-box.metric-videos {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #F87171;
}
body.dark-mode .analytics-metric-box.metric-likes {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

/* Mobil Uygulama Deneyimi (@media max-width: 768px) */
@media (max-width: 768px) {
    .profile-header-card {
        border-radius: 14px !important;
        margin-bottom: 12px !important;
        border-left: 0;
        border-right: 0;
    }
    .profile-cover-banner {
        height: 125px !important;
    }
    .profile-user-info {
        padding: 0 14px 16px 14px !important;
    }
    .profile-avatar-large {
        width: 82px !important;
        height: 82px !important;
        margin-top: -41px !important;
        border-width: 3.5px !important;
    }
    .profile-display-name {
        font-size: 19px !important;
    }
    .profile-stats-bar {
        justify-content: space-around !important;
        gap: 6px !important;
        padding-top: 10px !important;
        margin-top: 12px !important;
    }
    .profile-stat-item {
        align-items: center !important;
        text-align: center !important;
    }
    .profile-stat-item .stat-num {
        font-size: 16px !important;
    }
    .profile-stat-item .stat-lbl {
        font-size: 11px !important;
    }
    .profile-actions-bar {
        gap: 6px !important;
    }
    .profile-actions-bar .profile-action-btn {
        flex: 1 1 calc(50% - 6px);
        height: 38px !important;
        font-size: 12.5px !important;
        padding: 0 10px !important;
    }
    .profile-actions-bar form {
        display: contents;
    }
    .profile-actions-bar form .profile-action-btn {
        flex: 0 0 38px;
        width: 38px;
        padding: 0 !important;
    }
    .profile-analytics-card {
        padding: 12px 10px !important;
        margin-top: 12px !important;
    }
    .profile-analytics-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 10px;
    }
    .profile-analytics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .analytics-metric-box {
        padding: 10px 8px !important;
        border-radius: 10px !important;
    }
    .analytics-metric-box .metric-val {
        font-size: 18px !important;
    }
    .analytics-metric-box .metric-label {
        font-size: 11px !important;
    }
    .profile-nav-tabs {
        gap: 6px !important;
        padding-bottom: 6px !important;
    }
    .profile-nav-tabs .btn-filter-pill {
        padding: 6px 12px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }
}

/* 🇹🇷 Milli ve Yerli Davet Kartı (Referral & Invite) Stilleri */
.turk-invite-hero {
    transition: all 0.2s ease;
}
html.dark-mode .turk-invite-hero {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(139, 0, 15, 0.08) 100%) !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
}
html.dark-mode .turk-invite-hero div[style*="background: var(--bg-card)"] {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark-mode .turk-invite-hero svg circle[fill="#fff"] {
    fill: #18181b !important;
}
html.dark-mode .turk-brand-badge {
    background: rgba(225, 29, 72, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
}

/* =============================================================
   PWA & MOBİL UX GELİŞTİRMELERİ (Paket 1 & Paket 2)
============================================================= */

/* 1. Ortada Vurgulu + (FAB) Butonu */
.mobile-create-fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E11D48 0%, #8B000F 100%);
    color: #FFFFFF;
    border: 3.5px solid #FFFFFF;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    margin-top: -18px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 95;
}
body.dark-mode .mobile-create-fab,
html.dark-mode .mobile-create-fab {
    border-color: #242526;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.6);
}
.mobile-create-fab:active {
    transform: scale(0.88) rotate(90deg);
}

.mobile-profile-notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #E11D48;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
}
body.dark-mode .mobile-profile-notif-dot,
html.dark-mode .mobile-profile-notif-dot {
    border-color: #242526;
}

/* 2. Mobil Hızlı Paylaşım Menüsü (Bottom Sheet Drawer) */
.tk-create-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.tk-create-bottom-sheet-backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
}
.tk-create-bottom-sheet-dialog {
    background: var(--bg-card, #FFFFFF);
    width: 100%;
    max-width: 520px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.tk-create-bottom-sheet-backdrop:not([hidden]) .tk-create-bottom-sheet-dialog {
    transform: translateY(0);
}
.tk-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color, #E5E7EB);
    border-radius: 3px;
    margin: 4px auto 12px;
}
.tk-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    margin-bottom: 10px;
}
.tk-sheet-title-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E11D48, #8B000F);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.tk-sheet-close-btn {
    background: var(--bg-hover, #F3F4F6);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--text-muted, #6B7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-sheet-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tk-sheet-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main, #111827);
    background: var(--bg-card, #FFFFFF);
    transition: background 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
}
.tk-sheet-action-item:hover, .tk-sheet-action-item:active {
    background: var(--bg-hover, #F3F4F6);
    text-decoration: none;
    transform: scale(0.99);
}
.tk-sheet-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tk-sheet-item-icon.color-post { background: rgba(225, 29, 72, 0.12); color: #E11D48; }
.tk-sheet-item-icon.color-story { background: rgba(245, 158, 11, 0.14); color: #F59E0B; }
.tk-sheet-item-icon.color-reel { background: rgba(139, 92, 246, 0.14); color: #8B5CF6; }
.tk-sheet-item-icon.color-market { background: rgba(16, 185, 129, 0.14); color: #10B981; }
.tk-sheet-item-icon.color-community { background: rgba(59, 130, 246, 0.14); color: #3B82F6; }
.tk-sheet-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tk-sheet-item-text strong {
    font-size: 14.5px;
    font-weight: 700;
}
.tk-sheet-item-text small {
    font-size: 12px;
    color: var(--text-muted, #6B7280);
    margin-top: 1px;
}
.tk-sheet-arrow {
    color: var(--text-muted, #9CA3AF);
    font-size: 13px;
}
.tk-sheet-foot {
    margin-top: 12px;
    padding-top: 6px;
}
.tk-sheet-cancel-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main, #111827);
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* 3. Çift Dokunarak Beğenme (Double-Tap to Like) Kalp Efekti */
.feed-post-card {
    position: relative;
}
.tk-double-tap-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 100;
    color: #E11D48;
    filter: drop-shadow(0 6px 20px rgba(225, 29, 72, 0.6));
    font-size: 85px;
    animation: tkHeartBurst 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes tkHeartBurst {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-15deg);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.3) rotate(0deg);
        opacity: 1;
    }
    45% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.15) translateY(-20px);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.6) translateY(-40px);
        opacity: 0;
    }
}

/* 4. Pull-to-Refresh (Çek-Bırak Yenile) */
.tk-pull-to-refresh {
    position: fixed;
    top: 54px;
    left: 50%;
    transform: translateX(-50%) translateY(-65px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}
body.dark-mode .tk-pull-to-refresh,
html.dark-mode .tk-pull-to-refresh {
    background: #242526;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.tk-pull-to-refresh.visible {
    opacity: 1;
}
.tk-ptr-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(225, 29, 72, 0.2);
    border-top-color: #E11D48;
    border-radius: 50%;
    animation: tkSpin 0.75s linear infinite;
}
@keyframes tkSpin {
    to { transform: rotate(360deg); }
}

/* 5. Canlı Çevrimiçi / Çevrimdışı Durum Çubuğu */
.tk-network-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}
.tk-network-status-bar.show {
    transform: translateY(0);
}
.tk-network-status-bar.offline {
    background: #DC2626;
    color: #FFFFFF;
}
.tk-network-status-bar.online {
    background: #10B981;
    color: #FFFFFF;
}

/* 6. Sol Taraf Alt Bar Üzerinde Havada Duran Efektli Yıldız Butonu (Pure Star FAB) */
.tk-floating-star-fab {
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 16px;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    outline: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    animation: tkStarFloat 2.6s ease-in-out infinite;
}

/* Sadece Saf Yıldız İkonu (Yuvarlak Olmayan, 3D Altın Efektli) */
.tk-pure-star-icon {
    font-size: 40px;
    line-height: 1;
    color: #F59E0B;
    background: linear-gradient(135deg, #FFF176 0%, #FFB300 45%, #E11D48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 16px rgba(255, 193, 7, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    display: inline-block;
}

/* Havada Süzülme ve Hafif Yıldız Dönüş Efekti */
@keyframes tkStarFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(6deg);
    }
}

.tk-floating-star-fab:hover .tk-pure-star-icon {
    transform: scale(1.18) rotate(15deg);
    filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 22px rgba(255, 193, 7, 0.85)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.tk-floating-star-fab:active .tk-pure-star-icon {
    transform: scale(0.84) rotate(-25deg);
}

/* Karanlık Mod Uyumu (Koyu temada ekstra parlak yıldız ışıltısı) */
body.dark-mode .tk-pure-star-icon,
html.dark-mode .tk-pure-star-icon {
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.9)) drop-shadow(0 0 18px rgba(255, 214, 0, 0.75));
}

/* Masaüstü Konumlandırması */
@media (min-width: 993px) {
    .tk-floating-star-fab {
        bottom: 24px;
        left: 24px;
    }
}

/* Hızlı Paylaşım Yıldız Butonu (⭐) SADECE Ana Sayfada Görünür, Diğer Tüm Sayfalarda Kesinlikle Gizlenir */
body:not(.page-home):not(.page-feed) .tk-floating-star-fab,
body:not(.page-home):not(.page-feed) #tk-star-create-btn,
body:not(.page-home):not(.page-feed) #tk-mobile-create-sheet {
    display: none !important;
}

/* =============================================================
   25. MOBİL ODAKLI ULTRA-PREMIUM UI: KEŞFET (/explore)
============================================================= */
.explore-search-hero {
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.explore-search-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.explore-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-muted, #9CA3AF);
    pointer-events: none;
}
#explore-search-input {
    width: 100%;
    height: 46px;
    background: var(--bg-hover, #F3F4F6) !important;
    border: 1.5px solid transparent !important;
    border-radius: 24px !important;
    padding: 0 95px 0 42px !important;
    font-size: 14.5px !important;
    color: var(--text-main) !important;
    outline: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
#explore-search-input:focus {
    background: var(--bg-card, #FFFFFF) !important;
    border-color: var(--brand-primary, #8B000F) !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 15, 0.12) !important;
}
body.dark-mode #explore-search-input {
    background: #23232C !important;
    border-color: #31313E !important;
    color: #F3F4F6 !important;
}
body.dark-mode #explore-search-input:focus {
    background: #181820 !important;
    border-color: #EF4444 !important;
}
.explore-search-clear-btn {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 11px;
    text-decoration: none;
    line-height: 1;
}
body.dark-mode .explore-search-clear-btn {
    background: rgba(255,255,255,0.2);
}
.explore-search-submit-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    padding: 0 16px;
    border-radius: 20px;
    border: none;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.explore-search-submit-btn:active {
    transform: translateY(-50%) scale(0.94);
}

/* Gündem & Trend Etiketler Çubuğu */
.explore-tags-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.explore-tags-scroll::-webkit-scrollbar { display: none; }
.explore-tags-label {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.explore-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 16px;
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.explore-tag-pill:hover,
.explore-tag-pill.active {
    background: var(--brand-light, #FEE2E2);
    color: var(--brand-primary, #8B000F);
    border-color: rgba(139, 0, 15, 0.25);
    text-decoration: none;
}
body.dark-mode .explore-tag-pill {
    background: #23232C;
    border-color: #31313E;
    color: #D1D5DB;
}
body.dark-mode .explore-tag-pill:hover,
body.dark-mode .explore-tag-pill.active {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Kategori Filtre Sekmeleri */
.explore-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}
.explore-filter-tabs::-webkit-scrollbar { display: none; }
.explore-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.explore-tab-item:hover {
    color: var(--text-main);
    background: var(--bg-hover, #F3F4F6);
    text-decoration: none;
}
.explore-tab-item.active {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.35);
    text-decoration: none;
}
body.dark-mode .explore-tab-item:hover {
    background: #23232C;
    color: #F3F4F6;
}

/* Önerilen Kişiler Yatay Kaydırma Kartı */
.explore-suggested-card {
    padding: 16px;
    margin-bottom: 14px;
}
.explore-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.explore-card-heading h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 7px;
}
.explore-see-all-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-primary, #8B000F);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.explore-suggested-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
}
.explore-suggested-scroll::-webkit-scrollbar { display: none; }
.explore-suggested-user-box {
    width: 124px;
    flex-shrink: 0;
    padding: 14px 10px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-hover, #FAFAFA);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.explore-suggested-user-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
body.dark-mode .explore-suggested-user-box {
    background: #1C1C24;
    border-color: #2D2D38;
}
.explore-suggested-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    border: 2px solid var(--brand-primary);
    padding: 1.5px;
    box-sizing: border-box;
}
.explore-suggested-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.explore-suggested-name {
    font-size: 12.5px;
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.25;
}
.explore-suggested-handle {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.btn-follow {
    background: var(--brand-primary, #8B000F) !important;
    color: #FFFFFF !important;
    border: none !important;
}
.btn-following {
    background: var(--bg-hover, #E5E7EB) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

/* Kişiler Listesi Grid */
.explore-people-grid {
    display: flex;
    flex-direction: column;
}
.explore-person-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.explore-person-row:last-child { border-bottom: none; }
.explore-person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
}
.explore-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.explore-person-meta {
    flex: 1;
    min-width: 0;
}
.explore-person-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14.5px;
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.explore-person-username {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}
.explore-person-bio {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.explore-person-action {
    flex-shrink: 0;
}

/* Reels & Video Grid */
.explore-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
@media (min-width: 768px) {
    .explore-videos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}
@media (min-width: 1024px) {
    .explore-videos-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.explore-video-tile {
    position: relative;
    aspect-ratio: 9/16;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}
.explore-video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.explore-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    color: #FFFFFF;
}
.explore-video-caption {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.explore-video-stat {
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    opacity: 0.9;
}
.explore-section-title {
    margin: 18px 0 10px;
    padding: 0 4px;
}
.explore-section-title h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 850;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================================
   26. MOBİL ODAKLI ULTRA-PREMIUM UI: BİLDİRİMLER (/notifications)
============================================================= */
.notif-mobile-header {
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notif-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.notif-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-header-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.notif-counter-pill {
    background: rgba(139, 0, 15, 0.1);
    color: var(--brand-primary, #8B000F);
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}
body.dark-mode .notif-counter-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}
.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main);
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.notif-header-icon-btn:hover {
    background: var(--brand-light, #fee2e2);
    color: var(--brand-primary, #8B000F);
}
.notif-header-read-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-hover, #F3F4F6);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.notif-header-read-btn:hover {
    background: #DEF7EC;
    color: #03543F;
    border-color: #31C48D;
}

/* Bildirim Sekmeleri */
.notif-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}
.notif-tabs-scroll::-webkit-scrollbar { display: none; }
.notif-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--bg-hover, #F3F4F6);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}
.notif-tab-pill:hover {
    color: var(--text-main);
    text-decoration: none;
}
.notif-tab-pill.active {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF !important;
    border-color: var(--brand-primary, #8B000F);
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.35);
    text-decoration: none;
}
body.dark-mode .notif-tab-pill {
    background: #23232C;
    border-color: #31313E;
    color: #D1D5DB;
}

/* Kompakt Politika Bilgi Şeridi */
.notif-compact-policy-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(139, 0, 15, 0.04);
    border: 1px solid rgba(139, 0, 15, 0.12);
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}
.notif-compact-policy-banner i {
    color: var(--brand-primary, #8B000F);
    font-size: 13px;
    flex-shrink: 0;
}
body.dark-mode .notif-compact-policy-banner {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Dokunmatik Bildirim Satırları (Tappable Row) */
.notif-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    margin-bottom: 6px !important;
    text-decoration: none !important;
    color: var(--text-main) !important;
    transition: background 0.15s ease, transform 0.1s ease;
    border-radius: 12px !important;
    position: relative;
    border: 1px solid var(--border-color);
}
.notif-item-row:hover,
.notif-item-row:active {
    background: var(--bg-hover, #F9FAFB) !important;
    text-decoration: none !important;
}
.notif-item-row.is-unread {
    background: #FFF8F8 !important;
    border-left: 4px solid var(--brand-primary, #8B000F) !important;
}
body.dark-mode .notif-item-row.is-unread {
    background: #251216 !important;
    border-left-color: #EF4444 !important;
}
.notif-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
}
.notif-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 17px;
    display: block;
}
.notif-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.notif-reaction-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 9.5px;
    color: #FFFFFF;
    border: 2px solid var(--bg-card, #FFFFFF);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
body.dark-mode .notif-reaction-badge {
    border-color: #1E1E26;
}
.badge-heart { background: #EF4444; }
.badge-comment { background: #10B981; }
.badge-user { background: #0EA5E9; }
.badge-fire { background: #F97316; }
.badge-mention { background: #8B5CF6; }
.badge-market { background: #16A34A; }
.badge-broadcast { background: #DC2626; }
.badge-default { background: var(--brand-primary, #8B000F); }

.notif-meta-wrap {
    flex: 1;
    min-width: 0;
}
.notif-text-line {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.4;
    word-break: break-word;
}
.notif-text-line strong {
    font-weight: 750;
    color: var(--text-main);
}
.notif-time-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary, #8B000F);
    display: inline-block;
}
.notif-arrow-action {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.6;
    flex-shrink: 0;
    padding-left: 4px;
}

/* Bildirim Tercihleri İkon Kutucukları */
.pref-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}
.pref-msg { background: rgba(236,72,153,0.12); color: #ec4899; }
.pref-heart { background: rgba(239,68,68,0.12); color: #ef4444; }
.pref-comm { background: rgba(16,185,129,0.12); color: #10b981; }
.pref-users { background: rgba(14,165,233,0.12); color: #0ea5e9; }
.pref-sys { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.pref-mute { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* =============================================================
   27. MOBİL ODAKLI ULTRA-PREMIUM UI: MESAJLAR & SOHBET (/messages)
============================================================= */
@media (max-width: 768px) {
    /* Sohbet açıkken yüzen yıldız FAB'ı gizle */
    body:has(.chat-window-head) .tk-floating-star-fab,
    body.mobile-chat-fullscreen .tk-floating-star-fab {
        display: none !important;
    }

    /* Sohbet Listesi Ekranı */
    .chat-sidebar-head {
        padding: 12px 14px !important;
    }
    .chat-head-title-wrap h2 {
        font-size: 19px !important;
    }
    .chat-search-wrap {
        padding: 8px 12px !important;
    }
    #chat-threads-search {
        height: 40px !important;
        font-size: 13.5px !important;
    }
    .chat-thread-item {
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .chat-thread-av-wrap {
        width: 48px !important;
        height: 48px !important;
    }
    .chat-thread-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
    }
    .chat-thread-name {
        font-size: 14.5px !important;
    }
    .chat-thread-snippet {
        font-size: 13px !important;
    }

    /* Aktif Sohbet Penceresi (Tam Ekran) */
    .chat-window-head {
        height: 58px !important;
        padding: 0 12px !important;
    }
    .chat-back-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    .chat-peer-name-row strong {
        font-size: 15px !important;
    }
    .chat-peer-subline {
        font-size: 11.5px !important;
    }

    /* Baloncuklar */
    .tk-chat-bubble {
        max-width: 84% !important;
        font-size: 14px !important;
        padding: 9px 13px 7px !important;
    }

    /* Giriş Çubuğu */
    .chat-input-bar {
        padding: 6px 10px max(10px, env(safe-area-inset-bottom)) !important;
        gap: 8px !important;
    }
    .chat-bar-tool-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    .chat-textarea-box {
        border-radius: 22px !important;
        padding: 2px 10px 2px 6px !important;
    }
    .chat-textarea-box textarea {
        font-size: 15px !important;
        padding: 8px 4px !important;
    }
    .chat-submit-circle-btn {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Yasal Sayfalar & Kayıt Onay Kutusu (5651 & KVKK Uyumlu) */
.auth-legal-consent-card {
    transition: all 0.2s ease;
}
.auth-legal-consent-card:hover {
    border-color: rgba(139, 0, 15, 0.4) !important;
}
.legal-page-body h3 {
    margin: 28px 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-primary, #8B000F);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}
.legal-page-body h3:first-child {
    margin-top: 0;
}
.legal-page-body p {
    margin: 0 0 14px;
    color: var(--text-main);
}
.legal-page-body ul, .legal-page-body ol {
    margin: 0 0 16px 20px;
    padding: 0;
    color: var(--text-main);
}
.legal-page-body li {
    margin-bottom: 6px;
}
.legal-nav-tabs a {
    transition: all 0.15s ease;
    white-space: nowrap;
}
.legal-nav-tabs a:hover {
    opacity: 0.9;
}

/* =============================================================
   🛒 AKIŞ İÇİ İKİNCİ EL / MARKETPLACE KAYDIRICISI (Feed Carousel)
   ============================================================= */
.fb-market-feed-card,
.fb-friends-feed-card {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 12px;
}
body.dark-mode .fb-market-feed-card,
body.dark-mode .fb-friends-feed-card {
    background: #242526;
    border-color: #393A3B;
}

.fb-market-item-slide {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.fb-market-item-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 0, 15, 0.35);
    text-decoration: none !important;
}
body.dark-mode .fb-market-item-slide {
    background: #1C1E21;
    border-color: #393A3B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.dark-mode .fb-market-item-slide:hover {
    border-color: #E11D48;
}

.fb-market-slide-thumb,
.fb-market-item-thumb-wrap {
    width: 100%;
    height: 128px;
    position: relative;
    background: #F1F5F9;
    overflow: hidden;
}
.fb-market-slide-thumb img,
.fb-market-item-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.fb-market-item-slide:hover .fb-market-slide-thumb img,
.fb-market-item-slide:hover .fb-market-item-thumb-wrap img {
    transform: scale(1.05);
}
.fb-market-slide-placeholder,
.fb-market-item-no-thumb {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%);
    color: #E11D48;
    font-size: 26px;
}
body.dark-mode .fb-market-slide-placeholder,
body.dark-mode .fb-market-item-no-thumb {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(139, 0, 15, 0.3) 100%);
    color: #FDA4AF;
}

.fb-market-slide-price,
.fb-market-price-pill {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: -0.2px;
}

.fb-market-slide-info,
.fb-market-item-info {
    padding: 9px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.fb-market-slide-title,
.fb-market-item-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main, #050505);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
body.dark-mode .fb-market-slide-title,
body.dark-mode .fb-market-item-title {
    color: #E4E6EB;
}
.fb-market-slide-loc,
.fb-market-item-loc {
    font-size: 11px;
    color: var(--text-muted, #65676B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}
body.dark-mode .fb-market-slide-loc,
body.dark-mode .fb-market-item-loc {
    color: #B0B3B8;
}

/* =============================================================
   👥 AKIŞ İÇİ KİŞİ & ARKADAŞ ÖNERİLERİ KAYDIRICISI (Feed Carousel)
   ============================================================= */
.fb-friend-item-slide {
    flex: 0 0 152px !important;
    width: 152px !important;
    min-width: 152px !important;
    max-width: 152px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 14px;
    padding: 16px 12px 14px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.fb-friend-item-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    border-color: rgba(139, 0, 15, 0.25);
}
body.dark-mode .fb-friend-item-slide {
    background: #1C1E21;
    border-color: #393A3B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.dark-mode .fb-friend-item-slide:hover {
    border-color: #E11D48;
}

/* Standart Sabit Boyutlu Profil Resmi Çerçevesi (Masaüstü & Mobil Eşit Boyut) */
.fb-friend-card-avatar-wrap {
    display: block !important;
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    margin: 0 auto 10px !important;
    text-decoration: none !important;
    position: relative !important;
    flex-shrink: 0 !important;
}
.fb-friend-card-avatar-ring {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: relative !important;
    border: 2.5px solid #FFFFFF !important;
    box-shadow: 0 0 0 1.5px var(--border-color, #E4E6EB), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    background: var(--brand-light, #FEE2E2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.dark-mode .fb-friend-card-avatar-ring {
    border-color: #242526 !important;
    box-shadow: 0 0 0 1.5px #393A3B, 0 3px 10px rgba(0, 0, 0, 0.4) !important;
    background: #2D3035 !important;
}
.fb-friend-item-slide:hover .fb-friend-card-avatar-ring {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--brand-primary, #8B000F), 0 5px 14px rgba(139, 0, 15, 0.2) !important;
}

.fb-friend-card-avatar-img,
.fb-friend-card-avatar {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}
.fb-friend-card-initial {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    font-weight: 850 !important;
    color: var(--brand-primary, #8B000F) !important;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECDD3 100%) !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    user-select: none !important;
}
body.dark-mode .fb-friend-card-initial {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(139, 0, 15, 0.35)) !important;
    color: #FDA4AF !important;
}

/* Kullanıcı Bilgisi (Meta Alanı - Tüm Kartlarda Eşit Yükseklik) */
.fb-friend-card-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    height: 56px !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
}
.fb-friend-card-name {
    font-size: 13.5px !important;
    font-weight: 750 !important;
    color: var(--text-main, #050505) !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}
.fb-friend-card-name:hover {
    color: var(--brand-primary, #8B000F) !important;
}
body.dark-mode .fb-friend-card-name {
    color: #E4E6EB !important;
}
.fb-friend-card-username {
    font-size: 11.5px !important;
    color: var(--text-muted, #65676B) !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.25 !important;
}
body.dark-mode .fb-friend-card-username {
    color: #B0B3B8 !important;
}
.fb-friend-card-sub {
    font-size: 11px !important;
    color: #10B981 !important;
    font-weight: 600 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin-top: 1px !important;
}
body.dark-mode .fb-friend-card-sub {
    color: #34D399 !important;
}

/* Takip Butonu (Modern Kapsül Buton) */
.fb-friend-follow-form {
    margin: 0 !important;
    width: 100% !important;
}
.fb-friend-follow-btn {
    width: 100% !important;
    height: 34px !important;
    border-radius: 20px !important;
    border: 0 !important;
    background: var(--brand-primary, #8B000F) !important;
    color: #FFFFFF !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease !important;
    padding: 0 10px !important;
    box-shadow: 0 2px 6px rgba(139, 0, 15, 0.2) !important;
    box-sizing: border-box !important;
}
.fb-friend-follow-btn:hover {
    background: #6e000c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(139, 0, 15, 0.3) !important;
}
.fb-friend-follow-btn.following {
    background: var(--bg-hover, #F0F2F5) !important;
    color: var(--text-main, #050505) !important;
    border: 1px solid var(--border-color, #CBD5E1) !important;
    box-shadow: none !important;
}
body.dark-mode .fb-friend-follow-btn.following {
    background: #3A3B3C !important;
    color: #E4E6EB !important;
    border-color: #4E4F50 !important;
}

/* /friends Sayfası Kart İyileştirmesi */
.person-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
}
.person-card-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: var(--brand-light, #fee2e2) !important;
    color: var(--brand-primary, #8B000F) !important;
    display: grid !important;
    place-items: center !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    border: 2px solid var(--border-color, #E4E6EB) !important;
    flex-shrink: 0 !important;
}
.person-card-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
body.dark-mode .person-card-avatar {
    border-color: #393A3B !important;
    background: #2D3035 !important;
}

/* Mobil Responsive Kuralları */
@media (max-width: 600px) {
    .fb-market-item-slide {
        flex: 0 0 142px !important;
        width: 142px !important;
        min-width: 142px !important;
        max-width: 142px !important;
    }
    .fb-market-slide-thumb,
    .fb-market-item-thumb-wrap {
        height: 114px !important;
    }
    .fb-friend-item-slide {
        flex: 0 0 136px !important;
        width: 136px !important;
        min-width: 136px !important;
        max-width: 136px !important;
        padding: 14px 8px 12px !important;
        border-radius: 12px !important;
    }
    .fb-friend-card-avatar-wrap {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin-bottom: 8px !important;
    }
    .fb-friend-card-initial {
        font-size: 21px !important;
    }
    .fb-friend-card-meta {
        height: 50px !important;
        margin-bottom: 8px !important;
    }
    .fb-friend-card-name {
        font-size: 12.5px !important;
    }
    .fb-friend-card-username {
        font-size: 11px !important;
    }
    .fb-friend-card-sub {
        font-size: 10px !important;
    }
    .fb-friend-follow-btn {
        height: 32px !important;
        font-size: 11.5px !important;
        border-radius: 16px !important;
    }
}

/* =============================================================
   🛍️ İLAN DETAY SAYFASI: BENZER İLANLAR BÖLÜMÜ
   ============================================================= */
.market-similar-section {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
body.dark-mode .market-similar-section {
    background: #242526 !important;
    border-color: #393A3B !important;
}
@media (max-width: 600px) {
    .market-similar-section {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
}

/* =============================================================
   🛒 MARKETPLACE "SATILDI" & FİLTRE STİLLERİ
   ============================================================= */
.market-item-card.is-sold {
    opacity: 0.78;
    position: relative;
}
.market-card-sold-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.85);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(2px);
    z-index: 2;
}
.market-item-card.is-sold .market-card-thumb-wrap img {
    filter: grayscale(70%);
}
.market-filter-subrow input:focus {
    outline: none;
    border-color: #8B000F !important;
}

/* =============================================================
   👥 TOPLULUK KAPAK / BANNER & ÖZEL GRUP STİLLERİ
   ============================================================= */
.community-banner-card {
    border: 1px solid var(--border-color, #E4E6EB);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body.dark-mode .community-banner-card {
    border-color: #393A3B !important;
}







/* =============================================================
   🎧 DESTEK MERKEZİ (/support) KUSURSUZ RESPONSIVE VE DÜZEN STİLLERİ
   ============================================================= */
body.page-support .right-sidebar {
    display: none !important;
}
body.page-support .site-shell {
    grid-template-columns: 240px minmax(0, 920px) !important;
    max-width: 1220px !important;
    justify-content: center !important;
    gap: 24px !important;
}
body.page-support .center-content {
    max-width: 920px !important;
    width: 100% !important;
}
body.page-support .support-page-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.page-support .support-main-card {
    padding: 30px 28px !important;
    border-radius: 16px !important;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E6EB);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
body.dark-mode .support-main-card {
    background: #242526 !important;
    border-color: #393A3B !important;
}

/* Üst Başlık Bloğu */
.support-header-block {
    text-align: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color, #E4E6EB);
    padding-bottom: 18px;
}
.support-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(139, 0, 15, 0.08);
    color: var(--brand-primary, #8B000F);
    font-size: 22px;
    margin-bottom: 10px;
}
body.dark-mode .support-header-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}
.support-header-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}
.support-header-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.5;
}

/* Yasal / Destek Sayfaları Sekmeleri */
.support-nav-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-hover, #F3F4F6);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.support-nav-tabs::-webkit-scrollbar {
    display: none;
}
body.dark-mode .support-nav-tabs {
    background: #18191A !important;
}
.support-nav-tab {
    flex: 1 0 auto;
    text-align: center;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted, #6B7280);
    background: transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.support-nav-tab:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
}
body.dark-mode .support-nav-tab:hover {
    background: rgba(255, 255, 255, 0.06);
}
.support-nav-tab.active {
    color: #FFFFFF !important;
    background: var(--brand-primary, #8B000F) !important;
    box-shadow: 0 2px 8px rgba(139, 0, 15, 0.25);
}

/* İki Sütunlu Form Alanları */
.support-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}
.support-form input,
.support-form select,
.support-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Üye Rozeti Kartı */
.support-member-pill-card {
    background: rgba(139, 0, 15, 0.04);
    border: 1px solid rgba(139, 0, 15, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
body.dark-mode .support-member-pill-card {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Bot Doğrulama Kartı */
.support-captcha-card {
    background: var(--bg-hover, #F9FAFB);
    border: 1.5px dashed var(--border-color, #E5E7EB);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
body.dark-mode .support-captcha-card {
    background: #18191A !important;
    border-color: #393A3B !important;
}
.support-captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}
.support-captcha-label i {
    color: var(--brand-primary, #8B000F);
    font-size: 16px;
}
.support-captcha-math {
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1px;
}
.support-captcha-input-wrap {
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}

/* Takip Kodu Sorgulama Kutusu */
.support-tracking-box {
    background: var(--bg-hover, #F9FAFB);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 18px;
}
body.dark-mode .support-tracking-box {
    background: #18191A !important;
    border-color: #393A3B !important;
}
.support-tracking-form {
    display: flex;
    gap: 10px;
    width: 100%;
}
.support-tracking-form input {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.support-tracking-form button {
    flex-shrink: 0;
}

/* Sonuç Kartı Stilleri */
.support-result-block {
    margin-bottom: 26px;
}
.support-ticket-detail-box {
    background: var(--bg-hover, #F9FAFB);
    border: 1.5px solid var(--border-color, #E5E7EB);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
body.dark-mode .support-ticket-detail-box {
    background: #18191A !important;
    border-color: #393A3B !important;
}
.support-ticket-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.support-ticket-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.support-tracking-badge {
    font-family: monospace;
    font-size: 13.5px;
    font-weight: 800;
    background: var(--bg-card, #FFFFFF);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #E5E7EB);
    color: var(--brand-primary, #8B000F);
}
.support-ticket-title {
    margin: 4px 0 0 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    word-break: break-word;
}
.support-ticket-user-msg {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
body.dark-mode .support-ticket-user-msg {
    background: #242526 !important;
    border-color: #393A3B !important;
}
.support-ticket-admin-reply {
    background: rgba(16, 185, 129, 0.06);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 16px 18px;
}
.support-ticket-pending-alert {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed #F59E0B;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #B45309;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.support-ticket-notfound-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

/* =============================================================
   RESPONSIVE MEDYA KURALLARI (MOBİL & TABLET)
   ============================================================= */
@media (max-width: 992px) {
    body.page-support .site-shell {
        display: block !important;
        padding: 0 12px 75px !important;
        margin: 10px auto !important;
        max-width: 100% !important;
    }
    body.page-support .left-sidebar,
    body.page-support .right-sidebar {
        display: none !important;
    }
    body.page-support .support-main-card {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
    body.page-support .support-header-title {
        font-size: 19px !important;
    }
}

@media (max-width: 640px) {
    .support-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .support-captcha-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .support-captcha-input-wrap {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .support-tracking-form {
        flex-direction: column !important;
    }
    .support-tracking-form button {
        width: 100% !important;
        padding: 12px !important;
    }
    .support-member-pill-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 480px) {
    body.page-support .site-shell {
        padding: 0 8px 75px !important;
        margin: 6px auto !important;
    }
    body.page-support .support-main-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .support-nav-tab {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }
}


/* =============================================================
   22. MOBİL & PWA MESAJLAŞMA MOTORU (NATIVE APP FEEL & PWA FIX)
   ============================================================= */
@media (max-width: 992px) {
    /* Aktif Sohbette Header, Alt Gezinme Barı ve Yan Sütunları Gizle */
    body.mobile-chat-fullscreen .top-bar,
    body.page-messages-active .top-bar,
    body:has(.chat-window-head) .top-bar,
    body.mobile-chat-fullscreen .mobile-nav-bar,
    body.page-messages-active .mobile-nav-bar,
    body:has(.chat-window-head) .mobile-nav-bar,
    body.mobile-chat-fullscreen .tk-floating-star-fab,
    body.page-messages-active .tk-floating-star-fab,
    body.mobile-chat-fullscreen .tk-top-notif-banner,
    body.page-messages-active .tk-top-notif-banner,
    body.mobile-chat-fullscreen .tk-pwa-bottom-bar,
    body.page-messages-active .tk-pwa-bottom-bar {
        display: none !important;
    }

    body.mobile-chat-fullscreen,
    body.page-messages-active {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    body.mobile-chat-fullscreen .site-shell,
    body.page-messages-active .site-shell,
    body:has(.chat-window-head) .site-shell {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* Tam Ekran Sabit Sohbet Konteyneri */
    .chat-container-layout:has(.chat-window-head),
    body.mobile-chat-fullscreen .chat-container-layout,
    body.page-messages-active .chat-container-layout {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        width: 100vw !important;
        height: 100% !important;
        height: 100dvh;
        height: var(--chat-visual-h, 100%);
        max-height: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #FFFFFF !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body.dark-mode .chat-container-layout:has(.chat-window-head),
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout,
    body.dark-mode.page-messages-active .chat-container-layout {
        background: #18191A !important;
    }

    /* Sol Sohbet Listesini Gizle, Sadece Aktif Konuşmayı Göster */
    .chat-container-layout:has(.chat-window-head) .chat-sidebar,
    body.mobile-chat-fullscreen .chat-container-layout .chat-sidebar,
    body.page-messages-active .chat-container-layout .chat-sidebar {
        display: none !important;
    }

    /* Sohbet Penceresi (.card padding ve margin ezilmelerini tamamen sıfırla) */
    .chat-container-layout:has(.chat-window-head) .chat-window,
    body.mobile-chat-fullscreen .chat-container-layout .chat-window,
    body.page-messages-active .chat-container-layout .chat-window,
    .chat-container-layout .chat-window.card {
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        background: transparent !important;
    }

    /* Sohbet Başlığı (Çentik / Safe Area Inset Top Uyumu) */
    .chat-container-layout:has(.chat-window-head) .chat-window-head,
    body.mobile-chat-fullscreen .chat-container-layout .chat-window-head,
    body.page-messages-active .chat-container-layout .chat-window-head {
        padding: 8px 12px !important;
        padding-top: max(10px, calc(8px + env(safe-area-inset-top, 0px))) !important;
        background: var(--bg-card, #FFFFFF) !important;
        border-bottom: 1px solid var(--border-color, #E5E7EB) !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
        height: auto !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head) .chat-window-head,
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout .chat-window-head,
    body.dark-mode.page-messages-active .chat-container-layout .chat-window-head {
        background: #242526 !important;
        border-bottom-color: #393A3B !important;
    }

    /* Mesajlar Akış Gövdesi (WhatsApp/Telegram Yumuşak Kaydırma) */
    .chat-container-layout:has(.chat-window-head) .chat-messages-body,
    body.mobile-chat-fullscreen .chat-container-layout .chat-messages-body,
    body.page-messages-active .chat-container-layout .chat-messages-body {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 10px 14px !important;
        background: #F4F6F8 !important;
        box-sizing: border-box !important;
        overscroll-behavior-y: contain !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head) .chat-messages-body,
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout .chat-messages-body,
    body.dark-mode.page-messages-active .chat-container-layout .chat-messages-body {
        background: #111213 !important;
    }

    /* MESAJ YAZMA ALANI (PWA & MOBİLDE ASLA KESİLMEYEN & YARIM KALMAYAN ÇUBUK) */
    .chat-container-layout:has(.chat-window-head) .chat-input-bar,
    body.mobile-chat-fullscreen .chat-container-layout .chat-input-bar,
    body.page-messages-active .chat-container-layout .chat-input-bar {
        padding: 8px 10px !important;
        padding-bottom: max(10px, calc(8px + env(safe-area-inset-bottom, 0px))) !important;
        gap: 8px !important;
        background: var(--bg-card, #FFFFFF) !important;
        border-top: 1px solid var(--border-color, #E5E7EB) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: flex-end !important;
        position: relative !important;
        z-index: 20 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03) !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head) .chat-input-bar,
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout .chat-input-bar,
    body.dark-mode.page-messages-active .chat-container-layout .chat-input-bar {
        background: #242526 !important;
        border-top-color: #393A3B !important;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25) !important;
    }

    /* Kapsül Giriş Kutusu */
    .chat-container-layout:has(.chat-window-head) .chat-textarea-box,
    body.mobile-chat-fullscreen .chat-container-layout .chat-textarea-box,
    body.page-messages-active .chat-container-layout .chat-textarea-box {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 2px 10px 2px 6px !important;
        border-radius: 24px !important;
        gap: 6px !important;
        background: var(--bg-hover, #F3F4F6) !important;
        display: flex !important;
        align-items: center !important;
        min-height: 40px !important;
        box-sizing: border-box !important;
        border: 1.5px solid transparent !important;
        transition: border-color 0.15s ease, background 0.15s ease !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-textarea-box:focus-within,
    body.mobile-chat-fullscreen .chat-container-layout .chat-textarea-box:focus-within,
    body.page-messages-active .chat-container-layout .chat-textarea-box:focus-within {
        background: var(--bg-card, #FFFFFF) !important;
        border-color: var(--brand-primary, #8B000F) !important;
    }
    body.dark-mode .chat-container-layout:has(.chat-window-head) .chat-textarea-box,
    body.dark-mode.mobile-chat-fullscreen .chat-container-layout .chat-textarea-box,
    body.dark-mode.page-messages-active .chat-container-layout .chat-textarea-box {
        background: #3A3B3C !important;
    }

    .chat-container-layout:has(.chat-window-head) .chat-textarea-box textarea,
    body.mobile-chat-fullscreen .chat-container-layout .chat-textarea-box textarea,
    body.page-messages-active .chat-container-layout .chat-textarea-box textarea {
        font-size: 15px !important;
        padding: 7px 4px !important;
        min-height: 22px !important;
        max-height: 100px !important;
        line-height: 20px !important;
        color: var(--text-main) !important;
        box-sizing: border-box !important;
    }

    /* Fotoğraf & Medya Butonu */
    .chat-container-layout:has(.chat-window-head) .chat-bar-tool-btn,
    body.mobile-chat-fullscreen .chat-container-layout .chat-bar-tool-btn,
    body.page-messages-active .chat-container-layout .chat-bar-tool-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        margin-bottom: 1px !important;
        flex-shrink: 0 !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 50% !important;
        color: var(--text-muted) !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-bar-tool-btn:active,
    body.mobile-chat-fullscreen .chat-container-layout .chat-bar-tool-btn:active {
        transform: scale(0.92) !important;
    }

    /* Emoji Butonu */
    .chat-container-layout:has(.chat-window-head) .chat-capsule-emoji-btn,
    body.mobile-chat-fullscreen .chat-container-layout .chat-capsule-emoji-btn,
    body.page-messages-active .chat-container-layout .chat-capsule-emoji-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }

    /* Dinamik Gönder / Mikrofon Butonu */
    .chat-container-layout:has(.chat-window-head) .chat-submit-circle-btn,
    body.mobile-chat-fullscreen .chat-container-layout .chat-submit-circle-btn,
    body.page-messages-active .chat-container-layout .chat-submit-circle-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin-bottom: 1px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--brand-primary, #8B000F) 0%, #A81324 100%) !important;
        color: #FFFFFF !important;
        box-shadow: 0 2px 8px rgba(139, 0, 15, 0.3) !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-submit-circle-btn:active,
    body.mobile-chat-fullscreen .chat-container-layout .chat-submit-circle-btn:active {
        transform: scale(0.92) !important;
    }
}

/* =============================================================
   PWA STANDALONE ÖZEL UYUM (ANA EKRANA EKLENEN UYGULAMA MODU)
   ============================================================= */
@media all and (display-mode: standalone), (display-mode: fullscreen) {
    .chat-container-layout:has(.chat-window-head) .chat-input-bar,
    body.mobile-chat-fullscreen .chat-container-layout .chat-input-bar,
    body.page-messages-active .chat-container-layout .chat-input-bar {
        padding-bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 14px))) !important;
    }
    .chat-container-layout:has(.chat-window-head) .chat-window-head,
    body.mobile-chat-fullscreen .chat-container-layout .chat-window-head,
    body.page-messages-active .chat-container-layout .chat-window-head {
        padding-top: max(14px, calc(10px + env(safe-area-inset-top, 16px))) !important;
    }
}


/* =============================================================
   ULTRA-PREMIUM YORUM VE KARŞILIK VERME SİSTEMİ (THREADS / FB / IG)
   ============================================================= */
.single-post-comments-wrap {
    padding: 20px 22px 24px !important;
    border-top: 1px solid var(--border-color, #E4E6EB);
    background: var(--bg-card, #FFFFFF);
    border-radius: 0 0 16px 16px;
}

body.dark-mode .single-post-comments-wrap {
    background: #242526 !important;
    border-top-color: #393A3B !important;
}

.comments-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #E4E6EB);
}

body.dark-mode .comments-section-header {
    border-bottom-color: #393A3B;
}

/* Yorumlar Listesi */
.tk-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.tk-comment-thread {
    display: flex;
    gap: 12px;
    position: relative;
    transition: transform 0.2s ease;
}

.tk-comment-thread.is-highlighted {
    animation: tkCommentHighlight 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tkCommentHighlight {
    0% { background: rgba(139, 0, 15, 0.14); border-radius: 12px; padding: 4px; }
    100% { background: transparent; padding: 0; }
}

.tk-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--brand-primary, #8B000F);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid var(--border-color, #E4E6EB);
    text-decoration: none !important;
    transition: transform 0.15s ease;
}

.tk-comment-avatar:hover {
    transform: scale(1.05);
}

.tk-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Yorum Baloncuğu */
.tk-comment-bubble {
    background: var(--bg-hover, #F0F2F5) !important;
    border-radius: 18px !important;
    padding: 10px 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    max-width: 100%;
    word-break: break-word;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

body.dark-mode .tk-comment-bubble {
    background: #3A3B3C !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #E4E6EB !important;
}

.tk-comment-author {
    font-size: 13.5px;
    font-weight: 750;
    color: var(--text-main, #050505);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .tk-comment-author {
    color: #FFFFFF !important;
}

.tk-comment-author:hover {
    text-decoration: underline !important;
    color: var(--brand-primary, #8B000F) !important;
}

.tk-comment-body {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--text-main, #050505) !important;
    margin-top: 4px !important;
}

body.dark-mode .tk-comment-body {
    color: #E4E6EB !important;
}

/* Aksiyon Çubuğu (Beğen, Yanıtla, Süre) */
.tk-comment-actions-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-muted, #65676B);
}

.tk-comment-act-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #65676B);
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.tk-comment-act-btn:hover {
    color: var(--text-main, #050505);
    background: var(--bg-hover, rgba(0, 0, 0, 0.05));
}

body.dark-mode .tk-comment-act-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.tk-comment-like-btn.liked {
    color: #F23E5C !important;
}

.tk-comment-like-btn.liked i {
    animation: heartBounce 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.tk-comment-reply-btn:hover {
    color: var(--brand-primary, #8B000F) !important;
}

/* Yanıtlar Bölümü (Nested Hierarchy) */
.tk-comment-replies-wrap {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid var(--border-color, #E4E6EB);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.dark-mode .tk-comment-replies-wrap {
    border-left-color: #393A3B;
}

.tk-replies-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted, #65676B);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    width: fit-content;
    transition: color 0.15s ease, background 0.15s ease;
}

.tk-replies-toggle-btn:hover {
    color: var(--brand-primary, #8B000F);
    background: var(--bg-hover, rgba(0, 0, 0, 0.04));
}

/* Inline Yanıt Formu */
.tk-comment-inline-reply-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tk-reply-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-hover, #F0F2F5);
    border: 1px solid var(--border-color, #E4E6EB);
    border-radius: 20px;
    padding: 3px 6px 3px 14px;
    transition: border-color 0.15s ease;
}

body.dark-mode .tk-reply-input-wrap {
    background: #3A3B3C;
    border-color: #4E4F50;
}

.tk-reply-input-wrap:focus-within {
    border-color: var(--brand-primary, #8B000F);
    background: var(--bg-card, #FFFFFF);
}

.tk-reply-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    padding: 6px 0;
}

/* Ana Yorum Kutusu */
.post-add-comment-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #E4E6EB);
}

body.dark-mode .post-add-comment-box {
    border-top-color: #393A3B;
}

.tk-replying-banner {
    animation: slideDownFade 0.22s ease-out;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tk-c-quick-emoji {
    -webkit-tap-highlight-color: transparent;
}

.tk-c-quick-emoji:hover {
    transform: scale(1.22);
    border-color: var(--brand-primary, #8B000F) !important;
}

.tk-c-quick-emoji:active {
    transform: scale(0.92);
}

@media (max-width: 640px) {
    .single-post-comments-wrap {
        padding: 14px 12px 18px !important;
    }
    .tk-comment-replies-wrap {
        margin-left: 10px;
        padding-left: 10px;
    }
    .tk-comment-avatar {
        width: 32px;
        height: 32px;
    }
}
