/* =========================================================
   ARONSAN — TASARIM SİSTEMİ
   Tema: html[data-theme] · Vurgu rengi: html[data-accent]
========================================================= */

/* ---------- 1. TEMA DEĞİŞKENLERİ ---------- */
:root,
[data-theme="dark"] {
    --bg: #060a13;
    --bg-2: #0a1020;
    --surface: #0d1526;
    --surface-2: #121c31;
    --surface-3: #18243d;
    --border: rgba(148, 163, 184, .13);
    --border-strong: rgba(148, 163, 184, .24);
    --text: #e7edf7;
    --text-2: #b6c2d6;
    --muted: #7d8ba3;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, .65);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .75);
    --glass: rgba(8, 13, 25, .72);
    --input-bg: rgba(255, 255, 255, .035);
    --hover: rgba(255, 255, 255, .045);
    --grid-line: rgba(96, 165, 250, .07);
}

[data-theme="light"] {
    --bg: #f3f6fb;
    --bg-2: #e9eef6;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --surface-3: #edf1f8;
    --border: rgba(15, 23, 42, .09);
    --border-strong: rgba(15, 23, 42, .16);
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 70px -25px rgba(15, 23, 42, .28);
    --glass: rgba(255, 255, 255, .78);
    --input-bg: #ffffff;
    --hover: rgba(15, 23, 42, .04);
    --grid-line: rgba(37, 99, 235, .07);
}

[data-theme="gray"] {
    --bg: #17191d; --bg-2: #1c1f24; --surface: #212429; --surface-2: #282c32; --surface-3: #30353c;
    --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .15);
    --text: #eceff3; --text-2: #c3c8d0; --muted: #8b929c;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
    --glass: rgba(23, 25, 29, .78); --input-bg: rgba(255, 255, 255, .04); --hover: rgba(255, 255, 255, .05);
    --grid-line: rgba(255, 255, 255, .04);
}

[data-theme="anthracite"] {
    --bg: #0b0d10; --bg-2: #101317; --surface: #14181d; --surface-2: #1a1f26; --surface-3: #222830;
    --border: rgba(255, 255, 255, .07); --border-strong: rgba(255, 255, 255, .14);
    --text: #e8eaed; --text-2: #babfc6; --muted: #7c838d;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
    --glass: rgba(11, 13, 16, .8); --input-bg: rgba(255, 255, 255, .035); --hover: rgba(255, 255, 255, .045);
    --grid-line: rgba(255, 255, 255, .035);
}

[data-theme="cyber"] {
    --bg: #0c0218; --bg-2: #130423; --surface: #18062c; --surface-2: #200a39; --surface-3: #2a0f49;
    --border: rgba(217, 70, 239, .18); --border-strong: rgba(217, 70, 239, .32);
    --text: #f5e9ff; --text-2: #d8c2f0; --muted: #9c84b8;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -20px rgba(80, 0, 120, .5);
    --glass: rgba(12, 2, 24, .78); --input-bg: rgba(255, 255, 255, .04); --hover: rgba(217, 70, 239, .08);
    --grid-line: rgba(217, 70, 239, .08);
}

[data-theme="contrast"] {
    --bg: #000; --bg-2: #000; --surface: #0a0a0a; --surface-2: #111; --surface-3: #1a1a1a;
    --border: #ffff00; --border-strong: #ffff00;
    --text: #ffff00; --text-2: #ffffff; --muted: #e5e5e5;
    --shadow: none; --shadow-lg: none;
    --glass: rgba(0, 0, 0, .95); --input-bg: #000; --hover: rgba(255, 255, 0, .12);
    --grid-line: transparent;
}

/* Vurgu renkleri */
:root, [data-accent="blue"] { --primary: #3b82f6; --primary-rgb: 59, 130, 246; --primary-2: #06b6d4; --primary-ink: #fff; }
[data-accent="cyan"]    { --primary: #06b6d4; --primary-rgb: 6, 182, 212;   --primary-2: #3b82f6; }
[data-accent="emerald"] { --primary: #10b981; --primary-rgb: 16, 185, 129;  --primary-2: #84cc16; }
[data-accent="violet"]  { --primary: #8b5cf6; --primary-rgb: 139, 92, 246;  --primary-2: #ec4899; }
[data-accent="orange"]  { --primary: #f97316; --primary-rgb: 249, 115, 22;  --primary-2: #facc15; }
[data-accent="red"]     { --primary: #ef4444; --primary-rgb: 239, 68, 68;   --primary-2: #f97316; }
[data-theme="cyber"]    { --primary: #d946ef; --primary-rgb: 217, 70, 239; --primary-2: #22d3ee; }
[data-theme="contrast"] { --primary: #ffff00; --primary-rgb: 255, 255, 0;  --primary-2: #ffff00; --primary-ink: #000; }

:root {
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --nav-h: 72px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --verified: #3b9bff;
}

/* Bootstrap köprüsü */
html[data-theme] {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-emphasis-color: var(--text);
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-2);
    --bs-link-color-rgb: var(--primary-rgb);
    --bs-tertiary-bg: var(--surface-2);
    --bs-secondary-bg: var(--surface-2);
    --bs-font-sans-serif: var(--font);
}

/* ---------- 2. TEMEL ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s ease, color .4s ease;
    overflow-x: hidden;
}
body.has-bg-image { background-size: cover; background-attachment: fixed; background-position: center; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, .display-font { font-family: var(--font-display); letter-spacing: -.02em; color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-2); }
::selection { background: rgba(var(--primary-rgb), .35); color: var(--text); }
img { max-width: 100%; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-2 { color: var(--text-2) !important; }
.text-main { color: var(--text) !important; }
.text-primary { color: var(--primary) !important; }
.bg-surface { background: var(--surface) !important; }
.border-soft { border-color: var(--border) !important; }
hr { border-color: var(--border); opacity: 1; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fw-800 { font-weight: 800; }
.small-caps { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

/* Kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }

/* ---------- 3. ÜST İLERLEME ÇUBUĞU & SAYFA GEÇİŞİ ---------- */
#sayfaIlerleme {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 3000;
    background: var(--gradient); box-shadow: 0 0 12px rgba(var(--primary-rgb), .8);
    transition: width .4s var(--ease), opacity .3s ease;
}
#scrollIlerleme {
    position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1100;
    background: var(--gradient); pointer-events: none;
}
main { animation: sayfaGiris .55s var(--ease) both; }
@keyframes sayfaGiris { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 4. NAVBAR ---------- */
.ana-nav {
    position: sticky; top: 0; z-index: 1030;
    height: var(--nav-h);
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
    transition: height .3s var(--ease), box-shadow .3s ease, background .3s ease;
}
.ana-nav.kucuk { height: 62px; box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .45); }
.ana-nav .container-xl { height: 100%; display: flex; align-items: center; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; object-fit: contain; transition: transform .4s var(--ease); }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-logo .marka { display: none; } /* logo görseli marka adını zaten içeriyor */
[data-theme="light"] .nav-logo img, [data-theme="light"] .radar .logo-merkez img { filter: invert(1) hue-rotate(180deg); }

.nav-linkler { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-linkler a {
    position: relative; display: block; padding: .5rem .8rem; border-radius: 10px;
    color: var(--text-2); font-weight: 500; font-size: .93rem;
}
.nav-linkler a::after {
    content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; border-radius: 2px;
    background: var(--gradient); transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav-linkler a:hover { color: var(--text); background: var(--hover); }
.nav-linkler a.aktif { color: var(--text); }
.nav-linkler a.aktif::after { width: 18px; }

.nav-arama { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.nav-arama .form-control { padding-left: 2.6rem; height: 42px; border-radius: 12px; font-size: .92rem; }
.nav-arama > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.nav-arama kbd {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); font-size: .7rem; padding: .1rem .4rem; border-radius: 6px;
}

.nav-aksiyonlar { display: flex; align-items: center; gap: .45rem; }
.ikon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
    font-size: 1.12rem; cursor: pointer; transition: all .25s var(--ease);
}
.ikon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); background: var(--surface-3); }
.ikon-btn.birincil { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), .8); }
.ikon-btn.birincil:hover { filter: brightness(1.1); color: #fff; }
.rozet-sayi {
    position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 20px; background: var(--danger); color: #fff; font-size: .66rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
    animation: rozetPop .45s var(--ease);
}
.rozet-sayi:empty, .rozet-sayi[data-sayi="0"] { display: none; }
@keyframes rozetPop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.nav-avatar-btn { padding: 2px; border-radius: 50%; background: var(--gradient); display: inline-flex; cursor: pointer; border: 0; }
.nav-avatar-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }

/* Mobil menü */
.mobil-menu-btn { display: none; }
.mobil-panel {
    position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobil-panel.acik { opacity: 1; pointer-events: auto; }
.mobil-panel .icerik {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
    background: var(--surface); border-left: 1px solid var(--border); padding: 1.25rem;
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
}
.mobil-panel.acik .icerik { transform: none; }
.mobil-panel a.mobil-link { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 12px; color: var(--text-2); font-weight: 500; }
.mobil-panel a.mobil-link:hover, .mobil-panel a.mobil-link.aktif { background: var(--hover); color: var(--text); }

/* Alt mobil navigasyon */
.alt-nav { display: none; }

@media (max-width: 1199.98px) {
    .nav-linkler { display: none; }
    .mobil-menu-btn { display: inline-flex; }
}
@media (max-width: 767.98px) {
    .nav-arama { display: none; }
    .nav-logo .marka { display: none; }
    .gizle-mobil { display: none !important; }
    .alt-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
        height: 64px; 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;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .alt-nav a { position: relative; color: var(--muted); font-size: 1.35rem; padding: .5rem .9rem; border-radius: 12px; }
    .alt-nav a.aktif { color: var(--primary); }
    .alt-nav a.ekle { background: var(--gradient); color: #fff; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; }
    .alt-nav .rozet-sayi { top: 0; right: 2px; }
    body.giris-yapildi { padding-bottom: 64px; }
    body.giris-yapildi .geri-don-btn { bottom: 80px; }
}

/* ---------- 5. DROPDOWN / POPOVER ---------- */
.dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-border-color: var(--border);
    --bs-dropdown-link-color: var(--text-2);
    --bs-dropdown-link-hover-bg: var(--hover);
    --bs-dropdown-link-hover-color: var(--text);
    --bs-dropdown-link-active-bg: rgba(var(--primary-rgb), .15);
    --bs-dropdown-link-active-color: var(--text);
    --bs-dropdown-divider-bg: var(--border);
    --bs-dropdown-header-color: var(--muted);
    border-radius: 16px; padding: .5rem; box-shadow: var(--shadow-lg);
}
.dropdown-menu.show { animation: acilir .28s var(--ease); transform-origin: top right; }
@keyframes acilir { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.dropdown-item { border-radius: 10px; padding: .6rem .8rem; font-weight: 500; font-size: .92rem; display: flex; align-items: center; gap: .65rem; }
.dropdown-item i { font-size: 1.05rem; opacity: .85; width: 20px; text-align: center; }
.dropdown-item.tehlike { color: var(--danger); }
.dropdown-item.tehlike:hover { background: rgba(239, 68, 68, .1); color: var(--danger); }

.profil-menu { width: 280px; }
.profil-menu .ust { display: flex; gap: .8rem; align-items: center; padding: .7rem .7rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .4rem; }

/* Bildirim paneli */
.bildirim-panel { width: 380px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.bildirim-panel .baslik { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem .75rem; border-bottom: 1px solid var(--border); }
.bildirim-liste { max-height: 420px; overflow-y: auto; padding: .4rem; }
.bildirim-oge {
    display: flex; gap: .75rem; padding: .7rem; border-radius: 12px; position: relative;
    color: var(--text-2); transition: background .2s ease; cursor: pointer;
}
.bildirim-oge:hover { background: var(--hover); color: var(--text); }
.bildirim-oge.yeni { background: rgba(var(--primary-rgb), .07); }
.bildirim-oge.yeni::before { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); transform: translateY(-50%); }
.bildirim-oge .metin { font-size: .87rem; line-height: 1.4; flex: 1; min-width: 0; }
.bildirim-oge .zaman { font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.bildirim-oge .sil { opacity: 0; border: 0; background: transparent; color: var(--muted); padding: 0 .3rem; transition: opacity .2s; }
.bildirim-oge:hover .sil { opacity: 1; }
.bildirim-oge .sil:hover { color: var(--danger); }
.bildirim-ikon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(var(--primary-rgb), .15); color: var(--primary); }

/* Arama sonuçları */
.arama-sonuc {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 1060; display: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-lg); max-height: 460px; overflow-y: auto; padding: .4rem;
    animation: acilir .25s var(--ease);
}
.arama-sonuc.acik { display: block; }
.arama-sonuc .grup { padding: .6rem .7rem .3rem; font-size: .7rem; letter-spacing: .12em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.arama-sonuc a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--text-2); font-size: .9rem; }
.arama-sonuc a:hover, .arama-sonuc a.secili { background: var(--hover); color: var(--text); }
.arama-sonuc .kucuk-gorsel { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ---------- 6. BUTONLAR & FORMLAR ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .6rem 1.2rem; transition: all .25s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35); }
.btn-sm { padding: .4rem .85rem; border-radius: 10px; font-size: .85rem; }
.btn-lg { padding: .85rem 1.7rem; border-radius: 14px; font-size: 1.02rem; }
.btn-pill { border-radius: 50px; }
.btn-primary, .btn-birincil {
    background: var(--gradient); border: 0; color: var(--primary-ink, #fff);
    box-shadow: 0 10px 24px -10px rgba(var(--primary-rgb), .75);
    background-size: 150% 150%;
}
.btn-primary:hover, .btn-birincil:hover, .btn-primary:focus {
    color: var(--primary-ink, #fff); transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(var(--primary-rgb), .85); background-position: 100% 0; filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; transform: none; }
.btn-ghost, .btn-outline-secondary, .btn-outline-light {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover, .btn-outline-secondary:hover, .btn-outline-light:hover {
    background: var(--surface-3); border-color: var(--border-strong); color: var(--text); transform: translateY(-2px);
}
.btn-outline-primary { border: 1px solid rgba(var(--primary-rgb), .5); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: rgba(var(--primary-rgb), .12); color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.btn-danger { background: var(--danger); border: 0; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-soft-danger { background: rgba(239, 68, 68, .1); color: var(--danger); border: 1px solid rgba(239, 68, 68, .25); }
.btn-soft-danger:hover { background: rgba(239, 68, 68, .18); color: var(--danger); }
.btn-link-plain { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: .82rem; cursor: pointer; }
.btn-link-plain:hover { color: var(--text); }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

.form-control, .form-select {
    background-color: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
    border-radius: 12px; padding: .65rem .95rem; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-control:focus, .form-select:focus {
    background-color: var(--input-bg); color: var(--text); border-color: rgba(var(--primary-rgb), .7);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .14);
}
.form-select option { background: var(--surface); color: var(--text); }
.form-label { font-size: .84rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.form-text { color: var(--muted); }
.form-check-input { background-color: var(--surface-3); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.input-ikon { position: relative; }
.input-ikon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-ikon > .form-control { padding-left: 2.7rem; }
.input-ikon .sifre-goster { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: .35rem .5rem; }
.input-ikon .sifre-goster:hover { color: var(--text); }
textarea.form-control { resize: vertical; }
.karakter-sayac { font-size: .75rem; color: var(--muted); text-align: right; }
.karakter-sayac.uyari { color: var(--warning); }

/* ---------- 7. KARTLAR ---------- */
.kart {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
.kart-hover:hover { transform: translateY(-6px); border-color: rgba(var(--primary-rgb), .35); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--primary-rgb), .08); }
.kart-govde { padding: 1.5rem; }
.kart-cizgi::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--radius) var(--radius) 0 0;
    background: var(--gradient); opacity: .8;
}
.kart-baslik { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.kart-baslik h5, .kart-baslik h6 { margin: 0; font-weight: 700; }
.cam {
    background: linear-gradient(145deg, rgba(var(--primary-rgb), .07), transparent 60%), var(--surface);
}
.parlama { position: relative; overflow: hidden; }
.parlama::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
    transform: rotate(18deg); transition: left .9s var(--ease); pointer-events: none;
}
.parlama:hover::after { left: 130%; }

/* Görsel kapsayıcı */
.gorsel-kutu { position: relative; overflow: hidden; background: var(--surface-3); }
.gorsel-kutu img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); display: block; }
.kart-hover:hover .gorsel-kutu img { transform: scale(1.06); }
.gorsel-yok { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2.2rem;
    background: radial-gradient(circle at 30% 20%, rgba(var(--primary-rgb), .25), transparent 60%), var(--surface-3); }

/* Etiketler */
.etiket {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 50px;
    font-size: .74rem; font-weight: 600; background: rgba(var(--primary-rgb), .12); color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), .22);
}
.etiket.notr { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }
.etiket.yesil { background: rgba(34, 197, 94, .12); color: #22c55e; border-color: rgba(34, 197, 94, .25); }
.etiket.sari { background: rgba(245, 158, 11, .12); color: #f59e0b; border-color: rgba(245, 158, 11, .25); }
.etiket.kirmizi { background: rgba(239, 68, 68, .12); color: #ef4444; border-color: rgba(239, 68, 68, .25); }
.etiket.cam-etiket { background: rgba(0, 0, 0, .45); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }

/* Filtre çipleri */
.cip-grup { display: flex; flex-wrap: wrap; gap: .5rem; }
.cip {
    padding: .5rem 1rem; border-radius: 50px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font-size: .86rem; font-weight: 600; cursor: pointer; transition: all .25s var(--ease);
}
.cip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.cip.aktif { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(var(--primary-rgb), .8); }

/* ---------- 8. AVATAR & MAVİ TİK ---------- */
.avatar { position: relative; display: inline-flex; flex-shrink: 0; width: var(--s, 40px); height: var(--s, 40px); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 1px solid var(--border); }
.avatar.halka { padding: 2px; border-radius: 50%; background: var(--gradient); }
.avatar.halka img { border: 2px solid var(--surface); }
.avatar.kare img { border-radius: 28%; }
.avatar .cevrimici-nokta {
    position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%; min-width: 9px; min-height: 9px;
    background: var(--success); border: 2px solid var(--surface); border-radius: 50%;
}
.avatar .cevrimici-nokta::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--success); animation: nabiz 2s ease-out infinite; }
@keyframes nabiz { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

.mavi-tik {
    display: inline-block; color: var(--verified); font-size: .9em; line-height: 1; vertical-align: -.08em;
    margin-left: .25em; filter: drop-shadow(0 0 6px rgba(59, 155, 255, .35)); flex-shrink: 0;
}
[data-theme="contrast"] .mavi-tik { color: #00e5ff; }
.kisi-isim { display: inline-flex; align-items: center; gap: 0; font-weight: 600; color: var(--text); min-width: 0; max-width: 100%; }
.kisi-isim > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.kisi-isim:hover { color: var(--primary); }
.personel-rozet { font-size: .64rem; padding: .12rem .45rem; border-radius: 6px; background: rgba(245, 158, 11, .14); color: #f59e0b; font-weight: 700; margin-left: .4rem; letter-spacing: .04em; }

.kisi-satir { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 12px; transition: background .2s ease; }
.kisi-satir:hover { background: var(--hover); }
.kisi-satir .bilgi { flex: 1; min-width: 0; line-height: 1.25; }
.kisi-satir .btn-sm { padding: .3rem .7rem; font-size: .76rem; flex-shrink: 0; }
.personel-rozet { flex-shrink: 0; }
.kisi-satir .alt { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 9. BÖLÜM BAŞLIKLARI & HERO ---------- */
.bolum { padding: 5.5rem 0; position: relative; }
.bolum-sm { padding: 3.5rem 0; }
.ust-etiket {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--primary); margin-bottom: .9rem;
}
.ust-etiket::before { content: ''; width: 26px; height: 2px; background: var(--gradient); border-radius: 2px; }
.bolum-baslik { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.15; margin-bottom: .9rem; }
.bolum-aciklama { color: var(--text-2); font-size: 1.06rem; max-width: 640px; line-height: 1.7; }

/* Izgara arka plan */
.izgara-bg {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* Ana hero */
.hero {
    position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center;
    overflow: hidden; isolation: isolate; padding: 5rem 0 6rem;
}
.hero .izgara-bg { position: absolute; inset: 0; z-index: -2; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); animation: izgaraKay 30s linear infinite; }
@keyframes izgaraKay { to { background-position: 56px 56px, 56px 56px; } }
.hero-isik { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; opacity: .55; animation: suzul 14s ease-in-out infinite alternate; }
.hero-isik.i1 { width: 520px; height: 520px; background: rgba(var(--primary-rgb), .45); top: -140px; left: -120px; }
.hero-isik.i2 { width: 460px; height: 460px; background: color-mix(in srgb, var(--primary-2) 40%, transparent); bottom: -160px; right: -100px; animation-delay: -6s; }
@keyframes suzul { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.15); } }
#heroCanvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; }

.hero-rozet {
    display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .45rem; border-radius: 50px;
    background: var(--surface); border: 1px solid var(--border); font-size: .84rem; color: var(--text-2); margin-bottom: 1.6rem;
    box-shadow: var(--shadow);
}
.hero-rozet .nokta { background: var(--gradient); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 50px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 1.4rem; }
.hero .alt-baslik { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 600px; line-height: 1.7; margin-bottom: 2.2rem; }
.yazici-imlec { display: inline-block; width: 3px; height: .9em; background: var(--primary); margin-left: 4px; vertical-align: -.05em; animation: imlec 1s steps(1) infinite; }
@keyframes imlec { 50% { opacity: 0; } }

/* Radar görseli */
.radar {
    position: relative; width: min(460px, 82vw); aspect-ratio: 1; margin: auto; border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 24%, rgba(var(--primary-rgb), .18) 24.3% 24.7%, transparent 25% 49%, rgba(var(--primary-rgb), .18) 49.3% 49.7%, transparent 50% 74%, rgba(var(--primary-rgb), .18) 74.3% 74.7%, transparent 75%),
        radial-gradient(circle, rgba(var(--primary-rgb), .12), transparent 70%);
    border: 1px solid rgba(var(--primary-rgb), .3);
    box-shadow: 0 0 80px -10px rgba(var(--primary-rgb), .45), inset 0 0 60px rgba(var(--primary-rgb), .12);
}
.radar::before, .radar::after { content: ''; position: absolute; background: rgba(var(--primary-rgb), .18); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar .tarama {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(var(--primary-rgb), .55), rgba(var(--primary-rgb), 0) 70deg, transparent 360deg);
    animation: tara 4s linear infinite;
}
@keyframes tara { to { transform: rotate(360deg); } }
.radar .hedef { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 14px var(--primary-2); animation: hedefYan 4s ease-in-out infinite; }
.radar .hedef::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--primary-2); animation: nabiz 2s ease-out infinite; }
@keyframes hedefYan { 0%, 100% { opacity: .25; } 15%, 40% { opacity: 1; } }
.radar .logo-merkez {
    position: absolute; inset: 36%; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 2;
}
.radar .logo-merkez img { width: 70%; height: 70%; object-fit: contain; }
.radar-kart {
    position: absolute; z-index: 3; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 14px; padding: .7rem .95rem; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: .7rem; font-size: .85rem; animation: yuz 6s ease-in-out infinite;
}
.radar-kart i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(var(--primary-rgb), .15); color: var(--primary); font-size: 1rem; }
@keyframes yuz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.kaydir-ipucu { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.kaydir-ipucu .fare { width: 22px; height: 34px; border: 2px solid var(--border-strong); border-radius: 12px; position: relative; }
.kaydir-ipucu .fare::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 3px; background: var(--primary); transform: translateX(-50%); animation: fareTeker 1.8s ease-in-out infinite; }
@keyframes fareTeker { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* Alt sayfa hero */
.sayfa-hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.sayfa-hero .izgara-bg { position: absolute; inset: 0; z-index: -2; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.sayfa-hero .hero-isik { opacity: .35; }
.sayfa-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1rem; }
.sayfa-hero p { color: var(--text-2); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.ekmek { display: inline-flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.ekmek a { color: var(--muted); }
.ekmek a:hover { color: var(--primary); }

/* İstatistikler */
.istatistik-seridi { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.istatistik { text-align: center; padding: 2.2rem 1rem; position: relative; }
.istatistik + .istatistik::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--border); }
.istatistik .deger { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1; }
.istatistik .etiket-ad { color: var(--muted); font-size: .85rem; margin-top: .5rem; font-weight: 500; }

/* Özellik kartı */
.ozellik-ikon {
    width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .2), rgba(var(--primary-rgb), .05));
    color: var(--primary); border: 1px solid rgba(var(--primary-rgb), .25); margin-bottom: 1.3rem;
    transition: transform .5s var(--ease);
}
.kart-hover:hover .ozellik-ikon { transform: rotate(-8deg) scale(1.08); }

/* Haber kartı */
.haber-kart { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.haber-kart .gorsel-kutu { aspect-ratio: 16 / 10; }
.haber-kart .ust-sol { position: absolute; top: 14px; left: 14px; z-index: 2; }
.haber-kart .govde { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.haber-kart h5 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin-bottom: .55rem; }
.haber-kart h5 a { color: var(--text); }
.haber-kart h5 a:hover { color: var(--primary); }
.haber-kart .ozet { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.haber-kart .alt { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.meta-ikonlar { display: flex; gap: 1rem; }
.meta-ikonlar span { display: inline-flex; align-items: center; gap: .3rem; }
.haber-kart .yayinci { display: flex; align-items: center; gap: .55rem; padding: .85rem 1.35rem 0; font-size: .85rem; }

/* Proje kartı */
.proje-kart { overflow: hidden; height: 100%; }
.proje-kart .gorsel-kutu { aspect-ratio: 16 / 9; }
.proje-kart .gorsel-kutu::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 55%); }
.proje-kart .gorsel-ust { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; z-index: 2; color: #fff; }
.proje-kart .gorsel-ust h4 { color: #fff; margin: 0; font-weight: 700; }

/* Ekip kartı */
.ekip-kart { overflow: hidden; text-align: center; height: 100%; }
.ekip-kart .gorsel-kutu { aspect-ratio: 4 / 4.4; }
.ekip-kart .katman {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--primary-rgb), .85), rgba(0, 0, 0, .1) 70%);
    display: flex; align-items: flex-end; justify-content: center; padding: 1.4rem; gap: .5rem;
    opacity: 0; transition: opacity .4s var(--ease);
}
.ekip-kart:hover .katman { opacity: 1; }
.ekip-kart .katman a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transform: translateY(14px); transition: transform .4s var(--ease), background .2s; }
.ekip-kart:hover .katman a { transform: none; }
.ekip-kart .katman a:nth-child(2) { transition-delay: .05s; }
.ekip-kart .katman a:nth-child(3) { transition-delay: .1s; }
.ekip-kart .katman a:hover { background: #fff; color: var(--primary); }

/* Zaman çizelgesi / adımlar */
.adim { position: relative; padding-left: 4.2rem; padding-bottom: 2.2rem; }
.adim:last-child { padding-bottom: 0; }
.adim::before { content: ''; position: absolute; left: 1.4rem; top: 3rem; bottom: 0; width: 2px; background: linear-gradient(var(--primary), transparent); opacity: .4; }
.adim:last-child::before { display: none; }
.adim .no { position: absolute; left: 0; top: 0; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--gradient); color: #fff; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -8px rgba(var(--primary-rgb), .7); }

/* CTA */
.cta-kutu {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .18), transparent 40%), var(--gradient); color: #fff; isolation: isolate;
}
.cta-kutu h2 { color: #fff; }
.cta-kutu::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to left, #000, transparent); -webkit-mask-image: linear-gradient(to left, #000, transparent); }
.cta-kutu .btn-light { background: #fff; color: #0f172a; border: 0; }
.cta-kutu .btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.cta-kutu .btn-cam { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.cta-kutu .btn-cam:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* Marquee (kayan şerit) */
.kayan-serit { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.kayan-serit .ray { display: flex; gap: 3.5rem; width: max-content; animation: kay 35s linear infinite; }
.kayan-serit:hover .ray { animation-play-state: paused; }
.kayan-serit span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--muted); opacity: .65; white-space: nowrap; display: flex; align-items: center; gap: .7rem; }
@keyframes kay { to { transform: translateX(-50%); } }

/* ---------- 10. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 4rem 0 2rem; margin-top: 4rem; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.site-footer h6 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer li a { color: var(--text-2); font-size: .92rem; }
.site-footer li a:hover { color: var(--primary); padding-left: 4px; }
.sosyal { display: flex; gap: .5rem; }
.sosyal a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all .25s var(--ease); }
.sosyal a:hover { color: #fff; background: var(--gradient); border-color: transparent; transform: translateY(-3px); }
.footer-alt { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem; color: var(--muted); font-size: .85rem; }

/* ---------- 11. TOAST / FLASH ---------- */
.toast-alani { position: fixed; right: 20px; bottom: 20px; z-index: 3000; display: flex; flex-direction: column; gap: .6rem; pointer-events: none; }
.bildirim-toast {
    pointer-events: auto; min-width: 280px; max-width: 380px; padding: .9rem 1rem; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--text);
    animation: toastGir .5s var(--ease); position: relative; overflow: hidden;
}
.bildirim-toast.cikis { animation: toastCik .35s ease forwards; }
.bildirim-toast .ikon { font-size: 1.15rem; line-height: 1; margin-top: .1rem; }
.bildirim-toast.success .ikon { color: var(--success); }
.bildirim-toast.danger .ikon { color: var(--danger); }
.bildirim-toast.warning .ikon { color: var(--warning); }
.bildirim-toast.info .ikon { color: var(--primary); }
.bildirim-toast .sure { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .5; animation: toastSure 4.5s linear forwards; }
.bildirim-toast.success .sure { color: var(--success); }
.bildirim-toast.danger .sure { color: var(--danger); }
.bildirim-toast.warning .sure { color: var(--warning); }
.bildirim-toast.info .sure { color: var(--primary); }
.bildirim-toast .kapat { margin-left: auto; background: none; border: 0; color: var(--muted); padding: 0; }
@keyframes toastGir { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastCik { to { opacity: 0; transform: translateX(40px); } }
@keyframes toastSure { from { width: 100%; } to { width: 0; } }
@media (max-width: 767.98px) { .toast-alani { left: 12px; right: 12px; bottom: 76px; } .bildirim-toast { max-width: none; } }

/* ---------- 12. MODALLAR ---------- */
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); color: var(--text); }
.modal-header, .modal-footer { border-color: var(--border); padding: 1.1rem 1.4rem; }
.modal-body { padding: 1.4rem; }
.modal-backdrop.show { opacity: .7; }
.modal.fade .modal-dialog { transform: translateY(24px) scale(.97); transition: transform .4s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.btn-close { filter: var(--btn-close-filter, invert(1) grayscale(100%) brightness(200%)); }
[data-theme="light"] .btn-close { filter: none; }

/* Gönderi oluşturma */
.yukleme-alani {
    border: 2px dashed var(--border-strong); border-radius: 16px; padding: 1.6rem; text-align: center; color: var(--muted);
    cursor: pointer; transition: all .25s ease; position: relative; overflow: hidden;
}
.yukleme-alani:hover, .yukleme-alani.surukle { border-color: var(--primary); background: rgba(var(--primary-rgb), .05); color: var(--text); }
.yukleme-alani input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.yukleme-onizleme { position: relative; border-radius: 14px; overflow: hidden; display: none; }
.yukleme-onizleme img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.yukleme-onizleme .kaldir { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; }

/* Gönderi detay modalı */
.gonderi-modal .modal-dialog { max-width: 1080px; }
.gonderi-modal .modal-content { overflow: hidden; }
.gonderi-modal .medya { background: #000; display: flex; align-items: center; justify-content: center; min-height: 360px; max-height: 86vh; }
.gonderi-modal .medya img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.gonderi-modal .medya .metin-gonderi { padding: 3rem; font-size: 1.4rem; font-weight: 600; color: #fff; text-align: center; white-space: pre-wrap; word-break: break-word;
    background: radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), .5), transparent 60%), radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--primary-2) 45%, transparent), transparent 60%), #0b1120;
    width: 100%; height: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.gonderi-modal .yan { display: flex; flex-direction: column; height: min(86vh, 720px); }
.gonderi-modal .yorumlar { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.yorum-satir { display: flex; gap: .7rem; padding: .55rem 0; animation: sayfaGiris .4s var(--ease); }
.yorum-satir .icerik { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.45; }
.yorum-satir .icerik .metin { color: var(--text-2); word-break: break-word; white-space: pre-wrap; }
.yorum-satir .alt { display: flex; gap: .9rem; font-size: .75rem; color: var(--muted); margin-top: .25rem; align-items: center; }

/* Kalp animasyonu */
.begen-btn { background: none; border: 0; padding: 0; color: var(--text); font-size: 1.45rem; line-height: 1; cursor: pointer; transition: transform .15s ease; display: inline-flex; align-items: center; gap: .4rem; }
.begen-btn:active { transform: scale(.85); }
.begen-btn.aktif { color: #ff3b5c; }
.begen-btn.aktif i { animation: kalpAt .45s var(--ease); }
@keyframes kalpAt { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
.aksiyon-btn { background: none; border: 0; padding: 0; color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform .15s ease, color .2s; }
.aksiyon-btn:hover { color: var(--primary); }
.aksiyon-btn:active { transform: scale(.85); }
.cift-tik-kalp { position: absolute; top: 50%; left: 50%; font-size: 6rem; color: #fff; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); z-index: 5; }
.cift-tik-kalp.oynat { animation: buyukKalp .9s var(--ease); }
@keyframes buyukKalp { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 45% { transform: translate(-50%, -50%) scale(.95); } 80% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; } }

/* ---------- 13. AKIŞ / GÖNDERİ KARTI ---------- */
.gonderi-kart { overflow: hidden; }
.gonderi-kart .ust { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; }
.gonderi-kart .medya { position: relative; background: #000; cursor: pointer; }
.gonderi-kart .medya img { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.gonderi-kart .metin-kutu { padding: 0 1.15rem 1rem; color: var(--text-2); white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.gonderi-kart .metin-kutu.buyuk { font-size: 1.12rem; color: var(--text); padding: 1.6rem 1.4rem; margin: 0 1.15rem 1rem; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), transparent), var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.gonderi-kart .aksiyonlar { display: flex; align-items: center; gap: 1.1rem; padding: .8rem 1.15rem .4rem; }
.gonderi-kart .sayac { padding: 0 1.15rem .3rem; font-weight: 600; font-size: .9rem; }
.gonderi-kart .yorum-link { padding: 0 1.15rem 1rem; font-size: .88rem; color: var(--muted); cursor: pointer; display: block; background: none; border: 0; text-align: left; }
.paylasim-kutu { padding: 1rem 1.15rem; display: flex; gap: .8rem; align-items: center; }
.paylasim-kutu .sahte-input { flex: 1; padding: .75rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .2s ease; }
.paylasim-kutu .sahte-input:hover { border-color: var(--border-strong); color: var(--text-2); }
.yapiskan-yan { position: sticky; top: calc(var(--nav-h) + 1.25rem); }

/* Sekmeler */
.sekmeler { display: flex; gap: .3rem; padding: .3rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.sekmeler a, .sekmeler button { flex: 1; text-align: center; padding: .6rem 1rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; border: 0; background: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: all .25s var(--ease); }
.sekmeler a:hover, .sekmeler button:hover { color: var(--text); }
.sekmeler a.aktif, .sekmeler button.aktif { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- 14. PROFİL ---------- */
.profil-kapak { height: clamp(180px, 28vw, 300px); border-radius: 0 0 var(--radius-lg) var(--radius-lg); position: relative; overflow: hidden; background: var(--gradient); }
.profil-kapak img { width: 100%; height: 100%; object-fit: cover; }
.profil-kapak.varsayilan::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(120deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(120deg, #000, transparent 80%); }
.profil-ust { margin-top: -78px; position: relative; z-index: 2; }
.profil-avatar { --s: 156px; }
.profil-avatar img { border: 5px solid var(--bg) !important; box-shadow: var(--shadow-lg); }
.profil-avatar.halka { padding: 4px; }
.profil-ad { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; margin: 0; }
.profil-ad .mavi-tik { font-size: .8em; }
.profil-istatistik { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.profil-istatistik button, .profil-istatistik div { background: none; border: 0; padding: 0; color: var(--text-2); font-size: .95rem; cursor: pointer; }
.profil-istatistik strong { color: var(--text); font-size: 1.05rem; font-family: var(--font-display); }
.profil-istatistik button:hover strong { color: var(--primary); }
.profil-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .9rem; }
.profil-meta span, .profil-meta a { display: inline-flex; align-items: center; gap: .35rem; }

.izgara-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 768px) { .izgara-3 { gap: 14px; } }
.izgara-oge { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); border: 1px solid var(--border); }
@media (min-width: 768px) { .izgara-oge { border-radius: 14px; } }
.izgara-oge img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.izgara-oge .metin { position: absolute; inset: 0; padding: 1rem; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .9rem; font-weight: 500; color: var(--text);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .22), transparent 70%), var(--surface-2); overflow: hidden; }
.izgara-oge .metin span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.izgara-oge .ortu { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; gap: 1.4rem; color: #fff; font-weight: 700; opacity: 0; transition: opacity .3s ease; }
.izgara-oge:hover .ortu { opacity: 1; }
.izgara-oge:hover img { transform: scale(1.06); }
.izgara-oge .coklu { position: absolute; top: 8px; right: 10px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }

/* ---------- 15. MESAJLAŞMA ---------- */
.dm {
    display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - var(--nav-h) - 3rem); min-height: 520px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.dm-yan { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
.dm-yan-ust { padding: 1.1rem 1.1rem .8rem; }
.dm-liste { flex: 1; overflow-y: auto; padding: 0 .55rem .6rem; }
.dm-kisi {
    display: flex; align-items: center; gap: .8rem; padding: .7rem .75rem; border-radius: 14px; color: var(--text); position: relative;
    transition: background .2s ease, transform .2s ease;
}
.dm-kisi:hover { background: var(--hover); color: var(--text); }
.dm-kisi.aktif { background: rgba(var(--primary-rgb), .13); }
.dm-kisi.aktif::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--gradient); }
.dm-kisi .bilgi { flex: 1; min-width: 0; }
.dm-kisi .ust-satir { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.dm-kisi .zaman { font-size: .72rem; color: var(--muted); flex-shrink: 0; }
.dm-kisi .onizleme { font-size: .83rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-kisi.okunmamis .onizleme { color: var(--text); font-weight: 600; }
.dm-kisi .okunmamis-sayi { background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.dm-bolum-baslik { font-size: .7rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: .9rem .8rem .4rem; }

.dm-sohbet { display: flex; flex-direction: column; min-height: 0; position: relative; background: var(--bg); }
.dm-sohbet-ust { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--border); background: var(--surface); z-index: 2; }
.dm-sohbet-ust .durum { font-size: .78rem; color: var(--muted); }
.dm-sohbet-ust .durum.cevrimici { color: var(--success); }
.dm-mesajlar { flex: 1; overflow-y: auto; padding: 1.4rem 1.4rem .6rem; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.dm-gun { align-self: center; font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: .25rem .8rem; border-radius: 50px; margin: 1rem 0 .7rem; }
.msj { display: flex; flex-direction: column; max-width: min(72%, 560px); position: relative; animation: msjGir .35s var(--ease); }
@keyframes msjGir { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.msj.ben { align-self: flex-end; align-items: flex-end; }
.msj.o { align-self: flex-start; align-items: flex-start; }
.msj + .msj.ayri { margin-top: .6rem; }
.balon {
    padding: .6rem .9rem; border-radius: 18px; font-size: .94rem; line-height: 1.45; position: relative; word-break: break-word; white-space: pre-wrap;
    box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .25);
}
.msj.ben .balon { background: var(--dm-gonderilen, var(--gradient)); color: #fff; border-bottom-right-radius: 6px; }
.msj.o .balon { background: var(--dm-gelen, var(--surface-2)); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msj.ben.devam .balon { border-top-right-radius: 6px; }
.msj.o.devam .balon { border-top-left-radius: 6px; }
.balon img { display: block; max-width: 280px; max-height: 320px; border-radius: 12px; cursor: zoom-in; margin: -.15rem -.35rem .3rem; }
.balon.sadece-gorsel { padding: .3rem; background: transparent !important; border: 0 !important; box-shadow: none; }
.balon.sadece-gorsel img { margin: 0; }
.balon.silinmis { background: transparent !important; border: 1px dashed var(--border-strong) !important; color: var(--muted) !important; font-style: italic; box-shadow: none; }
.msj .zaman-satir { font-size: .68rem; color: var(--muted); margin-top: .2rem; padding: 0 .3rem; display: none; align-items: center; gap: .3rem; }
.msj.son-grup .zaman-satir, .msj:hover .zaman-satir { display: flex; }
.msj .okundu-ikon { font-size: .9rem; }
.msj .okundu-ikon.okundu { color: var(--verified); }
.msj .tepki-rozet { position: absolute; bottom: 4px; font-size: .82rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0 .35rem; box-shadow: var(--shadow); cursor: pointer; animation: rozetPop .4s var(--ease); }
.msj.ben .tepki-rozet { left: -12px; }
.msj.o .tepki-rozet { right: -12px; }
.msj.tepkili { margin-bottom: .8rem; }
.msj-arac { position: absolute; top: 50%; transform: translateY(-50%); display: flex; gap: .15rem; opacity: 0; transition: opacity .2s; }
.msj.ben .msj-arac { right: 100%; padding-right: .4rem; flex-direction: row-reverse; }
.msj.o .msj-arac { left: 100%; padding-left: .4rem; }
.msj:hover .msj-arac { opacity: 1; }
.msj-arac button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.msj-arac button:hover { color: var(--text); background: var(--surface-3); }
.tepki-secici { position: absolute; bottom: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: .3rem .4rem; display: flex; gap: .15rem; box-shadow: var(--shadow-lg); z-index: 5; animation: acilir .2s var(--ease); }
.msj.ben .tepki-secici { right: 0; }
.tepki-secici button { background: none; border: 0; font-size: 1.3rem; padding: .1rem .3rem; border-radius: 50%; transition: transform .15s; }
.tepki-secici button:hover { transform: scale(1.3) translateY(-3px); }
.yaziyor-balon { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: .75rem 1rem; display: none; gap: 4px; margin-top: .5rem; }
.yaziyor-balon.goster { display: inline-flex; animation: msjGir .3s var(--ease); }
.yaziyor-balon span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: zipla 1.2s infinite ease-in-out; }
.yaziyor-balon span:nth-child(2) { animation-delay: .15s; }
.yaziyor-balon span:nth-child(3) { animation-delay: .3s; }
@keyframes zipla { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.dm-yazma { padding: .8rem 1rem 1rem; border-top: 1px solid var(--border); background: var(--surface); }
.dm-yazma .kutu { display: flex; align-items: flex-end; gap: .5rem; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 22px; padding: .35rem .4rem .35rem .6rem; transition: border-color .2s, box-shadow .2s; }
.dm-yazma .kutu:focus-within { border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.dm-yazma textarea { flex: 1; border: 0; background: transparent; color: var(--text); resize: none; outline: none; max-height: 140px; padding: .5rem .2rem; font-size: .95rem; line-height: 1.4; }
.dm-yazma .arac { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.dm-yazma .arac:hover { color: var(--primary); background: var(--hover); }
.dm-yazma .gonder { background: var(--gradient); color: #fff; }
.dm-yazma .gonder:hover { color: #fff; transform: scale(1.06); }
.dm-yazma .gonder:disabled { opacity: .45; transform: none; }
.emoji-panel { position: absolute; bottom: calc(100% + 8px); left: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: .6rem; display: none; grid-template-columns: repeat(8, 1fr); gap: .15rem; z-index: 10; animation: acilir .2s var(--ease); width: 320px; max-width: calc(100% - 2rem); }
.emoji-panel.acik { display: grid; }
.emoji-panel button { background: none; border: 0; font-size: 1.35rem; padding: .25rem; border-radius: 8px; transition: transform .15s, background .15s; }
.emoji-panel button:hover { background: var(--hover); transform: scale(1.2); }
.dm-onizleme { display: none; align-items: center; gap: .7rem; padding: .5rem .6rem; margin-bottom: .6rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.dm-onizleme.goster { display: flex; }
.dm-onizleme img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.dm-bos { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--muted); }
.dm-bos .ikon-daire { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--text); margin-bottom: 1.2rem; position: relative; }
.dm-bos .ikon-daire::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(var(--primary-rgb), .4); animation: tara 20s linear infinite; }
.yeni-msj-btn { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 5; display: none; }

/* Sohbet temaları */
.dm-sohbet[data-tema="cyber"] { --dm-gonderilen: linear-gradient(135deg, #d946ef, #7c3aed); background: radial-gradient(circle at 80% 0%, rgba(217, 70, 239, .18), transparent 50%), #12021f; }
.dm-sohbet[data-tema="sunset"] { --dm-gonderilen: linear-gradient(135deg, #f43f5e, #f97316); background: radial-gradient(circle at 20% 0%, rgba(244, 63, 94, .2), transparent 50%), #1f0710; }
.dm-sohbet[data-tema="emerald"] { --dm-gonderilen: linear-gradient(135deg, #10b981, #0d9488); background: radial-gradient(circle at 80% 100%, rgba(16, 185, 129, .18), transparent 50%), #03170f; }
.dm-sohbet[data-tema="ocean"] { --dm-gonderilen: linear-gradient(135deg, #0ea5e9, #2563eb); background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, .22), transparent 55%), #031424; }
.dm-sohbet[data-tema="carbon"] { --dm-gonderilen: linear-gradient(135deg, #52525b, #27272a); background: repeating-linear-gradient(45deg, #0c0c0d 0 10px, #101012 10px 20px); }
.dm-sohbet[data-tema]:not([data-tema="default"]) .msj.o .balon { --dm-gelen: rgba(255, 255, 255, .08); color: #f1f5f9; border-color: rgba(255, 255, 255, .08); }
.dm-sohbet[data-tema]:not([data-tema="default"]) .dm-gun { background: rgba(0, 0, 0, .35); color: #cbd5e1; border-color: rgba(255, 255, 255, .08); }
.tema-onizleme { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tema-onizleme label { cursor: pointer; border-radius: 14px; border: 2px solid var(--border); padding: .6rem; text-align: center; font-size: .78rem; font-weight: 600; transition: all .2s; }
.tema-onizleme input { display: none; }
.tema-onizleme input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2); }
.tema-onizleme .ornek { height: 48px; border-radius: 10px; margin-bottom: .45rem; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.tema-onizleme .ornek i { display: block; height: 9px; border-radius: 6px; }
.tema-onizleme .ornek i:first-child { width: 55%; background: rgba(255, 255, 255, .25); }
.tema-onizleme .ornek i:last-child { width: 45%; margin-left: auto; }

@media (max-width: 991.98px) {
    .dm { grid-template-columns: 1fr; height: calc(100vh - var(--nav-h) - 2rem); border-radius: 18px; }
    .dm.sohbet-acik .dm-yan { display: none; }
    .dm:not(.sohbet-acik) .dm-sohbet { display: none; }
    .msj { max-width: 85%; }
    .msj-arac { display: none; }
}
@media (max-width: 767.98px) {
    .dm { height: calc(100vh - var(--nav-h) - 64px - 1rem); border-radius: 0; border-left: 0; border-right: 0; margin: 0 -12px; }
}

/* ---------- 16. AYARLAR ---------- */
.ayar-menu { display: flex; flex-direction: column; gap: .25rem; }
.ayar-menu a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 12px; color: var(--text-2); font-weight: 500; transition: all .2s; }
.ayar-menu a i { font-size: 1.1rem; width: 22px; text-align: center; }
.ayar-menu a:hover { background: var(--hover); color: var(--text); }
.ayar-menu a.aktif { background: rgba(var(--primary-rgb), .12); color: var(--primary); }
.ayar-menu a.tehlike { color: var(--danger); }
@media (max-width: 991.98px) { .ayar-menu { flex-direction: row; overflow-x: auto; } .ayar-menu a { white-space: nowrap; } }
.ayar-bolum { display: none; animation: sayfaGiris .45s var(--ease); }
.ayar-bolum.aktif { display: block; }
.ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.ayar-satir:last-child { border-bottom: 0; }
.ayar-satir .aciklama { font-size: .85rem; color: var(--muted); }

.tema-kart { cursor: pointer; border-radius: 16px; border: 2px solid var(--border); padding: .55rem; transition: all .25s var(--ease); background: var(--surface-2); text-align: center; }
.tema-kart:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tema-kart.aktif { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18); }
.tema-kart .mini { height: 78px; border-radius: 11px; overflow: hidden; display: flex; flex-direction: column; padding: 8px; gap: 6px; margin-bottom: .5rem; }
.tema-kart .mini .bar { height: 10px; border-radius: 4px; width: 100%; }
.tema-kart .mini .satir { display: flex; gap: 6px; flex: 1; }
.tema-kart .mini .kutu { flex: 1; border-radius: 5px; }
.tema-kart span { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.btn-check:checked + .tema-kart { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18); }
.btn-check:checked + .tema-kart span { color: var(--text); }
.renk-secici { display: flex; gap: .7rem; flex-wrap: wrap; }
.renk-secici button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--border); cursor: pointer; transition: all .2s var(--ease); position: relative; }
.renk-secici button:hover { transform: scale(1.12); }
.renk-secici button.aktif { box-shadow: 0 0 0 2px var(--text); }
.renk-secici button.aktif::after { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.arkaplan-secici { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; }
.arkaplan-secici button { aspect-ratio: 16/10; border-radius: 12px; border: 2px solid var(--border); background-size: cover; background-position: center; cursor: pointer; transition: all .2s var(--ease); position: relative; overflow: hidden; color: var(--text-2); font-weight: 600; font-size: .8rem; }
.arkaplan-secici button:hover { transform: translateY(-2px); }
.arkaplan-secici button.aktif { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }

/* Profil düzenleme */
.duzenle-kapak { height: 170px; border-radius: 16px; overflow: hidden; position: relative; background: var(--gradient); }
.duzenle-kapak img { width: 100%; height: 100%; object-fit: cover; }
.duzenle-kapak .degistir, .duzenle-avatar .degistir {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; justify-content: center; gap: .5rem;
    opacity: 0; transition: opacity .25s; cursor: pointer; font-weight: 600;
}
.duzenle-kapak:hover .degistir, .duzenle-avatar:hover .degistir { opacity: 1; }
.duzenle-avatar { position: relative; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; margin-top: -58px; margin-left: 1.5rem; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.duzenle-avatar img { width: 100%; height: 100%; object-fit: cover; }
.duzenle-avatar .degistir { border-radius: 50%; font-size: 1.3rem; }
.duzenle-kapak input, .duzenle-avatar input { display: none; }

/* Şifre gücü */
.sifre-guc { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-top: .5rem; }
.sifre-guc div { height: 100%; width: 0; border-radius: 5px; transition: width .35s var(--ease), background .35s; }

/* ---------- 17. GİRİŞ / KAYIT ---------- */
.auth-sarmal { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-sol { position: relative; overflow: hidden; isolation: isolate; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2); border-right: 1px solid var(--border); }
.auth-sol .izgara-bg { position: absolute; inset: 0; z-index: -1; animation: izgaraKay 30s linear infinite; }
.auth-sol .hero-isik { opacity: .5; }
.auth-sol h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.1; }
.auth-sag { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; position: relative; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 2rem; font-weight: 700; }
.auth-ozellik { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.auth-ozellik i { width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--primary-rgb), .14); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.ayirici { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .82rem; margin: 1.5rem 0; }
.ayirici::before, .ayirici::after { content: ''; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 991.98px) { .auth-sarmal { grid-template-columns: 1fr; } .auth-sol { display: none; } }

/* ---------- 18. HABER DETAY ---------- */
.makale-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface-3); box-shadow: var(--shadow-lg); }
.makale-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .makale-hero { aspect-ratio: 4 / 3; border-radius: 16px; } }
.makale-icerik { font-size: 1.08rem; line-height: 1.85; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.makale-icerik.ilk-harf::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: .9; margin: .08em .12em 0 0; color: var(--primary); font-weight: 700; }
.makale-aksiyon { display: flex; flex-direction: column; gap: .6rem; position: sticky; top: calc(var(--nav-h) + 2rem); }
.makale-aksiyon .ikon-btn { width: 48px; height: 48px; border-radius: 14px; }
.makale-aksiyon .ikon-btn.aktif-kalp { color: #ff3b5c; border-color: rgba(255, 59, 92, .35); background: rgba(255, 59, 92, .1); }
.makale-aksiyon .ikon-btn.aktif-kayit { color: var(--primary); border-color: rgba(var(--primary-rgb), .35); background: rgba(var(--primary-rgb), .1); }
.makale-aksiyon small { text-align: center; color: var(--muted); font-size: .74rem; font-weight: 600; margin-top: -.3rem; }
.yorum { display: flex; gap: .85rem; padding: 1rem 0; scroll-margin-top: calc(var(--nav-h) + 20px); }
.yorum + .yorum { border-top: 1px solid var(--border); }
.yorum.vurgu { animation: vurgu 2.4s ease; border-radius: 12px; }
@keyframes vurgu { 0%, 40% { background: rgba(var(--primary-rgb), .14); } 100% { background: transparent; } }
.yorum .govde { flex: 1; min-width: 0; }
.yorum .metin { color: var(--text-2); margin: .3rem 0 .45rem; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.yorum .metin .etiketlenen { color: var(--primary); font-weight: 600; }
.yorum .araclar { display: flex; gap: 1.1rem; align-items: center; font-size: .8rem; color: var(--muted); }
.yorum .araclar button { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.yorum .araclar button:hover { color: var(--text); }
.yorum .araclar button.aktif { color: #ff3b5c; }
.yanitlar { margin-top: .5rem; padding-left: 1rem; border-left: 2px solid var(--border); }
.yanitlar .yorum { padding: .7rem 0; }
.yanit-bilgi { display: none; align-items: center; justify-content: space-between; font-size: .82rem; padding: .45rem .8rem; background: rgba(var(--primary-rgb), .1); border-radius: 10px; margin-bottom: .6rem; color: var(--text-2); }
.yanit-bilgi.goster { display: flex; }

/* ---------- 19. ADMIN ---------- */
.admin-sarmal { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
.admin-menu { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }
.admin-menu .ayar-menu a .sayi { margin-left: auto; background: var(--danger); color: #fff; font-size: .68rem; border-radius: 10px; padding: .05rem .45rem; font-weight: 700; }
@media (max-width: 991.98px) { .admin-sarmal { grid-template-columns: 1fr; } .admin-menu { position: static; } }
.stat-kart { padding: 1.3rem 1.4rem; display: flex; align-items: center; gap: 1rem; }
.stat-kart .ikon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.stat-kart .deger { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-kart .ad { color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.tablo { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.tablo th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .9rem 1rem; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; background: var(--surface-2); }
.tablo td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.tablo tr:last-child td { border-bottom: 0; }
.tablo tbody tr { transition: background .2s; }
.tablo tbody tr:hover { background: var(--hover); }
.tablo-kutu { overflow-x: auto; border-radius: var(--radius); }

/* ---------- 20. BOŞ DURUM, İSKELET, YARDIMCILAR ---------- */
.bos-durum { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
.bos-durum .ikon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; font-size: 2.1rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.bos-durum h5 { color: var(--text); font-weight: 700; }
.iskelet { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: iskelet 1.4s ease infinite; border-radius: 8px; }
@keyframes iskelet { to { background-position: -200% 0; } }
.geri-don-btn {
    position: fixed; right: 22px; bottom: 22px; z-index: 1020; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s var(--ease);
}
.geri-don-btn.goster { opacity: 1; transform: none; pointer-events: auto; }
.geri-don-btn:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.bilgi-kutu { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .2); color: var(--text-2); font-size: .9rem; display: flex; gap: .8rem; align-items: flex-start; }
.bilgi-kutu i { color: var(--primary); font-size: 1.1rem; }
.tehlike-kutu { border-color: rgba(239, 68, 68, .3) !important; background: linear-gradient(135deg, rgba(239, 68, 68, .07), transparent), var(--surface) !important; }
.alert { border-radius: 14px; border: 1px solid var(--border); }

/* Hata sayfası */
.hata-kod { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; }

/* Lightbox */
.isik-kutusu { position: fixed; inset: 0; z-index: 4000; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; animation: sayfaGiris .3s ease; }
.isik-kutusu.acik { display: flex; }
.isik-kutusu img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

/* ---------- 21. GÖRÜNÜM ANİMASYONLARI ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="sol"] { transform: translateX(-40px); }
[data-reveal="sag"] { transform: translateX(40px); }
[data-reveal="olcek"] { transform: scale(.92); }
[data-reveal].gorundu { opacity: 1; transform: none; }

.tilt { transform-style: preserve-3d; will-change: transform; }

/* Azaltılmış hareket */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}
html[data-motion="reduce"] [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero .izgara-bg, .radar .tarama, .kayan-serit .ray { animation: none; }
}

/* Yazı boyutu */
html[data-fontsize="kucuk"] { font-size: 14px; }
html[data-fontsize="buyuk"] { font-size: 17.5px; }

/* Yüksek kontrast ince ayarları */
[data-theme="contrast"] .btn-primary, [data-theme="contrast"] .cip.aktif, [data-theme="contrast"] .msj.ben .balon { background: #ffff00; color: #000; box-shadow: none; }
[data-theme="contrast"] .kart, [data-theme="contrast"] .form-control { border-width: 2px; }
[data-theme="contrast"] a:not(.btn) { text-decoration: underline; }
[data-theme="contrast"] .gradient-text { -webkit-text-fill-color: #ffff00; }

/* Light tema ince ayarlar */
[data-theme="light"] .msj.o .balon { background: #fff; }
[data-theme="light"] .ana-nav.kucuk { box-shadow: 0 8px 30px -14px rgba(15, 23, 42, .2); }
[data-theme="light"] .radar-kart { background: rgba(255, 255, 255, .85); }
[data-theme="light"] .hero-isik { opacity: .35; }
