/* digitar bütçe — stil
   Ritim: 4px taban (4/8/12/16/20/24/32). Kart yarıçapı 22, satır 14, çip 999.
   Hareket: --d1 basma, --d2 küçük geçiş, --d3 sheet/sayfa. Hepsi prefers-reduced-motion'da kapanır. */

:root, html[data-theme="dark"] {
  --bg: #0b0b0b;
  --bg-2: #101010;
  --surface: #151514;
  --surface-2: #1d1d1b;
  --surface-3: #282825;
  --line: #262623;
  --line-2: #34342f;
  --text: #ece8dc;
  --muted: #a5a194;
  --faint: #75726a;
  --accent: #c6f24e;
  --accent-ink: #c6f24e;
  --accent-soft: rgba(198, 242, 78, .12);
  --on-accent: #0b0b0b;
  --income: #c6f24e;
  --expense: #ece8dc;
  --transfer: #9fb8ff;
  --danger: #ff8170;
  --danger-soft: rgba(255, 129, 112, .13);
  --warn: #f2c94e;
  --warn-soft: rgba(242, 201, 78, .13);
  --ok: #c6f24e;
  --ok-soft: rgba(198, 242, 78, .12);
  --track: #262623;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --hero-a: #1a1d12;
  --hero-b: #121211;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --d1: 120ms;
  --d2: 220ms;
  --d3: 340ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, 1.28, .5, 1);
  --tab-h: 64px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f3f1ea;
  --bg-2: #eeebe2;
  --surface: #ffffff;
  --surface-2: #f2efe7;
  --surface-3: #e6e2d7;
  --line: #e3dfd3;
  --line-2: #d3cebf;
  --text: #121211;
  --muted: #57544b;
  --faint: #7b776c;
  --accent: #c6f24e;
  --accent-ink: #3d5a00;
  --accent-soft: rgba(110, 150, 0, .12);
  --on-accent: #0b0b0b;
  --income: #3a6b00;
  --expense: #121211;
  --transfer: #2d55c8;
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, .09);
  --warn: #7a5a00;
  --warn-soft: rgba(196, 150, 0, .14);
  --ok: #3a6b00;
  --ok-soft: rgba(110, 150, 0, .13);
  --track: #e8e4d9;
  --shadow-lg: 0 24px 60px rgba(40, 35, 20, .18);
  --shadow: 0 1px 2px rgba(40, 35, 20, .05);
  --hero-a: #eef6d6;
  --hero-b: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.45; overflow-x: hidden; min-height: 100vh; min-height: 100dvh;
  font-feature-settings: "ss01", "cv11";
}
body.kilit { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-ink); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 8px; }

.logo-light { display: none !important; }
html[data-theme="light"] .logo-dark { display: none !important; }
html[data-theme="light"] .logo-light { display: block !important; }

/* ---------- açılış ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 90; transition: opacity var(--d3) var(--ease); }
.boot img { width: 104px; height: auto; opacity: .9; animation: nefes 1.6s var(--ease) infinite alternate; }
.boot.gizle { opacity: 0; pointer-events: none; }
@keyframes nefes { from { opacity: .35; transform: scale(.98); } to { opacity: .95; transform: scale(1); } }

/* ---------- kabuk ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.phone { position: relative; max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.view { padding: calc(10px + env(safe-area-inset-top)) 16px calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); min-height: 100vh; }
.view:focus { outline: none; }
.view > .sayfa { animation: sayfa-gir var(--d3) var(--ease) both; }
@keyframes sayfa-gir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.offline {
  position: sticky; top: 0; z-index: 25; margin: 0 -0px; padding: 8px 16px; text-align: center;
  font-size: 13px; font-weight: 500; background: var(--warn-soft); color: var(--warn); backdrop-filter: blur(8px);
}

/* alt sekme çubuğu */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30; width: 100%; max-width: 520px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
  color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .01em;
  border-radius: 14px; position: relative; transition: color var(--d2) var(--ease);
}
.tab svg { width: 23px; height: 23px; transition: transform var(--d2) var(--spring); }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] svg { color: var(--accent-ink); transform: translateY(-1px); }
.tab[aria-current="page"]::after { content: ""; position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-ink); }
.tab:active svg { transform: scale(.88); }
.tab-ekle { display: grid; place-items: center; min-height: 52px; }
.fab {
  width: 54px; height: 54px; border-radius: 19px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); transform: translateY(-10px);
  box-shadow: 0 10px 28px rgba(198, 242, 78, .28), 0 0 0 5px var(--bg);
  transition: transform var(--d2) var(--spring), border-radius var(--d2) var(--ease);
}
.fab svg { width: 26px; height: 26px; transition: transform var(--d3) var(--spring); }
.fab:active { transform: translateY(-10px) scale(.92); }
.fab[aria-expanded="true"] svg { transform: rotate(45deg); }
html[data-theme="light"] .fab { box-shadow: 0 10px 24px rgba(90, 120, 0, .25), 0 0 0 5px var(--bg); }

/* geniş ekran: yan gezinme + ortada telefon */
.sidenav { display: none; }
@media (min-width: 960px) {
  .tabbar { display: none; }
  .sidenav {
    display: flex; flex-direction: column; gap: 2px; position: fixed; top: 0; bottom: 0;
    left: max(24px, calc(50% - 260px - 300px)); width: 236px; padding: 32px 0;
  }
  .sidenav .brand { display: flex; align-items: baseline; gap: 8px; padding: 0 14px 28px; text-decoration: none; color: var(--text); }
  .sidenav .brand img { height: 22px; width: auto; }
  .sidenav .brand span { font-family: "Instrument Serif", serif; font-style: italic; font-size: 24px; color: var(--accent-ink); line-height: 1; }
  .sidenav a.nav-a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 14px;
    color: var(--muted); text-decoration: none; font-weight: 500; transition: background var(--d1), color var(--d1);
  }
  .sidenav a.nav-a svg { width: 20px; height: 20px; }
  .sidenav a.nav-a:hover { background: var(--surface); color: var(--text); }
  .sidenav a.nav-a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
  .sidenav a.nav-a[aria-current="page"] svg { color: var(--accent-ink); }
  .sidenav .nav-ekle { margin: 0 0 18px; }
  .sidenav .nav-alt { margin-top: auto; padding: 0 14px; font-size: 12px; color: var(--faint); }
  .phone { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
  body { background: var(--bg-2); }
  .view { padding-bottom: 48px; padding-top: 24px; }
}

/* ---------- sayfa başlığı ---------- */
.ust { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 6px; }
.ust h1 { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 34px; letter-spacing: -.01em; line-height: 1; flex: 1; min-width: 0; }
.ust .marka { display: flex; align-items: center; gap: 8px; flex: 1; }
.ust .marka img { height: 19px; width: auto; }
.ust .marka span { font-family: "Instrument Serif", serif; font-style: italic; font-size: 22px; color: var(--accent-ink); line-height: 1; transform: translateY(1px); }
.alt-baslik { color: var(--muted); font-size: 14px; margin: -2px 0 14px; }
.geri { margin-left: -8px; }

.bolum { margin-top: 28px; }
.bolum-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bolum-bas h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.bolum-bas a, .bolum-bas button.link { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; min-height: 32px; }
.bolum-bas a:hover { color: var(--text); }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform var(--d1) var(--ease), background var(--d2), opacity var(--d2), border-color var(--d2);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ana { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.ana:hover { filter: brightness(1.04); }
.btn.hayalet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.hayalet:hover { color: var(--text); background: var(--surface-2); }
.btn.tehlike { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn.kucuk { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn.tam { width: 100%; }
.btn.yukleniyor { position: relative; color: transparent !important; pointer-events: none; }
.btn.yukleniyor::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-accent) transparent var(--on-accent) transparent; animation: don .7s linear infinite; }
.btn:not(.ana).yukleniyor::after { border-color: var(--text) transparent var(--text) transparent; }
@keyframes don { to { transform: rotate(360deg); } }
.ikon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 14px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; flex: none; transition: background var(--d1), transform var(--d1);
}
.ikon-btn:hover { background: var(--surface-2); }
.ikon-btn:active { transform: scale(.92); }
.ikon-btn svg { width: 22px; height: 22px; }
.ikon-btn.dolu { background: var(--surface-2); }

/* ---------- ay seçici ---------- */
.ay-secici { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ay-secici button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ay-secici button:hover { color: var(--text); background: var(--surface-2); }
.ay-secici button svg { width: 18px; height: 18px; }
.ay-secici .ay-ad { min-width: 108px; text-align: center; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.ay-secici .ay-ad small { color: var(--faint); font-weight: 500; margin-left: 3px; }

/* ---------- kartlar ---------- */
.kart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.kart + .kart { margin-top: 12px; }
.kart.sik { padding: 6px 4px; }

.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 20px 18px;
  background: radial-gradient(120% 120% at 100% 0%, var(--hero-a) 0%, var(--hero-b) 60%); border: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 242, 78, .16), transparent 70%); pointer-events: none;
}
.hero .etiket { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tutar-buyuk { font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tutar-buyuk .kurus { font-size: .5em; color: var(--muted); font-weight: 500; letter-spacing: -.01em; }
.hero-alt { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hap { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--surface-3) 70%, transparent); font-size: 13px; font-weight: 500; white-space: nowrap; }
.hap .nokta { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.hap.iyi .nokta { background: var(--accent-ink); }

.uclu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.uclu .kutu { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 11px; min-width: 0; }
.uclu .kutu .e { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.uclu .kutu .e i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.uclu .kutu .d { font-size: 17px; font-weight: 600; letter-spacing: -.025em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uclu .kutu .f { font-size: 11.5px; margin-top: 2px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uclu .kutu .f.yukari { color: var(--danger); }
.uclu .kutu .f.asagi { color: var(--ok); }
.uclu .kutu .f.gelir-yukari { color: var(--ok); }

/* ekstre yükle tanıtım kartı */
.ekstre-cta {
  margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg);
  background: var(--accent); color: var(--on-accent); text-decoration: none; position: relative; overflow: hidden;
  transition: transform var(--d1) var(--ease);
}
.ekstre-cta:active { transform: scale(.985); }
.ekstre-cta .ik { width: 46px; height: 46px; border-radius: 15px; background: rgba(11, 11, 11, .1); display: grid; place-items: center; flex: none; }
.ekstre-cta .ik svg { width: 24px; height: 24px; }
.ekstre-cta b { display: block; font-size: 16px; letter-spacing: -.01em; }
.ekstre-cta span { display: block; font-size: 13px; opacity: .72; margin-top: 1px; }
.ekstre-cta .ok { margin-left: auto; width: 20px; height: 20px; flex: none; }
.ekstre-cta::before { content: ""; position: absolute; right: 40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(11, 11, 11, .05); }

/* ---------- halka grafik ---------- */
.dagilim { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; }
.halka { position: relative; width: 148px; height: 148px; }
.halka svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.halka circle.dilim { fill: none; transition: stroke-dashoffset 900ms var(--ease), stroke-width var(--d2) var(--ease), opacity var(--d2); cursor: pointer; }
.halka.secili circle.dilim { opacity: .28; }
.halka.secili circle.dilim.aktif { opacity: 1; stroke-width: 20; }
.halka .merkez { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 26px; }
.halka .merkez .m1 { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92px; }
.halka .merkez .m2 { font-size: 17px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.halka .merkez .m3 { font-size: 11.5px; color: var(--faint); }
.lejant { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.lejant li button {
  width: 100%; display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; text-align: left;
  background: transparent; border: 0; padding: 7px 8px; border-radius: 10px; cursor: pointer; min-height: 34px; transition: background var(--d1), opacity var(--d2);
}
.lejant li button:hover { background: var(--surface-2); }
.lejant .renk { width: 10px; height: 10px; border-radius: 4px; }
.lejant .ad { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lejant .yuzde { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lejant.secili li button { opacity: .4; }
.lejant.secili li button.aktif { opacity: 1; background: var(--surface-2); }
@media (max-width: 360px) { .dagilim { grid-template-columns: 1fr; justify-items: center; } .lejant { width: 100%; } }

/* ---------- çubuk grafik ---------- */
.cubuklar { width: 100%; height: 150px; }
.cubuklar rect.c { transform-box: fill-box; transform-origin: bottom; animation: cubuk-buyu 700ms var(--ease) both; }
@keyframes cubuk-buyu { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cubuklar text { font-size: 11px; fill: var(--faint); font-family: inherit; }
.cubuklar text.aktif { fill: var(--text); font-weight: 600; }
.cubuk-lejant { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cubuk-lejant i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

/* gün çizgisi (günlük harcama) */
.gunluk { width: 100%; height: 56px; }

/* ---------- listeler ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.satir {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px; min-height: 60px; border-radius: 14px; width: 100%;
  background: transparent; border: 0; text-align: left; cursor: pointer; transition: background var(--d1);
  position: relative;
}
button.satir:hover, a.satir:hover { background: var(--surface-2); }
a.satir { text-decoration: none; color: inherit; }
.satir:active { background: var(--surface-2); }
.balon {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 20px; line-height: 1;
  background: var(--surface-2); position: relative;
}
.balon svg { width: 21px; height: 21px; }
.satir .govde { flex: 1; min-width: 0; }
.satir .b1 { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.satir .b2 { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.satir .sag { text-align: right; flex: none; }
.satir .tut { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.satir .tut.gelir { color: var(--income); }
.satir .tut.transfer { color: var(--transfer); }
.satir .alt { font-size: 12px; color: var(--faint); margin-top: 1px; }
.satir > svg.ok { width: 18px; height: 18px; color: var(--faint); flex: none; }
.ayrac { height: 1px; background: var(--line); margin: 0 6px 0 60px; }

.gun-bas { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 6px 6px; font-size: 13px; color: var(--muted); font-weight: 500; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.gun-bas b { color: var(--text); font-weight: 600; }

/* ---------- çipler / segment ---------- */
.cipler { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 4px; margin: 0 -16px; scroll-snap-type: x proximity; }
.cipler::-webkit-scrollbar { display: none; }
.cipler.sar { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.cip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: background var(--d2) var(--ease), border-color var(--d2), color var(--d2), transform var(--d1); scroll-snap-align: start;
}
.cip:active { transform: scale(.95); }
.cip[aria-pressed="true"], .cip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.cip.oneri { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.cip .em { font-size: 15px; }
.cip svg { width: 15px; height: 15px; }

.seg { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; background: var(--surface-2); border-radius: 14px; padding: 3px; }
.seg button { position: relative; z-index: 1; min-height: 38px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; border-radius: 11px; cursor: pointer; transition: color var(--d2); }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg .gosterge { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 11px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--d3) var(--spring), width var(--d3) var(--ease); }
html[data-theme="light"] .seg .gosterge { box-shadow: 0 1px 3px rgba(40, 35, 20, .14); }

/* rozetler */
.rozet { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.rozet.kirmizi { background: var(--danger-soft); color: var(--danger); }
.rozet.sari { background: var(--warn-soft); color: var(--warn); }
.rozet.yesil { background: var(--ok-soft); color: var(--ok); }
.rozet.mavi { background: color-mix(in srgb, var(--transfer) 16%, transparent); color: var(--transfer); }

/* ---------- yatay hesap kartları ---------- */
.yatay { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.yatay::-webkit-scrollbar { display: none; }
.hesap-kart {
  flex: none; width: 74%; max-width: 300px; scroll-snap-align: start; border-radius: 22px; padding: 16px; min-height: 152px;
  display: flex; flex-direction: column; text-decoration: none; color: #f4f1e8; position: relative; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--hk, #2a2a27) 62%, #121211) 0%, color-mix(in srgb, var(--hk, #2a2a27) 22%, #0e0e0d) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform var(--d1) var(--ease);
}
.hesap-kart:active { transform: scale(.98); }
.hesap-kart::after { content: ""; position: absolute; right: -40px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hesap-kart .tur { font-size: 12px; opacity: .75; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.hesap-kart .tur svg { width: 15px; height: 15px; }
.hesap-kart .ad { font-weight: 600; margin-top: 2px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hesap-kart .bak { margin-top: auto; font-size: 23px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hesap-kart .alt { font-size: 12px; opacity: .78; margin-top: 2px; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.hesap-kart .alt span:last-child { overflow: hidden; text-overflow: ellipsis; }
.yatay, .hesap-sec, .cipler { scroll-padding-inline: 16px; }
.hesap-kart .limit { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin-top: 8px; overflow: hidden; }
.hesap-kart .limit i { display: block; height: 100%; background: #f4f1e8; border-radius: 4px; transform-origin: left; animation: dolu 900ms var(--ease) both; }
.hesap-kart.ekle { background: transparent; border: 1.5px dashed var(--line-2); color: var(--muted); align-items: center; justify-content: center; gap: 6px; width: 46%; }
.hesap-kart.ekle::after { display: none; }
.hesap-kart.ekle svg { width: 26px; height: 26px; }
@keyframes dolu { from { transform: scaleX(0); } }

/* ---------- bütçe halkaları ---------- */
.butceler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.butce { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 8px 10px; text-align: center; min-width: 0; }
.mini-halka { width: 64px; height: 64px; margin: 0 auto; position: relative; }
.mini-halka svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-halka circle { fill: none; transition: stroke-dashoffset 1s var(--ease); }
.mini-halka .em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.butce .ad { font-size: 12.5px; font-weight: 500; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.butce .k { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.butce .k.asti { color: var(--danger); }

/* ilerleme çubuğu */
.cizgi { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.cizgi i { display: block; height: 100%; border-radius: 6px; background: var(--accent-ink); transform-origin: left; transition: width 600ms var(--ease); }
.cizgi.uyari i { background: var(--warn); }
.cizgi.asti i { background: var(--danger); }

/* ---------- ödemeler ---------- */
.odeme .balon { font-size: 19px; }
.vade { font-size: 12.5px; }
.vade.gecikti { color: var(--danger); font-weight: 600; }
.vade.yaklasiyor { color: var(--warn); font-weight: 600; }
.vade.odendi { color: var(--ok); }
.tik {
  width: 40px; height: 40px; border-radius: 13px; border: 1.5px solid var(--line-2); background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: background var(--d2) var(--ease), border-color var(--d2), color var(--d2), transform var(--d1) var(--spring);
}
.tik svg { width: 20px; height: 20px; }
.tik:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.tik:active { transform: scale(.88); }
.tik.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tik.on svg path { stroke-dasharray: 24; animation: tik-ciz 380ms var(--ease) both; }
@keyframes tik-ciz { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.odeme-ozet { display: flex; align-items: center; gap: 16px; }
.odeme-ozet .mini-halka { width: 76px; height: 76px; margin: 0; }
.odeme-ozet .mini-halka .em { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.grup-bas { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 18px 6px 4px; text-transform: none; }
.grup-bas .say { color: var(--faint); font-weight: 500; }
.grup-bas.kirmizi { color: var(--danger); }
.grup-bas.yesil { color: var(--ok); }
.cizgili { text-decoration: line-through; text-decoration-color: var(--faint); }

/* ---------- formlar ---------- */
.alan { display: grid; gap: 6px; margin-top: 14px; }
.alan > span, .alan > label { font-size: 13px; font-weight: 500; color: var(--muted); }
.girdi, select.girdi, textarea.girdi {
  width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  padding: 0 14px; font-size: 16px; transition: border-color var(--d2), box-shadow var(--d2); appearance: none; -webkit-appearance: none;
}
textarea.girdi { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.45; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
select.girdi { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.girdi:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.girdi::placeholder { color: var(--faint); }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ikili .alan { margin-top: 14px; }
.onay { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.onay input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; margin-top: 1px; }
.hata-kutu { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 500; }
.not-kutu { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; display: flex; gap: 10px; }
.not-kutu svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.anahtar { position: relative; width: 50px; height: 30px; flex: none; }
.anahtar input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.anahtar i { position: absolute; inset: 0; border-radius: 30px; background: var(--surface-3); transition: background var(--d2); }
.anahtar i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--d2) var(--spring); }
.anahtar input:checked + i { background: var(--accent); }
.anahtar input:checked + i::after { transform: translateX(20px); }
.anahtar input:focus-visible + i { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ---------- sheet ---------- */
.perde { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity var(--d3) var(--ease); z-index: 60; }
html[data-theme="light"] .perde { background: rgba(30, 28, 20, .35); }
.perde.acik { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 61; width: 100%; max-width: 520px; max-height: calc(100dvh - 28px);
  display: flex; flex-direction: column; background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 100%); transition: transform var(--d3) var(--ease); border: 1px solid var(--line); border-bottom: 0;
}
.sheet.acik { transform: translate(-50%, 0); }
.sheet.surukle { transition: none; }
.sheet .tutamac { padding: 10px 0 2px; display: grid; place-items: center; cursor: grab; touch-action: none; flex: none; }
.sheet .tutamac i { width: 38px; height: 5px; border-radius: 5px; background: var(--line-2); }
.sheet .sheet-bas { display: flex; align-items: center; gap: 8px; padding: 4px 12px 6px 20px; flex: none; touch-action: none; }
.sheet .sheet-bas h2 { flex: 1; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.sheet .sheet-govde { overflow-y: auto; padding: 4px 20px 20px; overscroll-behavior: contain; }
.sheet .sheet-alt { padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; display: flex; gap: 10px; }
.sheet .sheet-alt .btn { flex: 1; }
@media (min-width: 960px) {
  .sheet { bottom: 50%; border-radius: 28px; border-bottom: 1px solid var(--line); transform: translate(-50%, 60%) scale(.98); opacity: 0; transition: transform var(--d3) var(--ease), opacity var(--d2); max-height: 86vh; }
  .sheet.acik { transform: translate(-50%, 50%); opacity: 1; }
}

/* (+) menüsü */
.hizli { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hizli button, .hizli a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 20px; min-height: 108px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; text-decoration: none;
  transition: transform var(--d1) var(--ease), background var(--d2);
}
.hizli button:active, .hizli a:active { transform: scale(.97); }
.hizli .ik { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); }
.hizli .ik svg { width: 20px; height: 20px; }
.hizli b { font-size: 15px; font-weight: 600; }
.hizli span { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.hizli .vurgulu { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.hizli .vurgulu .ik { background: rgba(11, 11, 11, .1); }
.hizli .vurgulu span { color: rgba(11, 11, 11, .66); }

/* ---------- ekle: tuş takımı ---------- */
.ekran-tutar { text-align: center; padding: 14px 0 6px; }
.ekran-tutar .deger { font-size: 50px; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1.05; white-space: nowrap; transition: color var(--d2); }
.ekran-tutar .deger .tl { font-size: .52em; color: var(--muted); margin-left: 4px; font-weight: 500; }
.ekran-tutar .deger.bos { color: var(--faint); }
.ekran-tutar .deger.gelir { color: var(--income); }
.ekran-tutar .deger.salla { animation: salla 300ms; }
@keyframes salla { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tuslar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.tuslar button {
  min-height: 54px; border-radius: 16px; border: 0; background: var(--surface-2); color: var(--text); font-size: 23px; font-weight: 500;
  cursor: pointer; font-variant-numeric: tabular-nums; transition: background var(--d1), transform var(--d1) var(--ease); display: grid; place-items: center;
}
.tuslar button:active { background: var(--surface-3); transform: scale(.95); }
.tuslar button svg { width: 24px; height: 24px; }
.ekle-satir { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ekle-satir .girdi { flex: 1; }
.tahmin-not { font-size: 12px; color: var(--accent-ink); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.mini-bas { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; }

/* ---------- boş durum / iskelet ---------- */
.bos { text-align: center; padding: 40px 20px; color: var(--muted); }
.bos svg { width: 132px; height: auto; margin: 0 auto 14px; }
.bos h3 { color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.bos p { font-size: 14px; max-width: 280px; margin: 0 auto; }
.bos .btn { margin-top: 18px; }
.iskelet { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: parilti 1.3s linear infinite; border-radius: 16px; }
@keyframes parilti { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 8px; width: calc(100% - 32px); max-width: 488px; pointer-events: none; }
body:has(.alt-bar) .toasts { bottom: calc(var(--tab-h) + 104px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .toasts { bottom: 28px; } body:has(.alt-bar) .toasts { bottom: 108px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toast-gir var(--d3) var(--spring) both;
}
.toast.cik { animation: toast-cik var(--d2) var(--ease) both; }
.toast .m { flex: 1; }
.toast button { background: transparent; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 6px 8px; min-height: 36px; border-radius: 10px; }
html[data-theme="light"] .toast button { color: #c6f24e; }
.toast.hata { background: var(--danger); color: #fff; }
@keyframes toast-gir { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-cik { to { opacity: 0; transform: translateY(8px); } }

/* ---------- giriş ---------- */
.giris { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 440px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 20px 28px; }
.giris .logo img { height: 26px; width: auto; }
.giris .slogan { margin: 44px 0 26px; }
.giris .slogan h1 { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 46px; line-height: .98; letter-spacing: -.015em; }
.giris .slogan h1 em { color: var(--accent-ink); font-style: italic; }
.giris .slogan p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 330px; }
.giris .seg { margin-bottom: 4px; }
.giris form { animation: sayfa-gir var(--d3) var(--ease) both; }
.giris .btn.ana { margin-top: 20px; }
.giris .dip { margin-top: auto; padding-top: 28px; font-size: 12.5px; color: var(--faint); text-align: center; }
.giris .dip a { color: var(--muted); }
.ozellik { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ozellik span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; }

/* ---------- daha fazla ---------- */
.menu-grup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px; margin-top: 12px; }
.menu-grup .satir { min-height: 56px; padding: 8px 10px; }
.menu-grup .balon { width: 36px; height: 36px; border-radius: 11px; }
.menu-grup .balon svg { width: 19px; height: 19px; }
.menu-grup .ok { width: 18px; height: 18px; color: var(--faint); flex: none; }
.menu-grup .ayrac { margin-left: 58px; }
.profil { display: flex; align-items: center; gap: 14px; padding: 6px 2px 4px; }
.profil .av { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 20px; }
.profil b { font-size: 17px; display: block; }
.profil span { color: var(--muted); font-size: 13.5px; }
.renkler { display: flex; gap: 10px; flex-wrap: wrap; }
.renkler button { width: 36px; height: 36px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform var(--d1); }
.renkler button[aria-pressed="true"] { border-color: var(--text); transform: scale(1.06); }
.emojiler { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emojiler button { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font-size: 20px; cursor: pointer; min-height: 38px; }
.emojiler button[aria-pressed="true"] { background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--accent-ink); }

/* kategori seçici ızgarası */
.kat-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kat-izgara button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; min-height: 80px; border-radius: 16px; border: 1px solid transparent;
  background: transparent; cursor: pointer; transition: background var(--d1), border-color var(--d2), transform var(--d1);
}
.kat-izgara button:hover { background: var(--surface-2); }
.kat-izgara button:active { transform: scale(.94); }
.kat-izgara button .balon { width: 44px; height: 44px; }
.kat-izgara button > span:not(.balon) { font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kat-izgara button[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-soft); }
.kat-izgara button[aria-pressed="true"] > span:not(.balon) { color: var(--text); font-weight: 600; }

/* ---------- EKSTRE YÜKLEME ---------- */
.adimlar { display: flex; gap: 6px; margin: 2px 0 18px; }
.adimlar i { flex: 1; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; position: relative; }
.adimlar i::after { content: ""; position: absolute; inset: 0; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.adimlar i.tamam::after { transform: scaleX(1); }

.hesap-sec { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.hesap-sec::-webkit-scrollbar { display: none; }
.hesap-sec button {
  flex: none; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 14px 8px 8px; border-radius: 18px;
  border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; transition: border-color var(--d2), background var(--d2), transform var(--d1);
}
.hesap-sec button:active { transform: scale(.97); }
.hesap-sec button .balon { width: 40px; height: 40px; border-radius: 12px; color: #f4f1e8; }
.hesap-sec button b { display: block; font-size: 14px; font-weight: 600; }
.hesap-sec button small { display: block; font-size: 12px; color: var(--muted); }
.hesap-sec button[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-soft); }

.birak {
  margin-top: 16px; position: relative; border-radius: 26px; border: 1.5px dashed var(--line-2); padding: 30px 20px 22px; text-align: center;
  background: radial-gradient(100% 80% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
  transition: border-color var(--d2), background var(--d2), transform var(--d2) var(--ease);
}
.birak.uzerinde { border-color: var(--accent-ink); border-style: solid; transform: scale(1.01); }
.birak .belgeler { position: relative; width: 150px; height: 92px; margin: 0 auto 14px; }
.birak .belgeler span {
  position: absolute; width: 58px; height: 74px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2);
  display: grid; place-items: end center; padding-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  transition: transform 500ms var(--spring);
}
.birak .belgeler span::before { content: ""; position: absolute; top: 12px; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--line-2); box-shadow: 0 8px 0 var(--line-2), 0 16px 0 var(--line-2), 0 24px 0 var(--line-2); }
.birak .belgeler span:nth-child(1) { left: 4px; top: 12px; transform: rotate(-12deg); }
.birak .belgeler span:nth-child(2) { right: 4px; top: 12px; transform: rotate(12deg); }
.birak .belgeler span:nth-child(3) { left: 46px; top: 0; background: var(--accent); color: var(--on-accent); border-color: transparent; z-index: 1; }
.birak .belgeler span:nth-child(3)::before { background: rgba(11, 11, 11, .18); box-shadow: 0 8px 0 rgba(11, 11, 11, .18), 0 16px 0 rgba(11, 11, 11, .18), 0 24px 0 rgba(11, 11, 11, .18); }
.birak.uzerinde .belgeler span:nth-child(1) { transform: rotate(-20deg) translateX(-8px); }
.birak.uzerinde .belgeler span:nth-child(2) { transform: rotate(20deg) translateX(8px); }
.birak.uzerinde .belgeler span:nth-child(3) { transform: translateY(-6px); }
.birak h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.birak p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.birak .dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.birak .dugmeler .btn.ana { grid-column: 1 / -1; }
.gizlilik-not { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.gizlilik-not svg { width: 15px; height: 15px; color: var(--accent-ink); }
.bicimler { display: flex; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

.dosyalar { display: grid; gap: 10px; }
.dosya { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; animation: sayfa-gir var(--d3) var(--ease) both; }
.dosya .balon { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.dosya .govde { flex: 1; min-width: 0; }
.dosya .ad { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dosya .durum { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; justify-content: space-between; gap: 8px; }
.dosya .cizgi { margin-top: 8px; height: 5px; }
.dosya.bitti .cizgi i { background: var(--ok); }
.dosya.hata .cizgi i { background: var(--danger); }
.dosya.hata .durum { color: var(--danger); }
.dosya .durum-ik { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.dosya .durum-ik svg { width: 22px; height: 22px; }
.dosya.bitti .durum-ik { color: var(--ok); }
.dosya.hata .durum-ik { color: var(--danger); }
.dosya .donen { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent-ink); animation: don .8s linear infinite; }
.cizgi.belirsiz i { width: 40% !important; animation: belirsiz 1.2s var(--ease) infinite; }
@keyframes belirsiz { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.asama-bas { text-align: center; padding: 18px 0 22px; }
.asama-bas h2 { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.05; }
.asama-bas p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.tarayici { width: 76px; height: 92px; margin: 0 auto 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.tarayici::before { content: ""; position: absolute; left: 12px; right: 12px; top: 16px; height: 3px; border-radius: 3px; background: var(--line-2); box-shadow: 0 9px 0 var(--line-2), 0 18px 0 var(--line-2), 0 27px 0 var(--line-2), 0 36px 0 var(--line-2), 0 45px 0 var(--line-2), 0 54px 0 var(--line-2); }
.tarayici::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: linear-gradient(180deg, transparent, var(--accent-soft) 60%, var(--accent)); opacity: .9; height: 22px; top: -22px; animation: tara 1.6s var(--ease) infinite; border-bottom: 2px solid var(--accent); }
@keyframes tara { to { top: 100%; } }

/* inceleme */
.inceleme-ust {
  position: sticky; top: 0; z-index: 12; margin: 0 -16px; padding: 10px 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--d2);
}
.inceleme-ust.golge { border-bottom-color: var(--line); }
.ozet-serit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ozet-serit div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.ozet-serit small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ozet-serit b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ozet-serit b.gelir { color: var(--income); }
.inceleme-ust .cipler { margin-top: 10px; }
.uyarilar { margin-top: 12px; }
.uyarilar summary { cursor: pointer; font-size: 13px; color: var(--warn); font-weight: 500; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.uyarilar summary::-webkit-details-marker { display: none; }
.uyarilar summary svg { width: 16px; height: 16px; }
.uyarilar ul { margin: 0; padding: 0 0 0 20px; font-size: 13px; color: var(--muted); }

.kgrup { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; animation: sayfa-gir var(--d3) var(--ease) both; }
.kgrup.kategorisiz { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.kgrup-bas { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; border-bottom: 1px solid var(--line); }
.kgrup-bas .balon { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.kgrup-bas .govde { flex: 1; min-width: 0; }
.kgrup-bas b { display: block; font-size: 14.5px; font-weight: 600; }
.kgrup-bas small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kgrup-bas .btn { min-height: 34px; }
.kutucuk { width: 44px; height: 44px; display: grid; place-items: center; flex: none; cursor: pointer; position: relative; }
.kutucuk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kutucuk i { width: 22px; height: 22px; border-radius: 7px; border: 1.75px solid var(--line-2); display: grid; place-items: center; transition: background var(--d1), border-color var(--d1), transform var(--d1) var(--spring); }
.kutucuk i svg { width: 14px; height: 14px; color: var(--on-accent); opacity: 0; transform: scale(.5); transition: opacity var(--d1), transform var(--d2) var(--spring); }
.kutucuk input:checked + i { background: var(--accent); border-color: var(--accent); }
.kutucuk input:checked + i svg { opacity: 1; transform: none; }
.kutucuk input:indeterminate + i { background: var(--accent); border-color: var(--accent); }
.kutucuk input:indeterminate + i::after { content: ""; width: 10px; height: 2px; background: var(--on-accent); border-radius: 2px; position: absolute; }
.kutucuk input:focus-visible + i { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.kutucuk input:active + i { transform: scale(.88); }

.ksatir { display: flex; align-items: flex-start; gap: 4px; padding: 8px 12px 10px 2px; border-top: 1px solid var(--line); transition: opacity var(--d2), background var(--d2); }
.ksatir:first-of-type { border-top: 0; }
.ksatir.kapali .ic { opacity: .45; }
.ksatir .ic { flex: 1; min-width: 0; padding-top: 8px; transition: opacity var(--d2); }
.ksatir .ust-s { display: flex; gap: 10px; align-items: baseline; }
.ksatir .acik { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ksatir .tut { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; font-size: 14.5px; }
.ksatir .tut.gelir { color: var(--income); }
.ksatir .tut.transfer { color: var(--transfer); }
.ksatir .alt-s { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.ksatir .tarih { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; margin-right: 2px; }
.kcip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background var(--d1), border-color var(--d2), transform var(--d1);
}
.kcip:active { transform: scale(.95); }
.kcip.bos { border-style: dashed; border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.kcip.tur { color: var(--muted); }
.kcip.tur.gelir { color: var(--income); }
.kcip.tur.transfer { color: var(--transfer); }
.kcip svg { width: 13px; height: 13px; }
.yeni-isaret { animation: vurgula 1.1s var(--ease); }
@keyframes vurgula { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

.alt-bar {
  position: sticky; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 12; margin-top: 18px;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.alt-bar .bilgi { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.3; }
.alt-bar .bilgi b { color: var(--text); font-size: 15px; display: block; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .alt-bar { bottom: 16px; } }

.basari { text-align: center; padding: 26px 0 8px; }
.basari .rozet-buyuk { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 32px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; animation: patla 600ms var(--spring) both; }
.basari .rozet-buyuk svg { width: 48px; height: 48px; }
.basari .rozet-buyuk svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tik-ciz2 500ms 250ms var(--ease) forwards; }
@keyframes tik-ciz2 { to { stroke-dashoffset: 0; } }
@keyframes patla { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.basari h2 { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 34px; line-height: 1.05; }
.basari p { color: var(--muted); margin-top: 6px; }
.sonuc-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; text-align: left; }
.sonuc-izgara div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.sonuc-izgara b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sonuc-izgara small { color: var(--muted); font-size: 12.5px; }
.sonuc-izgara div.vurgu { background: var(--accent-soft); border-color: transparent; }
.sonuc-izgara div.vurgu b { color: var(--accent-ink); }

.konfeti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.konfeti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: dus 1.6s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes dus { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .2; } }

/* yardımcılar */
.ara { height: 12px; }
.sag-hiza { text-align: right; }
.esnek { display: flex; align-items: center; gap: 10px; }
.esnek.ayir { justify-content: space-between; }
.dolgu { flex: 1; }
.kucuk-yazi { font-size: 13px; }
.gizli-dosya { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sayfa-alti { padding: 24px 0 8px; text-align: center; font-size: 12px; color: var(--faint); }
.arama { position: relative; }
.arama svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.arama .girdi { padding-left: 42px; min-height: 46px; border-radius: 14px; background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---- kart & harcama dağılımı + yardım + kart öneri kutusu ---- */
.kd-genel, .kd-hesap { margin-bottom: 12px; }
.kd-buyuk { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 2px 0 12px; }
.kd-serit { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 10px 0 12px; }
.kd-serit i { display: block; min-width: 6px; border-radius: 99px; }
.kd-serit.bos { opacity: .5; }
.kd-lejant { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kd-lejant li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.kd-lejant li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kd-lejant li span { flex: 1; color: var(--muted); }
.kd-kalan { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.kd-kalan span { color: var(--muted); }
.kd-bas { display: flex; align-items: center; gap: 12px; }
.kd-bas .govde { flex: 1; min-width: 0; }
.kd-toplam { font-size: 18px; font-weight: 600; }
.kd-alt-baslik { margin: 14px 0 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kd-kat { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kd-kat li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.kd-kat li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-taksit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.kd-taksit summary { cursor: pointer; font-size: 14px; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.kd-taksit ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.kd-taksit li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.kd-taksit li .sag { text-align: right; display: grid; }
.kart-oneri { display: grid; gap: 6px; margin-bottom: 12px; border-color: var(--accent-ink, var(--accent)); }
.kart-oneri .btn { justify-self: start; margin-top: 4px; }
.yardim { display: grid; gap: 10px; }
.yardim-adim { padding: 0; }
.yardim-adim summary { list-style: none; cursor: pointer; min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.yardim-adim summary::-webkit-details-marker { display: none; }
.yardim-adim summary .ok { transition: transform .2s; flex: none; }
.yardim-adim[open] summary .ok { transform: rotate(90deg); }
.yardim-ic { padding: 0 16px 16px; display: grid; gap: 10px; }
.yardim-ic p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.yardim-ic .btn { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .yardim-adim summary .ok { transition: none; } }
