/* BDK SOUND · Kasa — sahne siyahı, BDK kırmızısı vurgu, dar (Bahnschrift tarzı) başlıklar; rakamlar tabular */
:root {
  --bg: #0b0b0d; --surface: #141417; --surface-2: #1b1b1f; --surface-3: #232328; --ink: #f4f4f5; --ink-2: #c4c4cc; --muted: #8b8b96; --line: #26262c;
  --brand: #e3141f; --brand-hover: #ff2a35; --brand-ink: #ffffff; --brand-soft: rgba(227,20,31,.14); --brand-glow: rgba(227,20,31,.35);
  --side: #070708; --side-2: #121215; --side-ink: #c9c9d1; --side-mute: #74747f;
  --pos: #2fd07a; --pos-soft: rgba(47,208,122,.12); --neg: #ff7466; --neg-soft: rgba(255,116,102,.12); --warn: #f2b443; --warn-soft: rgba(242,180,67,.12);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.65);
  --f-display: "Bahnschrift", "Barlow Semi Condensed", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --r: 14px; --r-sm: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: .005em; text-wrap: balance; font-stretch: condensed; }
h1 { font-size: 2.1rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
body { background-image: radial-gradient(900px 500px at 100% -10%, rgba(227,20,31,.07), transparent 60%); background-attachment: fixed; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); } .sm { font-size: .82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mobile-only { display: none !important; }

/* Marka */
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--f-display); font-stretch: condensed; font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; line-height: 1; display: flex; flex-direction: column; color: #fff; }
.brand-name small { font-family: var(--f-body); font-size: .6rem; font-weight: 700; letter-spacing: .32em; color: var(--brand); margin-top: 4px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 6px 18px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.logo-mark svg { width: 15px; height: 23px; }
.logo-mark.sm { width: 32px; height: 32px; border-radius: 9px; } .logo-mark.sm svg { width: 13px; height: 20px; }
.logo-mark.lg { width: 64px; height: 64px; border-radius: 18px; } .logo-mark.lg svg { width: 26px; height: 40px; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-sm);
  font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px var(--brand-glow); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.primary:disabled { opacity: .55; cursor: not-allowed; }
.btn.outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.outline:hover { background: var(--surface-2); }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.btn.danger { background: var(--neg-soft); color: var(--neg); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: transparent; color: inherit; }
.icon-btn:hover { background: var(--surface-2); }
.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: .85rem; }
.link:hover { text-decoration: underline; }

/* Formlar */
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: 0 12px; font-size: .95rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg { font-size: .85rem; min-height: 1.2em; margin: -4px 0; }
.msg:empty { display: none; }
.msg.ok { color: var(--pos); } .msg.err { color: var(--neg); }

/* Yükleniyor */
.loading-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 20px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Giriş */
.auth-screen { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-screen.single { grid-template-columns: 1fr; }
.auth-brand { background: var(--side); color: var(--side-ink); padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.auth-brand::before { 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: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.auth-brand::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,20,31,.38), transparent 65%); pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .brand-name { color: #fff; }
.auth-pitch { max-width: 460px; display: flex; flex-direction: column; gap: 18px; }
.auth-pitch h1 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; }
.auth-pitch > p { color: var(--side-ink); font-size: 1rem; max-width: 40ch; }
.pitch-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 14px; }
.pitch-list li { display: flex; gap: 14px; align-items: flex-start; }
.pitch-list svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--side-2); color: var(--brand); border: 1px solid rgba(255,255,255,.06); }
.pitch-list span { display: flex; flex-direction: column; font-size: .9rem; color: var(--side-mute); }
.pitch-list b { color: #fff; font-weight: 600; }
.auth-foot { font-size: .78rem; color: var(--side-mute); }
.auth-main { display: grid; place-items: center; padding: 32px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.auth-card.center { text-align: center; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 28px; box-shadow: var(--shadow); }
.auth-card .muted { margin-top: 6px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.state-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.state-icon svg { width: 24px; height: 24px; }
.state-icon.warn { background: var(--warn-soft); color: var(--warn); }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; color: var(--ink-2); }
.chip:empty { display: none; }

/* Uygulama iskeleti */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { background: var(--side); color: var(--side-ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; height: 100dvh; }
.sidebar .brand-row { padding: 0 8px; }
.sidebar .brand-name { color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--side-mute); font-weight: 600; padding: 14px 12px 6px; }
.sidebar .nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--side-ink); font-weight: 500; text-align: left; }
.sidebar .nav-item:hover { background: var(--side-2); color: #fff; }
.sidebar .nav-item.on { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.sidebar .nav-item.on > svg:first-child { color: var(--brand); }
.sidebar .nav-item span:not(.badge) { flex: 1; }
.nav-lock { width: 14px; height: 14px; opacity: .5; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e3ac55; color: #2a1a00; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--side-2); }
.side-user-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-user-t b { color: #fff; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-t span { font-size: .75rem; color: var(--side-mute); }
.side-user .icon-btn { color: var(--side-mute); }
.side-user .icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; overflow: hidden; flex: none; background: #3a3a42; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding-block: 32px 56px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.month-switch { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); height: 42px; box-shadow: var(--shadow); }
.month-switch > button { width: 38px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.month-switch > button:hover { background: var(--surface-2); }
.month-switch > button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.month-switch > button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.month-label { position: relative; min-width: 140px; text-align: center; font-weight: 600; padding: 0 8px; border-inline: 1px solid var(--line); height: 100%; display: grid; place-items: center; cursor: pointer; }
.month-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.notice { background: var(--warn-soft); color: var(--warn); padding: 12px 16px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 500; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); min-width: 0; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.kpi-ic svg { width: 16px; height: 16px; }
.kpi-ic.pos { background: var(--pos-soft); color: var(--pos); }
.kpi-ic.neg { background: var(--neg-soft); color: var(--neg); }
.kpi-lbl { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kpi-val { font-family: var(--f-display); font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-sub { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-size: .75rem; }
.delta.good { background: var(--pos-soft); color: var(--pos); }
.delta.bad { background: var(--neg-soft); color: var(--neg); }
.delta.flat { background: var(--surface-2); color: var(--muted); }
.kpi.feature { background: linear-gradient(150deg, #e3141f, #8a0a12 70%, #4a050a); border-color: transparent; color: #fff; position: relative; overflow: hidden; }
.kpi.feature::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.kpi.feature .kpi-ic { background: rgba(255,255,255,.14); color: #fff; }
.kpi.feature .kpi-lbl, .kpi.feature .kpi-sub { color: rgba(255,255,255,.78); }
.kpi.feature .delta.good, .kpi.feature .delta.bad, .kpi.feature .delta.flat { background: rgba(255,255,255,.16); color: #fff; }

/* Paneller */
.row-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel.flush { padding: 0; gap: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.panel-h.padded { padding: 20px 20px 16px; }
.panel-h p { margin-top: 2px; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot.pos { background: var(--pos); } .dot.neg { background: var(--neg); }

.chart { width: 100%; min-height: 220px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.chart .ax.cur { fill: var(--ink); font-weight: 700; }
.chart .b-pos { fill: var(--pos); } .chart .b-neg { fill: var(--neg); }
.chart .dim { opacity: .45; }
.chart-empty { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .88rem; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-sm); background: repeating-linear-gradient(0deg, transparent 0 43px, var(--surface-2) 43px 44px); }
.chart-empty svg { width: 28px; height: 28px; opacity: .6; }

.cats { display: flex; flex-direction: column; gap: 14px; }
.cat { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.cat .sw { width: 10px; height: 10px; border-radius: 3px; }
.cat .nm { font-size: .88rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .vl { font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat .tr { grid-column: 2 / 4; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.cat .fl { height: 100%; border-radius: 3px; }
.cat .pc { color: var(--muted); font-weight: 500; margin-left: 6px; }
.cats .empty-mini { color: var(--muted); font-size: .88rem; padding: 24px 0; text-align: center; }

/* Tablo */
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; width: 150px; color: var(--ink); font-size: .88rem; }
.search svg { width: 15px; height: 15px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.table-wrap { overflow-x: auto; }
table.tx { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tx th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 10px 20px; background: var(--surface-2); border-block: 1px solid var(--line); white-space: nowrap; }
.tx td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tx tbody tr:last-child td { border-bottom: 0; }
.tx tbody tr:hover td { background: var(--surface-2); }
.tx .r { text-align: right; }
.tx .date { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tx .date small { display: block; color: var(--muted); font-size: .75rem; }
.cat-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; }
.cat-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex: none; }
.tx .desc { color: var(--ink-2); max-width: 320px; overflow-wrap: anywhere; }
.tx .desc:empty::before { content: "—"; color: var(--muted); }
.who-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-2); }
.amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt.pos { color: var(--pos); } .amt.neg { color: var(--ink); }
.col-act { width: 1%; }
.row-act { display: flex; justify-content: flex-end; }
.del-btn { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.del-btn:hover { background: var(--neg-soft); color: var(--neg); }
.del-btn svg, .edit-btn svg { width: 16px; height: 16px; }
.edit-btn { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.edit-btn:hover { background: var(--surface-3); color: var(--ink); }
.row-act { gap: 2px; }
.del-sure { border: 0; background: var(--neg); color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 7px; white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--pos-soft); color: var(--pos); }
.pill.wait { background: var(--warn-soft); color: var(--warn); }
.pill.admin { background: var(--brand-soft); color: var(--brand); }
.pill.admin::before { display: none; }
.m-name { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
.m-acts { display: flex; gap: 6px; justify-content: flex-end; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; text-align: center; }
.empty-state .state-icon { margin-bottom: 6px; }

/* Pencere */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: 100%; max-width: 460px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100dvh - 40px); overflow: auto; }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.segmented.big { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; }
.segmented.big button { justify-content: center; padding: 10px; font-size: .9rem; border-radius: 8px; }
.segmented.big button svg { width: 16px; height: 16px; }
.tur button.on[data-tur="gelir"] { color: var(--pos); }
.tur button.on[data-tur="gider"] { color: var(--neg); }
.amount-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.amount-in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.amount-in span { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.amount-in input { border: 0 !important; box-shadow: none !important; height: 62px; font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; padding: 0 10px; background: transparent; }

.hint { font-size: .75rem; color: var(--muted); }
.input-btn { display: flex; gap: 8px; }
.input-btn input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.input-btn .btn { height: 44px; }
.result { display: flex; flex-direction: column; gap: 16px; }
.cred { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); display: flex; flex-direction: column; }
.cred > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.cred > div:first-child { border-top: 0; }
.cred span { color: var(--muted); font-size: .85rem; }
.cred b { font-family: ui-monospace, Consolas, monospace; font-size: .92rem; overflow-wrap: anywhere; text-align: right; }
.panel-h .tools .btn svg { width: 15px; height: 15px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--line); padding: 11px 18px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast svg { color: var(--pos); }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .25s ease; }
  .modal-card { animation: pop .2s ease; }
  .cat .fl { transition: width .4s ease; }
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.bottom-nav { display: none; }

/* Tablet */
@media (max-width: 1080px) {
  .row-2 { grid-template-columns: minmax(0, 1fr); }
}
/* Telefon */
@media (max-width: 820px) {
  .mobile-only { display: flex !important; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20;
    background: var(--side); color: #fff; padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .topbar .icon-btn { color: var(--side-ink); }
  .content { padding-block: 20px calc(100px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 18px; }
  h1 { font-size: 1.45rem; }
  .page-head { align-items: stretch; flex-direction: column; }
  .head-actions { width: 100%; }
  .month-switch { flex: 1; }
  .month-label { flex: 1; min-width: 0; }
  #yeni-btn { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px; }
  .kpi-val { font-size: 1.35rem; }
  .kpi.feature { grid-column: 1 / -1; order: -1; }
  .kpi.feature .kpi-val { font-size: 1.9rem; }
  .tools { width: 100%; }
  .search { flex: 1; } .search input { width: 100%; }
  .col-who, .tx td.col-who { display: none; }
  .tx thead { display: none; }
  .tx tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
  .tx tbody tr:last-child { border-bottom: 0; }
  .tx td { padding: 0; border: 0; }
  .tx tbody tr:hover td { background: transparent; }
  .tx td.c-cat { grid-column: 1; grid-row: 1; }
  .tx td.c-amt { grid-column: 2; grid-row: 1 / 3; }
  .tx td.col-act { grid-column: 3; grid-row: 1 / 3; }
  .tx td.date { grid-column: 1; grid-row: 2; padding-left: 40px; font-size: .78rem; color: var(--muted); }
  .tx td.date small { display: inline; margin-left: 4px; }
  .tx td.desc { grid-column: 1 / 3; grid-row: 3; padding-left: 40px; font-size: .82rem; max-width: none; }
  .tx td.desc:empty { display: none; }
  .members tr { grid-template-columns: minmax(0, 1fr) auto; }
  .members td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .members td:nth-child(2) { grid-column: 1; grid-row: 2; padding-left: 42px; font-size: .8rem; color: var(--muted); }
  .members td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .members td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; }
  .members .m-acts { justify-content: flex-start; padding-left: 42px; }
  .field-row { grid-template-columns: 1fr; }
  .modal { place-items: end center; padding: 0; }
  .modal-card { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; }
  .bottom-nav { display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 30; align-items: center;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .bottom-nav .nav-item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); padding: 6px 0; position: relative; }
  .bottom-nav .nav-item svg { width: 22px; height: 22px; }
  .bottom-nav .nav-item.on { color: var(--brand); }
  .bottom-nav .badge { position: absolute; top: 0; left: 55%; }
  .fab { justify-self: center; width: 54px; height: 54px; border-radius: 16px; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-top: -26px; box-shadow: 0 8px 22px var(--brand-glow); }
  .fab svg { width: 24px; height: 24px; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- BDK SOUND rötuşları ---- */
.kpi-val { font-stretch: condensed; font-weight: 700; font-size: 2.15rem; letter-spacing: .01em; }
.amount-in input, .amount-in span { font-stretch: condensed; }
.amount-in { background: var(--surface-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; }
.panel, .kpi { background: linear-gradient(180deg, var(--surface), #111114); }
.kpi { position: relative; overflow: hidden; }
.kpi:not(.feature)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.kpi:nth-child(1)::before { background: var(--pos); } .kpi:nth-child(2)::before { background: var(--neg); }
.kpi.feature { box-shadow: 0 18px 40px rgba(227,20,31,.25); }
.kpi.feature::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.10) 0 2px, transparent 2px 14px); pointer-events: none; }
.btn.outline { background: var(--surface-2); }
.btn.outline:hover { background: var(--surface-3); }
.segmented { background: var(--surface-2); border: 1px solid var(--line); }
.segmented button.on { background: var(--surface-3); box-shadow: none; }
.tx th { background: #101013; }
.tx tbody tr:hover td { background: rgba(255,255,255,.025); }
.month-switch { background: var(--surface-2); }
.search { background: var(--surface-2); }
.sidebar { border-right: 1px solid var(--line); }
.sidebar .brand-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-brand { background: radial-gradient(700px 420px at 15% -10%, rgba(227,20,31,.28), transparent 60%), #050506; border-right: 1px solid var(--line); }
.auth-brand::before { background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.05) 50%, transparent 60%), linear-gradient(65deg, transparent 45%, rgba(227,20,31,.08) 52%, transparent 60%);
  background-size: auto; mask-image: none; }
.auth-pitch h1 { text-transform: uppercase; font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: 1; }
.auth-pitch h1 em { font-style: normal; color: var(--brand); }
.auth-big-logo { display: flex; align-items: center; gap: 18px; }
.auth-big-logo svg { width: 46px; height: 70px; color: var(--brand); filter: drop-shadow(0 8px 24px var(--brand-glow)); }
.auth-big-logo .t { font-family: var(--f-display); font-stretch: condensed; font-weight: 700; font-size: 2.6rem; line-height: .9; color: #fff; letter-spacing: .02em; }
.auth-big-logo .t small { display: block; font-size: .95rem; font-weight: 600; color: var(--side-ink); letter-spacing: .04em; margin-top: 8px; padding-top: 8px; border-top: 3px solid #fff; }
.auth-card h2 { text-transform: uppercase; font-size: 1.9rem; }
.chart .b-pos { fill: var(--pos); } .chart .b-neg { fill: var(--neg); }
.dot.pos { background: var(--pos); } .dot.neg { background: var(--neg); }
.loading-screen .logo-mark { animation: nabiz 1.4s ease-in-out infinite; }
@keyframes nabiz { 50% { box-shadow: 0 0 0 14px rgba(227,20,31,0), 0 6px 30px var(--brand-glow); transform: scale(1.04); } }
@media (max-width: 820px) {
  .topbar { border-bottom: 1px solid var(--line); }
  .kpi-val { font-size: 1.55rem; } .kpi.feature .kpi-val { font-size: 2.2rem; }
  h1 { font-size: 1.7rem; }
  .bottom-nav { background: rgba(14,14,16,.92); backdrop-filter: blur(10px); }
}

/* Şube etiketi, gün başlıkları, dönem seçici, açıklama kutusu */
.sube-tag { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: #ff5c64; border: 1px solid rgba(227,20,31,.3); }
.period-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.segmented.mod { height: 42px; align-items: center; }
.segmented.mod button { height: 34px; padding: 0 14px; }
.month-label input[type="date"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.month-label { min-width: 200px; }
.range { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.range input { height: 32px; border: 0; background: transparent; color: var(--ink); font-size: .85rem; color-scheme: dark; }
.range span { color: var(--muted); }
.bugun-btn { height: 42px; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .bar-g:hover .hit { fill: rgba(255,255,255,.04); }
.chart .bar-g { cursor: pointer; }
.cat-tur button { padding: 4px 10px; }
.field textarea { min-height: 84px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: 10px 12px; font-size: .95rem; width: 100%; line-height: 1.45; }
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hint#aciklama-say { align-self: flex-end; }
.tx .desc { max-width: 420px; white-space: pre-line; }
.tx tr.day-h td { background: #0f0f12; padding: 9px 20px; border-bottom: 1px solid var(--line); }
.tx tbody tr.day-h:hover td { background: #0f0f12; }
.day-h-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-h-ad { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.day-h-ad:hover { color: var(--brand); text-decoration: underline; }
.day-h-top { display: flex; gap: 12px; align-items: center; font-size: .82rem; }
.day-net { font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: .75rem; }
.day-net.pos { background: var(--pos-soft); color: var(--pos); } .day-net.neg { background: var(--neg-soft); color: var(--neg); }
@media (max-width: 820px) {
  .period-wrap { width: 100%; }
  .segmented.mod { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  #nav-tek, .range { flex: 1; min-width: 0; }
  .range input { min-width: 0; flex: 1; font-size: .8rem; }
  .month-label { min-width: 0; font-size: .85rem; }
  .tx tr.day-h { display: block; padding: 0; }
  .tx tr.day-h td { display: block; padding: 8px 16px; }
  .bottom-nav .nav-item span { font-size: .66rem; }
}
/* Şube net bakiye: artı yeşil, eksi kırmızı (alacaklıyız) */
.kpi.feature.net-arti { background: linear-gradient(150deg, #1fae63, #0d6b3a 70%, #06391f); box-shadow: 0 18px 40px rgba(31,174,99,.25); }
.kpi.feature.net-eksi { background: linear-gradient(150deg, #e3141f, #8a0a12 70%, #4a050a); box-shadow: 0 18px 40px rgba(227,20,31,.3); }

/* Bayiler ve yetkiler */
.sube-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-add { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-top: 4px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.14); background: transparent; color: var(--side-mute); font-size: .85rem; font-weight: 600; text-align: left; }
.nav-add:hover { color: #fff; border-color: var(--brand); }
.nav-add svg { width: 16px; height: 16px; }
.nav-empty { font-size: .78rem; color: var(--side-mute); padding: 4px 12px; }
.sube-sec { display: block; margin-top: 8px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 0 10px; font-weight: 600; }
.rol-sec { height: 32px; max-width: 230px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 0 8px; font-size: .8rem; }
.pill.bayi { background: var(--brand-soft); color: #ff5c64; }
.m-acts { flex-wrap: wrap; align-items: center; }
.bayi-modu .nav, .bayi-modu .bottom-nav, .bayi-modu #yeni-btn, .bayi-modu #yeni-fab { display: none !important; }
@media (max-width: 820px) { .bayi-modu .content { padding-bottom: 40px; } }

.gear-btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.gear-btn:hover { color: #fff; border-color: var(--brand); background: var(--brand-soft); }
.gear-btn svg { width: 17px; height: 17px; }
