/* iOS sistem paleti (açık/koyu), 8pt ızgara, inset grouped listeler. Ayrıntı: mobil-ui-ux skill'i */
:root {
  --zemin: #f2f2f7; --yuzey: #ffffff; --yuzey2: #f2f2f7; --dolgu: rgba(120,120,128,.12);
  --yazi: #000000; --yazi2: rgba(60,60,67,.74); --yazi3: rgba(60,60,67,.3); --ayrac: rgba(60,60,67,.18);
  --ana: #007aff; --yesil: #34c759; --turuncu: #ff9500; --kirmizi: #ff3b30; --mor: #af52de; --indigo: #5856d6;
  --teal: #30b0c7; --pembe: #ff2d55; --sari: #ffcc00; --kahve: #a2845e;
  --cam: rgba(249,249,249,.78); --karartma: rgba(0,0,0,.32);
  --golge: 0 1px 2px rgba(0,0,0,.04); --segment: #ffffff;
  --egri: cubic-bezier(.32,.72,0,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="acik"]) {
    --zemin: #000000; --yuzey: #1c1c1e; --yuzey2: #2c2c2e; --dolgu: rgba(118,118,128,.24);
    --yazi: #ffffff; --yazi2: rgba(235,235,245,.6); --yazi3: rgba(235,235,245,.3); --ayrac: rgba(84,84,88,.55);
    --ana: #0a84ff; --yesil: #30d158; --turuncu: #ff9f0a; --kirmizi: #ff453a; --mor: #bf5af2; --indigo: #5e5ce6;
    --teal: #40c8e0; --pembe: #ff375f; --sari: #ffd60a; --kahve: #ac8e68;
    --cam: rgba(22,22,24,.78); --karartma: rgba(0,0,0,.5); --golge: none; --segment: #636366; color-scheme: dark;
  }
}
:root[data-tema="koyu"] {
  --zemin: #000000; --yuzey: #1c1c1e; --yuzey2: #2c2c2e; --dolgu: rgba(118,118,128,.24);
  --yazi: #ffffff; --yazi2: rgba(235,235,245,.6); --yazi3: rgba(235,235,245,.3); --ayrac: rgba(84,84,88,.55);
  --ana: #0a84ff; --yesil: #30d158; --turuncu: #ff9f0a; --kirmizi: #ff453a; --mor: #bf5af2; --indigo: #5e5ce6;
  --teal: #40c8e0; --pembe: #ff375f; --sari: #ffd60a; --kahve: #ac8e68;
  --cam: rgba(22,22,24,.78); --karartma: rgba(0,0,0,.5); --golge: none; --segment: #636366; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Dynamic Type: iOS'ta kullanıcının metin boyutu ayarı kök boyutu belirler (varsayılan 17px), tüm yazılar rem */
html { -webkit-text-size-adjust: 100%; background: var(--zemin); font-size: 17px; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
body {
  margin: 0; background: var(--zemin); color: var(--yazi);
  font: 1rem/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: -.01em; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  transition: background-color .3s;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { touch-action: manipulation; cursor: pointer; }
svg:not([role="img"]) { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ana); outline-offset: 2px; border-radius: 8px; }
.gizli, [hidden] { display: none !important; }
.gorunmez { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
small, .dipnot { font-size: 0.7647rem; color: var(--yazi2); letter-spacing: 0; }
.dipnot { display: block; }
.ust-not { margin: -4px 4px 16px; }
.grup + .ust-not { margin: 8px 16px 28px; }
.ortali { text-align: center; }

/* ---------- Gezinme çubuğu (üst) ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: max(6px, env(safe-area-inset-top)) 12px 6px; min-height: calc(50px + env(safe-area-inset-top));
  background: transparent; transition: background-color .25s, box-shadow .25s;
}
body.kaydi .nav {
  background: var(--cam); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--ayrac);
}
.nav-baslik { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font-size: 1rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
body.kaydi:is([data-v="butce"], [data-v="veri"]) .nav-baslik { opacity: 1; transform: none; } /* ay seçicili sekmelerde başlık yerine ay */
.ay-sec { display: flex; align-items: center; justify-self: start; background: var(--dolgu); border-radius: 999px; height: 36px; }
.ay-sec span { font-size: 0.8824rem; font-weight: 600; min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
body[data-v="butce"] .ay-sec, body[data-v="veri"] .ay-sec { visibility: hidden; }
.ikon-dug { width: 44px; height: 36px; border: 0; background: none; color: var(--ana); display: grid; place-items: center; border-radius: 999px; }
.ikon-dug svg { width: 18px; height: 18px; stroke-width: 2.4; }
.avatar {
  justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #8e8e93, #636366); color: #fff; font-weight: 600; font-size: 0.8824rem;
}
.avatar.buyuk { width: 56px; height: 56px; font-size: 1.2941rem; flex: none; }
button.avatar { position: relative; }
button.avatar::after { content: ""; position: absolute; inset: -4px; } /* 44pt dokunma alanı */

main { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.buyuk-baslik { font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin: 2px 4px 12px; }
.bolum {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.2941rem; font-weight: 700; letter-spacing: -.02em; margin: 28px 4px 10px;
}
.baglanti { border: 0; background: none; color: var(--ana); font-size: 1rem; font-weight: 400; padding: 8px 0 8px 16px; margin: -8px 0; letter-spacing: -.01em; }

/* ---------- Görünüm geçişi ---------- */
.gorunum { display: none; }
.gorunum.aktif { display: block; animation: gir .32s var(--egri); }
@keyframes gir { from { opacity: 0; transform: translateX(14px); } }

/* ---------- Gruplar (inset grouped) ---------- */
.grup { background: var(--yuzey); border-radius: 14px; box-shadow: var(--golge); overflow: hidden; }
.grup + .grup { margin-top: 16px; }
.kart-ic { padding: 16px; }
.liste-grup > *, .grup > .satir-alan, .grup > .satir-dugme { position: relative; }
.liste-grup > * + *::before, .grup > .satir-alan + .satir-alan::before, .grup > .satir-alan + .satir-dugme::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--ayrac); pointer-events: none;
}
.liste-grup > :is(.limit, .kat-satir, li, .eylem-satir) + *::before { left: 62px; } /* ayraç rozetten sonra başlar */
.liste-grup:empty { display: none; }

.satir-alan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px;
}
.satir-alan > span { flex: none; }
.satir-alan input, .satir-alan select {
  flex: 1; min-width: 0; text-align: right; border: 0; background: none; padding: 12px 0; font-size: 1rem; color: var(--yazi2);
  outline: none; -webkit-appearance: none; appearance: none;
}
.satir-alan input:focus { color: var(--yazi); }
.satir-alan select { direction: rtl; text-align-last: right; }
.satir-alan select option { direction: ltr; }
.satir-alan input[type="date"] { min-height: 46px; }
input::placeholder { color: var(--yazi3); }

.satir-dugme {
  display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 0 16px;
  border: 0; background: none; color: var(--ana); font-size: 1rem;
}
.satir-dugme.sol { justify-content: flex-start; }
.satir-dugme.tehlike, .tehlike { color: var(--kirmizi); }
.satir-dugme:active, .eylem-satir:active, .islemler li:active, .kisayol:active { background: var(--dolgu); }

/* ---------- Düğmeler ---------- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 20px;
  border: 0; border-radius: 14px; font-size: 1rem; font-weight: 600; transition: transform .1s, opacity .1s;
}
.dugme:active, .ekle:active, .kisayol:active { transform: scale(.97); }
.dugme.birincil { background: var(--ana); color: #fff; }
.dugme.ikincil { background: var(--dolgu); color: var(--ana); }
.dugme.metin { background: none; color: var(--ana); font-weight: 400; min-height: 44px; padding: 0 4px; }
.dugme.kalin { font-weight: 600; }
.dugme.genis { width: 100%; margin-top: 16px; }
.dugme:disabled { opacity: .4; }

/* ---------- Özet: kahraman ---------- */
.kahraman { padding: 4px 4px 20px; }
.etiket-yazi { font-size: 0.8824rem; color: var(--yazi2); }
.buyuk-sayi {
  display: block; font-size: 2.8235rem; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; margin: 2px 0 10px;
  font-variant-numeric: tabular-nums;
}
.buyuk-sayi small, .mini b small { font-size: .5em; color: var(--yazi2); font-weight: 600; letter-spacing: -.01em; }
.cip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 0.7647rem; font-weight: 600;
  background: var(--dolgu); color: var(--yazi2);
}
.cip.iyi { background: color-mix(in srgb, var(--yesil) 16%, transparent); color: var(--yesil-yazi, var(--yesil)); }
.cip.kotu { background: color-mix(in srgb, var(--kirmizi) 14%, transparent); color: var(--kirmizi); }
.ikili { display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 4px 16px; }
.mini span { display: block; font-size: 0.7647rem; color: var(--yazi2); }
.mini b { font-size: 1.4118rem; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.mini + .mini { padding-left: 16px; box-shadow: inset .5px 0 0 var(--ayrac); }
.genis-ilerleme { grid-column: 1 / -1; margin-top: 12px; }
.ikili .dipnot { grid-column: 1 / -1; }

/* ---------- İlerleme çubukları ---------- */
.ilerleme { height: 6px; border-radius: 3px; background: var(--dolgu); overflow: hidden; }
.ilerleme i { display: block; height: 100%; border-radius: 3px; background: var(--yesil); width: 0; transition: width .6s var(--egri); }
.ilerleme i.orta { background: var(--turuncu); }
.ilerleme i.asti { background: var(--kirmizi); }

/* ---------- Kategori satırları ---------- */
.rozet {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-style: normal;
  font-size: 1.0588rem; line-height: 1; color: #fff; font-weight: 600;
}
.rozet svg { width: 20px; height: 20px; stroke-width: 2; }
.rozet.kucuk { width: 28px; height: 28px; border-radius: 7px; font-size: 0.8824rem; }
.rozet.mavi { background: var(--ana); } .rozet.mor { background: var(--mor); } .rozet.turuncu { background: var(--turuncu); } .rozet.yesil { background: var(--yesil); }
.limit { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.limit.alt { padding-left: 32px; }
.limit-govde { flex: 1; min-width: 0; }
.limit-ust { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.limit-ust b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.limit-ust span { font-size: 0.8824rem; font-variant-numeric: tabular-nums; color: var(--yazi2); flex: none; }
.limit-ust span.orta { color: var(--turuncu); } .limit-ust span.asti { color: var(--kirmizi); font-weight: 600; }
.limit .ilerleme { margin-top: 7px; height: 4px; }
.limit small { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Grafikler ---------- */
.dagilim { display: flex; gap: 20px; align-items: center; }
#pasta svg { display: block; }
#pasta text { fill: var(--yazi2); font-size: 11px; }
.lejant { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; font-size: 0.8824rem; }
.lejant li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.lejant i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lejant span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lejant span:last-child { color: var(--yazi2); font-variant-numeric: tabular-nums; font-size: 0.7647rem; }
#cubuk svg { display: block; overflow: visible; }
#cubuk text { fill: var(--yazi2); font-size: 11px; }
#cubuk text.deger { fill: var(--yazi); font-weight: 600; font-size: 10px; }
@media (max-width: 360px) { .dagilim { flex-direction: column; } .lejant { width: 100%; } }

/* ---------- Öneriler ---------- */
.oneriler { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oneriler li {
  background: var(--yuzey); border-radius: 14px; padding: 14px 16px 14px 48px; font-size: 0.8824rem; line-height: 1.4; position: relative; box-shadow: var(--golge);
}
.oneriler li::before {
  content: "i"; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 Georgia, serif; color: #fff; background: var(--ana);
}
.oneriler li.iyi::before { content: "✓"; font-family: inherit; background: var(--yesil); }
.oneriler li.uyari::before { content: "!"; font-family: inherit; background: var(--turuncu); }
.oneriler li.kotu::before { content: "!"; font-family: inherit; background: var(--kirmizi); }

/* ---------- İşlem listesi ---------- */
.islemler, .islem-gunleri { list-style: none; margin: 0; padding: 0; }
.islemler li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; }
.islemler .bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.islemler .bilgi b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.islemler .bilgi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.islemler .tutar { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
.islemler .bos, .bos { color: var(--yazi2); justify-content: center; text-align: center; font-size: 0.8824rem; padding: 20px 16px; }
.demo-etiket { font-size: 0.6471rem; font-weight: 600; color: var(--yazi2); background: var(--dolgu); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.gun-baslik { display: flex; justify-content: space-between; font-size: 0.7647rem; color: var(--yazi2); margin: 22px 16px 6px; text-transform: none; font-variant-numeric: tabular-nums; }
.gun-baslik:first-child { margin-top: 8px; }
.ay-toplam { text-align: center; font-size: 0.7647rem; color: var(--yazi2); margin: 4px 0 0; }

.kisayollar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kisayol {
  border: 0; background: var(--yuzey); border-radius: 14px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--golge); transition: transform .1s; min-height: 104px;
}
.kisayol svg { color: var(--ana); margin-bottom: 8px; width: 26px; height: 26px; }
.kisayol b { font-size: 1rem; font-weight: 600; }
.kisayol small { line-height: 1.25; }
.filtre { margin: 20px 0 0; }
.filtre select {
  width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--dolgu); padding: 0 14px; font-size: 0.8824rem;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}

/* ---------- Limitler sekmesi ---------- */
.kat-satir { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; min-height: 56px; }
.kat-satir .ad { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kat-satir .ad b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kat-satir input {
  width: 108px; height: 36px; border: 0; border-radius: 9px; background: var(--dolgu); text-align: right; padding: 0 10px;
  font-size: 0.8824rem; font-variant-numeric: tabular-nums; outline: none;
}
.kat-satir input:focus { box-shadow: 0 0 0 2px var(--ana); }
.islem { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--yazi3); display: grid; place-items: center; border-radius: 10px; }
.islem svg { width: 20px; height: 20px; }
.islem:active { color: var(--kirmizi); background: var(--dolgu); }

/* ---------- Bütçe ---------- */
.satirlar { display: grid; gap: 12px; }
.dinamik { background: var(--yuzey); border-radius: 14px; position: relative; box-shadow: var(--golge); }
.dinamik label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px; font-size: 0.8824rem; }
.dinamik label { position: relative; }
.dinamik label + label::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--ayrac); }
.dinamik input, .dinamik select { flex: 1; min-width: 0; border: 0; background: none; text-align: right; font-size: 0.8824rem; color: var(--yazi2); outline: none; padding: 10px 0; -webkit-appearance: none; appearance: none; }
.dinamik select { direction: rtl; }
.dinamik label:first-child { padding-right: 52px; }
.dinamik .sil { position: absolute; top: 1px; right: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--yazi3); font-size: 0.8824rem; }
.plan-sonuc { margin-top: 28px; }
.plan-sonuc h2 { font-size: 1.2941rem; font-weight: 700; letter-spacing: -.02em; margin: 0 4px 12px; }
.plan-sonuc h3 { font-size: 1rem; font-weight: 600; margin: 24px 4px 10px; }
.serit { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.serit i { display: block; }
.plan-tablo { width: 100%; border-collapse: collapse; background: var(--yuzey); border-radius: 14px; overflow: hidden; font-size: 0.8824rem; box-shadow: var(--golge); }
.plan-tablo td { padding: 12px 16px; border-top: .5px solid var(--ayrac); }
.plan-tablo tr:first-child td { border-top: 0; }
.plan-tablo td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yontemler { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yontemler > div { background: var(--yuzey); border-radius: 14px; padding: 14px; font-size: 0.8824rem; line-height: 1.4; box-shadow: var(--golge); border: 2px solid transparent; }
.yontemler > div b { display: block; margin-bottom: 4px; }
.yontemler .onerilen { border-color: var(--yesil); }
.uyari-kutu { background: color-mix(in srgb, var(--turuncu) 14%, var(--yuzey)); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: 0.8824rem; }
.plan-sonuc .ipucu { font-size: 0.7647rem; color: var(--yazi2); margin: 10px 4px; }

/* ---------- Ayarlar ---------- */
.profil { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.profil b { display: block; font-size: 1.1765rem; font-weight: 600; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--dolgu); border-radius: 9px; padding: 2px; }
.segment label { position: relative; }
.segment input { position: absolute; opacity: 0; }
.segment span { display: grid; place-items: center; height: 32px; border-radius: 7px; font-size: 0.7647rem; font-weight: 500; transition: background-color .2s, box-shadow .2s; }
.segment input:checked + span { background: var(--segment); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); font-weight: 600; }
.segment input:focus-visible + span { outline: 2px solid var(--ana); }

/* ---------- Alt sekme çubuğu ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  padding: 6px max(8px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom));
  background: var(--cam); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -.5px 0 var(--ayrac);
}
.tabbar button {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 49px; padding: 2px 0 0;
  color: var(--yazi2); font-size: 0.5882rem; font-weight: 500; letter-spacing: .01em;
}
.tabbar button svg { width: 26px; height: 26px; }
.tabbar button.aktif { color: var(--ana); }
.tabbar button { position: relative; }
.sayac { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--kirmizi); color: #fff; font: 600 12px/18px -apple-system, system-ui, sans-serif; font-style: normal; text-align: center; }
/* Onay bekleyenler (e-postadan gelen, karar bekleyen kayıtlar) */
.bekleyen-liste { list-style: none; margin: 0; padding: 0; }
.bekleyen-liste > li { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; }
.bekleyen-liste .bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bekleyen-liste .bilgi b { font-weight: 500; font-size: 0.9412rem; }
.bekleyen-liste .ozet { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bekleyen-liste .tutar { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--turuncu); white-space: nowrap; }
.bekleyen-eylem { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.bekleyen-eylem select { min-height: 44px; border: 0; border-radius: 10px; background: var(--dolgu); color: var(--yazi); font-size: 0.8824rem; padding: 0 10px; max-width: 100%; }
.bekleyen-eylem .dugme:not(.metin) { min-height: 44px; padding: 0 14px; font-size: 0.8824rem; border-radius: 10px; }
.bekleyen-eylem .dugme.metin { font-size: 0.8824rem; color: var(--yazi2); }
.tabbar button.aktif svg { fill: color-mix(in srgb, var(--ana) 18%, transparent); }
.tabbar .ekle {
  justify-self: center; width: 52px; height: 52px; min-height: 0; border-radius: 50%; margin-top: -2px; padding: 0; justify-content: center;
  background: var(--ana); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--ana) 45%, transparent); transition: transform .12s;
}
.tabbar .ekle svg { width: 26px; height: 26px; stroke-width: 2.6; }
@media (min-width: 700px) { .tabbar { padding-left: calc(50% - 280px); padding-right: calc(50% - 280px); } }

/* ---------- Sheet'ler (dialog) ---------- */
dialog { color: var(--yazi); }
dialog::backdrop { background: var(--karartma); animation: sol .3s; }
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 560px; max-height: calc(100dvh - env(safe-area-inset-top) - 12px);
  border: 0; border-radius: 14px 14px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); background: var(--zemin);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: yukari .45s var(--egri); }
.sheet.kapaniyor { animation: asagi .25s ease-in forwards; }
.sheet.kapaniyor::backdrop { animation: sol .25s reverse forwards; }
.sheet.tam { height: calc(100dvh - env(safe-area-inset-top) - 12px); }
@keyframes yukari { from { transform: translateY(100%); } }
@keyframes asagi { to { transform: translateY(100%); } }
@keyframes sol { from { opacity: 0; } }
.tutamak { width: 36px; height: 5px; border-radius: 3px; background: var(--yazi3); margin: 6px auto 4px; touch-action: none; }
.tutamak::after { content: ""; display: block; height: 30px; margin: -12px -100px 0; } /* sürükleme alanı */
.sheet-baslik { font-size: 1.1765rem; font-weight: 700; text-align: center; margin: 8px 0 16px; }
.sheet-ust { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0 -4px 8px; position: sticky; top: 0; background: var(--zemin); z-index: 2; }
.sheet-ust h2 { font-size: 1rem; font-weight: 600; margin: 0; text-align: center; }
.sheet-ust > :first-child { justify-self: start; }
.sheet-ust > :last-child { justify-self: end; }

.eylem-satir { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; min-height: 64px; }
.eylem-satir span { display: flex; flex-direction: column; }
.eylem-satir b { font-weight: 400; }

/* Harcama formu */
.tutar-alan { display: flex; justify-content: center; align-items: baseline; gap: 4px; padding: 20px 0 12px; }
.tutar-alan input {
  width: 100%; max-width: 260px; text-align: right; border: 0; background: none; outline: none; padding: 0;
  font-size: 3.2941rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; caret-color: var(--ana);
}
.tutar-alan em { font-style: normal; font-size: 2rem; font-weight: 600; color: var(--yazi2); flex: 1; }
.tutar-alan::before { content: ""; flex: 1; max-width: 0; }
.limit-onizleme { font-size: 0.8824rem; border-radius: 12px; margin-bottom: 16px; line-height: 1.4; }
.limit-onizleme:empty { display: none; }
.limit-onizleme.iyi, .limit-onizleme.orta, .limit-onizleme.asti { padding: 10px 14px; }
.limit-onizleme.iyi { background: color-mix(in srgb, var(--yesil) 13%, var(--yuzey)); }
.limit-onizleme.orta { background: color-mix(in srgb, var(--turuncu) 15%, var(--yuzey)); }
.limit-onizleme.asti { background: color-mix(in srgb, var(--kirmizi) 14%, var(--yuzey)); color: var(--kirmizi); font-weight: 500; }
.asti { color: var(--kirmizi); }
.fis-bilgi { display: flex; align-items: center; gap: 12px; background: var(--yuzey); border-radius: 12px; padding: 8px; font-size: 0.7647rem; color: var(--yazi2); margin-top: 4px; }
.fis-bilgi img { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.satir-alan.eksik span::after { content: " •"; color: var(--turuncu); }
.tutar-alan.supheli input { color: var(--turuncu); }
.fis-bilgi.buyuk { flex-wrap: wrap; }
.fis-bilgi.buyuk img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; }

/* Fiş okuma */
.fis-okuma { position: relative; margin: 12px auto 0; width: 64%; max-width: 260px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--yuzey2); }
.fis-okuma img { width: 100%; height: 100%; object-fit: cover; }
.tarama { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 40%, color-mix(in srgb, var(--ana) 35%, transparent) 50%, transparent 60%); background-size: 100% 250%; animation: tara 1.6s linear infinite; }
@keyframes tara { from { background-position: 0 100%; } to { background-position: 0 -150%; } }
.fis-durum { text-align: center; color: var(--yazi2); font-size: 0.8824rem; margin: 16px 0 0; }

/* Ekstre önizleme */
.e-satirlar { display: grid; gap: 10px; }
.e-satir {
  background: var(--yuzey); border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; align-items: center; box-shadow: var(--golge); transition: opacity .2s;
  grid-template-columns: 26px 136px 1fr 104px; grid-template-areas: "c a a t" "c d k k" ". e e e";
}
.e-satir.kapali { opacity: .5; }
.e-satir input, .e-satir select { border: 0; background: var(--dolgu); border-radius: 8px; height: 36px; padding: 0 8px; font-size: 0.8824rem; min-width: 0; width: 100%; outline: none; -webkit-appearance: none; appearance: none; }
.e-satir input[type="checkbox"] { grid-area: c; -webkit-appearance: auto; appearance: auto; width: 22px; height: 22px; accent-color: var(--ana); }
.e-satir .aciklama-g { grid-area: a; }
.e-satir input[type="date"] { grid-area: d; font-size: 0.7647rem; }
.e-satir .tutar-g { grid-area: t; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.e-satir .kat-g { grid-area: k; }
.e-satir .etiket { grid-area: e; font-size: 0.7059rem; color: var(--turuncu); }

/* Uyarı (alert) */
.uyari-dialog { border: 0; border-radius: 14px; padding: 0; width: 290px; background: var(--cam); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); text-align: center; }
.uyari-dialog[open] { animation: buyu .25s var(--egri); }
@keyframes buyu { from { transform: scale(1.12); opacity: 0; } }
.onay { padding: 20px 16px 16px; font-size: 0.7647rem; line-height: 1.4; }
.onay h2 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.onay p { margin: 6px 0; }
.uyari-dugmeler { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 .5px 0 var(--ayrac); }
.uyari-dugmeler button { border: 0; background: none; min-height: 44px; font-size: 1rem; color: var(--ana); }
.uyari-dugmeler button + button { box-shadow: inset .5px 0 0 var(--ayrac); font-weight: 600; }
.uyari-dugmeler button.tehlike { color: var(--kirmizi); }

/* ---------- Bildirim (HUD) ---------- */
.bildirim {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none;
  background: var(--yuzey); color: var(--yazi); padding: 12px 18px; border-radius: 999px; font-size: 0.8824rem; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); transition: transform .35s var(--egri), opacity .25s;
}
.bildirim.goster { opacity: 1; transform: translate(-50%, 0); }
.haptik { position: fixed; left: -100px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Giriş ---------- */
.giris { display: none; }
body.kilitli > :not(.giris):not(svg):not(script) { display: none !important; }
body.kilitli { padding: 0; }
body.kilitli .giris { display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.giris form { width: 100%; max-width: 380px; text-align: center; }
.giris-ikon { border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.giris h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; margin: 16px 0 2px; }
.ikincil-yazi { color: var(--yazi2); margin: 0 0 28px; }
.giris .grup { text-align: left; }
.giris .satir-alan > span { width: 76px; }
.giris .satir-alan input { text-align: left; color: var(--yazi); }
.hata { color: var(--kirmizi); font-size: 0.8824rem; min-height: 1.4em; margin: 10px 0 0; }

/* ---------- Gelişim (1027-2346): tahmin, gidişat, takvim, düzenli ödemeler, arama, kaydırarak silme, iskelet ---------- */
.tahmin { margin: 10px 0 0; font-size: 0.8824rem; color: var(--yazi2); }
.tahmin b { color: var(--yazi); font-variant-numeric: tabular-nums; }
/* yeşil yazı açık temada 4.5:1 için koyu ton (iOS erişilebilir yeşil) */
:root { --yesil-yazi: #248a3d; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="acik"]) { --yesil-yazi: var(--yesil); } }
:root[data-tema="koyu"] { --yesil-yazi: var(--yesil); }
.yesil-yazi { color: var(--yesil-yazi); }
.genis-ilerleme { position: relative; overflow: visible; }
.genis-ilerleme > i { overflow: hidden; }
.tempo { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--yazi); opacity: .55; }
.baslik-ek { font-size: 0.8824rem; font-weight: 400; color: var(--yazi2); letter-spacing: 0; }

#gidisat svg { display: block; overflow: visible; }
#gidisat text { fill: var(--yazi2); font-size: 11px; }
.cizgi-bu { fill: none; stroke: var(--ana); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.alan-bu { fill: color-mix(in srgb, var(--ana) 12%, transparent); }
.nokta-bu { fill: var(--ana); stroke: var(--yuzey); stroke-width: 2; }
.cizgi-once { fill: none; stroke: var(--yazi3); stroke-width: 2; stroke-dasharray: 1 4; stroke-linecap: round; }
.cizgi-butce { stroke: var(--turuncu); stroke-width: 1; stroke-dasharray: 4 4; }
#gidisat .butce-yazi { fill: var(--turuncu); font-weight: 600; }
.gidisat-lejant { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 0.8824rem; color: var(--yazi2); }
.gidisat-lejant b { color: var(--yazi); font-variant-numeric: tabular-nums; }
.gidisat-lejant i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--ana); }
.gidisat-lejant i.once { background: var(--yazi3); }
#gidisat .dipnot { margin-top: 6px; }

.takvim { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tk-baslik { text-align: center; font-size: 0.7059rem; color: var(--yazi2); padding-bottom: 2px; }
.tk-gun {
  min-height: 44px; border: 0; border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: color-mix(in srgb, var(--ana) var(--y, 0%), var(--yuzey2)); color: var(--yazi); font-variant-numeric: tabular-nums; transition: transform .1s;
}
.tk-gun b { font-size: 0.8824rem; font-weight: 600; line-height: 1; }
.tk-gun small { font-size: 0.6471rem; line-height: 1; color: inherit; opacity: .85; }
.tk-gun.yogun { color: #fff; }
.tk-gun.bugun { box-shadow: inset 0 0 0 2px var(--ana); }
.tk-gun.gelecek { opacity: .35; }
.tk-gun:active { transform: scale(.94); }

.islemler .tutar.soluk { color: var(--yazi2); font-weight: 400; }
.islemler li { background: var(--yuzey); touch-action: pan-y; transition: transform .2s var(--egri); }
.islemler li.kayiyor { transition: none; }
.islemler li[data-id]::after {
  content: "Sil"; position: absolute; top: 0; bottom: 0; left: 100%; width: 200%; padding-left: 24px; display: flex; align-items: center;
  background: var(--kirmizi); color: #fff; font-weight: 600; opacity: .75;
}
.islemler li.silinecek::after { opacity: 1; }
.liste-grup:has(li.kayiyor) { overflow: hidden; }
.bos-durum { flex-direction: column; text-align: center; padding: 28px 24px !important; gap: 6px; }
.bos-durum b { font-weight: 600; }
.bos-durum .dugme { margin-top: 10px; min-height: 44px; font-size: 0.8824rem; }

.filtre { display: grid; gap: 10px; }
.arama { display: flex; align-items: center; gap: 6px; height: 44px; border-radius: 12px; background: var(--dolgu); padding: 0 12px; color: var(--yazi2); }
.arama svg { width: 18px; height: 18px; flex: none; }
.arama input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; color: var(--yazi); -webkit-appearance: none; appearance: none; }
.filtre-gun { justify-self: start; border: 0; min-height: 36px; background: color-mix(in srgb, var(--ana) 14%, transparent); color: var(--ana); }
.kat-detay { margin-top: 12px; }
.kd-ust { display: flex; align-items: center; gap: 12px; }
.kd-ust > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.kd-tutar { font-weight: 700; font-size: 1.1765rem; font-variant-numeric: tabular-nums; }
.kd-tutar small { font-weight: 400; }
.kd-cubuk { margin-top: 12px; }
.kd-cubuk svg { display: block; overflow: visible; }
.kd-cubuk text { fill: var(--yazi2); font-size: 11px; }
.kd-cubuk text.deger { fill: var(--yazi); font-weight: 600; font-size: 10px; }
.limit[data-kat] { cursor: pointer; }
.limit[data-kat]:active { background: var(--dolgu); }

.bildirim.eylemli { pointer-events: auto; white-space: nowrap; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; }
.bildirim button { border: 0; background: none; color: var(--ana); font-weight: 600; min-height: 36px; padding: 0 12px; border-radius: 999px; }

.iskelet { display: none; padding-top: 4px; }
body.yukleniyor .iskelet { display: grid; gap: 12px; }
body.yukleniyor .gorunum, body.yukleniyor .tabbar .ekle { display: none !important; }
.sk { display: block; border-radius: 12px; background: linear-gradient(90deg, var(--dolgu) 30%, color-mix(in srgb, var(--dolgu) 40%, transparent) 50%, var(--dolgu) 70%); background-size: 300% 100%; animation: parilti 1.4s ease-in-out infinite; }
.sk-baslik { width: 40%; height: 36px; } .sk-kucuk { width: 30%; height: 14px; } .sk-sayi { width: 65%; height: 50px; }
.sk-kart { height: 120px; border-radius: 14px; } .sk-baslik2 { width: 35%; height: 24px; margin-top: 16px; } .sk-liste { height: 220px; border-radius: 14px; }
@keyframes parilti { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-contrast: more) {
  :root { --yazi2: rgba(60,60,67,.9); --yazi3: rgba(60,60,67,.6); }
  :root[data-tema="koyu"] { --yazi2: rgba(235,235,245,.85); --yazi3: rgba(235,235,245,.55); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .tabbar, .uyari-dialog { background: var(--yuzey) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
