/* ============================================================
   By Mühendis Sosyal Medya Yönetimi — Tema
   Logo paletinden: marka mavisi #1498d5 + antrasit #272727, koyu lacivert zemin.
   Varsayılan koyu tema; <html data-bs-theme="light"> ile açık tema.
   ============================================================ */

:root,
[data-bs-theme="dark"] {
    --bg-deep: #0a1420;
    --bg-base: #0e1a28;
    --bg-surface: #142436;
    --bg-surface-2: #18293d;
    --bg-elevated: #1d3044;

    --brand: #1498d5;
    --brand-bright: #3cb4ec;
    --brand-600: #0f7db3;
    --brand-rgb: 20, 152, 213;
    --brand-50: rgba(20, 152, 213, .15);
    --brand-glow: rgba(20, 152, 213, .38);
    --brand-ink: #ffffff;

    --accent2: #5cc3f2;
    --accent2-rgb: 92, 195, 242;
    --accent2-soft: rgba(92, 195, 242, .14);

    --sidebar-bg: linear-gradient(180deg, var(--bg-base), var(--bg-deep));
    --sidebar-fg: #9fb2c0;
    --sidebar-text: #eef4f2;
    --sidebar-muted: #9fb2c0;
    --sidebar-active: #3cb4ec;
    --sidebar-active-bg: rgba(20, 152, 213, .15);
    --sidebar-accent: #1498d5;
    --sidebar-hover-bg: rgba(255, 255, 255, .05);
    --sidebar-border: rgba(255, 255, 255, .06);
    --sidebar-card-bg: rgba(255, 255, 255, .05);
    --sidebar-card-hover: rgba(255, 255, 255, .09);
    --sidebar-card-border: rgba(255, 255, 255, .08);
    --nav-section: #61788a;
    --topbar-bg: rgba(14, 26, 40, .72);
    --auth-side-bg: radial-gradient(700px 420px at 15% 110%, rgba(92, 195, 242, .22), transparent 60%), radial-gradient(800px 500px at 90% -10%, rgba(20, 152, 213, .32), transparent 60%), linear-gradient(160deg, #0e1a28, #0a1420);
    --auth-side-text: #eef4f2;
    --auth-side-muted: #9fb2c0;
    --auth-side-accent: #3cb4ec;
    --auth-side-gradient: linear-gradient(90deg, #3cb4ec, #a6e1fb);

    --surface: var(--bg-surface);
    --bg: var(--bg-deep);
    --border: rgba(255, 255, 255, .07);
    --border-strong: rgba(255, 255, 255, .13);
    --text: #eef4f2;
    --muted: #9fb2c0;
    --muted-2: #61788a;
    --tile-bg: #1d3044;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
    --app-glow: radial-gradient(900px 500px at 80% -10%, rgba(20, 152, 213, .10), transparent 60%);

    --success: #2fbf71;
    --warning: #f0b429;
    --danger: #f0556d;
    --info: #4aa8ff;

    /* Bootstrap koyu tema değişkenleri */
    --bs-body-bg: var(--bg-deep);
    --bs-body-bg-rgb: 10, 20, 32;
    --bs-body-color: var(--text);
    --bs-body-color-rgb: 238, 244, 242;
    --bs-emphasis-color: #ffffff;
    --bs-secondary-color: var(--muted);
    --bs-tertiary-color: var(--muted-2);
    --bs-secondary-bg: var(--bg-elevated);
    --bs-tertiary-bg: var(--bg-surface-2);
    --bs-border-color: var(--border-strong);
    --bs-border-color-translucent: var(--border);
    --bs-heading-color: var(--text);
    --bs-link-color: var(--accent2);
    --bs-link-color-rgb: var(--accent2-rgb);
    --bs-link-hover-color: #93d6f6;
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-primary-bg-subtle: rgba(20, 152, 213, .15);
    --bs-primary-border-subtle: rgba(20, 152, 213, .4);
    --bs-primary-text-emphasis: var(--brand-bright);
    --bs-success-rgb: 47, 191, 113;
    --bs-danger-rgb: 240, 85, 109;
    --bs-warning-rgb: 240, 180, 41;
    --bs-info-rgb: 74, 168, 255;
    --bs-dark-rgb: 10, 20, 32;
}

[data-bs-theme="light"] {
    --bg-deep: #eaeef4;
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-2: #f3f6fb;
    --bg-elevated: #e8edf5;

    --brand: #1289c4;
    --brand-bright: #1498d5;
    --brand-600: #0e6f9f;
    --brand-rgb: 18, 137, 196;
    --brand-50: rgba(20, 152, 213, .11);
    --brand-glow: rgba(20, 152, 213, .25);
    --brand-ink: #ffffff;

    --accent2: #0d6fa8;
    --accent2-rgb: 13, 111, 168;
    --accent2-soft: rgba(13, 111, 168, .10);

    --sidebar-bg: linear-gradient(180deg, #ffffff, #f6f8fc);
    --sidebar-fg: #51627a;
    --sidebar-text: #272727;
    --sidebar-muted: #51627a;
    --sidebar-active: #0e6f9f;
    --sidebar-active-bg: rgba(20, 152, 213, .12);
    --sidebar-accent: #1498d5;
    --sidebar-hover-bg: #f0f3f8;
    --sidebar-border: rgba(15, 27, 45, .08);
    --sidebar-card-bg: #f3f6fb;
    --sidebar-card-hover: #e8edf5;
    --sidebar-card-border: rgba(15, 27, 45, .09);
    --nav-section: #8493a6;
    --auth-side-bg: radial-gradient(700px 420px at 15% 110%, rgba(13, 111, 168, .12), transparent 60%), radial-gradient(800px 500px at 90% -10%, rgba(20, 152, 213, .20), transparent 60%), linear-gradient(160deg, #ffffff, #eef4f9);
    --auth-side-text: #272727;
    --auth-side-muted: #556170;
    --auth-side-accent: #1498d5;
    --auth-side-gradient: linear-gradient(90deg, #1498d5, #0d5f8f);
    --topbar-bg: rgba(255, 255, 255, .85);

    --border: rgba(15, 27, 45, .09);
    --border-strong: rgba(15, 27, 45, .16);
    --text: #22272e;
    --muted: #556170;
    --muted-2: #8493a6;
    --tile-bg: #e8edf5;
    --shadow: 0 10px 30px rgba(20, 40, 80, .10);
    --app-glow: radial-gradient(900px 500px at 80% -10%, rgba(20, 152, 213, .08), transparent 60%);

    --success: #1e9e5a;
    --danger: #d63a52;

    --bs-body-bg: var(--bg-deep);
    --bs-body-bg-rgb: 234, 238, 244;
    --bs-body-color: var(--text);
    --bs-body-color-rgb: 34, 39, 46;
    --bs-emphasis-color: #000;
    --bs-link-hover-color: #0a5580;
    --bs-success-rgb: 30, 158, 90;
    --bs-dark-rgb: 15, 27, 45;
}

:root {
    --instagram: #e1306c;
    --facebook: #1877f2;
    --x: #000000;
    --linkedin: #0a66c2;
    --youtube: #ff0000;
    --font-display: "Sora", -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

html { font-size: 14.5px; }
body { background: var(--app-glow), var(--bg); background-attachment: fixed; color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .page-title, .stat-value, .brand-text { font-family: var(--font-display); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 8px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-600); }

/* Butonlar ve form */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { --bs-btn-color: var(--brand-ink); --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: var(--brand-ink); --bs-btn-hover-bg: var(--brand-bright); --bs-btn-hover-border-color: var(--brand-bright); --bs-btn-active-color: var(--brand-ink); --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600); --bs-btn-disabled-color: var(--brand-ink); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); box-shadow: 0 6px 18px var(--brand-glow); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: var(--brand-ink); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-color: var(--brand-ink); --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600); }
.btn-light { --bs-btn-color: var(--text); --bs-btn-bg: var(--bg-surface-2); --bs-btn-border-color: var(--border); --bs-btn-hover-color: var(--text); --bs-btn-hover-bg: var(--bg-elevated); --bs-btn-hover-border-color: var(--border-strong); --bs-btn-active-bg: var(--bg-elevated); --bs-btn-active-color: var(--text); --bs-btn-disabled-bg: var(--bg-surface-2); --bs-btn-disabled-color: var(--muted); }
.btn-link { --bs-btn-color: var(--accent2); --bs-btn-hover-color: var(--bs-link-hover-color); }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; color: var(--brand-ink); }
.bg-success { background-color: var(--success) !important; color: var(--brand-ink); }
.bg-light { background-color: var(--bg-surface-2) !important; }
.badge.bg-light, .bg-light.text-dark { color: var(--text) !important; }
.text-bg-dark { background-color: var(--bg-elevated) !important; }
.form-control, .form-select { background-color: var(--bg-surface-2); border-color: var(--border-strong); color: var(--text); }
.form-control::placeholder { color: var(--muted-2); }
.form-control:disabled, .form-control[readonly] { background-color: var(--bg-elevated); }
.form-control:focus, .form-select:focus, .form-check-input:focus { background-color: var(--bg-surface-2); color: var(--text); border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-50); }
.form-check-input { background-color: var(--bg-surface-2); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.dropdown-menu { --bs-dropdown-bg: var(--bg-surface); --bs-dropdown-border-color: var(--border-strong); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--bg-surface-2); --bs-dropdown-link-active-bg: var(--brand-50); --bs-dropdown-link-active-color: var(--brand-bright); border-radius: 12px; }
.modal-content { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 16px; }
.list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: var(--border); --bs-list-group-color: var(--text); --bs-list-group-action-hover-bg: var(--bg-surface-2); --bs-list-group-action-hover-color: var(--text); }
.nav-tabs { --bs-nav-tabs-border-color: var(--border); --bs-nav-tabs-link-active-bg: var(--bg-surface); --bs-nav-tabs-link-active-border-color: var(--border) var(--border) var(--bg-surface); --bs-nav-tabs-link-hover-border-color: var(--border); }
.alert { border-radius: 12px; }
.progress { --bs-progress-bg: var(--bg-elevated); --bs-progress-bar-bg: var(--brand); }
.toast { border-radius: 12px; }

/* Shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--sidebar-bg); color: var(--sidebar-fg); border-right: 1px solid var(--sidebar-border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 1030; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 66px; display: flex; align-items: center; padding: 0 28px; background: var(--topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1020; }
.page-title { font-size: 1.15rem; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.content { padding: 24px 28px 48px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--sidebar-text); text-decoration: none; padding: 4px 6px 20px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: block; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 6px 14px var(--brand-glow)); }
.brand-text { font-weight: 700; font-size: 1.1rem; line-height: 1.1; letter-spacing: -.3px; color: var(--sidebar-text); }
.brand-text span { color: var(--sidebar-accent); }
.brand-text small { display: block; font-family: var(--bs-body-font-family); font-weight: 500; font-size: .72rem; color: var(--sidebar-muted); letter-spacing: 0; margin-top: 2px; }
.brand-lg .brand-mark { width: 60px; height: 60px; }
.brand-lg .brand-text { font-size: 1.6rem; }

.org-switcher .btn { position: relative; background: var(--sidebar-card-bg); color: var(--sidebar-text); border: 1px solid var(--sidebar-card-border); border-radius: 12px; padding: 9px 12px; white-space: normal; font-weight: 500; }
.org-switcher .btn:hover, .org-switcher .btn.show { background: var(--sidebar-card-hover); color: var(--sidebar-text); border-color: var(--sidebar-card-border); }
.org-switcher .dropdown-toggle::after { position: absolute; right: 12px; top: 20px; }
.org-role { color: var(--sidebar-accent); font-size: .72rem; font-weight: 600; }
.org-name { font-weight: 700; }

.nav-menu { margin-top: 12px; }
.nav-section { text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: var(--nav-section); margin: 18px 10px 6px; font-weight: 600; }
.nav-item-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--sidebar-fg); text-decoration: none; font-weight: 500; margin-bottom: 2px; transition: all .15s ease; }
.nav-item-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.nav-item-link:hover { color: var(--sidebar-text); background: var(--sidebar-hover-bg); }
.nav-item-link.active { color: var(--sidebar-active); background: var(--sidebar-active-bg); font-weight: 600; }
.nav-item-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sidebar-accent); box-shadow: 0 0 12px var(--brand-glow); }
.nav-cta { background: linear-gradient(135deg, #1498d5, #0f7db3); color: #ffffff; font-weight: 700; margin-bottom: 8px; box-shadow: 0 8px 20px rgba(20, 152, 213, .3); }
.nav-cta:hover, .nav-cta.active { background: linear-gradient(135deg, #3cb4ec, #1498d5); color: #ffffff; }
.nav-cta.active::before { display: none; }

.btn-icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text); display: grid; place-items: center; }
.btn-icon:hover { border-color: var(--border-strong); color: var(--brand); }
.notif-badge { position: absolute; top: -4px; right: -4px; font-size: .62rem; }
.notif-menu { width: 360px; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; font-size: .88rem; }
.notif-item:hover { background: var(--bg-surface-2); }
.notif-item.unread { background: var(--brand-50); }
.btn-user { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); color: var(--text); padding: 4px 12px 4px 4px; }
.btn-user:hover, .btn-user.show { border-color: var(--border-strong); color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(140deg, var(--brand), var(--brand-600)); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }

/* Kartlar */
.card { --bs-card-bg: var(--bg-surface); --bs-card-border-color: var(--border); --bs-card-cap-bg: transparent; border-radius: 16px; box-shadow: none; }
.card-header { background: transparent; border-bottom: 1px solid var(--border); padding: 14px 18px; font-weight: 700; font-family: var(--font-display); font-size: .95rem; }
.card-header small, .card-header .fw-normal { font-family: var(--bs-body-font-family); }
.card-body { padding: 18px; }
.stat-card { padding: 18px; display: flex; flex-direction: row; gap: 14px; align-items: center; transition: transform .15s ease, border-color .15s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.soft-primary { background: var(--brand-50); color: var(--brand); }
.soft-success { background: rgba(47, 191, 113, .14); color: var(--success); }
.soft-warning { background: rgba(240, 180, 41, .14); color: var(--warning); }
.soft-danger { background: rgba(240, 85, 109, .14); color: var(--danger); }
.soft-info { background: var(--accent2-soft); color: var(--accent2); }

.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); --bs-table-hover-bg: var(--bg-surface-2); --bs-table-hover-color: var(--text); }
.table > :not(caption) > * > * { padding: .75rem .85rem; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; background: var(--bg-surface-2); }
.table-card { margin: 0; }

/* Platformlar */
.pf { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: .85rem; flex-shrink: 0; }
.pf-lg { width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; }
.pf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.pf-facebook { background: var(--facebook); }
.pf-x { background: var(--x); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pf-linkedin { background: var(--linkedin); }
.pf-youtube { background: var(--youtube); }
.pf-stack { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.pf-stack .pf { width: 22px; height: 22px; font-size: .72rem; position: relative; }
.pf-stack .pf .dot { position: absolute; bottom: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--bg-surface); }

.badge { font-weight: 600; border-radius: 8px; }
.badge.bg-info.text-dark, .badge.bg-warning.text-dark { color: #0a1420 !important; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state > i { font-size: 3rem; color: var(--brand-600); opacity: .7; display: block; margin-bottom: 12px; }
.empty-state h4, .empty-state h5 { color: var(--text); }

.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--tile-bg); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }

/* Giriş ekranları */
.auth-body { background: var(--app-glow), var(--bg); }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-side { flex: 1; position: relative; overflow: hidden; background: var(--auth-side-bg); color: var(--auth-side-text); padding: 64px; align-items: center; border-right: 1px solid var(--border); }
.auth-side .brand, .auth-side .brand-text { color: var(--auth-side-text); }
.auth-side .brand-text span { color: var(--auth-side-accent); }
.auth-side .brand-text small { color: var(--auth-side-muted); }
.auth-side h2 { font-size: 2.1rem; max-width: 480px; line-height: 1.25; }
.auth-side h2 span { background: var(--auth-side-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-features { list-style: none; padding: 0; margin: 28px 0 0; }
.auth-features li { margin-bottom: 14px; color: var(--auth-side-muted); }
.auth-features i { margin-right: 6px; color: var(--auth-side-accent); }
.auth-theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 1040; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h3 { font-weight: 700; }
.auth-mobile-brand { display: none; }

/* Editör */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.sticky-col { position: sticky; top: 86px; }
.account-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--bg-surface-2); transition: .15s; }
.account-pick:hover { border-color: var(--border-strong); }
.account-pick input { display: none; }
.account-pick.checked { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.account-pick.disabled { opacity: .5; cursor: not-allowed; }
.account-pick img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.account-pick .pick-check { display: none; }
.account-pick.checked .pick-check { display: inline; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.media-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tile-bg); border: 2px solid transparent; cursor: pointer; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-tile.selected { border-color: var(--brand); }
.media-tile .tile-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: none; place-items: center; font-size: .8rem; }
.media-tile.selected .tile-check { display: grid; }
.media-tile .tile-remove { position: absolute; top: 4px; right: 4px; border: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; }
.media-tile .tile-type { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; border-radius: 6px; padding: 1px 6px; }
.media-tile .tile-order { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; border-radius: 6px; padding: 1px 6px; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; background: var(--bg-surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); color: var(--text); }
.char-count { font-size: .78rem; color: var(--muted); }
.char-count.over { color: var(--danger); font-weight: 600; }
.platform-tabs .nav-link { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.platform-tabs .nav-link.active { color: var(--text); font-weight: 600; }
.preview-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-surface-2); font-size: .9rem; }
.preview-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.preview-head .pv-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tile-bg); object-fit: cover; }
.preview-text { padding: 0 12px 10px; white-space: pre-wrap; word-break: break-word; }
.preview-text .tag { color: var(--accent2); }
.preview-media { background: var(--tile-bg); aspect-ratio: 1; display: grid; place-items: center; color: var(--muted-2); }
.preview-media img, .preview-media video { width: 100%; height: 100%; object-fit: cover; }
.preview-media.wide { aspect-ratio: 16/9; }
.ai-panel { border-color: rgba(20, 152, 213, .35); background: linear-gradient(135deg, var(--brand-50), transparent 60%), var(--bg-surface); }
.ai-panel .card-header { color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .8rem; font-weight: 600; margin: 0 4px 4px 0; cursor: pointer; border: 0; }
.chip:hover { background: rgba(20, 152, 213, .24); }

/* Takvim */
.fc { --fc-border-color: var(--border); --fc-today-bg-color: var(--brand-50); --fc-page-bg-color: transparent; --fc-neutral-bg-color: var(--bg-surface-2); --fc-list-event-hover-bg-color: var(--bg-surface-2); --fc-button-text-color: var(--brand-ink); }
.fc .fc-toolbar-title { font-family: var(--font-display); font-size: 1.2rem; }
.fc .fc-button-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: var(--muted); text-decoration: none; }
.fc-event { border: 0 !important; padding: 2px 4px; font-size: .78rem; cursor: pointer; }
.ev-instagram { background: var(--instagram) !important; }
.ev-facebook { background: var(--facebook) !important; }
.ev-x { background: #333 !important; }
.ev-linkedin { background: var(--linkedin) !important; }
.ev-youtube { background: var(--youtube) !important; }
.ev-status-failed, .ev-status-needsreauthorization { outline: 2px solid var(--danger); }
.fc-event .fc-event-main { color: #fff; }
.fc-daygrid-dot-event .fc-event-title { color: #fff; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--border-strong); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted-2); border: 2px solid var(--bg-surface); }
.timeline li.ok::before { background: var(--success); }
.timeline li.err::before { background: var(--danger); }

/* Tema anahtarı */
.theme-toggle .bi-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-bs-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

@media (max-width: 1199.98px) {
    .editor-grid { grid-template-columns: 1fr; }
    .sticky-col { position: static; }
}

@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: -270px; transition: left .2s; }
    .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.5); }
    .content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .auth-mobile-brand { display: flex; justify-content: center; margin-bottom: 20px; }
    .auth-card { padding: 24px; }
}
