[hidden] { display: none !important; }
/* =========================================================================
   BITIG SOSYAL — THREADS İLHAMLI PREMIUM MOBİL-ÖNCELİKLİ TASARIM SİSTEMİ
   Palet: #111111, #666666, #FFFFFF, #FAFAFA, #EEEEEE, #6957E8, #16A36A, #E5484D
   ========================================================================= */
:root {
    --primary: #111111;
    --secondary: #666666;
    --bg: #FFFFFF;
    --surface: #FAFAFA;
    --surface-hover: #F3F3F5;
    --border: #EEEEEE;
    --accent: #6957E8;
    --success: #16A36A;
    --danger: #E5484D;
    --glass: rgba(255, 255, 255, 0.86);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
    --primary: #F5F5F7;
    --secondary: #9CA3AF;
    --bg: #0A0A0A;
    --surface: #141416;
    --surface-hover: #1D1D21;
    --border: #232326;
    --accent: #7C6CF2;
    --glass: rgba(10, 10, 10, 0.86);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* --- MASAÜSTÜ 3 SÜTUNLU MİMARİ --- */
.app-grid {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 256px minmax(0, 620px) 310px;
    justify-content: center;
    gap: 24px;
    min-height: 100dvh;
}
.app-grid-reels {
    grid-template-columns: 256px minmax(0, 1fr);
}

/* Sol Sabit Sütun */
.left-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
}
.desktop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 22px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    position: relative;
}
.brand-badge::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    top: 6px;
    right: 6px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 16px;
    color: var(--secondary);
    transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.side-link i { font-size: 21px; }
.side-link:hover { background: var(--surface); color: var(--primary); }
.side-link.active { color: var(--primary); font-weight: 700; background: var(--surface); }
.icon-rel { position: relative; display: inline-flex; }
.nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-compose-desktop {
    margin-top: 14px;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s ease, transform 0.12s ease;
}
.btn-compose-desktop:hover { opacity: 0.9; transform: translateY(-1px); }

.sidebar-bottom { display: flex; flex-direction: column; gap: 10px; }
.side-footer-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 13.5px;
}
.side-footer-btn:hover { background: var(--surface); color: var(--primary); }
.sidebar-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.sidebar-me-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-handle { font-size: 12.5px; color: var(--secondary); }

/* Orta Akış Sütunu */
.center-column {
    min-height: 100dvh;
    border-right: 1px solid var(--border);
    padding-bottom: calc(82px + var(--safe-bottom));
}

/* Sağ Keşfet & Öneri Sütunu */
.right-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    padding: 20px 6px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.search-box-wrap { position: relative; }
.search-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
}
.search-input-shell input {
    border: 0;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
}
.search-dropdown, .search-inline-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    z-index: 60;
    max-height: 380px;
    overflow-y: auto;
}
.search-inline-results { position: static; margin-top: 10px; }

.side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.side-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.side-card-head a { font-size: 13px; color: var(--accent); font-weight: 600; }
.side-user-list { display: flex; flex-direction: column; gap: 12px; }
.side-user-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-user-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-user-text { display: flex; flex-direction: column; min-width: 0; }
.u-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-sub { font-size: 12.5px; color: var(--secondary); }

.trend-list { display: flex; flex-direction: column; gap: 10px; }
.trend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    border-radius: 10px;
}
.trend-item:hover { background: var(--surface-hover); }
.trend-rank { display: block; font-size: 11.5px; color: var(--secondary); }
.trend-tag { font-size: 14.5px; }
.trend-count { font-size: 12px; color: var(--secondary); }
.side-legal { font-size: 12px; color: var(--secondary); padding: 0 6px; }

/* --- MOBİL ÜST BAR & SABİT ALT NAVİGASYON --- */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: calc(10px + var(--safe-top)) 16px 10px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
}
.mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.mobile-top-actions { display: flex; align-items: center; gap: 6px; }
.badge-wrap { position: relative; }

.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 8px 10px calc(8px + var(--safe-bottom));
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
}
.mnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--secondary);
    padding: 4px 10px;
    font-weight: 500;
}
.mnav-item i { font-size: 22px; }
.mnav-item.active { color: var(--primary); font-weight: 700; }
.mnav-share-fab {
    width: 48px;
    height: 40px;
    border-radius: 14px;
    border: 0;
    background: var(--accent);
    color: #FFF;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(105, 87, 232, 0.38);
    cursor: pointer;
}

/* --- AVATARLAR & ROZETLER --- */
.avatar-2xs { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.avatar-xs { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-md { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.verified-icon { color: var(--accent); font-size: 14px; margin-left: 3px; vertical-align: -1px; }

/* --- HİKÂYE ŞERİDİ & TAM EKRAN HİKÂYE GÖRÜNTÜLEYİCİ --- */
.stories-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.stories-strip::-webkit-scrollbar { display: none; }
.story-bubble {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 68px;
    flex-shrink: 0;
}
.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 2.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg);
}
.story-ring-unseen { background: linear-gradient(135deg, #6957E8, #EC4899, #F59E0B); }
.story-ring-cf { background: #16A36A; }
.story-ring-seen { background: var(--border); }
.story-ring-self { background: var(--border); }
.story-plus {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    border: 2px solid var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.story-label {
    font-size: 12px;
    max-width: 66px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-viewer-overlay[hidden] { display: none !important; }
.story-stage {
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    max-height: 820px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    color: #FFF;
    display: flex;
    flex-direction: column;
}
.story-progress-bars {
    position: absolute;
    top: calc(10px + var(--safe-top));
    left: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    gap: 5px;
}
.story-prog-seg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}
.story-prog-fill {
    height: 100%;
    width: 0%;
    background: #FFF;
    transition: width 0.1s linear;
}
.story-top-bar {
    position: absolute;
    top: calc(22px + var(--safe-top));
    left: 14px;
    right: 14px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.story-owner-meta { display: flex; align-items: center; gap: 10px; color: #FFF; }
.story-time { font-size: 12px; opacity: 0.75; margin-left: 6px; }
.story-top-actions { display: flex; gap: 8px; }
.story-icon-btn {
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    color: #FFF;
    border-radius: 999px;
    padding: 7px 11px;
    cursor: pointer;
}
.story-canvas {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 32px;
}
.story-canvas img, .story-canvas video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-overlay-layer {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.story-nav-zone {
    position: absolute;
    top: 72px;
    bottom: 84px;
    width: 34%;
    background: transparent;
    border: 0;
    z-index: 4;
    cursor: pointer;
}
.story-prev { left: 0; }
.story-next { right: 0; }
.story-bottom-bar {
    position: absolute;
    bottom: calc(14px + var(--safe-bottom));
    left: 12px;
    right: 12px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
}
.story-reply-form {
    flex: 1;
    display: flex;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 4px 6px 4px 14px;
}
.story-reply-form input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #FFF;
    outline: none;
    font-size: 14px;
}
.story-send-btn, .story-like-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #FFF;
    cursor: pointer;
    font-size: 17px;
}
.story-like-btn.liked { color: var(--danger); }

/* --- AKIŞ SEKMELERİ & HIZLI OLUŞTURMA --- */
.feed-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--glass);
    backdrop-filter: blur(14px);
    overflow-x: auto;
}
.feed-tab {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.feed-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.quick-compose-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.quick-compose-prompt { flex: 1; color: var(--secondary); font-size: 14.5px; }

/* --- GÖNDERİ KARTI (THREADS STİLİ) --- */
.post-card {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}
.pinned-label {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    margin: 0 0 8px 52px;
}
.post-layout {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
}
.post-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.thread-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 8px;
    border-radius: 2px;
    min-height: 12px;
}
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.post-author-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}
.post-display-name { font-weight: 700; font-size: 15px; }
.post-display-name:hover { text-decoration: underline; }
.post-username, .post-time, .post-dot, .edited-tag { font-size: 13px; color: var(--secondary); }
.post-text {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.52;
    word-break: break-word;
}
.post-hashtag, .post-mention, .post-link { color: var(--accent); font-weight: 500; }
.post-hashtag:hover, .post-mention:hover, .post-link:hover { text-decoration: underline; }

/* Kaydırılabilir Fotoğraf & Video Galerisi */
.post-media-carousel {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.post-media-carousel::-webkit-scrollbar { display: none; }
.post-photo-item {
    margin: 0;
    position: relative;
    scroll-snap-align: start;
    flex: 0 0 auto;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}
.post-media-carousel.count-1 .post-photo-item { width: 100%; }
.post-media-carousel:not(.count-1) .post-photo-item { width: 78%; max-width: 340px; }
.post-photo-item img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}
.photo-caption-chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0,0,0,.65);
    color: #FFF;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}
.post-video {
    width: 100%;
    max-height: 460px;
    border-radius: 16px;
    background: #000;
}

/* Link, Alıntı, Anket ve Etkinlik Kartları */
.link-preview-card, .quoted-card, .event-card, .poll-box {
    margin-top: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 16px;
    padding: 12px 14px;
    display: block;
}
.link-preview-card { display: flex; align-items: center; gap: 12px; }
.lp-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}
.lp-meta { display: flex; flex-direction: column; min-width: 0; }
.lp-meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-meta span { font-size: 12.5px; color: var(--secondary); }

.quoted-head { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.quoted-head span { color: var(--secondary); }
.quoted-body { font-size: 14px; color: var(--primary); }

.poll-question { font-weight: 700; margin-bottom: 8px; font-size: 14.5px; }
.poll-options { display: flex; flex-direction: column; gap: 7px; }
.poll-opt-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
}
.poll-opt-btn.voted { border-color: var(--accent); font-weight: 600; }
.poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(105, 87, 232, 0.15);
    z-index: 0;
    transition: width 0.3s ease;
}
.poll-opt-label, .poll-opt-pct { position: relative; z-index: 1; }
.poll-meta { font-size: 12px; color: var(--secondary); margin-top: 8px; }

.event-card { display: flex; align-items: center; gap: 14px; }
.event-date-badge {
    width: 50px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ev-day { font-weight: 800; font-size: 17px; line-height: 1; }
.ev-mon { font-size: 11px; text-transform: uppercase; opacity: 0.8; }
.event-info { flex: 1; display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.event-info strong { font-size: 14.5px; }
.ev-count { color: var(--secondary); }

/* Gönderi Etkileşim İkonları */
.post-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--secondary);
}
.act-btn {
    background: transparent;
    border: 0;
    padding: 6px 8px;
    margin-left: -6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    cursor: pointer;
    font-size: 13.5px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.act-btn i { font-size: 18px; }
.act-btn:hover { background: var(--surface); color: var(--primary); }
.act-btn.liked { color: var(--danger); }
.act-btn.reposted { color: var(--success); }
.act-btn.saved { color: var(--accent); }
.act-stat { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.act-right { margin-left: auto; display: flex; gap: 6px; }

/* --- TAM EKRAN REELS VİDEO SİSTEMİ --- */
.reels-body .center-column { border-right: 0; padding-bottom: 0; }
.reels-viewport {
    height: calc(100dvh - 0px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.reels-viewport::-webkit-scrollbar { display: none; }
.reel-slide {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 100dvh;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #09090B;
    overflow: hidden;
    color: #FFF;
}
.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.reel-mute-btn {
    position: absolute;
    top: calc(16px + var(--safe-top));
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,.45);
    color: #FFF;
    cursor: pointer;
    z-index: 5;
}
.reel-actions-rail {
    position: absolute;
    right: 12px;
    bottom: calc(96px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 5;
}
.reel-act {
    background: transparent;
    border: 0;
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.reel-act i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}
.reel-act.liked i { color: var(--danger); }
.reel-act.saved i { color: var(--accent); }
.reel-bottom-meta {
    position: absolute;
    left: 16px;
    right: 72px;
    bottom: calc(78px + var(--safe-bottom));
    z-index: 5;
    text-shadow: 0 1px 8px rgba(0,0,0,.75);
}
.reel-author-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.reel-user { display: flex; align-items: center; gap: 8px; color: #FFF; }
.reel-follow-pill {
    background: transparent;
    border: 1px solid rgba(255,255,255,.8);
    color: #FFF;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.reel-caption { margin: 0 0 6px; font-size: 14px; }
.reel-audio-line { font-size: 12.5px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.reel-heart-burst {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 84px;
    color: #FFF;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.reel-heart-burst.pop { opacity: 0.95; transform: scale(1.1); }
.reel-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}
.reel-slide.loading .reel-spinner { display: flex; }
.spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.25);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reels-empty {
    color: #FFF;
    margin: auto;
    text-align: center;
    padding: 32px;
}

/* --- PROFİL SAYFASI --- */
.profile-cover {
    height: 170px;
    background: linear-gradient(135deg, #111111, #272262, #6957E8);
    background-size: cover;
    background-position: center;
}
.profile-main-info { padding: 0 18px 14px; }
.profile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -42px;
    margin-bottom: 12px;
}
.profile-avatar-xl {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    background: var(--surface);
}
.profile-cta-group { display: flex; align-items: center; gap: 8px; }
.profile-name { margin: 0; font-size: 21px; font-weight: 800; }
.profile-handle { color: var(--secondary); font-size: 14px; margin-bottom: 8px; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.user-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.user-badge-pill i { color: var(--accent); }
.profile-bio { margin: 8px 0 10px; font-size: 14.5px; }
.profile-meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 12px;
}
.profile-meta-links a { color: var(--accent); }
.profile-counts-row { display: flex; gap: 18px; font-size: 14px; }
.count-btn { background: transparent; border: 0; padding: 0; cursor: pointer; }
.count-btn:hover { text-decoration: underline; }
.mutual-line { margin-top: 8px; font-size: 12.5px; color: var(--secondary); }
.mutual-line a { color: var(--primary); font-weight: 600; margin-left: 4px; }
.profile-reels-grid, .explore-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}
.reel-thumb-card, .explore-photo-cell {
    position: relative;
    aspect-ratio: 9 / 14;
    background: #111;
    overflow: hidden;
    border-radius: 10px;
}
.explore-photo-cell { aspect-ratio: 1 / 1; }
.reel-thumb-card video, .explore-photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumb-card span, .cell-stats {
    position: absolute;
    left: 8px;
    bottom: 8px;
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

/* --- DM MESAJLAŞMA --- */
.dm-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    height: calc(100dvh - 10px);
}
.dm-list-pane {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.dm-pane-head, .dm-chat-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dm-pane-head h2 { margin: 0; font-size: 18px; }
.dm-conv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.dm-conv-row.active, .dm-conv-row:hover { background: var(--surface); }
.dm-conv-meta { flex: 1; min-width: 0; }
.dm-conv-top { display: flex; justify-content: space-between; align-items: center; }
.dm-last-msg { font-size: 12.5px; color: var(--secondary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-unread-dot {
    background: var(--accent);
    color: #FFF;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.dm-chat-pane { display: flex; flex-direction: column; height: 100%; }
.dm-messages-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg-bubble-row { display: flex; gap: 8px; max-width: 82%; }
.msg-bubble-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14.5px;
}
.msg-bubble-row.mine .msg-bubble {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
.msg-media { max-width: 240px; border-radius: 12px; display: block; margin-bottom: 6px; }
.msg-meta { font-size: 11px; opacity: 0.68; margin-top: 4px; display: flex; gap: 8px; justify-content: flex-end; }
.dm-typing-indicator { padding: 4px 16px; font-size: 12px; color: var(--accent); }
.dm-input-bar {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dm-back-mobile { display: none; }

/* --- BİLDİRİMLER, KEŞFET, YORUMLAR, AYARLAR --- */
.page-head-bar {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--glass);
    backdrop-filter: blur(14px);
    z-index: 25;
}
.page-head-bar h2 { margin: 0; font-size: 18px; }
.notif-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.notif-row.unread { background: rgba(105, 87, 232, 0.06); }
.notif-type-icon { color: var(--accent); font-size: 17px; margin-top: 6px; }
.notif-snippet { margin: 4px 0 0; font-size: 13.5px; color: var(--secondary); }
.notif-requests-box { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.notif-requests-box h3 { margin: 0 0 10px; font-size: 15px; }

.explore-search-pad { padding: 14px 18px 6px; }
.explore-trends-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 18px; }
.trend-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.trend-panel h3 { margin: 0 0 10px; font-size: 14px; }
.trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    margin: 3px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}
.sub-sec-title { margin: 16px 18px 10px; font-size: 16px; }
.horiz-users { display: flex; gap: 10px; overflow-x: auto; padding: 0 18px 14px; }
.mini-user-card {
    min-width: 146px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mini-user-card a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mini-user-card span { font-size: 12px; color: var(--secondary); }

.comment-compose-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}
.replying-banner {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 4px;
}
.comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 18px;
}
.comment-item.depth-1, .comment-item.depth-2, .comment-item.depth-3 {
    padding-left: 14px;
    margin-top: 8px;
    border-left: 2px solid var(--border);
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: 8px; align-items: baseline; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-time { font-size: 12px; color: var(--secondary); }
.comment-actions { display: flex; gap: 12px; margin-top: 4px; }
.c-act { background: 0; border: 0; padding: 0; font-size: 12.5px; color: var(--secondary); cursor: pointer; }
.c-act.liked { color: var(--danger); }

.collection-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.pill-chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.pill-chip.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

.settings-stack { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.settings-card h3 { margin: 0 0 14px; font-size: 16px; }
.danger-zone { border-color: rgba(229, 72, 77, 0.35); }
.user-row-card, .user-row-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.section-note { padding: 10px 18px; margin: 0; color: var(--secondary); font-size: 13.5px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.archive-card { position: relative; aspect-ratio: 9/15; border-radius: 14px; overflow: hidden; color: #FFF; }
.archive-card img, .archive-card video { width: 100%; height: 100%; object-fit: cover; }
.archive-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 12px;
}

/* --- FORMLAR, BUTONLAR, MODALLAR, DROPDOWN, TOAST, SKELETON --- */
.auth-body { display: flex; min-height: 100dvh; align-items: center; justify-content: center; background: var(--surface); padding: 24px 16px; }
.auth-shell { width: 100%; max-width: 420px; }
.auth-brand { text-align: center; margin-bottom: 20px; }
.brand-mark-lg {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--primary);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}
.auth-brand-title { margin: 12px 0 4px; font-size: 23px; font-weight: 800; }
.auth-brand-sub { margin: 0; color: var(--secondary); font-size: 14px; }
.auth-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.auth-heading { margin: 0 0 16px; font-size: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label, .field-label { font-size: 13px; font-weight: 600; color: var(--secondary); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.muted-link { font-size: 12.5px; color: var(--accent); }
.form-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    outline: none;
    transition: border-color 0.15s ease;
}
.form-input:focus { border-color: var(--accent); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.auth-switch { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--secondary); }
.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-footer { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--secondary); display: flex; justify-content: center; gap: 8px; }

.btn-primary, .btn-danger {
    padding: 11px 20px;
    border-radius: 999px;
    border: 0;
    background: var(--primary);
    color: var(--bg);
    font-weight: 700;
    cursor: pointer;
}
.btn-danger { background: var(--danger); color: #FFF; }
.btn-block { width: 100%; }
.btn-dark-sm {
    padding: 7px 15px;
    border-radius: 999px;
    border: 0;
    background: var(--primary);
    color: var(--bg);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.btn-outline-sm, .btn-follow-sm, .btn-follow-main, .btn-ghost {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.btn-follow-main { background: var(--primary); color: var(--bg); border-color: var(--primary); padding: 8px 20px; }
.btn-follow-main.following, .btn-follow-sm.following { background: var(--surface); color: var(--primary); border-color: var(--border); }
.icon-btn, .icon-btn-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}
.icon-btn:hover, .icon-btn-sm:hover { background: var(--surface); }
.text-btn { background: 0; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; }

.dropdown-wrap { position: relative; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 34px;
    min-width: 205px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 45;
    display: flex;
    flex-direction: column;
}
.dropdown-menu[hidden] { display: none !important; }
.dropdown-menu button {
    background: transparent;
    border: 0;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
}
.dropdown-menu button:hover { background: var(--surface); }
.danger-item, .danger-text { color: var(--danger) !important; }

/* Modal Sistemi */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-sheet {
    width: 100%;
    max-width: 560px;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    animation: modalUp 0.18s ease-out;
}
.modal-sm { max-width: 420px; }
@keyframes modalUp { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 16px 18px; }
.modal-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.compose-mode-tabs { display: flex; gap: 6px; }
.cmode-btn {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.cmode-btn.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.compose-author-row { display: flex; gap: 12px; }
.compose-editor-col { flex: 1; min-width: 0; }
.compose-meta-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.visibility-pill { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.compose-textarea {
    width: 100%;
    min-height: 96px;
    border: 0;
    background: transparent;
    resize: vertical;
    outline: none;
    font-size: 15.5px;
}
.compose-tools-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.tool-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}
.tool-icon-btn:hover { background: var(--surface); color: var(--accent); }
.char-counter { margin-left: auto; font-size: 12px; color: var(--secondary); }
.compose-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.cphoto-card { border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: var(--surface); position: relative; }
.cphoto-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.cphoto-controls { display: flex; justify-content: space-between; margin-top: 6px; gap: 4px; }
.extra-compose-box { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--surface); }
.quoted-preview-box { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; font-size: 13px; }

/* Uyarı, Empty State, Toast ve Skeleton */
.alert-box, .inline-banner { padding: 12px 16px; border-radius: 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.alert-error, .banner-error { background: rgba(229,72,77,.1); color: var(--danger); border: 1px solid rgba(229,72,77,.25); }
.alert-success, .banner-success { background: rgba(22,163,106,.1); color: var(--success); border: 1px solid rgba(22,163,106,.25); }
.empty-state { padding: 56px 24px; text-align: center; color: var(--secondary); }
.empty-state i { font-size: 38px; display: block; margin-bottom: 10px; opacity: 0.65; }
.empty-state h3 { color: var(--primary); margin: 0 0 6px; font-size: 17px; }
.empty-mini { padding: 18px; color: var(--secondary); font-size: 13.5px; text-align: center; }

.toast-container {
    position: fixed;
    bottom: calc(76px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast-pill {
    background: var(--primary);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.feed-loader { padding: 20px; }
.skeleton-line {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    margin-bottom: 8px;
}
.skeleton-line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- MOBİL VE TABLET RESPONSIVE KURALLARI --- */
@media (max-width: 1080px) {
    .app-grid { grid-template-columns: 82px minmax(0, 620px); }
    .right-sidebar { display: none; }
    .desktop-brand .brand-name, .side-link span, .btn-compose-desktop span, .side-footer-btn span, .sidebar-me-info div { display: none; }
    .side-link { justify-content: center; }
    .sidebar-me { flex-direction: column; gap: 6px; }
}

@media (max-width: 720px) {
    .left-sidebar { display: none; }
    .mobile-topbar { display: flex; }
    .mobile-bottom-nav { display: flex; }
    .app-grid, .app-grid-reels { display: block; max-width: 100%; }
    .center-column { border-right: 0; }
    .feed-tabs { top: 53px; }
    .explore-trends-grid, .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .modal-backdrop { align-items: flex-end; padding: 0; }
    .modal-sheet { border-radius: 22px 22px 0 0; max-height: 92dvh; }
    .dm-shell { grid-template-columns: 1fr; height: calc(100dvh - 122px); }
    .dm-list-pane.has-active { display: none; }
    .dm-back-mobile { display: inline-flex; }
}

/* --- YENİLENMİŞ THREADS TARZI GÖNDERİ OLUŞTURMA MODALI --- */
.compose-sheet {
    max-width: 540px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sheet-drag-handle {
    display: none;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--border);
    margin: 8px auto 2px;
}
.compose-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 10px;
}
.compose-header-title {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.compose-text-action {
    background: transparent;
    border: 0;
    padding: 4px 2px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    min-width: 48px;
    text-align: left;
}
.compose-text-action.accent {
    color: var(--accent);
    font-weight: 600;
    text-align: right;
}

.compose-mode-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 18px 6px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.compose-mode-strip .cmode-btn {
    border: 0;
    background: transparent;
    color: var(--secondary);
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.compose-mode-strip .cmode-btn.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.compose-body-pad {
    padding: 14px 18px 10px;
    overflow-y: auto;
}
.compose-thread-grid {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
}
.compose-left-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.compose-rail-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: var(--border);
    margin-top: 8px;
    border-radius: 2px;
}
.compose-right-main { min-width: 0; }
.compose-uname {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}
.compose-clean-textarea {
    width: 100%;
    min-height: 68px;
    max-height: 220px;
    border: 0;
    background: transparent;
    resize: none;
    outline: none;
    font-size: 15px;
    line-height: 1.48;
    padding: 4px 0;
}
.compose-clean-textarea::placeholder { color: #9CA3AF; }

/* Threads Tarzı Çerçevesiz Tek Satır Minimal İkonlar */
.threads-icon-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-left: -8px;
}
.threads-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #8E8E93;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease, transform 0.1s ease;
}
.threads-tool-btn:hover {
    color: var(--primary);
    background: var(--surface);
}
.threads-tool-btn.active {
    color: var(--accent);
    background: rgba(105, 87, 232, 0.1);
}

/* Eklenen Bileşen Kartları */
.compose-attach-card {
    margin: 8px 0 4px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.attach-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}
.attach-remove-btn {
    background: transparent;
    border: 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.attach-fields { display: flex; flex-direction: column; gap: 8px; }
.compose-sm-input { padding: 9px 12px; font-size: 13.5px; border-radius: 11px; }
.compose-mini-select {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--secondary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}
.poll-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.btn-text-accent { background: 0; border: 0; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; padding: 2px 0; }

.compose-photo-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.compose-photo-strip::-webkit-scrollbar { display: none; }
.cphoto-tile {
    position: relative;
    width: 116px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}
.cphoto-tile img { width: 100%; height: 116px; object-fit: cover; display: block; }
.cphoto-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,0.68);
    color: #FFF;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cphoto-alt-inp {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border);
    padding: 5px 7px;
    font-size: 11px;
    background: var(--bg);
    outline: none;
}
.compose-video-preview { width: 100%; max-height: 220px; border-radius: 12px; background: #000; }

/* Alt Çubuk: Threads Stili Sol Gizlilik Seçici + Sağ Sayaç ve Paylaş */
.compose-bottom-bar {
    padding: 12px 18px calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg);
}
.privacy-cycle-btn {
    background: transparent;
    border: 0;
    padding: 6px 8px;
    margin-left: -8px;
    border-radius: 999px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.privacy-cycle-btn:hover { background: var(--surface); color: var(--primary); }
.compose-submit-group { display: flex; align-items: center; gap: 12px; }
.compose-publish-btn { padding: 9px 20px; font-size: 14px; border-radius: 999px; }

/* Hikâye Doğrudan Sahne Editörü */
.story-direct-stage {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9 / 15;
    margin: 0 auto;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid var(--border);
}
.story-direct-stage img, .story-direct-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-stage-textarea {
    position: relative;
    z-index: 2;
    width: 100%;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    resize: none;
    outline: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}
.story-stage-textarea::placeholder { color: rgba(255,255,255,0.72); }
.story-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}
.story-media-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.bg-swatch-row { display: flex; align-items: center; gap: 7px; }
.bg-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
}
.bg-swatch.active { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Reels Yükleyici */
.reel-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 165px;
    max-height: 230px;
    border-radius: 16px;
    border: 1.5px dashed var(--border);
    background: var(--surface);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}
.reel-dropzone video { width: 100%; max-height: 225px; object-fit: contain; background: #000; }
.reel-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; }
.reel-drop-inner i { font-size: 32px; color: var(--accent); }
.reel-drop-inner span { font-size: 12px; color: var(--secondary); }
.reel-opts-inline { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* Mobil İyileştirmeler (Tam Uygulama Deneyimi) */
@media (max-width: 720px) {
    .sheet-drag-handle { display: block; }
    .compose-sheet {
        border-radius: 22px 22px 0 0;
        max-height: 92dvh;
    }
    .post-card { padding: 14px 14px; }
    .post-actions { gap: 8px; }
    .act-btn { padding: 6px 6px; font-size: 13px; }
    .profile-tabs .feed-tab { flex: 0 0 auto; padding: 12px 14px; }
}


/* --- YENİLENMİŞ INSTAGRAM / THREADS KALİTESİNDE DM MESAJLAŞMA ARAYÜZÜ --- */
.messages-body {
    overflow: hidden;
}
.messages-body .center-column {
    padding-bottom: 0 !important;
    height: 100dvh;
    border-right: 0;
    overflow: hidden;
}
.dm-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    height: 100dvh;
    max-height: 100dvh;
    background: var(--bg);
    overflow: hidden;
}
.dm-list-pane {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.dm-pane-head {
    padding: 16px 18px 12px;
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dm-pane-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.dm-new-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
}
.dm-new-btn:hover { background: var(--surface-hover); }

.dm-search-wrap { padding: 0 14px 10px; }
.dm-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--secondary);
}
.dm-search-pill input {
    border: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    outline: none;
    font-size: 14px;
    color: var(--primary);
}
.dm-conv-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.dm-conv-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 0;
    transition: background 0.14s ease;
}
.dm-conv-row:hover { background: var(--surface); }
.dm-conv-row.active { background: var(--surface-hover); }
.dm-conv-name { font-weight: 700; font-size: 14.5px; }
.dm-last-msg { font-size: 13px; color: var(--secondary); margin-top: 2px; }
.dm-last-msg.unread { color: var(--primary); font-weight: 600; }

/* Sağ Sohbet Alanı */
.dm-chat-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    background: var(--bg);
}
.dm-empty-room {
    margin: auto;
    max-width: 340px;
    text-align: center;
    padding: 28px;
}
.dm-empty-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
}
.dm-empty-room h3 { margin: 0 0 6px; font-size: 19px; }
.dm-empty-room p { margin: 0 0 18px; color: var(--secondary); font-size: 14px; }

.dm-chat-head {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--glass);
    backdrop-filter: blur(14px);
}
.dm-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.dm-back-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-left: -6px;
}
.dm-peer-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.dm-peer-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dm-peer-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-peer-sub {
    font-size: 12px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}

/* Mesaj Balonları */
.dm-messages-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 78%;
}
.msg-row.mine {
    align-self: flex-end;
}
.msg-row.theirs {
    align-self: flex-start;
}
.msg-peer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.msg-bubble {
    padding: 9px 14px;
    border-radius: 20px 20px 20px 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14.5px;
    line-height: 1.44;
    word-break: break-word;
}
.msg-row.mine .msg-bubble {
    border-radius: 20px 20px 5px 20px;
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
.msg-text.deleted {
    font-style: italic;
    opacity: 0.65;
}
.msg-media {
    max-width: min(260px, 62vw);
    max-height: 300px;
    border-radius: 14px;
    display: block;
    margin-bottom: 6px;
    object-fit: cover;
}
.msg-meta {
    font-size: 11px;
    opacity: 0.68;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.msg-receipt i { font-size: 13px; }
.msg-receipt i.seen { color: #38BDF8; opacity: 1; }

.msg-opts-wrap { opacity: 0; transition: opacity 0.14s ease; align-self: center; }
.msg-row:hover .msg-opts-wrap, .msg-opts-wrap:focus-within { opacity: 1; }
.msg-more-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.msg-more-btn:hover { background: var(--surface); color: var(--primary); }
.msg-dropdown { right: 0; top: auto; bottom: 30px; min-width: 140px; }

/* Alt Gönderim Kapsülü — Asla Alt Satıra Kaymaz */
.dm-composer-footer {
    flex: 0 0 auto;
    padding: 8px 14px calc(10px + var(--safe-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.dm-media-preview-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.dm-media-preview-bar img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}
.dm-media-fname {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-media-clear {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 700;
    cursor: pointer;
}

.dm-capsule {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 5px 6px 5px 8px;
    min-height: 46px;
}
.dm-capsule:focus-within {
    border-color: var(--secondary);
}
.dm-attach-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 19px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease;
}
.dm-attach-btn:hover { color: var(--primary); background: var(--surface-hover); }

.dm-capsule-input {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    max-height: 104px;
    border: 0;
    background: transparent;
    outline: none;
    resize: none;
    padding: 8px 4px;
    font-size: 15px;
    line-height: 1.38;
    color: var(--primary);
}
.dm-send-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.14s ease;
}
.dm-send-btn:active { transform: scale(0.94); }
.dm-send-btn:disabled { opacity: 0.5; cursor: default; }

/* --- MOBİL DM TAM EKRAN DOĞAL UYGULAMA DENEYİMİ --- */
@media (max-width: 720px) {
    .messages-body {
        overflow: auto;
    }
    .messages-body .center-column {
        height: auto;
        overflow: visible;
    }
    .dm-shell {
        grid-template-columns: 1fr;
        height: calc(100dvh - 54px - 60px - var(--safe-top) - var(--safe-bottom));
        max-height: none;
    }
    /* Sohbet listesi modundayken sağ sohbet penceresini gizle */
    .dm-shell.mobile-list-active .dm-chat-pane {
        display: none !important;
    }
    .dm-shell.mobile-list-active .dm-list-pane {
        display: flex !important;
        border-right: 0;
    }

    /* Aktif bir sohbet açıldığında tam ekran uygulama moduna geç (Üst/Alt genel barları gizle, klavyeyle tam hizala) */
    body.dm-mobile-chat-open {
        overflow: hidden !important;
    }
    body.dm-mobile-chat-open .mobile-topbar,
    body.dm-mobile-chat-open .mobile-bottom-nav {
        display: none !important;
    }
    body.dm-mobile-chat-open .dm-shell.mobile-chat-active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100dvh;
        z-index: 70;
        background: var(--bg);
    }
    body.dm-mobile-chat-open .dm-list-pane {
        display: none !important;
    }
    body.dm-mobile-chat-open .dm-chat-pane {
        display: flex !important;
        height: 100%;
    }
    body.dm-mobile-chat-open .dm-chat-head {
        padding-top: calc(10px + var(--safe-top));
    }
    .dm-back-btn {
        display: inline-flex;
    }
    .msg-row {
        max-width: 85%;
    }
    .msg-opts-wrap {
        opacity: 0.75;
    }
}


/* --- DM FOTOĞRAF/VİDEO ŞIK ÖNİZLEME KARTLARI, SESLİ MESAJ OYNATICI VE TAM EKRAN LIGHTBOX --- */
.msg-bubble.media-frameless {
    padding: 4px;
    background: transparent !important;
    border-color: transparent !important;
}
.msg-bubble.media-frameless .msg-meta {
    color: var(--secondary);
    padding: 2px 6px 0;
}

.msg-photo-card, .msg-video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    max-width: min(268px, 66vw);
    background: #0F0F12;
    border: 1px solid var(--border);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.msg-photo-card:hover, .msg-video-card:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-sm);
}
.msg-photo-card img, .msg-video-card video {
    display: block;
    width: 100%;
    max-height: 310px;
    object-fit: cover;
}
.msg-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
}
.play-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 3px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.msg-media-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(6px);
    color: #FFF;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dm-media-vid-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Balon İçi Dalga Formlu Sesli Mesaj Oynatıcı */
.dm-voice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 215px;
    max-width: 265px;
    padding: 2px 0;
}
.dm-voice-play {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    transition: transform 0.12s ease;
}
.msg-row.mine .dm-voice-play {
    background: var(--bg);
    color: var(--primary);
}
.dm-voice-play:active { transform: scale(0.92); }
.dm-voice-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dm-voice-wave {
    height: 26px;
    display: flex;
    align-items: center;
    gap: 2.5px;
    cursor: pointer;
}
.wf-bar {
    flex: 1;
    min-width: 2.5px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.32;
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.wf-bar.played {
    opacity: 1;
}
.dm-voice-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.82;
}
.dm-voice-speed {
    border: 0;
    background: rgba(127, 127, 127, 0.22);
    color: inherit;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}

/* Canlı Ses Kayıt Kapsülü */
.dm-recording-capsule {
    align-items: center !important;
    border-color: rgba(229, 72, 77, 0.45) !important;
    background: var(--surface);
}
.dm-rec-cancel-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(229, 72, 77, 0.12);
    color: var(--danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}
.dm-rec-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
}
.dm-rec-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--danger);
    animation: recPulse 1s ease-in-out infinite;
}
@keyframes recPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.82); }
}
.dm-rec-eq {
    flex: 1 1 0%;
    min-width: 0;
    height: 26px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 6px;
}
.dm-rec-eq span {
    flex: 1;
    height: 24%;
    border-radius: 99px;
    background: var(--accent);
    transition: height 0.08s linear;
}

/* Şık Tam Ekran Fotoğraf / Video Lightbox */
.dm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 260;
    background: rgba(8, 8, 11, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    animation: lbFadeIn 0.18s ease-out;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dm-lb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: calc(12px + var(--safe-top)) 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.68), transparent);
    color: #FFF;
}
.dm-lb-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dm-lb-meta strong { display: block; font-size: 14px; line-height: 1.2; }
.dm-lb-meta span { font-size: 12px; opacity: 0.72; }
.dm-lb-actions { display: flex; gap: 8px; }
.dm-lb-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}
.dm-lb-btn:hover { background: rgba(255, 255, 255, 0.24); }

.dm-lb-stage {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(62px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
    overflow: hidden;
}
.dm-lb-stage img {
    max-width: 94vw;
    max-height: 84dvh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    cursor: zoom-in;
    transition: transform 0.22s ease;
}
.dm-lb-stage img.zoomed {
    transform: scale(1.85);
    cursor: zoom-out;
}
.dm-lb-stage video {
    max-width: 94vw;
    max-height: 84dvh;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.65);
}

.dm-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #FFF;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dm-lb-nav.prev { left: 14px; }
.dm-lb-nav.next { right: 14px; }
@media (max-width: 720px) {
    .dm-lb-nav { width: 36px; height: 36px; font-size: 16px; }
    .dm-lb-nav.prev { left: 8px; }
    .dm-lb-nav.next { right: 8px; }
}


/* --- INSTAGRAM TARZI ÇİFT DOKUNUŞ (DOUBLE-TAP) KALP ANİMASYONU --- */
.post-card {
    position: relative;
    touch-action: manipulation;
}
.post-photo-item, .post-video-wrap, .post-media-carousel {
    position: relative;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.ig-heart-burst {
    position: absolute;
    z-index: 35;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    font-size: 78px;
    line-height: 1;
    animation: igHeartPop 0.85s cubic-bezier(0.17, 0.89, 0.32, 1.38) forwards;
}
.ig-heart-burst.over-media {
    color: #FFFFFF;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 12px rgba(229, 72, 77, 0.55));
}
.ig-heart-burst.over-post {
    font-size: 64px;
    color: #FF3040;
    filter: drop-shadow(0 6px 20px rgba(255, 48, 64, 0.38));
}

@keyframes igHeartPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(-10deg);
    }
    22% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.18) rotate(5deg);
    }
    42% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.95) rotate(-3deg);
    }
    62% {
        opacity: 1;
        transform: translate(-50%, -52%) scale(1.04) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -78%) scale(0.85) rotate(0deg);
    }
}

.act-btn.heart-pop i {
    animation: smallHeartBounce 0.36s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}
@keyframes smallHeartBounce {
    0% { transform: scale(1); }
    45% { transform: scale(1.38); }
    100% { transform: scale(1); }
}

/* --- REELS DÜZENLEME & SİLME MENÜLERİ VE MODALI (v2.7) --- */
.reel-actions-rail {
    gap: 13px;
}
.reel-menu-wrap {
    position: relative;
}
.reel-dropdown-menu {
    top: auto !important;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 196px;
    background: rgba(18, 18, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    z-index: 60;
}
.reel-dropdown-menu button {
    color: #FFFFFF;
}
.reel-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}
.reel-dropdown-menu .danger-item {
    color: #FF5A5F !important;
}

.reel-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
}

/* Profil & Keşfet Reels Izgarası Kart Menüsü */
.reel-thumb-card {
    overflow: visible !important;
    background: transparent !important;
}
.reel-thumb-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}
.reel-thumb-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.reel-thumb-views {
    position: absolute;
    left: 8px;
    bottom: 8px;
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.reel-card-menu-wrap {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 15;
}
.reel-card-dots-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
}
.reel-card-dots-btn:hover {
    background: rgba(0, 0, 0, 0.72);
}
.reel-card-dropdown {
    top: 34px;
    right: 0;
    min-width: 146px;
    z-index: 50;
}

/* Reels Düzenleme Modalı İç Düzeni */
.reel-edit-media-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.reel-edit-preview-box {
    width: 96px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #09090B;
    flex-shrink: 0;
}
.reel-edit-preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.reel-edit-media-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.reel-edit-media-btns .story-media-pill {
    width: 100%;
    justify-content: center;
}
.btn-text-danger-sm {
    background: transparent;
    border: 0;
    padding: 6px 8px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
}
.btn-text-danger-sm:hover {
    background: rgba(229, 72, 77, 0.08);
}
.reel-edit-dl-toggle input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

/* --- BİLDİRİM TEKLİ & TOPLU SİLME VE GELİŞMİŞ MESAJ GİZLİLİĞİ (v2.8) --- */
.notif-head-bar {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.notif-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.notif-head-actions .btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    font-size: 12.5px;
}
.notif-head-actions .btn-outline-sm.active-pill {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
.notif-clear-btn {
    color: var(--danger) !important;
    border-color: rgba(229, 72, 77, 0.35) !important;
}
.notif-clear-btn:hover {
    background: rgba(229, 72, 77, 0.08) !important;
}
@media (max-width: 440px) {
    .notif-btn-lbl { display: none; }
}

.notif-bulk-bar {
    position: sticky;
    top: 49px;
    z-index: 28;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
    .notif-bulk-bar { top: 102px; padding: 10px 14px; }
}
.notif-select-all-label {
    font-weight: 600;
    font-size: 13.5px;
}
.notif-select-all-label input,
.notif-cb-cell input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.notif-bulk-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-del-selected-btn {
    padding: 7px 14px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.notif-del-selected-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.notif-row {
    align-items: center;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.notif-row.selected {
    background: rgba(105, 87, 232, 0.1);
}
.notif-cb-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 2px;
    cursor: pointer;
}
.notif-main-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
}
.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-single-del-btn {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.notif-single-del-btn:hover {
    background: rgba(229, 72, 77, 0.1);
    color: var(--danger);
}
.notif-clear-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Ayarlar: Mesaj Gizliliği İstisna Kullanıcı Seçici */
.msg-exceptions-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg-exc-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.msg-exc-head strong {
    font-size: 14px;
}
.msg-exc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 28px;
    align-items: center;
}
.msg-exc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
}
.msg-exc-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.msg-exc-chip b {
    font-weight: 600;
}
.msg-exc-chip button {
    border: 0;
    background: transparent;
    color: var(--secondary);
    font-size: 12px;
    padding: 0 2px;
    cursor: pointer;
    line-height: 1;
}
.msg-exc-chip button:hover {
    color: var(--danger);
}
.msg-exc-search-wrap {
    position: relative;
}
.msg-exc-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.msg-exc-input-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13.5px;
}
.msg-exc-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 45;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.msg-exc-result-row {
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.msg-exc-result-row:hover {
    background: var(--surface);
}
.msg-exc-result-row div {
    display: flex;
    flex-direction: column;
}

/* DM Mesaj Gizliliği Kilit Bildirimi */
.dm-privacy-locked-bar {
    padding: 14px 18px calc(14px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--secondary);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.dm-privacy-locked-bar i {
    color: var(--danger);
    font-size: 16px;
}

/* --- EVRENSEL ŞIK ONAY (CONFIRM) VE DÜZENLEME (PROMPT) MODALI (v2.9) --- */
.u-dialog-backdrop {
    z-index: 340 !important;
    background: rgba(8, 8, 12, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: uBackdropFade 0.16s ease-out;
}
@keyframes uBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.u-dialog-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px 22px 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
    text-align: center;
    animation: uCardSpring 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes uCardSpring {
    from { opacity: 0; transform: scale(0.93) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.u-dialog-icon-wrap {
    width: 54px;
    height: 54px;
    margin: 2px auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}
.u-dialog-icon-wrap.danger {
    background: rgba(229, 72, 77, 0.12);
    color: var(--danger);
}
.u-dialog-icon-wrap.primary {
    background: rgba(105, 87, 232, 0.12);
    color: var(--accent);
}

.u-dialog-title {
    margin: 0 0 8px;
    font-size: 17.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.u-dialog-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.52;
    color: var(--secondary);
}

.u-dialog-field-wrap {
    margin: 0 0 16px;
    text-align: left;
}
.u-dialog-input,
.u-dialog-textarea {
    width: 100%;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 14.5px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
}
.u-dialog-textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.48;
}

.u-dialog-check-wrap {
    justify-content: flex-start;
    text-align: left;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13.5px;
}
.u-dialog-check-wrap input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.u-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.u-dialog-btn {
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}
.u-dialog-btn:active {
    transform: scale(0.97);
}
.u-dialog-btn.cancel {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}
.u-dialog-btn.cancel:hover {
    background: var(--surface-hover);
}
.u-dialog-btn.confirm {
    border: 0;
    color: #FFFFFF;
}
.u-dialog-btn.confirm.danger {
    background: var(--danger);
}
.u-dialog-btn.confirm.primary {
    background: var(--primary);
    color: var(--bg);
}

@media (max-width: 720px) {
    .u-dialog-backdrop {
        align-items: flex-end;
        padding: 0;
    }
    .u-dialog-card {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        border-bottom: 0;
        padding: 12px 20px calc(20px + var(--safe-bottom));
        animation: uSheetSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .u-dialog-card .sheet-drag-handle {
        display: block;
        margin-bottom: 14px;
    }
}
@keyframes uSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* --- MOBİL HESAP VE ÇIKIŞ MENÜSÜ İYİLEŞTİRMELERİ (v3.0) --- */
.dropdown-menu a,
.dropdown-menu button {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--primary);
    text-decoration: none;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--surface);
}
.dropdown-form-item {
    margin: 0;
    width: 100%;
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 4px;
}

.topbar-avatar-btn {
    position: relative;
    background: transparent;
    border: 0;
    padding: 2px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.topbar-avatar-caret {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    border: 1.5px solid var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
}

.mobile-account-dropdown {
    top: calc(100% + 8px);
    right: 0;
    min-width: 232px;
    z-index: 95;
}
.mobile-acc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 6px;
}
.mobile-acc-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.mobile-acc-meta strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-acc-meta span {
    font-size: 12px;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-logout-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.reel-dropdown-menu a,
.reel-dropdown-menu button {
    color: #FFFFFF;
}
.reel-dropdown-menu a:hover,
.reel-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* --- PARÇALI VİDEO & MEDYA CANLI YÜKLEME İLERLEME ÇUBUĞU (v3.2) --- */
.bitig-upload-progress {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.bup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.bup-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.bup-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.bup-right strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.bup-cancel-btn {
    border: 0;
    background: rgba(229, 72, 77, 0.12);
    color: var(--danger);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.bup-cancel-btn:hover {
    background: var(--danger);
    color: #FFFFFF;
}
.bup-bar-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}
.bup-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #EC4899);
    transition: width 0.16s ease;
}
.bup-bar-fill.optimizing {
    background: repeating-linear-gradient(
        -45deg,
        var(--accent),
        var(--accent) 10px,
        #8B5CF6 10px,
        #8B5CF6 20px
    );
    background-size: 28px 28px;
    animation: bupStripeMove 0.7s linear infinite;
}
@keyframes bupStripeMove {
    from { background-position: 0 0; }
    to { background-position: 28px 0; }
}
.bup-sub {
    font-size: 11.5px;
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
}
.compose-publish-btn:disabled {
    opacity: 0.68;
    cursor: wait;
}

/* --- 9 KATMANLI ANTİ-SPAM KAYIT BİLEŞENLERİ VE YASAL SAYFALAR (v3.4) --- */
.hp-trap-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-input-wrap .form-input {
    padding-right: 40px;
}
.pw-eye-btn {
    position: absolute;
    right: 8px;
    border: 0;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 16px;
}
.pw-meter-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: -4px;
}
.pw-meter-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.pw-meter-bars span {
    height: 4px;
    border-radius: 99px;
    background: var(--border);
    transition: background 0.2s ease;
}

.captcha-box-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
@media (max-width: 420px) {
    .captcha-box-row {
        grid-template-columns: 1fr;
    }
}
.captcha-img-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #151329;
}
.captcha-img-frame img {
    display: block;
    height: 48px;
    width: auto;
}
.captcha-refresh-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    width: 38px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.captcha-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}
.captcha-code-input {
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
}
.legal-consent-row {
    align-items: flex-start;
    line-height: 1.45;
}
.legal-consent-row input {
    margin-top: 3px;
}
.legal-consent-row a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}
.auth-footer a {
    color: var(--secondary);
    font-weight: 500;
}
.auth-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Hizmet Şartları, Gizlilik Politikası, KVKK ve Telif Sayfaları */
.legal-page-wrap {
    padding: 16px 18px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.legal-top-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 560px) {
    .legal-top-switcher { grid-template-columns: 1fr; }
}
.legal-switch-pill {
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--secondary);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.legal-switch-pill.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
.legal-anchor-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.legal-anchor-nav::-webkit-scrollbar { display: none; }
.legal-anchor-nav a {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}
.legal-anchor-nav a:hover,
.legal-anchor-nav a.active {
    color: var(--accent);
    border-color: var(--accent);
}

.legal-doc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 22px;
    scroll-margin-top: 72px;
}
.legal-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(105, 87, 232, 0.12);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 10px;
}
.legal-doc-card h1,
.legal-doc-card h2 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}
.legal-doc-card h3 {
    margin: 22px 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--primary);
}
.legal-doc-card p {
    margin: 0 0 12px;
    font-size: 14.2px;
    line-height: 1.65;
    color: var(--primary);
}
.legal-lead {
    font-size: 14.5px;
    color: var(--secondary) !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.legal-list,
.legal-olist {
    margin: 0 0 14px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
    line-height: 1.6;
}
.legal-doc-card a {
    color: var(--accent);
    font-weight: 600;
}
.legal-contact-box {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 12px;
    font-size: 13.5px;
}
.legal-contact-box i {
    color: var(--accent);
    margin-right: 6px;
}
.legal-note {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(105, 87, 232, 0.07);
    font-size: 13.5px !important;
}
.legal-meta-date {
    margin-top: 14px !important;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px !important;
    color: var(--secondary) !important;
}
@media print {
    .left-sidebar, .right-sidebar, .mobile-topbar, .mobile-bottom-nav, .legal-top-switcher, .legal-anchor-nav, .page-head-bar button {
        display: none !important;
    }
    .legal-doc-card {
        border: 0;
        padding: 0;
        background: #FFF;
        color: #000;
    }
}


/* --- v3.5 Kısa Profil Bağlantısı Rozeti & Ayarlar Bağlantı Önizleme --- */
.profile-handle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 6px;
}
.profile-handle-row .profile-handle {
    margin: 0;
}
.profile-shortlink-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--secondary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.profile-shortlink-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface-hover);
}
.profile-shortlink-chip .shortlink-copy-ico {
    font-size: 11px;
    opacity: 0.72;
}
.settings-shortlink-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px dashed var(--border);
    background: var(--surface);
    font-size: 13.5px;
}
.settings-shortlink-info {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: var(--secondary);
}
.settings-shortlink-info strong {
    color: var(--primary);
}


/* =========================================================================
   v3.6 PREMIUM TIKTOK / INSTAGRAM REELS TAM EKRAN SİNEMA MİMARİSİ
   ========================================================================= */
html:has(body.reels-body),
body.reels-body {
    overflow: hidden !important;
    height: 100dvh;
    background: #070709;
    overscroll-behavior-y: none;
}

.reels-body .app-grid-reels {
    min-height: 100dvh;
    height: 100dvh;
    max-width: 100%;
    gap: 0;
    grid-template-columns: 256px minmax(0, 1fr);
}
@media (max-width: 1040px) and (min-width: 721px) {
    .reels-body .app-grid-reels {
        grid-template-columns: 78px minmax(0, 1fr);
    }
}
.reels-body .left-sidebar {
    background: var(--bg);
    z-index: 30;
}
.reels-body .center-column {
    position: relative;
    height: 100dvh;
    padding: 0 !important;
    border-right: 0 !important;
    overflow: hidden;
    background: radial-gradient(circle at 50% 32%, #1C1833 0%, #09090D 60%, #040406 100%);
}

.reels-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Yüzen Şeffaf Üst Kontrol Barı */
.reels-floating-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(14px + var(--safe-top)) 18px 12px;
    pointer-events: none;
}
.reels-top-left,
.reels-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}
.mobile-only-flex {
    display: none;
}
.reels-top-title {
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}
.reels-top-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 12, 16, 0.46);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.16s ease;
}
.reels-top-icon:hover {
    background: rgba(255, 255, 255, 0.18);
}
.reels-top-icon:active {
    transform: scale(0.92);
}

/* Akıllı Ses Aç/Kapat Hap Butonu */
.reels-sound-pill {
    height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 12, 16, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.14s ease, border-color 0.18s ease;
}
.reels-sound-pill i {
    font-size: 17px;
}
.reels-sound-pill.pulse-hint {
    background: rgba(105, 87, 232, 0.88);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 6px 22px rgba(105, 87, 232, 0.45);
    animation: reelSoundPulse 1.8s ease-in-out infinite;
}
@keyframes reelSoundPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Masaüstü Sağ Ok Navigasyonu */
.reels-desktop-nav {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 22;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reels-nav-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(24, 24, 30, 0.72);
    backdrop-filter: blur(12px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.14s ease;
}
.reels-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Dikey Snap Viewport */
.reels-stage .reels-viewport {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    background: transparent;
    display: block;
}
.reels-stage .reels-viewport::-webkit-scrollbar {
    display: none;
}

/* Slayt Kapsayıcısı: Masaüstünde Ortalı Sinema Kartı, Mobilde %100 Kenardan Kenara */
.reels-stage .reel-slide {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 18px 0;
}

.reel-card-frame {
    position: relative;
    height: min(calc(100dvh - 36px), 880px);
    aspect-ratio: 9 / 16;
    max-width: calc(100vw - 120px);
    border-radius: 22px;
    overflow: hidden;
    background: #050507;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
    user-select: none;
}

.reel-ambient-bg {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.42) saturate(1.25);
    transform: scale(1.12);
    z-index: 0;
    pointer-events: none;
}

.reel-card-frame .reel-video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
/* Yatay (16:9) videolarda görüntüyü kırpmadan ambiyans fonu üzerinde tam kadraj göster */
.reel-slide.is-landscape .reel-card-frame .reel-video {
    object-fit: contain;
}

/* Okunabilirlik Degradeleri */
.reel-shade-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.56), transparent);
    z-index: 2;
    pointer-events: none;
}
.reel-shade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.42) 55%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Tek Dokunuş Oynat/Duraklat Merkez Cam Göstergesi */
.reel-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    opacity: 0;
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.reel-slide.user-paused .reel-play-indicator {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1);
}
.reel-play-indicator.flash {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.06);
}

/* Çift Dokunuş Koordinatlı Kalp Patlaması */
.reel-card-frame .reel-heart-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    inset: auto;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    margin-top: -48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 86px;
    color: #FF2E5B;
    filter: drop-shadow(0 10px 24px rgba(255, 46, 91, 0.52));
    opacity: 0;
    z-index: 7;
    pointer-events: none;
    transform: scale(0.35) rotate(-10deg);
    transition: opacity 0.22s ease, transform 0.34s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.reel-card-frame .reel-heart-burst.pop {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
}

/* Sağ Dikey Etkileşim Sütunu */
.reel-card-frame .reel-actions-rail {
    position: absolute;
    right: 12px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 8;
}

.reel-creator-avatar-wrap {
    position: relative;
    margin-bottom: 6px;
}
.reel-creator-avatar-link {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #6957E8, #EC4899);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.reel-creator-avatar-link img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0B0B0E;
}
.reel-avatar-follow-plus {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 2px solid #0B0B0E;
    background: #FF2E5B;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
}

.reel-card-frame .reel-act {
    background: transparent;
    border: 0;
    padding: 0;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
}
.reel-act-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    transition: transform 0.14s ease, background 0.16s ease;
}
.reel-card-frame .reel-act:active .reel-act-ico {
    transform: scale(0.88);
}
.reel-card-frame .reel-act.liked .reel-act-ico {
    color: #FF2E5B;
    background: rgba(255, 46, 91, 0.16);
    border-color: rgba(255, 46, 91, 0.36);
}
.reel-card-frame .reel-act.saved .reel-act-ico {
    color: #FBBF24;
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.36);
}
.reel-card-frame .reel-act i {
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
}

/* Dönen Plak Diski */
.reel-vinyl-disc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle, #2D2D35 30%, #121216 68%, #2A2A32 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    animation: reelVinylSpin 5s linear infinite;
    animation-play-state: paused;
}
.reel-slide.is-playing .reel-vinyl-disc {
    animation-play-state: running;
}
.reel-vinyl-disc img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
@keyframes reelVinylSpin {
    to { transform: rotate(360deg); }
}

/* Alt Yazar, Açıklama ve Müzik Bilgileri */
.reel-card-frame .reel-bottom-meta {
    position: absolute;
    left: 16px;
    right: 72px;
    bottom: 20px;
    z-index: 8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
}
.reel-card-frame .reel-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}
.reel-card-frame .reel-user {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.reel-card-frame .reel-follow-pill {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.reel-card-frame .reel-follow-pill.following {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
}

.reel-caption-wrap {
    margin-bottom: 8px;
}
.reel-card-frame .reel-caption {
    font-size: 14px;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.95);
    word-break: break-word;
}
.reel-card-frame .reel-caption.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reel-card-frame .reel-caption a {
    color: #FFFFFF;
    font-weight: 700;
}
.reel-caption-more {
    background: none;
    border: 0;
    padding: 2px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.reel-audio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.reel-audio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 74%;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
    color: #FFFFFF;
}
.reel-audio-marquee {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.reel-views-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

/* Etkileşimli Video İlerleme Çubuğu (Scrubbable) */
.reel-progress-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    display: flex;
    align-items: flex-end;
    z-index: 12;
    cursor: pointer;
    touch-action: none;
}
.reel-progress-bar {
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #FFFFFF, #A78BFA);
    border-radius: 0 3px 3px 0;
    transition: height 0.14s ease;
}
.reel-progress-wrap:hover .reel-progress-bar,
.reel-progress-wrap.scrubbing .reel-progress-bar {
    height: 6px;
}

/* Boş Durum */
.reels-empty-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFFFFF;
}

/* Yorum Çekmecesi İyileştirmeleri */
.reel-comments-sheet {
    max-width: 480px;
}
.reel-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--border);
}
.reel-comment-item:last-child {
    border-bottom: 0;
}
.reel-comment-av img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.reel-comment-body {
    flex: 1;
    min-width: 0;
}
.reel-comment-head {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    margin-bottom: 2px;
}
.reel-comment-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
    word-break: break-word;
}
.reel-comment-composer {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reel-comment-send-btn {
    padding: 9px 16px;
    white-space: nowrap;
}

/* --- MOBİL TAM EKRAN OPTİMİZASYONU (TikTok / Instagram Tam Ekran Akışı) --- */
@media (max-width: 900px) {
    .reels-desktop-nav {
        display: none;
    }
}

@media (max-width: 720px) {
    /* Üst barı gizleyerek mobilde izleme alanını tepeye kadar genişlet */
    body.reels-body .mobile-topbar {
        display: none !important;
    }
    .mobile-only-flex {
        display: inline-flex;
    }
    body.reels-body .app-grid-reels {
        display: block;
        height: 100dvh;
    }
    body.reels-body .center-column {
        height: calc(100dvh - 54px - var(--safe-bottom));
        background: #000000;
    }

    /* Alt menüyü TikTok / Instagram Reels koyu sinema moduna geçir */
    body.reels-body .mobile-bottom-nav {
        height: calc(54px + var(--safe-bottom));
        background: rgba(6, 6, 8, 0.96) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: rgba(255, 255, 255, 0.68) !important;
    }
    body.reels-body .mobile-bottom-nav .mnav-item {
        color: rgba(255, 255, 255, 0.65);
    }
    body.reels-body .mobile-bottom-nav .mnav-item.active {
        color: #FFFFFF;
    }
    body.reels-body .mobile-bottom-nav .mnav-share-fab {
        background: #FFFFFF;
        color: #09090B;
    }

    .reels-floating-topbar {
        padding: calc(10px + var(--safe-top)) 14px 10px;
    }
    .reels-stage .reel-slide {
        padding: 0;
        height: 100%;
    }
    .reel-card-frame {
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
    }
    .reel-card-frame .reel-actions-rail {
        right: 10px;
        bottom: 18px;
        gap: 13px;
    }
    .reel-card-frame .reel-bottom-meta {
        left: 14px;
        right: 68px;
        bottom: 16px;
    }
}


/* =========================================================================
   v4.0 BITIG SOSYAL — TÜM SİTE PREMIUM AURORA & GLASSMORPHISM TASARIM SİSTEMİ
   (Web + Mobil, Açık + Koyu Tema, Giriş/Kayıt/Şifre, Ana Akış, Profil, Keşfet, DM, Ayarlar)
   ========================================================================= */
:root {
    --bg-canvas: #F4F5F8;
    --bg: #FFFFFF;
    --surface: #F7F8FA;
    --surface-hover: #EFEFF4;
    --border: rgba(17, 17, 24, 0.08);
    --border-strong: rgba(17, 17, 24, 0.14);
    --primary: #0F1117;
    --secondary: #5E6472;
    --muted: #8A909E;
    --glass: rgba(255, 255, 255, 0.82);
    --glass-heavy: rgba(255, 255, 255, 0.92);
    --shadow-xs: 0 1px 3px rgba(15, 17, 23, 0.04);
    --shadow-sm: 0 6px 20px rgba(15, 17, 23, 0.05);
    --shadow-md: 0 14px 36px rgba(15, 17, 23, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 17, 23, 0.14);
    --accent-soft: rgba(105, 87, 232, 0.11);
    --accent-glow: 0 8px 24px rgba(105, 87, 232, 0.28);
}

[data-theme="dark"] {
    --bg-canvas: #07070A;
    --bg: #101015;
    --surface: #17171F;
    --surface-hover: #20202B;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --primary: #F4F5F8;
    --secondary: #989FAD;
    --muted: #6E7585;
    --glass: rgba(16, 16, 21, 0.80);
    --glass-heavy: rgba(16, 16, 21, 0.92);
    --shadow-xs: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.58);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.72);
    --accent-soft: rgba(124, 108, 242, 0.15);
    --accent-glow: 0 10px 28px rgba(124, 108, 242, 0.34);
}

html, body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
    background: var(--bg-canvas);
    color: var(--primary);
    letter-spacing: -0.008em;
}

/* --- 1. MASAÜSTÜ 3 SÜTUNLU YÜZEN KART MİMARİSİ --- */
@media (min-width: 721px) {
    body:not(.reels-body):not(.auth-body) .app-grid {
        max-width: 1260px;
        gap: 22px;
        padding: 0 16px;
    }

    body:not(.reels-body):not(.messages-body):not(.auth-body) .center-column {
        background: var(--bg);
        border: 1px solid var(--border);
        border-top: 0;
        border-bottom: 0;
        box-shadow: var(--shadow-sm);
    }

    body:not(.reels-body) .left-sidebar {
        border-right: 0;
        padding: 22px 10px;
    }
}

/* Sol Kenar Çubuğu Premium Dokunuşlar */
.desktop-brand {
    padding: 8px 12px 20px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--primary), #2A2845);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
[data-theme="dark"] .brand-badge {
    background: linear-gradient(145deg, #FFFFFF, #D8D4FF);
    color: #0B0B10;
}
.side-nav {
    gap: 5px;
}
.side-link {
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--secondary);
    transition: background 0.18s ease, color 0.18s ease, transform 0.14s ease;
}
.side-link:hover {
    background: var(--bg);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}
.side-link.active {
    background: var(--bg);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}
.side-link.active i {
    color: var(--accent);
}
.btn-compose-desktop {
    margin-top: 16px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    color: #FFFFFF !important;
    box-shadow: var(--accent-glow);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.btn-compose-desktop:hover {
    opacity: 0.96;
    transform: translateY(-1.5px);
}
.sidebar-me {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 9px 11px;
    box-shadow: var(--shadow-xs);
}
.side-footer-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
}

/* Sağ Kenar Çubuğu Kartları & Arama Çubuğu */
.search-input-shell {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    padding: 11px 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px var(--accent-soft);
}
.side-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-xs);
}
.side-card-head h3 {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.trend-item {
    padding: 8px 10px;
    border-radius: 12px;
    transition: background 0.15s ease;
}
.trend-tag {
    font-weight: 700;
    color: var(--primary);
}

/* --- 2. ANA AKIŞ, SEKMELER, HİKÂYELER & HIZLI GÖNDERİ KARTI --- */
.feed-tabs {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 8px;
}
.feed-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 0;
    transition: color 0.18s ease;
}
.feed-tab:hover {
    color: var(--primary);
}
.feed-tab.active {
    color: var(--primary);
    font-weight: 800;
}
.feed-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 22%;
    right: 22%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #A855F7);
}

/* Hikâye Şeridi */
.stories-strip {
    padding: 16px 18px 14px;
    gap: 15px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.story-bubble {
    transition: transform 0.16s ease;
}
.story-bubble:hover {
    transform: translateY(-2px);
}
.story-ring {
    width: 66px;
    height: 66px;
    padding: 2.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.story-ring-unseen {
    background: conic-gradient(from 180deg, #6957E8, #EC4899, #F59E0B, #6957E8);
}
.story-plus {
    background: var(--accent);
    color: #FFFFFF;
}
.story-label {
    font-weight: 600;
    font-size: 12px;
}

/* Hızlı Gönderi Oluşturma Kartı */
.quick-compose-card {
    padding: 16px 18px 13px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.16s ease;
}
.quick-compose-card:hover {
    background: var(--surface);
}
.qc-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quick-compose-card .quick-compose-prompt {
    flex: 1;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--secondary);
    font-size: 14.5px;
    transition: border-color 0.16s ease;
}
.quick-compose-card:hover .quick-compose-prompt {
    border-color: var(--border-strong);
}
.qc-share-pill {
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    color: #FFFFFF !important;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(105, 87, 232, 0.25);
}
.qc-media-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    padding-left: 54px;
    overflow-x: auto;
    scrollbar-width: none;
}
.qc-media-pills::-webkit-scrollbar { display: none; }
.qc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--secondary);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.qc-pill:hover {
    background: var(--surface-hover);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Gönderi Kartları (Post Card) */
.post-card {
    padding: 18px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.16s ease;
}
.post-card:hover {
    background: rgba(105, 87, 232, 0.015);
}
[data-theme="dark"] .post-card:hover {
    background: rgba(255, 255, 255, 0.016);
}
.post-display-name {
    font-weight: 750;
    letter-spacing: -0.015em;
}
.post-text {
    font-size: 15px;
    line-height: 1.56;
    margin-top: 6px;
}
.post-photo-item,
.post-video {
    border-radius: 18px;
    box-shadow: var(--shadow-xs);
}
.poll-box,
.event-card,
.quoted-card,
.link-preview-card {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.16s ease;
}
.quoted-card:hover,
.link-preview-card:hover {
    border-color: var(--border-strong);
}
.poll-bar {
    background: linear-gradient(90deg, rgba(105, 87, 232, 0.22), rgba(168, 85, 247, 0.16));
}
.event-date-badge {
    background: linear-gradient(145deg, var(--accent), #8B5CF6);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(105, 87, 232, 0.26);
}

/* Etkileşim Butonları Renkli Mikro Hover */
.post-actions {
    margin-top: 12px;
    gap: 10px;
}
.act-btn {
    padding: 6px 10px;
    font-weight: 600;
    border-radius: 999px;
}
.act-btn:hover {
    background: var(--surface-hover);
}
.act-btn.liked {
    color: #FF2E5B;
    background: rgba(255, 46, 91, 0.09);
}
.act-btn.reposted {
    color: #10B981;
    background: rgba(16, 185, 129, 0.10);
}
.act-btn.saved {
    color: var(--accent);
    background: var(--accent-soft);
}

/* --- 3. PROFİL SAYFASI PREMIUM MİMARİSİ --- */
.profile-header-card {
    background: var(--bg);
}
.profile-cover {
    position: relative;
    height: 196px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.profile-cover-aurora {
    background:
        radial-gradient(circle at 18% 25%, rgba(236, 72, 153, 0.55) 0%, transparent 52%),
        radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.48) 0%, transparent 48%),
        linear-gradient(135deg, #121026 0%, #2D2268 52%, #6957E8 100%);
}
.profile-cover-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 55%);
    pointer-events: none;
}
.profile-main-info {
    padding: 0 20px 16px;
}
.profile-top-row {
    margin-top: -46px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}
.profile-avatar-ring {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #EC4899, #F59E0B);
    box-shadow: var(--shadow-md);
}
.profile-avatar-xl {
    width: 92px;
    height: 92px;
    border: 3.5px solid var(--bg);
    display: block;
}
.profile-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.profile-bio {
    font-size: 14.5px;
    line-height: 1.55;
    margin: 10px 0 12px;
}

/* Cam İstatistik Kartları */
.profile-stats-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 10px;
}
.pstat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    transition: border-color 0.16s ease, transform 0.14s ease, background 0.16s ease;
}
.pstat-box.clickable {
    cursor: pointer;
}
.pstat-box.clickable:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-1px);
}
.pstat-box strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.pstat-box span {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
}

.profile-tabs {
    justify-content: flex-start;
    gap: 2px;
    padding: 0 10px;
    scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs .feed-tab {
    flex: 0 0 auto;
    padding: 13px 14px;
    font-size: 13.5px;
}

/* --- 4. GİRİŞ, KAYIT, ŞİFREMİ UNUTTUM & YENİ ŞİFRE (AUTH V4) --- */
.auth-body {
    position: relative;
    min-height: 100dvh;
    overflow-x: hidden;
    padding: 68px 18px 28px;
    background: var(--bg-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-aurora-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.45;
}
[data-theme="dark"] .aurora-orb {
    opacity: 0.32;
}
.aurora-orb.orb-1 {
    width: 440px;
    height: 440px;
    top: -110px;
    left: -90px;
    background: radial-gradient(circle, #6957E8, transparent 70%);
}
.aurora-orb.orb-2 {
    width: 400px;
    height: 400px;
    bottom: -120px;
    right: -80px;
    background: radial-gradient(circle, #EC4899, transparent 70%);
}
.aurora-orb.orb-3 {
    width: 320px;
    height: 320px;
    top: 38%;
    left: 48%;
    background: radial-gradient(circle, #38BDF8, transparent 70%);
}

.auth-topbar-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + var(--safe-top)) 22px 10px;
    pointer-events: none;
}
.auth-mini-home,
.auth-theme-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.16s ease;
}
.auth-mini-home:hover,
.auth-theme-pill:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.auth-split-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 460px);
    gap: 32px;
    align-items: stretch;
}

/* Sol Tanıtım Vitrini */
.auth-showcase-pane {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.42), transparent 48%),
        radial-gradient(circle at 15% 88%, rgba(56, 189, 248, 0.34), transparent 50%),
        linear-gradient(145deg, #0D0C1D 0%, #1E1947 52%, #3A2C85 100%);
    color: #FFFFFF;
    padding: 38px 36px;
    display: flex;
    box-shadow: 0 28px 68px rgba(15, 14, 38, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-showcase-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
}
.auth-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #FFFFFF;
}
.auth-showcase-pane .brand-mark-lg {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    color: #FFFFFF;
    font-size: 25px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.auth-hero-brand-text {
    display: flex;
    flex-direction: column;
}
.auth-hero-brand-text strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.auth-hero-brand-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.auth-hero-copy h1 {
    margin: 0 0 12px;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.auth-hero-copy p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.80);
}

.auth-feature-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}
.af-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #E0E7FF;
    flex-shrink: 0;
}
.auth-feature-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.auth-feature-item span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.74);
}
.auth-showcase-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
}

/* Sağ Cam Form Kartı */
.auth-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-brand-mobile {
    display: none;
}
.auth-card {
    background: var(--glass-heavy);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-lg);
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.auth-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--secondary);
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.auth-mode-tab.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}
.auth-mode-tab.active i {
    color: var(--accent);
}

.auth-card-head {
    margin-bottom: 18px;
}
.auth-heading {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.auth-subtext {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--secondary);
}
.auth-icon-hero {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

/* İkonlu Form Alanları & Odak Halkaları */
.input-icon-shell {
    position: relative;
    display: flex;
    align-items: center;
}
.input-lead-ico {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
    transition: color 0.16s ease;
}
.input-icon-shell:focus-within .input-lead-ico {
    color: var(--accent);
}
.form-input {
    border-radius: 13px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    padding: 11.5px 14px;
    font-size: 15px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.form-input.has-lead-ico {
    padding-left: 40px;
}
.pw-input-wrap .form-input {
    padding-right: 42px;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px var(--accent-soft);
}
.pw-eye-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pw-eye-btn:hover {
    background: var(--surface);
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    color: #FFFFFF !important;
    box-shadow: var(--accent-glow);
    border: 0;
    padding: 12px 22px;
    font-weight: 700;
    transition: transform 0.14s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}
.btn-primary:active {
    transform: scale(0.985);
}
.btn-auth-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    padding: 13px 22px;
    margin-top: 4px;
}
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.auth-footer {
    flex-wrap: wrap;
    margin-top: 18px;
}

/* --- 5. KEŞFET, BİLDİRİMLER, AYARLAR & MODALLARDA PREMIUM CİLA --- */
.settings-card,
.trend-panel,
.mini-user-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-xs);
}
.modal-backdrop {
    background: rgba(8, 9, 14, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-sheet {
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.dropdown-menu {
    background: var(--glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}
.empty-icon-ring {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.empty-icon-ring i {
    margin: 0;
    opacity: 1;
    font-size: 28px;
}

/* --- 6. MOBİL PREMIUM DENEYİM & iOS OPTİMİZASYONLARI --- */
@media (max-width: 960px) {
    .auth-split-container {
        grid-template-columns: 1fr;
        max-width: 470px;
    }
    .auth-showcase-pane {
        display: none;
    }
    .auth-brand-mobile {
        display: block;
        margin-bottom: 16px;
    }
    .auth-brand-mobile .brand-mark-lg {
        background: linear-gradient(135deg, var(--accent), #8B5CF6);
        color: #FFFFFF;
        box-shadow: var(--accent-glow);
    }
}

@media (max-width: 720px) {
    html, body {
        background: var(--bg);
    }
    .auth-body {
        background: var(--bg-canvas);
        align-items: flex-start;
        padding: calc(62px + var(--safe-top)) 14px calc(24px + var(--safe-bottom));
    }
    .auth-card {
        padding: 22px 18px 20px;
        border-radius: 22px;
    }
    /* iOS Safari odak yakınlaştırmasını (auto-zoom) önlemek için 16px taban font */
    .form-input {
        font-size: 16px;
    }

    /* Mobil Üst Cam Bar */
    .mobile-topbar {
        background: var(--glass-heavy);
        backdrop-filter: blur(22px) saturate(180%);
        -webkit-backdrop-filter: blur(22px) saturate(180%);
        padding: calc(9px + var(--safe-top)) 14px 9px;
    }
    .mobile-brand .brand-badge {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 18px;
    }

    /* Mobil Alt Cam Navigasyon Çubuğu (Reels sayfası kendi sinema koyu modunu korur) */
    body:not(.reels-body) .mobile-bottom-nav {
        background: var(--glass-heavy);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.06);
        padding: 6px 8px calc(7px + var(--safe-bottom));
    }
    .mnav-item.active i {
        color: var(--accent);
    }
    body:not(.reels-body) .mnav-share-fab {
        background: linear-gradient(135deg, var(--accent), #8B5CF6);
        box-shadow: var(--accent-glow);
        border-radius: 15px;
    }

    .qc-media-pills {
        padding-left: 0;
    }
    .profile-cover {
        height: 154px;
    }
    .profile-avatar-xl {
        width: 82px;
        height: 82px;
    }
    .profile-main-info {
        padding: 0 15px 14px;
    }
    .profile-edit-cta span {
        display: inline;
    }
    .modal-sheet {
        border-radius: 24px 24px 0 0;
    }
}


/* =========================================================================
   v4.1 PROFESYONEL PROFİL MİMARİSİ, PRESTİJ ROZET SİSTEMİ & HİZALAMA DÜZELTMELERİ
   ========================================================================= */

/* Tüm butonlarda çok satırlı kırılma / oval bozulma (Profili Düzenle hatası) kesin engeli */
.btn-outline-sm,
.btn-follow-main,
.btn-follow-sm,
.btn-dark-sm,
.btn-primary,
.btn-danger,
.profile-btn-edit {
    white-space: nowrap !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

/* --- Kurumsal & Zarif Profil Üst Alanı --- */
.profile-cover-executive {
    background:
        radial-gradient(circle at 80% 18%, rgba(99, 102, 241, 0.28) 0%, transparent 50%),
        radial-gradient(circle at 16% 80%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
        linear-gradient(135deg, #0B0E17 0%, #151B2E 52%, #1E1B4B 100%);
}
.profile-cover {
    height: 168px;
}

.profile-main-info {
    padding: 0 20px 16px;
}

.profile-top-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: -44px;
    margin-bottom: 14px;
    position: relative;
    z-index: 3;
}

/* Stüdyo Kalitesinde Yalın Avatar Çerçevesi */
.profile-avatar-frame {
    position: relative;
    border-radius: 50%;
    padding: 0;
    background: var(--bg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--border);
    flex-shrink: 0;
}
.profile-avatar-frame .profile-avatar-xl {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    display: block;
}

/* Sağ Aksiyon Grubu: Asla Kırılmaz, Daima Tek Satır ve Dengeli */
.profile-cta-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 2px;
}

.profile-btn-edit {
    height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.profile-btn-edit:hover {
    background: var(--surface);
    border-color: var(--primary);
}
.profile-btn-edit:active {
    transform: scale(0.97);
}
.profile-btn-edit i {
    font-size: 14px;
    color: var(--secondary);
}

.profile-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.16s ease, border-color 0.16s ease;
}
.profile-btn-icon:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.profile-cta-group .btn-follow-main {
    height: 36px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 700;
}

/* Dropdown içindeki <a> linklerinin de <button> öğeleriyle birebir şık görünmesi */
.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 9px;
    transition: background 0.14s ease;
}
.dropdown-menu a:hover {
    background: var(--surface);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 4px;
}

/* İsim ve Kullanıcı Adı Hiyerarşisi */
.profile-identity-block {
    margin-bottom: 10px;
}
.profile-name {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
}
.profile-name .verified-icon {
    color: #1D9BF0;
    font-size: 18px;
    margin-left: 1px;
}
.profile-handle {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

/* --- YENİ NESİL PRESTİJ ROZET VİTRİNİ (Luxury Micro-Medallion System) --- */
.prestige-badge-showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 12px;
}

.prestige-badge {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 27px;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    box-shadow: 0 1px 2px rgba(15, 17, 23, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
[data-theme="dark"] .prestige-badge {
    background: linear-gradient(180deg, rgba(32, 32, 44, 0.92) 0%, rgba(20, 20, 28, 0.96) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.prestige-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 17, 23, 0.09);
}
.prestige-badge:active {
    transform: scale(0.97);
}

.pb-medallion {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.pb-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
    white-space: nowrap;
}

/* Rozet Katman Renkleri (Altın, Safir, Obsidyen, Zümrüt, Kraliyet Moru) */
.prestige-badge.tier-gold {
    border-color: rgba(217, 119, 6, 0.28);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.45) 0%, var(--bg) 100%);
}
[data-theme="dark"] .prestige-badge.tier-gold {
    border-color: rgba(245, 158, 11, 0.34);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.32) 0%, rgba(20, 20, 28, 0.95) 100%);
}
.prestige-badge.tier-gold .pb-medallion {
    background: linear-gradient(135deg, #F59E0B, #B45309);
}

.prestige-badge.tier-sapphire {
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.45) 0%, var(--bg) 100%);
}
[data-theme="dark"] .prestige-badge.tier-sapphire {
    border-color: rgba(56, 189, 248, 0.30);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.34) 0%, rgba(20, 20, 28, 0.95) 100%);
}
.prestige-badge.tier-sapphire .pb-medallion {
    background: linear-gradient(135deg, #38BDF8, #2563EB);
}

.prestige-badge.tier-obsidian {
    border-color: rgba(124, 58, 237, 0.26);
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.5) 0%, var(--bg) 100%);
}
[data-theme="dark"] .prestige-badge.tier-obsidian {
    border-color: rgba(167, 139, 250, 0.32);
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.34) 0%, rgba(20, 20, 28, 0.95) 100%);
}
.prestige-badge.tier-obsidian .pb-medallion {
    background: linear-gradient(135deg, #8B5CF6, #4C1D95);
}

.prestige-badge.tier-emerald {
    border-color: rgba(16, 185, 129, 0.26);
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.45) 0%, var(--bg) 100%);
}
[data-theme="dark"] .prestige-badge.tier-emerald {
    border-color: rgba(52, 211, 153, 0.30);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.36) 0%, rgba(20, 20, 28, 0.95) 100%);
}
.prestige-badge.tier-emerald .pb-medallion {
    background: linear-gradient(135deg, #10B981, #047857);
}

.prestige-badge.tier-royal {
    border-color: rgba(105, 87, 232, 0.24);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.5) 0%, var(--bg) 100%);
}
[data-theme="dark"] .prestige-badge.tier-royal {
    border-color: rgba(129, 140, 248, 0.30);
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.34) 0%, rgba(20, 20, 28, 0.95) 100%);
}
.prestige-badge.tier-royal .pb-medallion {
    background: linear-gradient(135deg, #6957E8, #4338CA);
}

/* Biyografi & Meta Bilgiler */
.profile-bio {
    margin: 8px 0 10px;
    font-size: 14.5px;
    line-height: 1.52;
    color: var(--primary);
}
.profile-meta-links {
    gap: 12px;
    font-size: 12.8px;
    color: var(--secondary);
    margin-bottom: 12px;
}

/* Yalın ve Profesyonel İstatistik Şeridi (Kutu Kalabalığı Yok, Gizlilik Odaklı) */
.profile-metrics-strip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 15px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.pmetric-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 13.5px;
    user-select: none;
}
.pmetric-item strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}
.pmetric-item span {
    color: var(--secondary);
    font-weight: 500;
}
.pmetric-sep {
    width: 1px;
    height: 13px;
    background: var(--border-strong);
}

/* Profil Sekmeleri Dengeli Hizalama */
.profile-tabs {
    display: flex;
    padding: 0 12px;
    gap: 4px;
    border-top: 1px solid var(--border);
}
.profile-tabs .feed-tab {
    padding: 12px 14px;
    font-size: 13.8px;
}

/* Gönderi Kartı Alt İkon Çubuğu — Mobilde Sağdan Taşma / Kesilme Koruması */
@media (max-width: 720px) {
    .profile-cover {
        height: 138px;
    }
    .profile-top-row {
        margin-top: -40px;
        margin-bottom: 12px;
    }
    .profile-avatar-frame .profile-avatar-xl {
        width: 82px;
        height: 82px;
    }
    .profile-main-info {
        padding: 0 16px 14px;
    }
    .post-card {
        padding: 15px 15px;
    }
    .post-actions {
        gap: 4px;
        flex-wrap: nowrap;
        width: 100%;
    }
    .act-btn {
        padding: 5px 6px;
        margin-left: -4px;
        font-size: 12.5px;
        gap: 4px;
    }
    .act-btn i {
        font-size: 17px;
    }
    .act-stat {
        font-size: 12px;
    }
    .act-right {
        gap: 2px;
    }
}


/* =========================================================================
   v4.2 iOS WKWEBVIEW & ANDROID WEBVIEW INLINE REELS VE KAYDIRMA OPTİMİZASYONU
   ========================================================================= */
:root {
    --reels-vh: 100dvh;
}

html.reels-html,
body.reels-body {
    overflow: hidden !important;
    height: var(--reels-vh, 100dvh) !important;
    max-height: var(--reels-vh, 100dvh) !important;
    position: fixed;
    inset: 0;
    width: 100%;
    background: #050507 !important;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

/* Ham <video> öğesine parmak temasını tamamen kapat: iOS/Android WebView tam ekran tetikleyicisini engeller */
.reel-card-frame .reel-video {
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* iOS yerel video kontrollerini (gölge DOM içinde belirse dahi) gizle */
.reel-video::-webkit-media-controls,
.reel-video::-webkit-media-controls-panel,
.reel-video::-webkit-media-controls-play-button,
.reel-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Şeffaf Dokunma & Dikey Kaydırma Kalkanı */
.reel-touch-shield {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* Pürüzsüz 60fps WebView Dikey Snap Kaydırma */
.reels-stage .reels-viewport {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-behavior: auto !important;
    overscroll-behavior-y: contain;
    will-change: scroll-position;
}

.reels-stage .reel-slide {
    touch-action: pan-y;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@media (max-width: 720px) {
    body.reels-body .app-grid-reels {
        height: var(--reels-vh, 100dvh) !important;
    }
    body.reels-body .center-column {
        height: calc(var(--reels-vh, 100dvh) - 54px - var(--safe-bottom)) !important;
    }
}


/* =========================================================================
   v4.3 iOS WKWEBVIEW RETINA <CANVAS> VİDEO KATMANI & MOBİL ALT HİZALAMA DÜZELTMESİ
   ========================================================================= */
.reel-inline-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none !important;
    display: block;
}
.reel-inline-canvas[hidden] {
    display: none !important;
}

/* Degrade ve kontroller canvas (z-index:2) katmanının üstünde kalır */
.reel-shade-top,
.reel-shade-bottom {
    z-index: 3;
}
.reel-touch-shield {
    z-index: 4;
}
.reel-spinner,
.reel-play-indicator {
    z-index: 6;
}
.reel-card-frame .reel-heart-burst {
    z-index: 7;
}
.reel-card-frame .reel-actions-rail,
.reel-card-frame .reel-bottom-meta {
    z-index: 8;
}
.reel-progress-wrap {
    z-index: 12;
}

@media (max-width: 720px) {
    /* Gerçek ölçülen alt menü yüksekliğine (--reels-stage-h) tam oturur; '...' ve '@kullanici' asla alt bar altında kalmaz */
    body.reels-body .center-column {
        height: var(--reels-stage-h, calc(100dvh - 72px - var(--safe-bottom))) !important;
        max-height: var(--reels-stage-h, calc(100dvh - 72px - var(--safe-bottom))) !important;
    }

    .reel-card-frame .reel-actions-rail {
        right: 10px;
        bottom: 16px;
        gap: 10px;
    }
    .reel-creator-avatar-link {
        width: 42px;
        height: 42px;
    }
    .reel-act-ico {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }
    .reel-vinyl-disc {
        width: 34px;
        height: 34px;
    }
    .reel-card-frame .reel-bottom-meta {
        left: 14px;
        right: 64px;
        bottom: 16px;
    }
}


/* =========================================================================
   v4.4 LOGO.PNG GÖRSEL MARKA STİLLERİ (Kare & Yatay Şeffaf PNG Tam Uyumlu)
   ========================================================================= */
.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
}
.mobile-logo-img {
    height: 34px;
    max-width: 128px;
    border-radius: 9px;
}
.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-logo-img {
    height: 52px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
}
.auth-showcase-pane .auth-logo-img {
    height: 48px;
    max-width: 165px;
}

@media (max-width: 1080px) and (min-width: 721px) {
    .desktop-brand {
        justify-content: center;
        padding-left: 4px;
        padding-right: 4px;
    }
    .brand-logo-img {
        max-width: 42px;
        height: 36px;
    }
}
