/* =====================================================
   MAKS İNŞAAT — Tasarım sistemi v4 (premium)
   Sıcak taş zemin, koyu espresso menü, çift çerçeveli
   kartlar, hap düğmeler. Tek vurgu: yanık turuncu.
   ===================================================== */

:root {
    /* Zemin ve yüzeyler */
    --bg:          #f2f0eb;
    --surface:     #ffffff;
    --surface-2:   #faf9f6;
    --tray:        rgba(255, 255, 255, .55);
    --hair:        rgba(31, 27, 21, .07);
    --hair-strong: rgba(31, 27, 21, .13);
    --line:        #ebe8e1;
    --line-strong: #dcd8cf;

    /* Metin */
    --ink:    #191713;
    --ink-2:  #46423b;
    --muted:  #7a756c;
    --faint:  #aaa59b;

    /* Koyu yüzey (menü, öne çıkan kart) */
    --night:   #17140f;
    --night-2: #221e18;
    --night-text: rgba(255, 255, 255, .62);

    /* Vurgu */
    --brand:      #d2591a;
    --brand-ink:  #a8460f;
    --brand-soft: #fbeee4;

    /* Para */
    --pos:      #1b7a47;
    --pos-soft: #e7f2eb;
    --neg:      #bd3b2f;
    --neg-soft: #faecea;

    /* Ölçüler */
    --sidebar-w:    252px;
    --gutter:       14px;
    --mobile-nav-h: 64px;

    --radius:    22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Gölgeler: geniş, yumuşak, sıcak tonlu */
    --shadow-xs: 0 1px 2px rgba(48, 36, 20, .05);
    --shadow-sm: 0 1px 2px rgba(48, 36, 20, .04), 0 4px 12px -4px rgba(48, 36, 20, .06);
    --shadow-md: 0 2px 4px rgba(48, 36, 20, .04), 0 18px 40px -16px rgba(48, 36, 20, .16);
    --shadow-lg: 0 30px 70px -20px rgba(30, 22, 12, .35);

    /* Çift çerçeve: dışta yarı saydam tepsi + kıl çizgisi, içte kart */
    --bezel: 0 0 0 1px var(--hair), 0 0 0 6px var(--tray), 0 0 0 7px var(--hair), var(--shadow-sm);
    --bezel-hover: 0 0 0 1px var(--hair-strong), 0 0 0 6px rgba(255,255,255,.8), 0 0 0 7px var(--hair-strong), var(--shadow-md);

    --ease: cubic-bezier(.32, .72, 0, 1);
    --ease-spring: cubic-bezier(.34, 1.36, .64, 1);

    --z-nav: 40;
    --z-sheet: 60;
    --z-modal: 80;
}

/* Sayfa içi eski stillerin kullandığı adlar */
:root {
    --white:    var(--surface);
    --gray-50:  var(--surface-2);
    --gray-100: #f1efea;
    --gray-200: var(--line);
    --gray-300: var(--line-strong);
    --gray-400: var(--faint);
    --gray-500: var(--muted);
    --gray-600: #5e5a52;
    --gray-700: var(--ink-2);
    --gray-800: #2c2924;
    --gray-900: var(--ink);
    --green: var(--pos); --green-dark: var(--pos); --green-bg: var(--pos-soft);
    --red: var(--neg); --red-dark: var(--neg); --red-bg: var(--neg-soft);
    --blue: var(--ink-2); --blue-bg: var(--gray-100);
    --purple: var(--ink-2); --purple-bg: var(--gray-100);
    --brand-dark: var(--brand-ink); --brand-light: var(--brand-soft);
    --danger: var(--neg); --success: var(--pos); --info: var(--ink-2); --warning: var(--brand);
    --text-primary: var(--ink); --text-secondary: var(--ink-2); --text-muted: var(--muted);
    --shadow: var(--shadow-sm);
}

/* ── Temel ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14.5px; line-height: 1.5; color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 1, "ss01" 1;
    min-height: 100dvh;
}
/* Kâğıt dokusu: sabit, tıklanamaz katman */
body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
    opacity: .035; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
::selection { background: rgba(210, 89, 26, .18); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.num, .stat-value, .summary-value, .amount-income, .amount-expense, .money { font-variant-numeric: tabular-nums; }

/* Küçük üst etiket */
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ── Giriş animasyonu ── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-content > * { animation: rise .7s var(--ease) both; }
.page-content > *:nth-child(2) { animation-delay: .05s; }
.page-content > *:nth-child(3) { animation-delay: .1s; }
.page-content > *:nth-child(4) { animation-delay: .15s; }
.page-content > *:nth-child(5) { animation-delay: .2s; }
.page-content > *:nth-child(n+6) { animation-delay: .25s; }

/* =====================================================
   İSKELET
   ===================================================== */

.sidebar {
    position: fixed; top: var(--gutter); bottom: var(--gutter); left: var(--gutter);
    width: var(--sidebar-w);
    background: var(--night);
    background-image: radial-gradient(120% 60% at 0% 0%, rgba(210, 89, 26, .16), transparent 60%);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-lg);
    display: flex; flex-direction: column;
    z-index: var(--z-nav); color: #fff; overflow: hidden;
}

.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 20px; }
.brand-icon {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(160deg, #e2702f, var(--brand-ink));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -6px rgba(210, 89, 26, .7);
    color: #fff; display: grid; place-items: center; font-size: 17px;
}
.sidebar-brand h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.sidebar-brand span { font-size: 12px; color: var(--night-text); }

.sidebar-nav { flex: 1; padding: 8px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-section-title {
    font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.32); padding: 20px 12px 8px;
}

.nav-item {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    color: var(--night-text); font-weight: 500; font-size: 14px;
    transition: background .35s var(--ease), color .35s var(--ease);
    border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
}
.nav-item i { font-size: 16px; opacity: .8; transition: transform .45s var(--ease); }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:hover i { transform: translateX(1px); }
.nav-item.active { background: rgba(255,255,255,.09); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.nav-item.active::after {
    content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 10px rgba(210, 89, 26, .9);
}
.nav-item.danger { color: #f0a89f; }

.sidebar-footer { padding: 12px; margin: 0 8px 8px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 2px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; font-size: 12.5px; color: var(--night-text); }
.sidebar-user .avatar {
    width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.1);
    color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; text-transform: uppercase;
}
.sidebar-user strong { color: #fff; font-weight: 600; display: block; font-size: 13.5px; }

.main-content {
    margin-left: calc(var(--sidebar-w) + var(--gutter));
    min-height: 100dvh; display: flex; flex-direction: column; position: relative; z-index: 2;
}

.topbar {
    position: sticky; top: 0; z-index: calc(var(--z-nav) - 1);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 40px 10px;
}
.topbar::before {
    content: ""; position: absolute; inset: 0 0 -16px; z-index: -1; pointer-events: none;
    background: linear-gradient(var(--bg) 55%, rgba(242, 240, 235, 0));
}
.topbar-date { font-size: 13px; color: var(--muted); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar h1, .topbar-user { display: none; }

.page-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px 40px 72px; flex: 1; }

/* ── Mobil ── */
.mobile-nav, .mobile-topbar { display: none; }

.mobile-nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-nav);
    background: rgba(23, 20, 15, .86);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -12px rgba(23, 20, 15, .55);
}
.mobile-nav-inner { height: var(--mobile-nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.55);
    background: none; border: 0; cursor: pointer; padding: 6px 0;
    -webkit-tap-highlight-color: transparent; transition: color .3s var(--ease);
}
.mobile-nav-item i { font-size: 19px; }
.mobile-nav-item.active { color: #fff; }
.mobile-nav-item.active i { color: #f08a4f; }
.mobile-add {
    justify-self: center; width: 48px; height: 48px; border-radius: 16px;
    background: linear-gradient(160deg, #e2702f, var(--brand-ink)); color: #fff; border: 0; cursor: pointer;
    display: grid; place-items: center; font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -6px rgba(210, 89, 26, .8);
    transition: transform .4s var(--ease-spring);
}
.mobile-add:active { transform: scale(.92); }

.sheet-overlay {
    position: fixed; inset: 0; z-index: var(--z-sheet);
    background: rgba(23, 20, 15, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.sheet {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: calc(var(--z-sheet) + 1);
    background: var(--surface); border-radius: 26px;
    padding: 10px 14px 16px; box-shadow: var(--shadow-lg);
    transform: translateY(calc(100% + 24px)); transition: transform .55s var(--ease);
    max-height: 85dvh; overflow-y: auto;
}
.sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet h3 { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 6px 12px; }
.sheet.open { transform: translateY(0); }
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet.open .sheet-action, .sheet.open .sheet-list > * { animation: rise .5s var(--ease) both; }
.sheet.open > div > *:nth-child(2) { animation-delay: .04s; }
.sheet.open > div > *:nth-child(3) { animation-delay: .08s; }
.sheet.open > div > *:nth-child(4) { animation-delay: .12s; }
.sheet.open > div > *:nth-child(n+5) { animation-delay: .16s; }

.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-action {
    display: flex; flex-direction: column; gap: 14px; padding: 16px;
    border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair);
    font-weight: 600; font-size: 15px;
}
.sheet-action i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--gray-100); }
.sheet-action small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sheet-action.pos i { color: var(--pos); background: var(--pos-soft); }
.sheet-action.neg i { color: var(--neg); background: var(--neg-soft); }
.sheet-action.brand i { color: var(--brand); background: var(--brand-soft); }
.sheet-list { display: flex; flex-direction: column; }
.sheet-list .nav-item { color: var(--ink-2); padding: 14px 12px; font-size: 15px; }
.sheet-list .nav-item:hover, .sheet-list .nav-item.active { background: var(--gray-100); color: var(--ink); box-shadow: none; }
.sheet-list .nav-item.active::after { right: 14px; }
.sheet-list .nav-item.danger { color: var(--neg); }

/* =====================================================
   SAYFA ÖĞELERİ
   ===================================================== */

.page-title {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin: 18px 0 30px;
}
.page-title h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.035em; display: flex; align-items: center; gap: 10px; }
.page-title h2 i { display: none; }
.page-title p, .page-sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 60ch; }
.page-title .btn-group { flex-wrap: wrap; }

.back-link {
    display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
    font-size: 13px; font-weight: 500; margin-top: 10px; transition: color .3s var(--ease);
}
.back-link i { transition: transform .4s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link:hover i { transform: translateX(-3px); }

/* ── Yüzeyler (çift çerçeve) ── */
.card, .chart-card, .table-card, .form-card, .filter-bar, .panel, .stat-card, .summary-bar, .proje-card, .quick-action {
    background: var(--surface);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--bezel);
}
.card { padding: 22px 24px; }
.panel { overflow: hidden; }
.panel-head, .table-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 20px 24px 16px;
}
.panel-head h3, .table-header h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.table-header h3 i { font-size: 15px; }
.link, .panel-head a.link {
    font-size: 13px; color: var(--ink-2); font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; background: var(--gray-100);
    transition: background .3s var(--ease), color .3s var(--ease);
}
.link i { transition: transform .4s var(--ease); }
.link:hover { background: var(--ink); color: #fff; }
.link:hover i { transform: translateX(2px); }
p .link { padding: 2px 10px; }
.panel-body { padding: 4px 24px 24px; }

/* ── Öne çıkan bakiye bloğu ── */
.hero-balance {
    position: relative; overflow: hidden;
    background: var(--night); color: #fff;
    border-radius: 28px; padding: 30px 32px;
    box-shadow: 0 0 0 6px var(--tray), 0 0 0 7px var(--hair), var(--shadow-lg);
    margin-bottom: 30px;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: end;
}
.hero-balance::before {
    content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -260px; pointer-events: none;
    background: radial-gradient(circle, rgba(210, 89, 26, .42), transparent 62%);
}
.hero-balance::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.hero-balance > * { position: relative; z-index: 1; }
.hero-balance .eyebrow { color: rgba(255,255,255,.55); }
.hero-amount { font-size: 52px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.hero-amount small { font-size: .5em; font-weight: 500; color: rgba(255,255,255,.5); margin-left: 4px; letter-spacing: 0; }
.hero-note { color: rgba(255,255,255,.55); font-size: 13.5px; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-split > div {
    padding: 14px 16px; border-radius: 16px;
    background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-split .k { font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 7px; }
.hero-split .k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.hero-split .in .k::before { background: #4fc283; }
.hero-split .out .k::before { background: #f07a6c; }
.hero-split .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hero-split .s { font-size: 12px; color: rgba(255,255,255,.42); margin-top: 2px; }
.hero-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }

/* ── Özet rakamlar ── */
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat-card .stat-icon { display: none; }
.stat-card .stat-label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat-card .stat-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.stat-card.income .stat-label::before { background: var(--pos); }
.stat-card.expense .stat-label::before { background: var(--neg); }
.stat-card.balance .stat-label::before { background: var(--brand); }
.stat-card .stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.stat-card .stat-sub { font-size: 12.5px; color: var(--muted); }
.stat-card .stat-sub i { display: none; }
.stat-card.hero {
    position: relative; overflow: hidden; background: var(--night); color: #fff;
    box-shadow: 0 0 0 6px var(--tray), 0 0 0 7px var(--hair), var(--shadow-md);
}
.stat-card.hero::before {
    content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -170px; pointer-events: none;
    background: radial-gradient(circle, rgba(210, 89, 26, .45), transparent 62%);
}
.stat-card.hero > * { position: relative; }
.stat-card.hero .stat-label, .stat-card.hero .stat-sub { color: rgba(255,255,255,.58); }
.stat-card.hero .stat-label::before { background: var(--brand); box-shadow: 0 0 10px rgba(210,89,26,.9); }
.stat-card.hero .stat-value { font-size: 34px; color: #fff !important; }

/* ── Hızlı işlemler ── */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.quick-action {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.quick-action:hover { box-shadow: var(--bezel-hover); transform: translateY(-2px); }
.quick-action:active { transform: scale(.985); }
.quick-action .qa-icon { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 19px; }
.quick-action.pos .qa-icon { background: var(--pos-soft); color: var(--pos); }
.quick-action.neg .qa-icon { background: var(--neg-soft); color: var(--neg); }
.quick-action.brand .qa-icon { background: var(--brand-soft); color: var(--brand); }
.quick-action strong { display: block; font-size: 15px; font-weight: 600; }
.quick-action span { font-size: 12.5px; color: var(--muted); }
.quick-action .bi-chevron-right { margin-left: auto; color: var(--faint); transition: transform .5s var(--ease); }
.quick-action:hover .bi-chevron-right { transform: translateX(3px); color: var(--ink); }

/* ── Grafik ── */
.chart-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-bottom: 30px; }
.chart-card { padding: 22px 24px 24px; }
.chart-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-card h3 i { display: none; }
.chart-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.chart-legend .l-pos::before { background: var(--pos); }
.chart-legend .l-neg::before { background: var(--neg); }

.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13.5px; }
.bar-row .bar-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--gray-100); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #d9695c, var(--neg)); transform-origin: left; animation: grow 1s var(--ease) both .3s; }
@keyframes grow { from { transform: scaleX(0); } }

/* ── Hareket listesi ── */
.activity { display: flex; flex-direction: column; padding: 0 10px 10px; }
.activity-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
    padding: 12px 14px; border-radius: 14px;
    transition: background .35s var(--ease);
}
.activity-row:hover { background: var(--surface-2); }
.activity-dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; }
.activity-row.pos .activity-dot { background: var(--pos-soft); color: var(--pos); }
.activity-row.neg .activity-dot { background: var(--neg-soft); color: var(--neg); }
.activity-main { min-width: 0; }
.activity-main strong { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-main span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.activity-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.activity-amt small { display: block; font-size: 12px; font-weight: 400; color: var(--faint); }
.activity-row.pos .activity-amt { color: var(--pos); }
.activity-row.neg .activity-amt { color: var(--neg); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.stack-col { display: flex; flex-direction: column; gap: 20px; }

/* ── Tablolar ── */
.table-card { overflow: hidden; }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--faint); padding: 14px 20px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table tbody td { padding: 15px 20px; border-bottom: 1px solid var(--gray-100); font-size: 14px; vertical-align: middle; }
.data-table tbody tr { transition: background .3s var(--ease); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; }
.data-table .cell-main strong { font-weight: 550; display: block; }
.data-table .cell-main span { font-size: 12.5px; color: var(--muted); display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .cell-muted { color: var(--muted); }
.data-table .cell-actions { width: 1%; white-space: nowrap; text-align: right; }
.data-table .cell-actions .btn-group { opacity: .55; transition: opacity .3s var(--ease); }
.data-table tr:hover .cell-actions .btn-group { opacity: 1; }

.amount-income  { color: var(--pos); font-weight: 600; white-space: nowrap; }
.amount-expense { color: var(--neg); font-weight: 600; white-space: nowrap; }

/* ── Rozetler ── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
    background: var(--gray-100); color: var(--ink-2);
}
.badge-income  { background: var(--pos-soft); color: var(--pos); }
.badge-expense { background: var(--neg-soft); color: var(--neg); }
.badge-info, .badge-purple { background: var(--gray-100); color: var(--ink-2); }
.badge-warning { background: var(--brand-soft); color: var(--brand-ink); }
.badge-success { background: var(--pos-soft); color: var(--pos); }

/* ── Formlar ── */
.form-card { padding: 32px; max-width: 760px; }
.form-card.narrow { max-width: 520px; }

.form-section-title {
    font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
    margin: 28px 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title i { display: none; }

.form-group { margin-bottom: 20px; }
.form-group label, .field-label { display: block; font-size: 13.5px; font-weight: 550; color: var(--ink-2); margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--faint); }

.form-control {
    width: 100%; height: 48px; padding: 0 16px;
    font: inherit; font-size: 15px; color: var(--ink);
    background: var(--surface-2); border: 0; border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
    -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: var(--faint); }
.form-control:hover { box-shadow: inset 0 0 0 1px #c9c4b9; }
.form-control:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(210, 89, 26, .12); }
.form-control.input-validation-error { box-shadow: inset 0 0 0 1.5px var(--neg); }
select.form-control {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%237a756c'%3E%3Cpath d='M1.6 5.1a.75.75 0 0 1 1.06 0L8 10.4l5.34-5.3a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 6.16a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
textarea.form-control { height: auto; min-height: 96px; padding: 13px 16px; resize: vertical; }
input[type="date"].form-control { cursor: pointer; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.form-text  { display: block; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.validation-error, .field-validation-error { display: block; font-size: 12.5px; color: var(--neg); margin-top: 7px; font-weight: 500; }
.validation-summary-errors, .form-errors { background: var(--neg-soft); color: var(--neg); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; font-weight: 500; margin-bottom: 20px; }
.validation-summary-errors ul { list-style: none; }
.validation-summary-valid { display: none; }

.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Büyük tutar alanı */
.amount-field { position: relative; }
.amount-field .form-control {
    height: 76px; font-size: 36px; font-weight: 600; letter-spacing: -0.035em;
    padding: 0 60px 0 20px; border-radius: 18px; font-variant-numeric: tabular-nums;
}
.amount-field .currency { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--faint); font-weight: 500; pointer-events: none; }
.amount-field.pos .form-control:focus { box-shadow: inset 0 0 0 1.5px var(--pos), 0 0 0 4px rgba(27, 122, 71, .12); }
.amount-field.neg .form-control:focus { box-shadow: inset 0 0 0 1.5px var(--neg), 0 0 0 4px rgba(189, 59, 47, .12); }

/* Çipler */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    position: relative; display: inline-flex; align-items: center;
    height: 38px; padding: 0 16px; border-radius: 999px;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
    font-size: 13.5px; font-weight: 500; color: var(--ink-2);
    cursor: pointer; user-select: none; border: 0;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), transform .2s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px #c3bdb1; background: var(--surface); }
.chip:active { transform: scale(.97); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.selected { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink), 0 6px 14px -8px rgba(23,20,15,.6); }
.chip:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips.small .chip { height: 32px; padding: 0 13px; font-size: 12.5px; }
.chips + .form-control, .form-control + .chips, .autocomplete-wrapper + .chips { margin-top: 12px; }

/* Açılır ek bilgiler */
details.more { margin-top: 6px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
details.more > summary {
    list-style: none; cursor: pointer; padding: 16px 18px;
    font-size: 14px; font-weight: 550; color: var(--ink-2);
    display: flex; align-items: center; gap: 10px; border-radius: 18px;
    transition: background .3s var(--ease);
}
details.more > summary:hover { background: var(--gray-100); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .bi-chevron-down {
    margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
    transition: transform .5s var(--ease);
}
details.more[open] > summary .bi-chevron-down { transform: rotate(180deg); }
details.more > summary span { font-weight: 400; color: var(--faint); font-size: 13px; }
details.more .more-body { padding: 6px 18px 4px; }
details.more[open] .more-body { animation: rise .5s var(--ease) both; }

/* Otomatik tamamlama */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
    background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--hair), var(--shadow-md);
    max-height: 240px; overflow-y: auto; padding: 6px;
}
.autocomplete-list.show { display: block; animation: rise .3s var(--ease) both; }
.autocomplete-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.autocomplete-item:hover { background: var(--gray-100); }

/* ── Düğmeler (hap) ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px;
    font: inherit; font-size: 14px; font-weight: 550; white-space: nowrap;
    border: 0; cursor: pointer;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), transform .25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 15px; transition: transform .45s var(--ease); }

/* Düğme içinde yuvarlak ikon */
.btn .ic {
    width: 28px; height: 28px; margin-right: -10px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255,255,255,.14);
    transition: transform .5s var(--ease);
}
.btn .ic i { font-size: 13px; }
.btn:hover .ic { transform: translateX(2px) scale(1.06); }
.btn-secondary .ic, .btn-ghost .ic { background: var(--gray-100); }

.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px -10px rgba(23,20,15,.7); }
.btn-primary:hover { background: #2c2822; }

.btn-secondary { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xs); }
.btn-secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #c3bdb1, var(--shadow-sm); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(31,27,21,.06); color: var(--ink); }

.btn-danger { background: var(--surface); color: var(--neg); box-shadow: inset 0 0 0 1px #efd0cb; }
.btn-danger:hover { background: var(--neg-soft); box-shadow: inset 0 0 0 1px var(--neg); }
.btn-danger.solid, .modal-actions .btn-danger { background: var(--neg); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 18px -10px rgba(189,59,47,.8); }
.btn-danger.solid:hover, .modal-actions .btn-danger:hover { background: #a63328; }

.btn-success { background: var(--surface); color: var(--pos); box-shadow: inset 0 0 0 1px #c8e1d2; }
.btn-success:hover { background: var(--pos-soft); box-shadow: inset 0 0 0 1px var(--pos); }

.btn-pos { background: var(--pos); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -10px rgba(27,122,71,.9); }
.btn-pos:hover { background: #166a3d; }
.btn-neg { background: var(--neg); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -10px rgba(189,59,47,.9); }
.btn-neg:hover { background: #a63328; }

/* Koyu zemin üzerinde */
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.btn-light:hover { background: #f4f1ec; }
.btn-light .ic { background: var(--gray-100); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-glass:hover { background: rgba(255,255,255,.14); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 8px; align-items: center; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.cell-actions .btn-sm { width: 36px; padding: 0; }

/* ── Uyarılar ── */
.alert {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px;
    font-size: 14px; font-weight: 500; margin: 6px 0 20px; animation: rise .5s var(--ease) both;
}
.alert-success { background: var(--pos-soft); color: var(--pos); box-shadow: inset 0 0 0 1px rgba(27,122,71,.12); }
.alert-danger  { background: var(--neg-soft); color: var(--neg); box-shadow: inset 0 0 0 1px rgba(189,59,47,.12); }

/* ── Filtre ── */
.filter-bar { padding: 22px 24px; margin-bottom: 30px; }
.filter-bar h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; align-items: end; }
.filter-grid .form-group { margin-bottom: 16px; }

/* ── Özet şeridi ── */
.summary-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 30px; overflow: hidden; }
.summary-item { padding: 18px 24px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item .summary-label { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.summary-item .summary-value { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }

/* ── Projeler ── */
.proje-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.proje-card {
    display: flex; flex-direction: column; padding: 22px 24px; gap: 6px;
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.proje-card:hover { box-shadow: var(--bezel-hover); transform: translateY(-3px); }
.proje-card .proje-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 2px; }
.proje-card .proje-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.proje-card .proje-address, .proje-card .proje-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.proje-card .proje-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    margin-top: auto; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gray-100);
}
.proje-card .proje-head + .proje-stats { margin-top: 12px; }
.proje-card .proje-address + .proje-stats, .proje-card .proje-meta + .proje-stats { margin-top: 16px; }
.proje-card .proje-stat-label { font-size: 11.5px; color: var(--muted); }
.proje-card .proje-stat-value { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.proje-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
    white-space: nowrap; flex-shrink: 0;
}
.proje-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.proje-status.devam      { background: var(--brand-soft); color: var(--brand-ink); }
.proje-status.devam::before { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.proje-status.tamamlandi { background: var(--pos-soft); color: var(--pos); }
.proje-status.beklemede  { background: var(--gray-100); color: var(--muted); }

.proje-mini { display: flex; flex-direction: column; padding: 0 10px 10px; }
.proje-mini a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; transition: background .35s var(--ease); }
.proje-mini a:hover { background: var(--surface-2); }
.proje-mini a i { transition: transform .45s var(--ease); }
.proje-mini a:hover i { transform: translateX(3px); }
.proje-mini strong { font-weight: 550; display: block; }
.proje-mini span { font-size: 12.5px; color: var(--muted); }

.info-strip { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13.5px; color: var(--muted); margin: -16px 0 26px; }
.info-strip span { display: inline-flex; align-items: center; gap: 6px; }

/* Sekmeler: hap şeklinde segment */
.tabs {
    display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 20px;
    background: rgba(31,27,21,.05); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair);
    max-width: 100%; overflow-x: auto;
}
.tab {
    padding: 8px 16px; font-size: 13.5px; font-weight: 550; color: var(--muted);
    border: 0; background: none; cursor: pointer; border-radius: 999px; white-space: nowrap;
    transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); }
.tab .count { font-size: 12px; color: var(--faint); margin-left: 4px; font-weight: 500; }
.tab-panel:not([hidden]) { animation: rise .5s var(--ease) both; }

/* ── Boş durum ── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state > i {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 6px var(--gray-100);
    color: var(--muted); font-size: 22px; margin-bottom: 18px;
}
.empty-state h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.015em; }
.empty-state p { font-size: 14px; max-width: 380px; margin: 0 auto 18px; }

/* ── Onay penceresi ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: var(--z-modal);
    background: rgba(23, 20, 15, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.active { display: flex; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box {
    background: var(--surface); border-radius: 26px; padding: 28px;
    width: 100%; max-width: 410px; box-shadow: 0 0 0 6px rgba(255,255,255,.2), var(--shadow-lg);
    animation: modalIn .5s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-box .modal-icon {
    width: 48px; height: 48px; border-radius: 16px; background: var(--neg-soft); color: var(--neg);
    display: grid; place-items: center; font-size: 20px; margin-bottom: 18px; box-shadow: 0 0 0 6px #fdf5f4;
}
.modal-box h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.modal-box p strong { color: var(--ink); font-weight: 600; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions form { display: inline; }

/* ── DataTables uyumu ── */
.dataTables_wrapper { font-size: 13.5px; color: var(--muted); }
.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length { padding: 18px 20px 10px; }
.dataTables_wrapper .dataTables_filter { float: none; text-align: left; }
.dataTables_wrapper .dataTables_length { float: right; }
.dataTables_wrapper .dataTables_filter label { display: block; width: 100%; max-width: 380px; font-size: 0; }
.dataTables_wrapper .dataTables_filter input {
    width: 100%; margin: 0 !important; height: 42px; padding: 0 16px 0 40px;
    border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong);
    font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 16 16' fill='%23aaa59b'%3E%3Cpath d='M11.74 10.34a6.5 6.5 0 1 0-1.4 1.4l3.85 3.85a1 1 0 0 0 1.41-1.41l-3.86-3.84zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 15px center;
    transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.dataTables_wrapper .dataTables_filter input:focus { outline: none; background-color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(210, 89, 26, .12); }
.dataTables_wrapper .dataTables_length select { height: 36px; border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; padding: 0 10px; font: inherit; background: var(--surface-2); }
.dataTables_wrapper .dataTables_info { padding: 16px 20px; font-size: 13px; }
.dataTables_wrapper .dataTables_paginate { padding: 12px 14px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 999px !important; border: 0 !important; padding: 6px 12px !important; font-size: 13px; color: var(--ink-2) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--gray-100) !important; color: var(--ink) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--ink) !important; color: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: var(--faint) !important; }
table.dataTable thead th, table.dataTable thead td { border-bottom: 1px solid var(--line) !important; }
table.dataTable.no-footer { border-bottom: 1px solid var(--line) !important; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { background-image: none !important; }
table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting:after { opacity: .2; }

/* ── Giriş sayfası ── */
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; padding: 14px; gap: 14px; position: relative; z-index: 2; }
.login-aside {
    position: relative; overflow: hidden; border-radius: 28px;
    background: var(--night); color: #fff; padding: 44px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: var(--shadow-lg);
}
.login-aside::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 75%, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 75%, #000 15%, transparent 72%);
}
.login-aside::after {
    content: ""; position: absolute; width: 640px; height: 640px; right: -220px; bottom: -260px;
    background: radial-gradient(circle, rgba(210, 89, 26, .55), transparent 64%);
}
.login-aside > * { position: relative; z-index: 1; }
.login-aside .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.login-aside .eyebrow { color: rgba(255,255,255,.5); margin-bottom: 18px; }
.login-aside h2 { font-size: 46px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; max-width: 480px; }
.login-aside p { color: rgba(255,255,255,.58); font-size: 15.5px; max-width: 400px; margin-top: 18px; line-height: 1.6; }
.login-aside small { color: rgba(255,255,255,.38); font-size: 12.5px; }

.login-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; animation: rise .8s var(--ease) both; }
.login-logo { margin-bottom: 32px; }
.login-logo .logo-icon { display: none; }
.login-logo h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.login-logo p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.login-error { display: flex; align-items: center; gap: 8px; background: var(--neg-soft); color: var(--neg); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 50px; }
.password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; cursor: pointer;
    color: var(--faint); font-size: 17px; display: grid; place-items: center; transition: background .3s var(--ease), color .3s var(--ease);
}
.password-toggle:hover { color: var(--ink-2); background: var(--gray-100); }
.login-card .form-control { height: 52px; }
.login-card .btn { height: 54px; font-size: 15px; margin-top: 10px; justify-content: space-between; padding: 0 10px 0 24px; }
.login-card .btn .ic { width: 36px; height: 36px; margin-right: 0; }
.login-foot { margin-top: 28px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ── Yardımcılar ── */
.text-green, .text-success { color: var(--pos) !important; }
.text-red, .text-danger { color: var(--neg) !important; }
.text-brand { color: var(--brand) !important; }
.text-blue { color: var(--ink-2) !important; }
.text-muted { color: var(--muted) !important; }
.text-secondary { color: var(--ink-2) !important; }
.fw-bold { font-weight: 600; }
.fw-black { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 30px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.only-mobile { display: none !important; }
.bakiye-pos { color: var(--pos); }
.bakiye-neg { color: var(--neg); }

/* =====================================================
   DUYARLI
   ===================================================== */
@media (max-width: 1080px) {
    .chart-grid, .two-col { grid-template-columns: 1fr; }
    .hero-balance { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
    .sidebar, .topbar { display: none; }
    .main-content { margin-left: 0; padding-bottom: calc(var(--mobile-nav-h) + 24px + env(safe-area-inset-bottom)); }
    .mobile-nav { display: block; }
    .mobile-topbar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: sticky; top: 0; z-index: calc(var(--z-nav) - 1); padding: 14px 16px 8px;
    }
    .mobile-topbar::before { content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; background: linear-gradient(var(--bg) 60%, rgba(242,240,235,0)); pointer-events: none; }
    .mobile-topbar .brand-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 11px; }
    .mobile-topbar .m-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; min-width: 0; }
    .mobile-topbar .m-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .page-content { padding: 4px 16px 32px; }
    .only-mobile { display: initial !important; }
    .hide-mobile { display: none !important; }
}

@media (max-width: 760px) {
    .login-page { grid-template-columns: 1fr; padding: 0; }
    .login-aside { display: none; }
    .quick-actions { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
    :root { --radius: 20px; }
    body { font-size: 14px; }
    .page-title { margin: 8px 0 22px; }
    .page-title h2 { font-size: 26px; }
    .page-title > .btn, .page-title > .btn-group { width: 100%; }
    .page-title > .btn-group .btn { flex: 1; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .form-card { padding: 22px 18px; }
    .form-actions {
        position: sticky; bottom: calc(var(--mobile-nav-h) + 18px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        margin: 22px -10px -12px; padding: 10px; border-radius: 999px; border-top: 0;
        box-shadow: 0 0 0 1px var(--hair), var(--shadow-md);
    }
    .form-actions .btn { flex: 1; height: 48px; }
    .stat-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-card { padding: 16px 16px 18px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card.hero { grid-column: 1 / -1; }
    .stat-card.hero .stat-value { font-size: 30px; }
    .hero-balance { padding: 24px 20px; border-radius: 24px; }
    .hero-amount { font-size: 40px; }
    .hero-split .v { font-size: 17px; }
    .hero-actions .btn { flex: 1; }
    .summary-bar { grid-template-columns: 1fr 1fr; }
    .summary-item { padding: 16px 18px; }
    .summary-item:nth-child(2n) { border-right: 0; }
    .summary-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .activity, .proje-mini { padding: 0 6px 6px; }
    .activity-row { padding: 11px 10px; gap: 12px; }
    .panel-head, .table-header { padding: 18px 18px 12px; }
    .panel-body { padding: 4px 18px 20px; }
    .proje-grid { grid-template-columns: 1fr; }
    .hide-sm { display: none; }

    .data-table.stack thead { display: none; }
    .data-table.stack, .data-table.stack tbody { display: block; }
    .data-table.stack tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); }
    .data-table.stack tbody td { display: block; padding: 0; border: 0; font-size: 13px; }
    .data-table.stack td.cell-main { grid-column: 1; grid-row: 1; }
    .data-table.stack td.num { grid-column: 2; grid-row: 1; font-size: 15px; }
    .data-table.stack td.cell-meta { grid-column: 1; color: var(--muted); }
    .data-table.stack td.cell-actions { grid-column: 2; grid-row: 2 / span 3; align-self: end; }
    .data-table.stack td.cell-actions .btn-group { opacity: 1; }
    .data-table.stack td.hide-stack { display: none; }
    .data-table.stack td.cell-meta::before { content: attr(data-label) ": "; color: var(--faint); }
    .dataTables_wrapper .dataTables_length { display: none; }
    .dataTables_wrapper .dataTables_filter { padding: 14px 14px 8px; }
    .dataTables_wrapper .dataTables_filter label { max-width: none; }
    .dataTables_wrapper .dataTables_info { padding: 10px 18px 0; }
    .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; padding: 8px 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    body::after, .sidebar, .mobile-nav, .mobile-topbar, .topbar, .sheet, .sheet-overlay, .btn, .alert { display: none !important; }
    .main-content { margin: 0 !important; }
    body { background: #fff; }
    .page-content > * { animation: none !important; }
}

/* ── Daireler ── */
.daire-durum {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.daire-durum::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.daire-durum.satilik { background: var(--pos-soft); color: var(--pos); }
.daire-durum.rezerve { background: #fbf1d9; color: #946110; }
.daire-durum.satildi { background: var(--ink); color: #fff; }

.daire-ozet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.daire-ozet .chips .chip .n { font-variant-numeric: tabular-nums; opacity: .55; margin-left: 6px; }
.daire-ozet .chip.selected .n { opacity: .7; }

.daire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.daire-blok { margin-bottom: 26px; }
.daire-blok > h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px 4px; letter-spacing: -0.005em; }
.daire-card {
    position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 148px;
    padding: 16px 16px 14px; border-radius: var(--radius-md); background: var(--surface);
    box-shadow: var(--bezel); color: inherit;
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.daire-card:hover { box-shadow: var(--bezel-hover); transform: translateY(-3px); }
.daire-card:active { transform: translateY(-1px) scale(.99); }
.daire-card::after {
    content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 4px 4px;
    background: var(--pos);
}
.daire-card.rezerve::after { background: #d99a1e; }
.daire-card.satildi::after { background: var(--ink); }
.daire-card .dc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.daire-card .dc-no { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.daire-card .dc-no small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 3px; }
.daire-card .dc-meta { font-size: 12.5px; color: var(--muted); }
.daire-card .dc-foot { margin-top: auto; padding-top: 10px; font-size: 13px; }
.daire-card .dc-foot strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.daire-card .dc-foot .dc-alici { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.dc-bar { height: 5px; border-radius: 99px; background: var(--gray-100); overflow: hidden; margin-top: 7px; }
.dc-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--pos); transform-origin: left; animation: barGrow .9s var(--ease) both; }
@keyframes barGrow { from { transform: scaleX(0); } }
.daire-card.ekle {
    align-items: center; justify-content: center; text-align: center; gap: 8px;
    background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--muted); font-weight: 500; font-size: 14px;
}
.daire-card.ekle::after { display: none; }
.daire-card.ekle i { font-size: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .5s var(--ease-spring); }
.daire-card.ekle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.daire-card.ekle:hover i { transform: rotate(90deg) scale(1.06); }

.daire-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 26px; }
.daire-kimlik { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.daire-kimlik .dk-no { font-size: 40px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.daire-kimlik .dk-no small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; margin-right: 6px; }
.daire-ozellik { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gray-100); }
.daire-ozellik span { display: block; font-size: 11.5px; color: var(--muted); }
.daire-ozellik strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.daire-satis { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; background: var(--night); color: #fff; }
.daire-satis .ds-label { font-size: 12.5px; color: var(--night-text); }
.daire-satis .ds-tutar { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.daire-satis .ds-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.09); }
.daire-satis .ds-split strong { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.daire-satis .dc-bar { background: rgba(255,255,255,.12); height: 6px; }
.daire-satis .dc-bar > span { background: #5fd394; }
.daire-satis .btn-group { margin-top: auto; }
.daire-satis.bos { background: var(--surface); color: var(--ink); align-items: flex-start; justify-content: center; }
.daire-satis.bos p { color: var(--muted); font-size: 14px; max-width: 34ch; }

.info-strip.daire-link { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.info-strip.daire-link strong { font-weight: 600; }

.durum-secim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.durum-secim label {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin: 0; border-radius: 14px; cursor: pointer; position: relative;
    box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.durum-secim label strong { font-weight: 600; font-size: 14.5px; }
.durum-secim label span { font-size: 12.5px; color: var(--muted); }
.durum-secim input { position: absolute; opacity: 0; pointer-events: none; }
.durum-secim label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface-2); }
.durum-secim label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.toplu-not { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

@media (max-width: 760px) {
    .daire-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .daire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .daire-card { min-height: 132px; padding: 14px 13px 12px; }
    .daire-card .dc-no { font-size: 22px; }
    .durum-secim { grid-template-columns: 1fr; }
}
.amount-field.compact .form-control { height: 48px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; padding: 0 40px 0 14px; border-radius: var(--radius-sm); }
.amount-field.compact .currency { font-size: 15px; right: 16px; }
