/* ============================================================
   KALSIN — tasarım sistemi
   Font: Inter (değişken, self-hosted) · Düzen: masaüstünde sabit
   sol menü, mobilde üst çubuk + çekmece · Sayfaların inline
   stillerinde kullanılan TÜM değişken adları korunmuştur.
   ============================================================ */

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2e7dd1; --primary-dark: #1f5fa8; --primary-soft: #e9f2fc;
    --brand-teal: #2fbfa0; --brand-gradient: linear-gradient(135deg, #2e7dd1, #2fbfa0);
    --bg: #f4f6f8; --surface: #ffffff; --text: #0f172a; --text-muted: #64748b;
    --border: #e5e9f0; --border-strong: #d5dbe5;
    --yemek: #d97706; --kart: #7c4fe0; --kart-soft: #f7f4ff; --yatirim: #0891b2;
    --taksit: #7c4fe0; --abonelik: #475569; --nakit: #64748b; --danger: #dc2626;
    --success: #15803d;
    --input-bg: #ffffff; --input-focus-bg: #ffffff; --hover-bg: #f4f7fb; --head-bg: #f8fafc;
    --focus-ring: rgba(46,125,209,0.15);
    --scrollbar-thumb: #cbd5e1; --scrollbar-thumb-hover: #94a3b8;
    --danger-soft-bg: #fdf0ef; --danger-soft-border: #f5c8c4; --danger-soft-text: #b91c1c;
    --success-soft-bg: #effaf3; --success-soft-border: #bbe5c8; --success-soft-text: #15803d;
    --radius: 14px; --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 1px 2px rgba(15,23,42,0.04), 0 2px 8px rgba(15,23,42,0.04);
    --shadow-lg: 0 20px 45px rgba(15,23,42,0.18);
    --sidebar-w: 250px;
    color-scheme: light;

    /* --- Zarflar: canlı kategori vurgu renkleri (tema-bağımsız, sabit) --- */
    --zarf-1: #22c55e; --zarf-2: #f97316; --zarf-3: #ec4899; --zarf-4: #8b5cf6;
    --zarf-5: #ef4444; --zarf-6: #06b6d4; --zarf-7: #eab308; --zarf-8: #3b82f6;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #6fb3f2; --primary-dark: #9dcdfa; --primary-soft: rgba(111,179,242,0.13);
        --brand-teal: #4fd6b8; --brand-gradient: linear-gradient(135deg, #6fb3f2, #4fd6b8);
        --bg: #0e1117; --surface: #171b24; --text: #e8eaf1; --text-muted: #98a1b3;
        --border: #262c38; --border-strong: #343c4b;
        --yemek: #f0a54c; --kart: #b39dff; --kart-soft: rgba(124,79,250,0.14); --yatirim: #56c8e8;
        --taksit: #b39dff; --abonelik: #a3acc9; --nakit: #98a1b3; --danger: #f27272;
        --success: #5ad48e;
        --input-bg: #1d222d; --input-focus-bg: #222834; --hover-bg: #1e242f; --head-bg: #1a1f29;
        --focus-ring: rgba(111,179,242,0.25);
        --scrollbar-thumb: #333b4a; --scrollbar-thumb-hover: #465164;
        --danger-soft-bg: rgba(242,114,114,0.1); --danger-soft-border: rgba(242,114,114,0.32); --danger-soft-text: #ff9c9c;
        --success-soft-bg: rgba(90,212,142,0.1); --success-soft-border: rgba(90,212,142,0.3); --success-soft-text: #7fe0aa;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
        --shadow: 0 1px 3px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.3);
        --shadow-lg: 0 24px 50px rgba(0,0,0,0.6);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --primary: #6fb3f2; --primary-dark: #9dcdfa; --primary-soft: rgba(111,179,242,0.13);
    --brand-teal: #4fd6b8; --brand-gradient: linear-gradient(135deg, #6fb3f2, #4fd6b8);
    --bg: #0e1117; --surface: #171b24; --text: #e8eaf1; --text-muted: #98a1b3;
    --border: #262c38; --border-strong: #343c4b;
    --yemek: #f0a54c; --kart: #b39dff; --kart-soft: rgba(124,79,250,0.14); --yatirim: #56c8e8;
    --taksit: #b39dff; --abonelik: #a3acc9; --nakit: #98a1b3; --danger: #f27272;
    --success: #5ad48e;
    --input-bg: #1d222d; --input-focus-bg: #222834; --hover-bg: #1e242f; --head-bg: #1a1f29;
    --focus-ring: rgba(111,179,242,0.25);
    --scrollbar-thumb: #333b4a; --scrollbar-thumb-hover: #46516a;
    --danger-soft-bg: rgba(242,114,114,0.1); --danger-soft-border: rgba(242,114,114,0.32); --danger-soft-text: #ff9c9c;
    --success-soft-bg: rgba(90,212,142,0.1); --success-soft-border: rgba(90,212,142,0.3); --success-soft-text: #7fe0aa;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 1px 3px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.3);
    --shadow-lg: 0 24px 50px rgba(0,0,0,0.6);
    color-scheme: dark;
}

/* --- Taban --- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0 16px 32px;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Uygulama kabuğu: masaüstünde sabit kenar çubuğu --- */
@media (min-width: 1024px) {
    body.has-nav { padding-left: calc(var(--sidebar-w) + 32px); padding-right: 32px; }
}

/* Üst çubuk — yalnızca mobil */
.topbar {
    position: sticky; top: 0; z-index: 900;
    margin: 0 -16px 18px; padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .topbar { display: none; } }

.hamburger-btn {
    width: 40px; height: 40px; flex-shrink: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: transparent; border: none; border-radius: 10px;
    box-shadow: none; cursor: pointer;
}
.hamburger-btn span { display: block; width: 18px; height: 1.8px; background: var(--text); border-radius: 2px; }
.hamburger-btn:hover { background: var(--hover-bg); }

.topbar-brand { display: flex; align-items: center; gap: 10px; flex-grow: 1; text-decoration: none; min-width: 0; }
.topbar-brand:hover { text-decoration: none; }
.topbar-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.topbar-title {
    font-size: 15px; font-weight: 650; color: var(--text); letter-spacing: -0.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Kenar çubuğu / çekmece — tek eleman, iki davranış */
.menu-overlay {
    position: fixed; inset: 0; background: rgba(8,10,16,0.45);
    opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 2500;
}
.menu-overlay.acik { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .menu-overlay { display: none; } }

.menu-drawer {
    position: fixed; top: 0; left: 0; height: 100dvh; width: var(--sidebar-w); max-width: 84vw;
    background: var(--surface); border-right: 1px solid var(--border); z-index: 2600;
    transform: translateX(-100%); transition: transform .22s ease;
    display: flex; flex-direction: column;
}
.menu-drawer.acik { transform: translateX(0); box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) {
    .menu-drawer { transform: none; box-shadow: none; z-index: 800; }
}

.drawer-header { display: flex; align-items: center; gap: 11px; padding: 20px 18px 16px; }
.drawer-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.drawer-brand-text { flex-grow: 1; min-width: 0; }
.drawer-title { font-size: 16px; font-weight: 750; color: var(--text); letter-spacing: 0.04em; }
.drawer-subtitle { font-size: 11px; color: var(--text-muted); margin-top: -1px; }
.menu-close-btn {
    width: 30px; height: 30px; flex-shrink: 0; padding: 0; background: transparent;
    border: none; box-shadow: none; color: var(--text-muted); font-size: 14px; border-radius: 8px;
}
.menu-close-btn:hover { background: var(--hover-bg); }
@media (min-width: 1024px) { .menu-close-btn { display: none; } }

.drawer-links { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; overflow-y: auto; flex-grow: 1; }
.drawer-link {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 11px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
    color: var(--text-muted); text-decoration: none; transition: background .12s, color .12s;
}
.drawer-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.drawer-link:hover { background: var(--hover-bg); color: var(--text); text-decoration: none; }
.drawer-link.aktif { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.drawer-grup-baslik {
    padding: 14px 11px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--text-muted); opacity: 0.75;
}
.drawer-grup-baslik:first-child { padding-top: 4px; }

.drawer-footer { padding: 12px 14px 16px; border-top: 1px solid var(--border); }
.drawer-user { display: flex; align-items: center; gap: 10px; padding: 4px 2px 12px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.drawer-avatar {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
    background: var(--brand-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.drawer-user-text { min-width: 0; }
.drawer-user-text strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-footer-row { display: flex; gap: 8px; }
.drawer-footer-row .cikis-btn {
    flex-grow: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px; font-size: 12.5px; font-weight: 600;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); box-shadow: none;
}
.drawer-footer-row .cikis-btn:hover { background: var(--hover-bg); color: var(--text); filter: none; }
.drawer-footer-row .cikis-btn svg { width: 15px; height: 15px; }

.tema-btn {
    width: 36px; height: 36px; padding: 0; flex-shrink: 0; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid var(--border); box-shadow: none;
    font-size: 15px; display: flex; align-items: center; justify-content: center;
    color: var(--text);
}
.tema-btn:hover { background: var(--hover-bg); filter: none; }

body.menu-acik-body { overflow: hidden; }

/* --- Giriş/Kayıt üst çubuğu (tanıtım sitesiyle uyum) --- */
.giris-ust {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface); border-bottom: 1px solid var(--border);
    margin: 0 -16px 26px; /* body yan padding'ini kırarak tam genişlik */
    padding: 0 20px;
}
.giris-ust-ic {
    max-width: 1080px; margin: 0 auto; height: 58px;
    display: flex; align-items: center; gap: 22px;
}
.giris-marka {
    display: flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 16.5px; letter-spacing: 0.05em;
    color: var(--text); text-decoration: none;
}
.giris-marka img { width: 30px; height: 30px; object-fit: contain; }
.giris-capalar { display: flex; gap: 18px; margin-left: 4px; }
.giris-capalar a {
    color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 550;
}
.giris-capalar a:hover { color: var(--primary); }
.giris-ust .tema-btn { margin-left: auto; }
.t-hamburger {
    display: none; width: 36px; height: 36px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: transparent; color: var(--text);
    font-size: 17px; cursor: pointer; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 0; box-shadow: none;
}
.t-hamburger:hover { background: var(--hover-bg); filter: none; }
.t-mobil-menu { display: none; }
@media (max-width: 640px) {
    .giris-capalar { display: none; }
    .t-hamburger { display: flex; }
    .t-mobil-menu.acik {
        display: flex; flex-direction: column;
        padding: 4px 20px 14px; border-top: 1px solid var(--border);
    }
    .t-mobil-menu a { padding: 10px 0; color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
    .t-mobil-menu a:hover { color: var(--primary); }
}

/* --- Giriş/Kayıt: canlı, yeni-nesil görünüm --- */
body.auth-sayfa { position: relative; overflow-x: hidden; }
body.auth-sayfa::before, body.auth-sayfa::after {
    content: ''; position: fixed; z-index: -1; border-radius: 50%; filter: blur(60px);
    opacity: .25; pointer-events: none;
}
body.auth-sayfa::before { width: 360px; height: 360px; top: -120px; left: -100px; background: var(--zarf-4); }
body.auth-sayfa::after { width: 320px; height: 320px; bottom: -100px; right: -90px; background: var(--zarf-6); }
.auth-logo-halka {
    position: relative; width: 76px; height: 76px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
}
.auth-logo-halka::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: var(--brand-gradient); filter: blur(16px); opacity: .4;
}
.auth-logo-halka img { position: relative; width: 60px; height: 60px; object-fit: contain; }
.auth-sayfa .page-narrow .card {
    border-radius: 20px; position: relative; overflow: hidden;
}
.auth-sayfa .page-narrow .card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--brand-gradient);
}
.auth-sayfa .btn-auth-submit { background: var(--brand-gradient); border-radius: 12px; }

/* --- Sayfa yerleşimi --- */
.container { max-width: 1240px; margin: auto; display: grid; grid-template-columns: 370px 1fr; gap: 22px; align-items: start; }
.container > div { min-width: 0; } /* tablo gibi geniş içerik kolonu ekran dışına genişletmesin */
.page { max-width: 1240px; margin: auto; }
.page-narrow { max-width: 420px; margin: 8vh auto 40px; position: relative; }

/* --- Kartlar & başlıklar --- */
.card {
    background: var(--surface); padding: 24px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 18px;
}
h1 { font-weight: 750; letter-spacing: -0.02em; }
h2, h3 {
    margin-top: 0; color: var(--text); font-size: 15px; font-weight: 650;
    display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em;
}
h2 { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
h3 { font-size: 14px; }

/* --- Form --- */
.form-group { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; font-weight: 550; font-size: 12.5px; color: var(--text-muted); }
input, select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    box-sizing: border-box; font-size: 14px; font-family: inherit;
    background: var(--input-bg); color: var(--text);
    transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover { border-color: var(--text-muted); }
input:focus, select:focus {
    outline: none; border-color: var(--primary); background: var(--input-focus-bg);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
input[type="month"], input[type="date"] { font-variant-numeric: tabular-nums; }
.checkbox-group {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: var(--head-bg); border-radius: var(--radius-sm); border: 1px solid var(--border);
    font-size: 13.5px;
}
.checkbox-group input[type="checkbox"] { width: auto; accent-color: var(--primary); cursor: pointer; }
.hidden { display: none !important; }

/* --- Butonlar --- */
button {
    width: 100%; padding: 10px 16px; background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 13.5px; font-weight: 600;
    font-family: inherit; letter-spacing: 0.005em;
    transition: background .12s, filter .12s, transform .05s;
    box-shadow: var(--shadow-sm);
}
button:hover { filter: brightness(0.94); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-small { padding: 6px 12px; font-size: 12.5px; width: auto; box-shadow: none; font-weight: 600; }
.btn-delete { background: var(--danger); }
.btn-save { background: var(--success); margin-top: 10px; }
.btn-sub { background: var(--primary); }
.btn-secondary { background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-secondary:hover { background: var(--hover-bg); color: var(--text); filter: none; }

/* --- Tablo --- */
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
th {
    background: transparent; color: var(--text-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
    position: sticky; top: 0; background: var(--surface);
}
td { font-variant-numeric: tabular-nums; }
td strong { font-weight: 650; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--hover-bg); }
tbody tr:last-child td { border-bottom: none; }

/* --- Rozetler --- */
.badge {
    padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
    color: #fff; display: inline-block; letter-spacing: 0.01em; white-space: nowrap;
}
.b-yemek { background-color: var(--yemek); }
.b-taksit { background-color: var(--taksit); } .b-abonelik { background-color: var(--abonelik); } .b-nakit { background-color: var(--nakit); }
.uye-rozet {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
    border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap;
}

/* --- İstatistik kutuları --- */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.summary-box {
    background: var(--surface); padding: 14px 16px; border-radius: 10px;
    border: 1px solid var(--border);
    text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 550;
    line-height: 1.35;
}
.summary-box span {
    display: block; font-size: 21px; font-weight: 700; margin-top: 5px;
    color: var(--text); letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.summary-box small { display: block; font-weight: 450; font-size: 11.5px; margin-top: 3px; color: var(--text-muted); }

.budget-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sub-list-item {
    display: flex; justify-content: space-between; align-items: center; padding: 11px 13px;
    background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px;
    border-radius: 10px; font-size: 12.5px; gap: 10px;
}

/* --- Filtre paneli --- */
.filter-panel {
    display: flex; flex-direction: column; gap: 12px; background: var(--surface);
    padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-title { font-weight: 600; font-size: 11px; color: var(--text-muted); min-width: 130px; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 450; color: var(--text); }
.filter-label input[type="checkbox"],
.filter-label input[type="radio"] { width: auto; flex-shrink: 0; cursor: pointer; margin: 0; accent-color: var(--primary); }
.filter-divider { border-top: 1px solid var(--border); width: 100%; margin: 0; }

/* --- Modal --- */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,13,20,0.5);
    backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 3000;
    padding: 16px;
}
.modal-content {
    background: var(--surface); padding: 26px; border-radius: 16px; width: 440px; max-width: 100%;
    max-height: 90dvh; overflow-y: auto;
    box-shadow: var(--shadow-lg); position: relative; border: 1px solid var(--border);
}
.modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; }
.modal-buttons-right { display: flex; gap: 8px; }

/* --- Spotlight rehber turu --- */
.tur-overlay { position: fixed; inset: 0; z-index: 5000; }
.tur-spotlight {
    position: fixed; border-radius: 10px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(10,13,20,0.72);
    border: 2px solid var(--primary);
    transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.tur-kart {
    position: fixed; z-index: 5001; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px; width: 300px; max-width: calc(100vw - 24px);
    box-shadow: var(--shadow-lg); transition: top .25s ease, left .25s ease;
}
.tur-kart-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.tur-kart-ust strong { font-size: 14.5px; }
.tur-kapat-x {
    background: transparent; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 15px; padding: 0; width: auto; line-height: 1; flex-shrink: 0;
}
.tur-kapat-x:hover { color: var(--text); }
.tur-kart-aciklama { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.tur-kart-alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tur-sayac { font-size: 11.5px; color: var(--text-muted); font-weight: 550; white-space: nowrap; }
.tur-kart-butonlar { display: flex; gap: 6px; }
body.tur-acik { overflow: hidden; }

/* --- Mesajlar --- */
.hata-mesaji {
    background: var(--danger-soft-bg); border: 1px solid var(--danger-soft-border); color: var(--danger-soft-text);
    padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px;
}
.basari-mesaji {
    background: var(--success-soft-bg); border: 1px solid var(--success-soft-border); color: var(--success-soft-text);
    padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px;
}
.bilgi-notu { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 450; }
.bos-durum { text-align: center; color: var(--text-muted); padding: 34px 10px; font-size: 13px; }

/* --- E-posta doğrulama uyarı şeridi --- */
.uyari-serit {
    max-width: 1240px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 10px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 500;
    background: rgba(217,119,6,0.09); border: 1px solid rgba(217,119,6,0.35); color: var(--yemek);
}
.uyari-serit .btn-small { background: var(--yemek); color: #fff; flex-shrink: 0; }

.durum-rozeti {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 600; vertical-align: middle;
}
.durum-rozeti.dogrulandi { background: var(--success-soft-bg); border: 1px solid var(--success-soft-border); color: var(--success-soft-text); }
.durum-rozeti.dogrulanmadi { background: rgba(217,119,6,0.09); border: 1px solid rgba(217,119,6,0.35); color: var(--yemek); }

/* --- İlerleme çubuğu (hedefler) --- */
.progress-track {
    width: 100%; height: 8px; border-radius: 6px;
    background: var(--head-bg); border: 1px solid var(--border);
    overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--brand-teal));
    transition: width .3s ease;
}
.hedef-satir { padding: 14px 0; border-bottom: 1px solid var(--border); }
.hedef-satir:last-child { border-bottom: none; padding-bottom: 4px; }
.hedef-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.hedef-ad { font-size: 14px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hedef-tutarlar { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hedef-tutarlar strong { color: var(--text); font-weight: 650; }
.hedef-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 11.5px; color: var(--text-muted); flex-wrap: wrap; }

/* --- Gelecek yük (yığılmış yatay bar) --- */
.yuk-satir { display: grid; grid-template-columns: 76px 1fr 110px; align-items: center; gap: 12px; padding: 7px 0; }
.yuk-ay { font-size: 12px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.yuk-bar { display: flex; gap: 2px; height: 14px; align-items: stretch; }
.yuk-parca { border-radius: 3px; min-width: 2px; }
.yuk-parca.taksit { background: var(--kart); }
.yuk-parca.abonelik { background: var(--abonelik); }
.yuk-toplam { font-size: 12.5px; font-weight: 650; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.yuk-biten { grid-column: 2 / 4; font-size: 11.5px; color: var(--success); margin-top: -3px; }
.yuk-lejant { display: flex; gap: 16px; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.yuk-lejant span { display: inline-flex; align-items: center; gap: 6px; }
.yuk-lejant i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* --- Aylık rapor: kayan bant (ticker) --- */
.rapor-ticker {
    display: flex; align-items: stretch;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden;
}
.ticker-pencere { flex-grow: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker-pencere::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
    background: linear-gradient(90deg, transparent, var(--surface));
    pointer-events: none;
}
.ticker-kaydirici {
    display: flex; align-items: center; width: max-content;
    padding: 10px 0; white-space: nowrap;
    animation: ticker-kayma 40s linear infinite;
}
.rapor-ticker:hover .ticker-kaydirici { animation-play-state: paused; }
@keyframes ticker-kayma {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-kaydirici { animation: none; }
    .ticker-pencere { overflow-x: auto; }
}
.ticker-madde { font-size: 12.5px; font-weight: 550; padding: 0 14px; }
.ticker-iyi { color: var(--success); }
.ticker-kotu { color: var(--danger); }
.ticker-notr { color: var(--text-muted); }
.ticker-ayrac { color: var(--border-strong); font-size: 11px; }
.ticker-detay {
    width: auto; flex-shrink: 0; border-radius: 0;
    padding: 0 16px; font-size: 12px; font-weight: 600;
    background: var(--primary-soft); color: var(--primary-dark);
    border-left: 1px solid var(--border); box-shadow: none;
}
.ticker-detay:hover { background: var(--primary); color: #fff; filter: none; }

/* --- Aylık rapor satırları --- */
.rapor-satir {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 2px; font-size: 13.5px; line-height: 1.5;
    border-bottom: 1px solid var(--border);
}
.rapor-satir:last-child { border-bottom: none; }
.rapor-satir i {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px;
}
.rapor-iyi i { background: var(--success); }
.rapor-kotu i { background: var(--danger); }
.rapor-notr i { background: var(--text-muted); }

/* --- Toast bildirimi --- */
.toast {
    position: fixed; right: 16px; bottom: 16px; z-index: 4000;
    max-width: 360px; padding: 12px 16px; border-radius: 12px;
    font-size: 13px; font-weight: 550; line-height: 1.45;
    box-shadow: var(--shadow-lg); border: 1px solid;
    opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.toast.acik { opacity: 1; transform: translateY(0); }
.toast-uyari { background: var(--surface); border-color: rgba(217,119,6,0.5); color: var(--yemek); }
.toast-hata { background: var(--surface); border-color: var(--danger-soft-border); color: var(--danger); }
.toast-basari { background: var(--surface); border-color: var(--success-soft-border); color: var(--success); }
.toast-geri-al {
    display: flex; align-items: center; gap: 14px; max-width: 380px;
}
.toast-geri-al span { flex: 1; color: var(--text); }
.toast-geri-al button {
    width: auto; flex-shrink: 0; padding: 6px 12px; font-size: 12.5px;
    background: var(--primary-soft); color: var(--primary-dark); box-shadow: none;
}
.toast-geri-al button:hover { background: var(--primary); color: #fff; filter: none; }

/* --- Hızlı ekleme çipleri --- */
.hizli-cubuk {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
    margin-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.hizli-chip {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    width: auto; flex-shrink: 0; padding: 8px 14px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 999px;
    font-size: 12.5px; font-weight: 550; box-shadow: var(--shadow-sm);
    transition: background .12s, border-color .12s;
}
.hizli-chip:hover { background: var(--hover-bg); border-color: var(--primary); filter: none; }
.hizli-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.hizli-chip.eklendi { background: var(--success-soft-bg); border-color: var(--success-soft-border); color: var(--success-soft-text); }
.hizli-chip-yonet { color: var(--text-muted); border-style: dashed; }

/* --- Paylaşım kartı önizleme --- */
.kart-onizleme {
    width: 100%; max-width: 300px; height: auto;
    border-radius: 14px; border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* --- Sekmeler (segmented control) --- */
.sekme-grup {
    display: inline-flex; gap: 3px; padding: 3px;
    background: var(--head-bg); border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 18px;
}
.sekme-btn {
    width: auto; padding: 7px 16px; font-size: 13px; font-weight: 550;
    background: transparent; color: var(--text-muted); box-shadow: none; border: none; border-radius: 8px;
}
.sekme-btn:hover { filter: none; background: var(--hover-bg); color: var(--text); }
.sekme-btn.aktif { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: var(--shadow-sm); }
.sekme-btn.aktif:hover { background: var(--surface); }

/* --- Bildirimler (zil + panel) --- */
.zil-btn {
    position: relative;
    width: 36px; height: 36px; padding: 0; flex-shrink: 0; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid var(--border); box-shadow: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
}
.zil-btn:hover { background: var(--hover-bg); filter: none; }
.zil-btn svg { width: 17px; height: 17px; }
.zil-rozet {
    position: absolute; top: -5px; right: -5px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    background: var(--danger); color: #fff;
    border-radius: 999px; font-size: 10.5px; font-weight: 800;
    border: 2px solid var(--bg);
}
.bildirim-panel {
    position: fixed; z-index: 2700;
    top: 62px; right: 12px;
    width: min(380px, calc(100vw - 24px));
    max-height: min(430px, 70vh); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
    .bildirim-panel { top: auto; bottom: 20px; left: calc(var(--sidebar-w) + 10px); right: auto; }
}
.bildirim-panel-baslik {
    padding: 12px 16px; font-size: 13px; font-weight: 750;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--surface); border-radius: 14px 14px 0 0;
}
.bildirim-satir {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 14px; border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.bildirim-satir:last-child { border-bottom: none; }
.bildirim-satir:hover { background: var(--hover-bg); }
.bildirim-satir.okunmamis { box-shadow: inset 3px 0 0 var(--primary); background: var(--head-bg); }
.bildirim-ikon svg { width: 16px; height: 16px; color: var(--primary); margin-top: 2px; }
.bildirim-govde { flex-grow: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.bildirim-zaman { color: var(--text-muted); font-size: 11.5px; margin-top: 2px; }
.bildirim-sil {
    width: auto; flex-shrink: 0; padding: 2px 6px;
    background: transparent; border: none; box-shadow: none;
    color: var(--text-muted); font-size: 12px; border-radius: 6px;
}
.bildirim-sil:hover { filter: none; background: var(--hover-bg); color: var(--danger); }

/* --- Giriş ayracı (— veya —) --- */
.giris-ayrac {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0 14px; color: var(--text-muted); font-size: 12px;
}
.giris-ayrac::before, .giris-ayrac::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}

/* --- AI Asistan --- */
.asistan-btn {
    position: fixed; right: 18px; bottom: 18px; z-index: 2400;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.25)); cursor: pointer;
}
.asistan-btn:hover { filter: brightness(1.08); }
.asistan-btn svg { width: 26px; height: 26px; }
.asistan-panel {
    position: fixed; right: 18px; bottom: 82px; z-index: 2400;
    width: min(390px, calc(100vw - 24px));
    height: min(540px, calc(100dvh - 120px));
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow-lg, 0 12px 36px rgba(0,0,0,0.3));
    overflow: hidden;
}
.asistan-baslik {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    font-weight: 750; font-size: 14px; background: var(--head-bg);
}
.asistan-hak {
    margin-left: auto; font-size: 11.5px; font-weight: 700;
    color: var(--primary); background: var(--surface);
    border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px;
}
.asistan-kapat {
    width: auto; padding: 2px 7px; background: transparent; border: none;
    box-shadow: none; color: var(--text-muted); font-size: 13px; border-radius: 6px;
}
.asistan-kapat:hover { filter: none; background: var(--hover-bg); color: var(--text); }
.asistan-gbody { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.asistan-balon {
    max-width: 85%; padding: 9px 12px; border-radius: 14px;
    font-size: 13px; line-height: 1.55; white-space: normal; word-break: break-word;
}
.asistan-balon.kullanici {
    align-self: flex-end; background: var(--primary); color: #fff;
    border-bottom-right-radius: 4px;
}
.asistan-balon.asistan {
    align-self: flex-start; background: var(--head-bg);
    border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.asistan-yaziyor { display: flex; gap: 4px; padding: 12px 14px; }
.asistan-yaziyor i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted);
    animation: asistan-zipla 1.2s infinite;
}
.asistan-yaziyor i:nth-child(2) { animation-delay: 0.15s; }
.asistan-yaziyor i:nth-child(3) { animation-delay: 0.3s; }
@keyframes asistan-zipla {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
.asistan-bos { color: var(--text-muted); font-size: 13px; text-align: center; margin-top: 12px; }
.asistan-cipler { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.asistan-cip {
    width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    font-size: 12.5px; box-shadow: none;
}
.asistan-cip:hover { filter: none; background: var(--hover-bg); border-color: var(--primary); }
.asistan-riza { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.asistan-riza strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 13.5px; }
.asistan-riza p { margin: 0 0 8px; }
.asistan-riza b { color: var(--text); }
.asistan-girdi {
    display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border);
}
.asistan-girdi input { flex: 1; font-size: 13px; }
.asistan-girdi button {
    width: 42px; flex-shrink: 0; border-radius: 10px; font-size: 15px; padding: 0;
}
@media (max-width: 640px) {
    .asistan-panel { right: 12px; bottom: 76px; }
    .asistan-btn { right: 12px; bottom: 12px; width: 50px; height: 50px; }
}

/* --- Fiş fotoğrafı --- */
.fis-ikon {
    width: auto; display: inline-flex; align-items: center; vertical-align: middle;
    padding: 2px 4px; margin-left: 4px;
    background: transparent; border: none; box-shadow: none;
    color: var(--primary); cursor: pointer; border-radius: 6px;
}
.fis-ikon:hover { filter: none; background: var(--hover-bg); }
.fis-ikon svg { width: 15px; height: 15px; }
.fis-modal img {
    display: block; max-width: 88vw; max-height: 76vh;
    border-radius: 10px; border: 1px solid var(--border);
    margin: 0 auto;
}

/* --- Ekstre içe aktarma --- */
.ekstre-gizlilik {
    margin-top: 10px; padding: 12px 14px; border-radius: 10px;
    background: var(--head-bg); border: 1px solid var(--border);
    font-size: 12.5px; line-height: 1.6; color: var(--text-muted);
}
.ekstre-gizlilik strong { color: var(--text); }
.ekstre-gizlilik code { background: var(--surface); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }
.ekstre-alan {
    width: 100%; resize: vertical; font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px; line-height: 1.6;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; padding: 12px;
}
.ekstre-alan:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.ekstre-taninmayan {
    margin: 10px 0; padding: 10px 12px; border-radius: 10px;
    border: 1px dashed var(--border); font-size: 12px; color: var(--text-muted);
}
.ekstre-taninmayan summary { cursor: pointer; font-weight: 650; color: var(--danger); }
.ekstre-taninmayan div { margin-top: 6px; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.ekstre-iade { opacity: 0.55; }
.ekstre-iade td { background: var(--head-bg); }

/* --- İlgi alanı çipleri (seçilebilir) --- */
.ilgi-cip-grup { display: flex; flex-wrap: wrap; gap: 8px; }
.ilgi-cip {
    width: auto; padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    font-size: 13px; font-weight: 550; box-shadow: none;
    transition: background .12s, border-color .12s, color .12s;
}
.ilgi-cip:hover { filter: none; background: var(--hover-bg); border-color: var(--primary); }
.ilgi-cip.secili {
    background: var(--primary-soft-bg, rgba(46,125,209,0.12));
    border-color: var(--primary); color: var(--primary); font-weight: 650;
}

/* --- Rehber / liste satırı --- */
.rehber-satir {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 2px; border-bottom: 1px solid var(--border);
}
.rehber-satir:last-child { border-bottom: none; }
.rehber-satir svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.rehber-satir a { font-weight: 650; color: var(--text); text-decoration: none; }
.rehber-satir a:hover { color: var(--primary); }

.cip {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    background: var(--head-bg); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 11px; font-weight: 600;
}

/* --- Katalog önerileri ("Bununla ne alabilirsin?") --- */
.katalog-izgara {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px; margin-top: 12px;
}
.katalog-kart {
    display: flex; flex-direction: column; gap: 6px;
    padding: 14px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); box-shadow: var(--shadow-sm);
    transition: border-color .12s, transform .12s;
}
.katalog-kart:hover { border-color: var(--primary); transform: translateY(-2px); }
.katalog-kart .kk-ad { font-weight: 650; font-size: 13.5px; }
.katalog-kart .kk-fiyat { color: var(--text-muted); font-size: 12.5px; }
.katalog-kart .kk-rozet {
    align-self: flex-start; padding: 3px 10px; border-radius: 999px;
    background: var(--success-soft-bg, rgba(22,163,74,0.12)); color: var(--success, #16a34a);
    font-size: 12px; font-weight: 650;
}
.katalog-kart .kk-rozet.uzak { background: var(--head-bg); color: var(--text-muted); }
.katalog-kart .kk-incele {
    width: auto; align-self: flex-start; margin-top: 4px;
    padding: 5px 12px; font-size: 12px;
}

/* --- Trend grafikleri --- */
.grafik-kapsayici { position: relative; }
.grafik-svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafik-svg:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.grafik-eksen-metin { font-size: 9.5px; fill: var(--text-muted); font-family: inherit; }
.grafik-crosshair { pointer-events: none; }

.grafik-tooltip {
    position: absolute; top: 4px; transform: translateX(-50%);
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow); padding: 8px 11px; min-width: 150px;
    pointer-events: none; z-index: 5;
}
/* ============================================================
   Zarflar — yeni nesil alt-sekmeli arayüz
   ============================================================ */

/* --- Alt navigasyon --- */
body.has-altnav { padding-bottom: 88px; }
.alt-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
    display: flex; align-items: flex-end; justify-content: space-around;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(15,23,42,0.06);
}
.alt-nav-link {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1; padding: 4px 2px; text-decoration: none; color: var(--text-muted);
    font-size: 10.5px; font-weight: 600; transition: color .12s;
}
.alt-nav-link svg { width: 22px; height: 22px; }
.alt-nav-link:hover { text-decoration: none; color: var(--text); }
.alt-nav-link.aktif { color: var(--primary); }
.alt-nav-fab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%; margin-top: -26px; flex-shrink: 0;
    background: var(--brand-gradient); box-shadow: 0 6px 18px rgba(46,125,209,0.4);
    color: #fff; border: 4px solid var(--bg); cursor: pointer;
}
.alt-nav-fab svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
    .alt-nav { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* --- Zarf kartları --- */
.zarf-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
.zarf-kart {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 14px; cursor: pointer; transition: transform .12s, box-shadow .12s;
    display: flex; flex-direction: column; gap: 8px;
}
.zarf-kart:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.zarf-kart:active { transform: translateY(0) scale(0.98); }
.zarf-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.zarf-ikon-daire {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.zarf-ikon-daire svg { width: 19px; height: 19px; }
.zarf-rozet {
    font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.zarf-rozet.sabit { background: var(--hover-bg); color: var(--text-muted); }
.zarf-rozet.degisken { background: var(--success-soft-bg); color: var(--success-soft-text); }
.zarf-ad { font-size: 13.5px; font-weight: 650; color: var(--text); }
.zarf-tutarlar { font-size: 15px; font-weight: 750; color: var(--text); }
.zarf-tutarlar small { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.zarf-ilerleme-track { height: 6px; border-radius: 999px; background: var(--hover-bg); overflow: hidden; }
.zarf-ilerleme-dolu { height: 100%; border-radius: 999px; transition: width .3s ease; }
.zarf-limit-yok { font-size: 11px; color: var(--text-muted); }

/* --- Alt sayfa (bottom sheet) --- */
.sheet-backdrop {
    position: fixed; inset: 0; background: rgba(8,10,16,0.5); z-index: 4000;
    display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
    background: var(--surface); width: 100%; max-width: 480px;
    border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg); animation: sheet-yukseliyor .22s ease;
    max-height: 88dvh; overflow-y: auto;
}
@keyframes sheet-yukseliyor { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-tutamac { width: 40px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 0 auto 14px; }
.sheet-kapat { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; width: auto; }

/* --- SPA sekme geçiş animasyonu (Android uygulama içi gezinme) --- */
@keyframes spa-cikis-sol { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-16px); opacity: 0; } }
@keyframes spa-cikis-sag { from { transform: translateX(0); opacity: 1; } to { transform: translateX(16px); opacity: 0; } }
@keyframes spa-giris-sagdan { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes spa-giris-soldan { from { transform: translateX(-24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.spa-cikis-sol { animation: spa-cikis-sol .13s ease forwards; }
.spa-cikis-sag { animation: spa-cikis-sag .13s ease forwards; }
.spa-giris-sagdan { animation: spa-giris-sagdan .22s ease; }
.spa-giris-soldan { animation: spa-giris-soldan .22s ease; }

/* --- Özet kartları (Ana Sayfa) --- */
.ozet-kart-buyuk {
    border-radius: 18px; padding: 20px; color: #fff; background: var(--brand-gradient);
    display: flex; flex-direction: column; gap: 4px;
}
.ozet-kart-buyuk small { opacity: 0.85; font-size: 12px; font-weight: 600; }
.ozet-kart-buyuk strong { font-size: 26px; font-weight: 800; }

.grafik-tooltip-baslik { font-size: 11.5px; font-weight: 650; color: var(--text-muted); margin-bottom: 5px; }
.grafik-tooltip-satir {
    display: flex; align-items: center; gap: 7px; font-size: 12.5px;
    padding: 2px 0; color: var(--text);
}
.grafik-tooltip-satir i { width: 12px; height: 2px; border-radius: 2px; flex-shrink: 0; }
.grafik-tooltip-satir strong { font-weight: 700; }
.grafik-tooltip-satir span { color: var(--text-muted); }

.grafik-lejant { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.grafik-lejant-ogesi { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.grafik-lejant-ogesi i { width: 14px; height: 2px; border-radius: 2px; flex-shrink: 0; }

/* --- Kategori dağılımı: yatay sütun grafiği --- */
.sutun-grafik { display: flex; flex-direction: column; gap: 14px; }
.sutun-satir { display: flex; flex-direction: column; gap: 6px; }
.sutun-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.sutun-etiket { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); min-width: 0; }
.sutun-nokta { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sutun-tutar { flex-shrink: 0; font-weight: 700; color: var(--text); white-space: nowrap; }
.sutun-tutar small { font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.sutun-track { height: 10px; border-radius: 999px; background: var(--hover-bg); overflow: hidden; }
.sutun-dolu { height: 100%; border-radius: 999px; transition: width .4s ease; }

.grafik-tablo-link {
    width: auto; background: transparent; border: none; box-shadow: none;
    color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 10px 0 0;
}
.grafik-tablo-link:hover { filter: none; text-decoration: underline; }
.grafik-tablo-sarmalayici { overflow-x: auto; margin-top: 8px; }
.grafik-tablo { border-collapse: collapse; width: 100%; min-width: 480px; }
.grafik-tablo th, .grafik-tablo td {
    padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--border);
    font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.grafik-tablo th:first-child, .grafik-tablo td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.grafik-tablo thead th { color: var(--text-muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .grafik-crosshair, .grafik-tooltip { transition: none !important; }
}

/* --- Karşılama sihirbazı --- */
.sihirbaz-noktalar { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.sihirbaz-noktalar i {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--border); transition: background .15s, transform .15s;
}
.sihirbaz-noktalar i.aktif { background: var(--primary); transform: scale(1.25); }
.sihirbaz-noktalar i.gecti { background: var(--primary); opacity: 0.45; }
.sihirbaz-adim-baslik { text-align: center; margin-bottom: 4px; }
.sihirbaz-adim-alt { text-align: center; color: var(--text-muted); font-size: 13px; margin: 0 0 18px; }
.sihirbaz-butonlar { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; }
.sihirbaz-atla {
    width: auto; background: transparent; border: none; box-shadow: none;
    color: var(--text-muted); font-size: 13px; padding: 8px 10px;
}
.sihirbaz-atla:hover { filter: none; color: var(--text); background: var(--hover-bg); }

/* --- Duyarlılık --- */
@media (max-width: 960px) {
    .container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .budget-inputs { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .card { padding: 18px; }
    .modal-content { padding: 20px; }
}

/* =====================================================================
   v3 — web arayüz iyileştirmeleri (uygulamayla uyumlu)
   ===================================================================== */

/* Toplam kartı rozetleri (geçen aya göre, günlük ortalama) */
.ozet-rozetler { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ozet-rozet {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
    border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.2);
}
.ozet-kart-buyuk strong { font-variant-numeric: tabular-nums; }
/* Koyu temada gradyan açık tonlu: beyaz yazı okunmaz, koyu zemin rengi okunur. */
[data-theme="dark"] .ozet-kart-buyuk { color: #0e1117; }
[data-theme="dark"] .ozet-rozet { background: rgba(14,17,23,0.16); }

/* Kategori ızgarası: gizlenen kategoriler düğmesi */
.kat-diger-alani { margin-top: 10px; }

/* Günlere gruplanmış harcama listesi */
.gun-grup { margin-bottom: 16px; }
.gun-baslik {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 2px 4px 8px; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
}
.gun-kart { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.harcama-satir {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px;
    cursor: pointer; border-top: 1px solid var(--border); transition: background .12s;
}
.harcama-satir:first-child { border-top: none; }
.harcama-satir:hover { background: var(--hover-bg); }
.satir-ikon {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.satir-ikon svg { width: 19px; height: 19px; }
.satir-metin { flex: 1; min-width: 0; }
.satir-metin strong { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir-metin small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir-tutar { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* İkonlu boş durum */
.bos-ikonlu { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 12px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.bos-ikon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.bos-ikon svg { width: 30px; height: 30px; }

/* Üye avatarı / rozetler (hane, bölüşüm) */
.uye-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sahip-rozet { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap; }
.uye-satir { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.uye-satir .metin { flex: 1; min-width: 0; }
.uye-satir .metin strong { display: block; font-size: 14px; }
.uye-satir .metin small { display: block; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Uyarı bandı (e-posta doğrulama) */
.dogrulama-bandi { border: 1px solid rgba(217,119,6,0.5); background: rgba(217,119,6,0.1); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.dogrulama-bandi strong { display: block; margin-bottom: 4px; }

/* Fiş önizleme */
.fis-modal-img { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto 12px; border-radius: 10px; }

/* Bölüşüm */
.bolusum-kisi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.bolusum-kisi .ust { display: flex; align-items: center; gap: 10px; }
.bolusum-kisi .ust strong { flex: 1; font-size: 15px; }
.bolusum-kisi .alt { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.bolusum-kisi .alt b { display: block; color: var(--text); font-size: 14px; font-weight: 700; }
.fark-alacakli { color: var(--success); font-weight: 700; font-size: 13px; }
.fark-borclu { color: var(--danger); font-weight: 700; font-size: 13px; }
.fark-denk { color: var(--text-muted); font-weight: 700; font-size: 13px; }
.transfer-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; margin-bottom: 8px; font-weight: 700; }
.transfer-satir .tutar { color: var(--primary); }

/* Yönetici hata kayıtları */
.hata-kart { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.hata-kart strong { display: block; font-size: 14px; }
.hata-kart .mesaj { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; word-break: break-word; }
.hata-rozetler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hata-rozetler span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--hover-bg); color: var(--text-muted); }
.hata-rozetler .kirmizi { background: var(--danger-soft-bg); color: var(--danger-soft-text); }
.hata-iz { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; background: var(--hover-bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px; max-height: 40vh; overflow: auto; }
/* Zengin boş durum (ikon + başlık + açıklama + eylem) */
.bos-durum-zengin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; }
.bos-durum-zengin strong { color: var(--text); font-size: 15px; }
.bos-durum-zengin p { margin: 0 0 8px; max-width: 320px; line-height: 1.45; }
.bos-durum-ikon { font-size: 34px; line-height: 1; margin-bottom: 4px; }
.hata-kayit { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.hata-kayit-ust { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 13px; }
.hata-kayit-alt { color: var(--text-muted); font-size: 12px; margin-top: 4px; word-break: break-word; }
.dogrulama-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: var(--warning-soft-bg, #3a2f12); border: 1px solid var(--warning-soft-border, #8a6d1d); color: var(--warning-soft-text, #f2d27a); font-size: 13px; }

.satir-tam-tutar { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-muted); margin-top: 1px; }

/* ================= v4 · Harcamalarım yenilemesi ================= */
/* Toplam kartı: ay seçici kartın içinde, yumuşak gölge + dekoratif ışık */
.ozet-v2 { position: relative; overflow: hidden; padding: 18px 20px 20px; box-shadow: 0 12px 28px -12px rgba(46,125,209,0.55); }
.ozet-v2::after {
    content: ''; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 70%); pointer-events: none;
}
.ozet-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.ozet-ust small { letter-spacing: .05em; }
.ozet-v2 strong { font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; }
.ay-secici {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
    background: rgba(255,255,255,0.2); font-size: 12.5px; font-weight: 700; position: relative; z-index: 1;
}
.ay-secici span { padding: 0 4px; white-space: nowrap; }
.ay-secici button {
    width: 26px; height: 26px; padding: 0; border-radius: 50%; border: none; cursor: pointer; box-shadow: none;
    background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center;
}
.ay-secici button:hover { background: rgba(255,255,255,0.25); filter: none; }
.ay-secici svg { width: 15px; height: 15px; }
[data-theme="dark"] .ay-secici { background: rgba(14,17,23,0.14); }
[data-theme="dark"] .ay-secici button:hover { background: rgba(14,17,23,0.16); }

/* İçgörü kartı (eski kayan şeridin yerine) */
.icgoru-kart {
    display: flex; align-items: center; gap: 11px; width: 100%; margin: 12px 0 0; padding: 11px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: none;
    color: var(--text); text-align: left; cursor: pointer; font-family: inherit; transition: border-color .15s;
}
.icgoru-kart:hover { border-color: var(--border-strong); filter: none; background: var(--surface); }
.icgoru-ikon {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--text-muted) 14%, transparent); color: var(--text-muted);
}
.icgoru-ikon svg { width: 16px; height: 16px; }
.icgoru-iyi .icgoru-ikon { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.icgoru-kotu .icgoru-ikon { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.icgoru-metin {
    flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: opacity .22s ease;
}
.icgoru-sayac { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.icgoru-kart.degisiyor .icgoru-metin { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .icgoru-metin { transition: none; } }

/* Bölüm başlıkları + metin düğmesi */
.bolum-baslik { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.bolum-baslik h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.metin-dugme {
    width: auto; background: none; border: none; box-shadow: none; padding: 4px 2px; cursor: pointer;
    color: var(--primary); font-size: 13px; font-weight: 700; font-family: inherit;
    display: inline-flex; align-items: center; gap: 4px;
}
.metin-dugme:hover { filter: none; background: none; text-decoration: underline; }
.metin-dugme svg { width: 15px; height: 15px; transition: transform .2s; }
.kat-diger-dugme { color: var(--text-muted); }

/* Kompakt kategori kartları: 3 sütun; dokununca hızlı ekleme */
.kat-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kat-izgara:empty { display: none; }
#kategoriGizliIzgara:not(:empty) { margin-top: 10px; }
.kat-kart {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 11px 11px 12px;
    cursor: pointer; display: flex; flex-direction: column; min-width: 0;
    transition: transform .12s, border-color .15s, box-shadow .15s;
}
.kat-kart:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.kat-kart:active { transform: scale(0.97); }
.kat-kart:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.kat-ust { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; }
.kat-ikon { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kat-ikon svg { width: 15px; height: 15px; }
.kat-menu {
    width: 26px; height: 26px; padding: 0; margin: -4px -4px 0 0; border: none; border-radius: 8px; box-shadow: none;
    background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.kat-menu:hover { background: var(--hover-bg); color: var(--text); filter: none; }
.kat-menu svg { width: 15px; height: 15px; }
.kat-ad { font-size: 12.5px; font-weight: 650; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kat-tutar { font-size: 14.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kat-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 8px; }
.kat-bar i { display: block; height: 100%; border-radius: 4px; }
.kat-alt { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kat-alt.uyari { color: var(--yemek); font-weight: 700; }
.kat-alt.asildi { color: var(--danger); font-weight: 700; }
@media (max-width: 340px) { .kat-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= v4 · Taksitlerim yenilemesi ================= */
.ozet-taksit { background: linear-gradient(135deg, #7c4fe0, #2e7dd1); box-shadow: 0 12px 28px -12px rgba(124,79,224,0.6); }
[data-theme="dark"] .ozet-taksit { background: linear-gradient(135deg, #b39dff, #6fb3f2); }

.yuk-kart { margin: 14px 0 0; padding: 16px 16px 12px; }
.yuk-baslik { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.yuk-baslik h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.yuk-baslik .bilgi-notu { margin: 0; font-size: 11.5px; }
.yuk-grafik { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; height: 150px; }
.yuk-sutun { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; outline: none; }
.yuk-deger {
    font-size: 9px; font-weight: 700; color: var(--text-muted); white-space: nowrap; height: 14px;
    opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums;
}
.yuk-sutun:hover .yuk-deger, .yuk-sutun:focus .yuk-deger, .yuk-sutun:has(.en) .yuk-deger { opacity: 1; }
.yuk-cubuk-alan { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.yuk-cubuk {
    width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px;
    background: color-mix(in srgb, var(--kart) 45%, transparent); transition: background .15s;
}
.yuk-cubuk.en, .yuk-sutun:hover .yuk-cubuk, .yuk-sutun:focus .yuk-cubuk { background: var(--kart); }
.yuk-ay-ad { font-size: 10.5px; color: var(--text-muted); margin-top: 6px; position: relative; font-weight: 600; }
.yuk-biten-nokta { position: absolute; top: -3px; right: -6px; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.yuk-lejant { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.yuk-lejant i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.bolum-baslik .bilgi-notu { margin: 0; font-size: 12px; }
.taksit-kart {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 14px 13px; margin-bottom: 10px;
}
.taksit-ust { display: flex; align-items: center; gap: 11px; }
.taksit-ust .kat-ikon { width: 36px; height: 36px; }
.taksit-ust .kat-ikon svg { width: 17px; height: 17px; }
.taksit-baslik { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.taksit-baslik strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taksit-baslik small { color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taksit-alt { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 12.5px; color: var(--text-muted); }
.taksit-alt b { color: var(--text); font-weight: 750; }
.taksit-rozet {
    display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
    background: var(--hover-bg); color: var(--text-muted);
}
.taksit-rozet.tamam { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

/* "⋯" işlem menüsü (details/summary: klavye ve ekran okuyucu dostu) */
.eylem-menu { position: relative; flex-shrink: 0; }
.eylem-menu summary {
    list-style: none; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.eylem-menu summary::-webkit-details-marker { display: none; }
.eylem-menu summary:hover, .eylem-menu[open] summary { background: var(--hover-bg); color: var(--text); }
.eylem-menu summary svg { width: 16px; height: 16px; }
.eylem-liste {
    position: absolute; right: 0; top: 34px; z-index: 30; min-width: 150px; padding: 5px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,.18));
    display: flex; flex-direction: column;
}
.eylem-liste button {
    width: 100%; text-align: left; background: none; border: none; box-shadow: none; color: var(--text);
    font-size: 13.5px; font-weight: 600; padding: 9px 11px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.eylem-liste button:hover { background: var(--hover-bg); filter: none; }
.eylem-liste button.tehlikeli { color: var(--danger); }
.yuk-cubuk.bos { height: 3px !important; background: var(--border) !important; border-radius: 3px; }

/* ================= v4 · Analiz yenilemesi ================= */
.aralik-secici { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hover-bg); border: 1px solid var(--border); }
.aralik-secici button {
    width: auto; border: none; box-shadow: none; background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; font-family: inherit;
}
.aralik-secici button:hover { color: var(--text); filter: none; background: transparent; }
.aralik-secici button.aktif { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,0.12); }

.analiz-kutular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.analiz-kutular:empty { display: none; }
.analiz-kutu {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px;
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.analiz-kutu small { font-size: 11.5px; font-weight: 700; color: var(--text-muted); letter-spacing: .02em; }
.analiz-kutu strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.analiz-kutu .kutu-alt { font-size: 11.5px; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analiz-kutu .kutu-alt.artti { color: var(--danger); }
.analiz-kutu .kutu-alt.azaldi { color: var(--success); }
.analiz-kutu.vurgulu { background: var(--brand-gradient); border-color: transparent; color: #fff; }
.analiz-kutu.vurgulu small, .analiz-kutu.vurgulu .kutu-alt { color: rgba(255,255,255,0.85); }
.analiz-kutu.vurgulu .kutu-alt.artti, .analiz-kutu.vurgulu .kutu-alt.azaldi { color: #fff; }
[data-theme="dark"] .analiz-kutu.vurgulu { color: #0e1117; }
[data-theme="dark"] .analiz-kutu.vurgulu small, [data-theme="dark"] .analiz-kutu.vurgulu .kutu-alt,
[data-theme="dark"] .analiz-kutu.vurgulu .kutu-alt.artti, [data-theme="dark"] .analiz-kutu.vurgulu .kutu-alt.azaldi { color: rgba(14,17,23,0.78); }

.analiz-kart { padding: 16px; }
.analiz-kart-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.analiz-kart-bas h3 { margin: 0; font-size: 14.5px; font-weight: 800; border: none; padding: 0; }
.analiz-kart-bas .bilgi-notu { margin: 0; font-size: 11.5px; }

.sutun-degisim { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.sutun-degisim.artti { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.sutun-degisim.azaldi { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.sutun-degisim.yeni { color: var(--primary); background: var(--primary-soft); }

/* ================= v4 · Profil yenilemesi ================= */
.profil-kart {
    display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.profil-kart::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-gradient);
}
.profil-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: #fff; font-size: 21px; font-weight: 800;
}
[data-theme="dark"] .profil-avatar { color: #0e1117; }
.profil-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profil-metin strong { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profil-metin span { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hane-kart { margin-top: 2px; }

/* Ayarlar listesi (iOS tarzı gruplu satırlar) */
.ayar-grup { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.ayar-grup:empty { display: none; }
.ayar-satir {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: var(--text); text-decoration: none;
    border-bottom: 1px solid var(--border); transition: background .12s; cursor: pointer;
}
.ayar-grup > .ayar-satir:last-child, .ayar-grup > .ayar-satir:has(+ .ayar-satir.hidden:last-child) { border-bottom: none; }
.ayar-satir:hover { background: var(--hover-bg); text-decoration: none; }
.ayar-ikon { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.ayar-ikon svg { width: 17px; height: 17px; }
.ayar-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ayar-metin strong { font-size: 14px; font-weight: 700; }
.ayar-metin small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ayar-ok { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }
.cikis-dugme {
    width: 100%; padding: 13px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
    color: var(--danger); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: none; font-family: inherit;
}
.cikis-dugme:hover { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); filter: none; }

/* Alt sayfa başlığı (geri + başlık + sağ eylem) */
.alt-sayfa-ust { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.alt-sayfa-ust h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
.geri-dugme {
    width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0;
}
.geri-dugme:hover { background: var(--hover-bg); text-decoration: none; }
.geri-dugme svg { width: 18px; height: 18px; }
/* Hane kartı: daha sıkı */
.hane-kart { padding: 16px; }
.hane-kart h2 { border: none; padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.hane-kart h3 { font-size: 13px; font-weight: 800; color: var(--text-muted); letter-spacing: .02em; margin: 16px 0 8px !important; }
.hane-kart .bilgi-notu { font-size: 12px; }
.hane-kart .sub-list-item { padding: 9px 12px; margin-bottom: 6px; }
.hane-kart #pfHaneAdi { margin-bottom: 10px !important; }

/* ============ Ajan portalı (ajanlar.html) ============ */
.aj-sayac { margin-left: auto; min-width: 22px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; text-align: center; }
.aj-sayac:empty { display: none; }
.aj-yeni { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: color-mix(in srgb, var(--yemek) 18%, transparent); color: var(--yemek); }
.aj-uyari {
    margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
    border: 1px solid color-mix(in srgb, var(--yemek) 45%, transparent); background: color-mix(in srgb, var(--yemek) 10%, var(--surface));
    display: flex; flex-direction: column; gap: 4px;
}
.aj-uyari ul { margin: 4px 0 0; padding-left: 18px; }
.aj-uyari li { margin: 2px 0; }
.aj-aciklama { margin: -8px 0 12px !important; }
.aj-oge { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
.aj-oge > summary { cursor: pointer; list-style: none; }
.aj-oge > summary::-webkit-details-marker { display: none; }
.aj-oge > summary::before { content: "›"; display: inline-block; margin-right: 8px; color: var(--text-muted); font-weight: 800; transition: transform .12s; }
.aj-oge[open] > summary::before { transform: rotate(90deg); }
.aj-oge-ust { display: flex; align-items: center; gap: 8px; }
.aj-baslik { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: var(--text); }
a.aj-baslik:hover { color: var(--primary); }
.aj-meta { color: var(--text-muted); font-size: 12px; margin-top: 4px; word-break: break-word; }
.aj-rozetler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aj-rozet { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.aj-rozet.iyi { background: var(--success-soft-bg); color: var(--success-soft-text); }
.aj-rozet.kotu { background: var(--danger-soft-bg); color: var(--danger-soft-text); }
.aj-rozet.bekle { background: color-mix(in srgb, var(--yemek) 15%, transparent); color: var(--yemek); }
.aj-rozet.soluk { background: var(--head-bg); color: var(--text-muted); }
.aj-eylemler { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.aj-eylemler input { flex: 1 1 200px; width: auto; }
.aj-detay { margin-top: 10px; }
.aj-detay > summary { cursor: pointer; font-size: 12.5px; color: var(--primary); font-weight: 600; }
.aj-ajan { padding: 12px 0; border-bottom: 1px solid var(--border); }
.aj-ajan:last-child { border-bottom: none; padding-bottom: 0; }
.aj-ajan:first-child { padding-top: 0; }
.aj-ajan-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.aj-yorumlar { margin-top: 12px; display: grid; gap: 8px; }
.aj-yorum { background: var(--head-bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.aj-yorum-yaz textarea {
    width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box;
}
.aj-yorum-yaz textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }

/* GitHub'ın işlediği markdown gövdesi */
.md-govde { margin-top: 10px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.md-govde h1, .md-govde h2, .md-govde h3, .md-govde h4 {
    display: block; border: none; padding: 0; margin: 16px 0 6px; font-weight: 750; letter-spacing: -0.01em;
}
.md-govde h1 { font-size: 17px; } .md-govde h2 { font-size: 15.5px; } .md-govde h3, .md-govde h4 { font-size: 14px; }
.md-govde > :first-child, .md-govde > .markdown-heading:first-child > * { margin-top: 0; }
.md-govde p, .md-govde ul, .md-govde ol, .md-govde table { margin: 0 0 10px; }
.md-govde ul, .md-govde ol { padding-left: 20px; }
.md-govde li { margin: 3px 0; }
.md-govde a { color: var(--primary); }
.md-govde img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; margin: 6px 0; }
.md-govde code { background: var(--head-bg); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.md-govde pre { background: var(--head-bg); padding: 10px; border-radius: 8px; overflow-x: auto; }
.md-govde pre code { padding: 0; background: none; }
.md-govde hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md-govde blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--border-strong); color: var(--text-muted); }
.md-govde table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 12.5px; }
.md-govde th, .md-govde td { border: 1px solid var(--border); padding: 6px 8px; vertical-align: top; }
.md-govde .anchor, .md-govde .octicon { display: none; }
