/* Ortaya. Görsel kimlik: masanın ortası (yukarıdan bakılan bir masa: halka + ortada mandalina).
   Yazı: Fraunces (başlık), Geist (metin ve rakam). Sakin kâğıt zemin, tek vurgu rengi: mandalina.
   Diğer Albovix sitelerinden (getir: krem/yeşil, hesap: lacivert/fiş) bilerek ayrı. */
:root {
  --zemin: #f3f1ec;
  --yuzey: #ffffff;
  --yuzey-2: #f7f5f1;
  --murekkep: #191713;
  --soluk: #716b61;
  --cizgi: #e7e2d8;
  --vurgu: #ff5b2e;
  --vurgu-koyu: #d9431b;
  --vurgu-acik: #ffe9e1;
  --nane: #14805f;
  --nane-acik: #ddf1e8;
  --borc: #c2334d;
  --borc-acik: #f9e3e7;
  --mor: #4636c8;
  --mor-acik: #eceafc;
  --limon: #f2d64b;
  --ters: #ffffff;
  --golge: 0 1px 2px rgba(25, 23, 19, .05), 0 12px 32px -20px rgba(25, 23, 19, .35);
  --golge-cok: 0 24px 60px -24px rgba(25, 23, 19, .45);
  --r: 20px;
  --baslik: "Fraunces", Georgia, serif;
  --metin: "Geist", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #121110; --yuzey: #1c1a17; --yuzey-2: #24221e; --murekkep: #f2eee6; --soluk: #a49e93; --cizgi: #322f29;
    --vurgu: #ff7a52; --vurgu-koyu: #ff9470; --vurgu-acik: #3a221a; --nane: #4cc99c; --nane-acik: #16302a;
    --borc: #f0718a; --borc-acik: #36191f; --mor: #a99dff; --mor-acik: #27233f; --limon: #d9bd38; --ters: #121110;
    --golge: 0 0 0 1px #2a2722, 0 12px 32px -20px rgba(0, 0, 0, .8); --golge-cok: 0 24px 60px -20px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --zemin: #121110; --yuzey: #1c1a17; --yuzey-2: #24221e; --murekkep: #f2eee6; --soluk: #a49e93; --cizgi: #322f29;
  --vurgu: #ff7a52; --vurgu-koyu: #ff9470; --vurgu-acik: #3a221a; --nane: #4cc99c; --nane-acik: #16302a;
  --borc: #f0718a; --borc-acik: #36191f; --mor: #a99dff; --mor-acik: #27233f; --limon: #d9bd38; --ters: #121110;
  --golge: 0 0 0 1px #2a2722, 0 12px 32px -20px rgba(0, 0, 0, .8); --golge-cok: 0 24px 60px -20px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--zemin); color: var(--murekkep);
  font: 400 16px/1.5 var(--metin); -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--baslik); font-weight: 600; margin: 0; letter-spacing: -0.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: 21px; line-height: 1.2; }
h3 { font-size: 17px; }
.gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ikon { width: 20px; height: 20px; flex: none; }
.sayi, .tutar, .ozet-sayi { font-variant-numeric: tabular-nums; }

/* Üst şerit */
.ust { max-width: 600px; margin: 0 auto; padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 23px/1 var(--baslik); letter-spacing: -0.03em; }
.logo-masa { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--murekkep); display: grid; place-items: center; }
.logo-masa::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vurgu); }
.tema-dugme { border: 0; background: transparent; border-radius: 12px; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; color: var(--soluk); }
.tema-dugme:hover { background: var(--yuzey); color: var(--murekkep); }

main { max-width: 600px; margin: 0 auto; padding: 18px 20px 130px; display: flex; flex-direction: column; gap: 14px; }
.alt { max-width: 600px; margin: 0 auto; padding: 8px 20px 40px; text-align: center; color: var(--soluk); font-size: 13px; }
.alt a { color: var(--soluk); }


/* Kart */
.kart { background: var(--yuzey); border-radius: var(--r); padding: 20px; box-shadow: var(--golge); }
.kart > * + * { margin-top: 14px; }
.not { color: var(--soluk); font-size: 14px; margin: 0; line-height: 1.45; }
.satir { display: flex; align-items: center; gap: 10px; }
.satir.ara { justify-content: space-between; }
.sar { flex-wrap: wrap; }
.buyu { flex: 1; min-width: 0; }
.ust-yazi { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soluk); margin: 0; }

/* Ana sayfa */
.giris { padding: 18px 0 6px; }
.giris .isaret { background: linear-gradient(transparent 62%, var(--limon) 62%, var(--limon) 92%, transparent 92%); padding: 0 2px; }
.giris p { color: var(--soluk); font-size: 17px; margin: 14px 0 0; max-width: 32em; }
.giris .dugme { margin-top: 20px; }

.ornek { background: var(--yuzey); border-radius: 24px; box-shadow: var(--golge-cok); padding: 18px 18px 14px; transform: rotate(-1deg); margin: 6px 4px 10px; }
.ornek-bas { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--cizgi); }
.ornek-bas b { font: 600 18px var(--baslik); }
.ornek .kalem { padding: 10px 0; }
.ornek-donus { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--nane-acik); color: var(--nane); font-size: 14px; font-weight: 500; }
.ornek-donus b { color: var(--murekkep); }
.ornek-hesap { display: flex; justify-content: space-between; padding-top: 10px; font-size: 14px; color: var(--soluk); }
.ornek-hesap b { color: var(--murekkep); font-weight: 600; }

.adimlar { display: grid; gap: 16px; counter-reset: a; padding: 0; margin: 0; list-style: none; }
.adimlar li { counter-increment: a; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.adimlar li::before { content: counter(a); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--murekkep); display: grid; place-items: center; font: 600 15px var(--baslik); }
.adimlar b { display: block; font-weight: 600; }
.adimlar span { color: var(--soluk); font-size: 15px; }

/* Türler */
.turler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .turler { grid-template-columns: repeat(4, 1fr); } }
.tur { border: 1.5px solid transparent; background: var(--yuzey-2); border-radius: 16px; padding: 12px 6px 10px; cursor: pointer; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.2; transition: border-color .15s, background .15s; }
.tur span { display: block; font-size: 22px; margin-bottom: 6px; }
.tur:hover { border-color: var(--cizgi); }
.tur[aria-pressed="true"] { border-color: var(--murekkep); background: var(--yuzey); font-weight: 600; }

/* Form */
label.alan, div.alan { display: block; font-weight: 500; font-size: 14px; }
.alan > span:first-child { display: block; margin-bottom: 7px; color: var(--murekkep); }
input[type=text], input[type=date], input[type=number], input[type=month], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cizgi); border-radius: 12px; background: var(--yuzey); outline: none; font-size: 16px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--murekkep); }
input::placeholder { color: var(--soluk); opacity: .7; }
.tutar-gir { font: 600 30px var(--metin) !important; text-align: right; letter-spacing: -0.02em; padding: 14px 16px !important; font-variant-numeric: tabular-nums; }
.cipler { display: flex; flex-wrap: wrap; gap: 6px; }
.cip {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--cizgi); background: var(--yuzey); border-radius: 999px;
  padding: 5px 12px 5px 5px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.cip.yalin { padding: 7px 13px; }
.cip[aria-pressed="true"] { border-color: var(--murekkep); background: var(--murekkep); color: var(--ters); }
.cip .x { opacity: .5; }

/* Düğmeler */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 18px;
  font-weight: 600; cursor: pointer; background: var(--murekkep); color: var(--ters); text-decoration: none; font-size: 15px; white-space: nowrap; transition: transform .1s, opacity .15s;
}
.dugme:active { transform: scale(.98); }
.dugme.vurgu { background: var(--vurgu); color: #fff; }
.dugme.ikincil { background: var(--yuzey-2); color: var(--murekkep); box-shadow: inset 0 0 0 1.5px var(--cizgi); }
.dugme.kucuk { padding: 8px 12px; font-size: 13.5px; border-radius: 11px; }
.dugme.tam { width: 100%; }
.dugme.tehlike { background: transparent; color: var(--borc); box-shadow: inset 0 0 0 1.5px var(--borc-acik); }
.dugme:disabled { opacity: .45; cursor: default; }
.bag { background: none; border: 0; padding: 0; color: var(--murekkep); font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: var(--cizgi); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ikon-dugme { border: 0; background: transparent; color: var(--soluk); cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ikon-dugme:hover { background: var(--yuzey-2); color: var(--murekkep); }

/* Kişi yuvarlakları */
.yuz { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--metin); color: #fff; }
.yuz.b { width: 38px; height: 38px; font-size: 15px; }
.yuzler { display: flex; }
.yuzler .yuz { box-shadow: 0 0 0 2.5px var(--yuzey); margin-right: -7px; }
.renk0 { background: #4636c8; } .renk1 { background: #e5532c; } .renk2 { background: #14805f; } .renk3 { background: #c23d82; }
.renk4 { background: #2a6fc4; } .renk5 { background: #b47a0c; } .renk6 { background: #6d4a2e; } .renk7 { background: #4b4740; }

/* Grup başlığı */
.grup-bas { padding: 22px 20px 18px; }
.grup-bas h1 { font-size: clamp(28px, 8vw, 38px); overflow-wrap: anywhere; margin-top: 4px; }
.ben-sec { display: inline-flex; align-items: center; gap: 7px; background: var(--yuzey-2); color: var(--murekkep); border: 0; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 500; cursor: pointer; font-size: 14px; }
.ben-sec.bos { padding: 7px 14px; background: var(--vurgu-acik); color: var(--vurgu-koyu); font-weight: 600; }

/* Sekme çubuğu */
.sekmeler {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; margin: 0 -16px 14px; padding: 8px 16px;
  background: var(--zemin); overflow-x: auto; scrollbar-width: none;
}
.sekmeler::-webkit-scrollbar { display: none; }
.sekmeler button { flex: 1 0 auto; border: 0; background: transparent; color: var(--soluk); border-radius: 999px; padding: 9px 12px; cursor: pointer; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; white-space: nowrap; }
.sekmeler .ikon { width: 18px; height: 18px; }
.sekmeler button[aria-selected="true"] { color: var(--ters); background: var(--murekkep); font-weight: 600; }
.sekmeler .rozet { position: static; font-style: normal; background: var(--vurgu); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--yuzey); }

/* Liste */
.ilerleme { height: 6px; border-radius: 999px; background: var(--yuzey-2); overflow: hidden; }
.ilerleme > i { display: block; height: 100%; border-radius: 999px; }
.kalemler { list-style: none; margin: 0 -4px; padding: 0; }
.kalem { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--cizgi); }
.kalem:last-child { border-bottom: 0; }
.kalem .ad { font-weight: 500; overflow-wrap: anywhere; line-height: 1.3; }
.kalem .ek { font-size: 13px; color: var(--soluk); margin-top: 1px; }
.kalem.eksik .ek .durum { color: var(--vurgu-koyu); font-weight: 600; }
.kalem.benim .ek .durum { color: var(--mor); font-weight: 600; }
.kalem.alindi .ad { color: var(--soluk); }
.isaretci { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.isaretci.acik { border: 2px dashed var(--vurgu); }
.isaretci.tamam { background: var(--nane); color: #fff; }
.isaretci.tamam .ikon { width: 16px; height: 16px; stroke-width: 2.6; }
.eksik-yazi { color: var(--vurgu-koyu); font-weight: 600; }
.etiket { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--nane-acik); color: var(--nane); vertical-align: 1px; white-space: nowrap; }
.etiket.mor { background: var(--mor-acik); color: var(--mor); }
.etiket.turuncu { background: var(--vurgu-acik); color: var(--vurgu-koyu); }
.ekle-satir { display: flex; gap: 8px; }
.ekle-satir input:first-child { flex: 2; } .ekle-satir input:nth-child(2) { flex: 1; min-width: 0; }
.ekle-satir .dugme { flex: none; }

/* Harcamalar */
.harcamalar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.harcama { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--cizgi); cursor: pointer; background: none; width: 100%; text-align: left; }
li:last-child > .harcama, .harcama:last-child { border-bottom: 0; }
.harcama .tutar { font-weight: 600; white-space: nowrap; }
.harcama .simge { width: 40px; height: 40px; border-radius: 12px; background: var(--yuzey-2); display: grid; place-items: center; flex: none; color: var(--murekkep); }
.harcama b { font-weight: 600; }
.gun-baslik { font-size: 12px; font-weight: 600; color: var(--soluk); text-transform: uppercase; letter-spacing: .08em; padding: 14px 0 2px; }
.gun-baslik:first-child { padding-top: 0; }

/* Hesap */
.ozet-sayi { font: 600 clamp(30px, 9vw, 42px)/1 var(--baslik); letter-spacing: -0.02em; white-space: nowrap; }
.bakiyeler { display: flex; flex-direction: column; gap: 14px; }
.bakiye { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.bakiye .cubuk { height: 6px; border-radius: 999px; background: var(--yuzey-2); position: relative; overflow: hidden; margin-top: 6px; }
.bakiye .cubuk::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--cizgi); }
.bakiye .cubuk i { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.bakiye .arti { color: var(--nane); font-weight: 600; font-variant-numeric: tabular-nums; }
.bakiye .eksi { color: var(--borc); font-weight: 600; font-variant-numeric: tabular-nums; }
.transfer { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--yuzey-2); }
.transfer.benim { background: var(--borc-acik); }
.transfer .tutar { font: 600 22px var(--baslik); letter-spacing: -0.01em; }
.iban { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; color: var(--soluk); }

/* Geçmiş */
.gecmis { list-style: none; margin: 0; padding: 0; }
.gecmis li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--cizgi); font-size: 15px; }
.gecmis li:last-child { border-bottom: 0; }
.gecmis .zaman { color: var(--soluk); font-size: 12.5px; margin-top: 2px; }

/* Boş durum */
.bos { text-align: center; padding: 26px 12px; color: var(--soluk); font-size: 15px; }
.bos b { display: block; color: var(--murekkep); font: 600 19px var(--baslik); margin-bottom: 4px; }

/* Pencere */
dialog {
  border: 0; padding: 0; width: min(560px, 100%); max-height: 92dvh; margin: auto auto 0; border-radius: 24px 24px 0 0; background: var(--yuzey); color: var(--murekkep);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
}
dialog[open] { animation: cik .22s ease-out; }
@keyframes cik { from { transform: translateY(24px); opacity: .6; } }
@media (min-width: 620px) { dialog { margin: auto; border-radius: 24px; } }
dialog::backdrop { background: rgba(18, 17, 16, .45); backdrop-filter: blur(2px); }
dialog form, dialog .pencere-ic { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.pencere-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kapat { border: 0; background: var(--yuzey-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none; display: grid; place-items: center; color: var(--soluk); }
.secenek { display: flex; background: var(--yuzey-2); border-radius: 12px; padding: 4px; gap: 4px; }
.secenek button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 8px 4px; font-weight: 500; cursor: pointer; font-size: 14px; color: var(--soluk); }
.secenek button[aria-pressed="true"] { background: var(--yuzey); box-shadow: var(--golge); color: var(--murekkep); font-weight: 600; }
.pay-satir { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 40px; }
.pay-satir input:not([type=checkbox]) { width: 110px; text-align: right; padding: 8px 10px; }
.pay-satir .pay { font-size: 13px; color: var(--soluk); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tik { display: flex; gap: 10px; align-items: center; cursor: pointer; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--murekkep); margin: 0; }
.uyari { color: var(--borc); font-weight: 500; font-size: 14px; margin: 0; }
.onizleme { max-height: 300px; overflow: auto; display: flex; flex-direction: column; border-radius: 14px; background: var(--yuzey-2); padding: 4px 12px; }
.onizleme .tik { padding: 9px 0; border-bottom: 1px solid var(--cizgi); font-size: 15px; }
.onizleme .tik:last-child { border-bottom: 0; }
.onizleme .tik small { color: var(--soluk); margin-left: auto; white-space: nowrap; }
.mesaj { background: var(--yuzey-2); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.kart-onizleme { width: 100%; border-radius: 16px; display: block; }
.dugme-grup { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Bildirim */
#bildirim {
  position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 50;
  background: var(--murekkep); color: var(--ters); padding: 11px 18px; border-radius: 14px; font-weight: 500; font-size: 14px; transition: .2s; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--golge-cok);
}
#bildirim.acik { opacity: 1; transform: translate(-50%, 0); }
#bildirim.hata { background: var(--borc); color: #fff; }

.yukleniyor { padding: 80px 0; text-align: center; color: var(--soluk); }
.metin-sayfa h1 { font-size: 32px; }
.metin-sayfa p { margin: 0; color: var(--soluk); }
.metin-sayfa p b { color: var(--murekkep); font-weight: 600; }
.metin-sayfa p + p { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { *, dialog[open] { transition: none !important; animation: none !important; } }

/* Ek: beni hatırla, kişiler düğmesi, ikon boyları */
.bag-yok { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; gap: 12px; }
.profil .yuz { width: 38px; height: 38px; font-size: 15px; }
.profil .satir { gap: 12px; }
.dugme .ikon { width: 18px; height: 18px; }
.cip .x .ikon { width: 14px; height: 14px; }
.menu-dugme .ikon { width: 18px; height: 18px; color: var(--soluk); }
.kapat .ikon { width: 20px; height: 20px; }
.harcama .simge .ikon { width: 20px; height: 20px; }
.kalem .dugme.kucuk { padding: 7px 11px; font-size: 13px; }
.kalem .ikon-dugme { width: 30px; margin-right: -4px; }
@media (max-width: 440px) { .sekmeler { gap: 2px; } .sekmeler .ikon { display: none; } .sekmeler button { flex: 1 1 auto; padding: 9px 8px; font-size: 13.5px; gap: 5px; } }
.ikon-dugme.cerceve { width: 38px; height: 38px; box-shadow: inset 0 0 0 1.5px var(--cizgi); color: var(--murekkep); }
.ikon-dugme.cerceve[aria-pressed="true"] { background: var(--murekkep); color: var(--ters); box-shadow: none; }
