/* Finans — görünüm. Renkler SADECE buradaki değişkenlerden gelir. */
:root, body.koyu {
  --bg: #0e1326; --bg2: #141936; --yan: #121731; --kart: #161c38; --kart2: #1a2142; --cizgi: #262d52; --alan: #151a33;
  --yazi: #eef1ff; --yazi2: #c9cfe8; --soluk: #9aa3c7; --iz: #2a3058;
  --ana: #7c3aed; --ana2: #8b5cf6; --ana3: #a78bfa; --sec1: #3b2a8a; --sec2: #2a2366; --sekme: #4c2fb0; --link: #6d8cff; --mavi2: #7aa2ff;
  --gelir: #22c55e; --gelir2: #34d399; --gider: #ef4444; --gider2: #f87171; --mavi: #3b82f6; --turuncu: #fb923c; --gri: #8b93b8; --camgobegi: #22d3ee;
  --golge: 0 20px 60px rgba(0, 0, 0, .45); --dag: #2a2850; --dag2: #0b0c1c; --gunes: #f3c79a;
}
body.acik {
  --bg: #f3f5fc; --bg2: #e9ecf8; --yan: #ffffff; --kart: #ffffff; --kart2: #ffffff; --cizgi: #e2e6f3; --alan: #ffffff;
  --yazi: #151a33; --yazi2: #3d4566; --soluk: #6b7394; --iz: #e6e9f5;
  --sec1: #ede7fe; --sec2: #e4dcfd; --sekme: #7c3aed; --link: #4f63e6; --mavi2: #4f7ae0;
  --golge: 0 20px 60px rgba(40, 50, 100, .18); --dag: #c9cdef; --dag2: #9aa0d0; --gunes: #fbbf8a;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body { font-family: -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); background-attachment: fixed; color: var(--yazi); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--yazi); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir=rtl] .yon-cevir { transform: scaleX(-1); }

/* ---------- İskelet ---------- */
.ekran { display: flex; min-height: 100vh; }
.yan { width: 188px; flex: none; background: var(--yan); border-inline-end: 1px solid var(--cizgi); display: flex; flex-direction: column; padding-top: 28px; position: sticky; top: 0; height: 100vh; z-index: 3; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 40px; text-align: center; }
.logo small { color: var(--soluk); font-size: 12px; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 15px 24px; color: var(--soluk); font-size: 16px; cursor: pointer; user-select: none; }
.menu a:hover { color: var(--yazi); }
.menu a.sec { background: linear-gradient(90deg, var(--sec1), var(--sec2)); color: var(--yazi); }
[dir=rtl] .menu a.sec { background: linear-gradient(270deg, var(--sec1), var(--sec2)); }
.tema { margin: auto auto 40px; display: flex; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 999px; padding: 4px; gap: 4px; }
.tema button { width: 44px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--soluk); }
.tema button.sec { background: var(--iz); color: var(--yazi); }
.ana { flex: 1; min-width: 0; padding: 24px 24px 0 22px; position: relative; display: flex; flex-direction: column; }
.icerik { flex: 1; position: relative; z-index: 2; }
.ust { display: flex; align-items: center; gap: 12px; min-height: 72px; margin-bottom: 18px; flex-wrap: wrap; }
.ust h1 { font-size: 34px; font-weight: 800; flex: 1; padding-inline-start: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dugme { display: flex; align-items: center; gap: 10px; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 14px; padding: 12px 18px; font-size: 16px; font-weight: 600; position: relative; }
.kur { padding: 6px; gap: 4px; }
.kur button { padding: 6px 11px; border-radius: 10px; color: var(--soluk); font-weight: 700; }
.kur button.sec { background: var(--ana); color: #fff; }
.av { width: 46px; height: 46px; border-radius: 50%; background: var(--ana2); display: grid; place-items: center; font-size: 22px; font-weight: 600; color: #fff; overflow: hidden; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.ekle-btn { background: linear-gradient(135deg, var(--ana2), var(--ana)); color: #fff; border: 0; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 14px; box-shadow: 0 8px 24px color-mix(in srgb, var(--ana) 40%, transparent); }
.ekle-btn svg.i { width: 24px; height: 24px; stroke-width: 2.6; }
.acilir { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: var(--kart2); border: 1px solid var(--cizgi); border-radius: 14px; padding: 6px; min-width: 170px; box-shadow: var(--golge); z-index: 20; }
.acilir button { display: block; width: 100%; text-align: start; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.acilir button:hover, .acilir button.sec { background: var(--iz); }

/* ---------- Kartlar ---------- */
.kart { background: linear-gradient(160deg, var(--kart2), var(--kart)); border: 1px solid var(--cizgi); border-radius: 16px; position: relative; overflow: hidden; }
body.acik .kart { box-shadow: 0 4px 20px rgba(40, 50, 100, .06); }
.tik { cursor: pointer; }
.ozetler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.ozet { min-height: 138px; padding: 22px; display: flex; gap: 22px; }
.yuvarlak { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.yuvarlak svg.i { width: 34px; height: 34px; stroke-width: 2.6; }
.ozet .et { color: var(--yazi2); font-size: 16px; margin-top: 4px; padding-inline-end: 26px; white-space: nowrap; }
.ozet .alt-yazi { font-size: 15px; color: var(--yazi2); margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; }
.ozet b { display: block; font-size: clamp(20px, 1.8vw, 28px); margin: 10px 0 8px; white-space: nowrap; position: relative; z-index: 1; }
.ozet .deg { font-size: 16px; font-weight: 600; position: relative; z-index: 1; }
.ozet .spark { position: absolute; inset-inline-end: 0; bottom: 0; }
[dir=rtl] .ozet .spark { transform: scaleX(-1); }
.goz { position: absolute; inset-inline-end: 20px; top: 22px; color: var(--soluk); padding: 4px; }
.bar { height: 9px; border-radius: 999px; background: var(--iz); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; max-width: 100%; }
.mor-bar { background: linear-gradient(90deg, var(--ana), var(--ana3)); }
[dir=rtl] .mor-bar { background: linear-gradient(270deg, var(--ana), var(--ana3)); }
.orta { display: grid; grid-template-columns: 1fr 330px; gap: 18px; margin-bottom: 20px; }
.baslik { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.sekmeler { margin-inline-start: auto; display: flex; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 10px; overflow: hidden; }
.sekmeler button { padding: 9px 16px; font-size: 14px; color: var(--yazi2); }
.sekmeler button.sec { background: var(--sekme); color: #fff; }
.grafik { padding: 20px 22px; min-height: 388px; }
.grafik-yer { position: relative; margin-top: 14px; }
.grafik-yer svg { display: block; width: 100%; overflow: visible; }
.ipucu { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--cizgi); border-radius: 8px; padding: 10px 14px; font-size: 14px; line-height: 1.7; white-space: nowrap; box-shadow: var(--golge); }
.ipucu i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; }
.lejant { display: flex; justify-content: center; gap: 26px; margin-top: 18px; font-size: 15px; }
.lejant i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 8px; vertical-align: -1px; }
.dagilim { padding: 22px; min-height: 388px; }
.lej div { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-top: 9px; }
.lej i { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.lej b { margin-inline-start: auto; font-weight: 500; }
.alt-sira { display: grid; grid-template-columns: 445px 1fr 362px; gap: 18px; }
.alt-sira > .kart { min-height: 250px; padding: 20px 22px; }
.tumu { margin-inline-start: auto; color: var(--link); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tumu svg.i { width: 16px; }
.satir { display: flex; align-items: center; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--cizgi); }
.satir:last-child { border: 0; }
.satir .ik { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.satir .ik svg.i { width: 17px; height: 17px; stroke-width: 2.4; }
.satir .ad { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; }
.satir .ad small { display: block; color: var(--soluk); font-size: 12px; font-weight: 400; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir b { font-size: 18px; font-weight: 600; white-space: nowrap; direction: ltr; }
.bos { color: var(--soluk); text-align: center; padding: 26px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ince-dugme { border: 1px dashed var(--cizgi); border-radius: 12px; padding: 10px 16px; color: var(--link); font-weight: 600; }

/* Manzara (dağlar + güneş) */
.manzara { height: 120px; margin: 10px -24px 0 -22px; position: relative; z-index: 1; display: block; width: calc(100% + 46px); }

/* ---------- Sayfalar ---------- */
.sayfa-kart { padding: 20px 22px; margin-bottom: 18px; }
.filtre { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.cip { padding: 9px 16px; border-radius: 999px; background: var(--alan); border: 1px solid var(--cizgi); font-weight: 600; color: var(--yazi2); }
.cip.sec { background: var(--ana); border-color: var(--ana); color: #fff; }
.arama { flex: 1; min-width: 160px; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 999px; padding: 9px 16px; outline: none; }
.gun-baslik { color: var(--soluk); font-size: 13px; font-weight: 700; margin: 16px 0 4px; }
.liste .satir { cursor: pointer; padding: 10px 4px; border-radius: 10px; }
.liste .satir:hover { background: var(--iz); }
.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.hedef-kart { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.halka { position: relative; flex: none; }
.halka > div { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; }
.bs { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--cizgi); cursor: pointer; }
.bs:last-child { border: 0; }
.bs .ik { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.bs .ik svg.i { width: 18px; height: 18px; }
.bs .orta-k { flex: 1; min-width: 0; }
.bs .orta-k div:first-child { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; gap: 8px; }
.bs .orta-k span { color: var(--soluk); font-weight: 500; font-size: 14px; direction: ltr; }
.ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cizgi); flex-wrap: wrap; }
.ayar-satir:last-child { border: 0; }
.ayar-satir > span { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.segment { display: flex; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 12px; padding: 4px; gap: 4px; }
.segment button { padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--yazi2); }
.segment button.sec { background: var(--ana); color: #fff; }
.yardim { white-space: pre-line; line-height: 1.9; color: var(--yazi2); }
.ay-cubuk { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding: 10px 0 0; }
.ay-cubuk > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.ay-cubuk .ciftler { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.ay-cubuk .ciftler i { width: 40%; max-width: 16px; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.ay-cubuk small { color: var(--soluk); font-size: 12px; }

/* ---------- Pencere (kayıt ekle vb.) ---------- */
.perde { position: fixed; inset: 0; background: rgba(5, 8, 20, .6); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; animation: belir .15s; }
@keyframes belir { from { opacity: 0; } }
.pencere { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--kart2); border: 1px solid var(--cizgi); border-radius: 22px; padding: 22px; box-shadow: var(--golge); }
.pencere h2 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pencere h2 .kapat { margin-inline-start: auto; color: var(--soluk); font-size: 26px; line-height: 1; }
.tur-sec { display: flex; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tur-sec button { flex: 1; padding: 11px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--soluk); display: flex; align-items: center; justify-content: center; gap: 8px; }
.tur-sec button.sec.gider { background: color-mix(in srgb, var(--gider) 18%, transparent); color: var(--gider2); }
.tur-sec button.sec.gelir { background: color-mix(in srgb, var(--gelir) 18%, transparent); color: var(--gelir2); }
.tutar-gir { display: flex; align-items: center; gap: 10px; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 16px; padding: 6px 6px 6px 16px; margin-bottom: 14px; }
.tutar-gir input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 34px; font-weight: 800; direction: ltr; }
.tutar-gir .kur { border: 0; padding: 0; background: none; }
.kat-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.kat-izgara button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 2px solid transparent; font-size: 12px; color: var(--yazi2); background: var(--alan); }
.kat-izgara button .ik { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.kat-izgara button.sec { border-color: var(--ana2); background: color-mix(in srgb, var(--ana) 14%, var(--alan)); color: var(--yazi); }
.alan-satir { display: flex; gap: 10px; margin-bottom: 14px; }
.girdi { width: 100%; background: var(--alan); border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px 14px; outline: none; }
.girdi:focus, .tutar-gir:focus-within { border-color: var(--ana2); }
.alt-dugmeler { display: flex; gap: 10px; margin-top: 6px; }
.ana-dugme { flex: 1; background: linear-gradient(135deg, var(--ana2), var(--ana)); color: #fff; border-radius: 14px; padding: 14px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ana-dugme:disabled { opacity: .5; }
.sil-dugme { background: color-mix(in srgb, var(--gider) 15%, transparent); color: var(--gider2); border-radius: 14px; padding: 14px 18px; font-weight: 700; }
.bildirim { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: var(--kart2); border: 1px solid var(--cizgi); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 60; box-shadow: var(--golge); pointer-events: none; }
.bildirim.goster { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Giriş ekranı ---------- */
.giris { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.giris-kart { width: 100%; max-width: 380px; padding: 34px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2; }
.giris-kart h1 { font-size: 22px; }
.giris .manzara { position: absolute; bottom: 0; left: 0; margin: 0; width: 100%; }
#googleDugme { min-height: 44px; }

@media (max-width: 1450px) and (min-width: 1101px) {
  .ozet { gap: 14px; padding: 18px; }
  .yuvarlak { width: 56px; height: 56px; }
  .yuvarlak svg.i { width: 28px; height: 28px; }
}
/* ---------- Telefon / dar ekran ---------- */
.alt-menu { display: none; }
@media (max-width: 1350px) {
  .alt-sira { grid-template-columns: 1fr 1fr; }
  .alt-sira > .kart:first-child { grid-column: span 2; }
}
@media (max-width: 1100px) {
  .ozetler { grid-template-columns: repeat(2, 1fr); }
  .orta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .yan { display: none; }
  .ana { padding: 14px 14px 0; }
  .ust { min-height: 0; margin-bottom: 14px; gap: 8px; }
  .ust h1 { font-size: 24px; flex-basis: 100%; order: -1; }
  .ust .ekle-btn { display: none; }
  .ust .dugme { padding: 9px 12px; font-size: 14px; }
  .ust .kur { padding: 4px; }
  .ust .av { width: 40px; height: 40px; font-size: 18px; position: absolute; top: 0; inset-inline-end: 0; }
  .ozetler { gap: 10px; margin-bottom: 14px; }
  .ozet { padding: 14px; flex-direction: column; gap: 8px; min-height: 0; }
  .yuvarlak { width: 42px; height: 42px; }
  .yuvarlak svg.i { width: 22px; height: 22px; }
  .ozet .et { font-size: 13px; margin: 0; }
  .ozet b { font-size: 20px; margin: 2px 0; }
  .ozet .deg { font-size: 13px; }
  .ozet .spark { width: 90px; height: 44px; opacity: .8; }
  .goz { top: 12px; inset-inline-end: 10px; }
  .grafik, .dagilim { min-height: 0; padding: 16px; }
  .baslik { font-size: 17px; flex-wrap: wrap; }
  .sekmeler button { padding: 7px 10px; font-size: 13px; }
  .orta { gap: 12px; margin-bottom: 12px; }
  .alt-sira { grid-template-columns: 1fr; gap: 12px; }
  .alt-sira > .kart:first-child { grid-column: auto; }
  .alt-sira > .kart { min-height: 0; padding: 16px; }
  .manzara { margin: 10px -14px 0; width: calc(100% + 28px); height: 90px; }
  .icerik { padding-bottom: 10px; }
  .ana { padding-bottom: 90px; }
  .alt-menu { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; border-radius: 22px; background: color-mix(in srgb, var(--yan) 88%, transparent); border: 1px solid var(--cizgi); backdrop-filter: blur(14px); justify-content: space-around; align-items: center; z-index: 30; box-shadow: var(--golge); }
  .alt-menu button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; white-space: nowrap; color: var(--soluk); width: 58px; }
  .alt-menu button.sec { color: var(--ana3); }
  .alt-menu .arti { width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(135deg, var(--ana2), var(--ana)); color: #fff; justify-content: center; margin-top: -30px; box-shadow: 0 0 0 6px var(--bg), 0 10px 26px color-mix(in srgb, var(--ana) 50%, transparent); }
  .alt-menu .arti svg.i { width: 28px; height: 28px; stroke-width: 2.6; }
  .perde { place-items: end center; padding: 0; }
  .pencere { border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .izgara { grid-template-columns: 1fr; }
}
