/* ADK360 · Değer Kaybı Asistanı — mobil öncelikli uygulama teması */
:root {
  --yesil: #3b8b66;
  --yesil-2: #317756;
  --yesil-koyu: #22543c;
  --yesil-acik: #e9f3ee;
  --zemin: #ffffff;
  --kutu: #f5f7f6;
  --kutu-2: #eaf0ed;
  --metin: #111827;
  --metin-2: #374151;
  --soluk: #6b7280;
  --cizgi: #e5ebe8;
  --amber: #b7791f;
  --amber-zemin: #fff7e6;
  --kirmizi: #b42318;
  --kirmizi-zemin: #fef0ee;
  --golge: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px -8px rgba(17,24,39,.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #0f1613; --kutu: #17211c; --kutu-2: #1e2a24; --metin: #eef3f0; --metin-2: #cfd9d3; --soluk: #93a39b;
    --cizgi: #24312a; --yesil-acik: #1a2c23; --amber-zemin: #2a2312; --kirmizi-zemin: #2c1714; --amber: #f0c36b; --kirmizi: #f3a59c;
  }
}
/* Koyu mod düğmesiyle seçilen görünüm (tema.js kökte data-theme yazar). Yazdırmada her zaman açık görünüm kullanılır. */
@media screen {
  :root[data-theme="dark"] {
    --zemin: #0f1613; --kutu: #17211c; --kutu-2: #1e2a24; --metin: #eef3f0; --metin-2: #cfd9d3; --soluk: #93a39b;
    --cizgi: #24312a; --yesil-acik: #1a2c23; --amber-zemin: #2a2312; --kirmizi-zemin: #2c1714; --amber: #f0c36b; --kirmizi: #f3a59c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(145deg, #276347 0%, #3b8b66 48%, #22543c 100%);
  color: var(--metin); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* --- çerçeve: telefonda tam ekran, masaüstünde cihaz görünümü --- */
.cerceve { width: 100%; max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--zemin);
           position: relative; display: flex; flex-direction: column; overflow-x: hidden; }
@media (min-width: 520px) {
  body { padding: 24px 16px; }
  .cerceve { min-height: 844px; height: calc(100vh - 48px); max-height: 920px; border-radius: 44px; overflow: hidden;
             box-shadow: 0 32px 80px -16px rgba(9,32,21,.55), 0 0 0 10px #111827, 0 0 0 12px rgba(255,255,255,.18); }
}
.ekran { display: none; flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 112px; -webkit-overflow-scrolling: touch; }
.ekran::-webkit-scrollbar { width: 0; }
.ekran.aktif { display: block; animation: gir .22s ease; }
@keyframes gir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- başlık --- */
.baslik { background: var(--yesil); color: #fff; padding: 20px 20px 24px; border-radius: 0 0 32px 32px; }
.baslik.kisa { padding-bottom: 18px; }
.baslik-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marka { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.marka > div { min-width: 0; flex: 1; }
.min0 { min-width: 0; }
.marka img { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 2px; }
.marka .k { font-size: 11px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marka .b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.yuvarlak { width: 40px; height: 40px; border-radius: 999px; border: 0; background: #fff; color: var(--metin);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.yuvarlak.saydam { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.yukle-hap { margin-top: 20px; background: #fff; color: var(--soluk); border-radius: 999px; padding: 6px 6px 6px 16px;
             display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.yukle-hap .sol { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; min-width: 0; flex: 1; border: 0;
                  background: transparent; color: #6b7280; text-align: left; padding: 8px 0; }
.yukle-hap .sol span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-yuvarlak { width: 34px; height: 34px; border-radius: 999px; border: 0; background: #e9f3ee; color: #3b8b66; display: flex;
                 align-items: center; justify-content: center; flex-shrink: 0; }
.ust-dugmeler { display: flex; gap: 8px; flex: none; }
.yukle-hap svg { color: var(--yesil); flex-shrink: 0; }
.rozet { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--yesil-acik); color: var(--yesil); white-space: nowrap; }
.rozet.amber { background: var(--amber-zemin); color: var(--amber); }
.baslik h1 { margin: 14px 0 2px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.baslik p { margin: 0; font-size: 12px; opacity: .85; }

/* --- gövde --- */
.govde { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.govde > * { min-width: 0; }
.kutu { background: var(--kutu); border-radius: 24px; padding: 14px; }
.kutu-baslik { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 10px; }
.kutu-baslik h2, .bolum-baslik { font-size: 14px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.kutu-baslik small, .bolum-alt { font-size: 11px; color: var(--soluk); }
.hizli { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hizli button { background: var(--zemin); border: 0; border-radius: 18px; padding: 12px 4px; display: flex; flex-direction: column;
                align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--metin-2); box-shadow: 0 1px 2px rgba(0,0,0,.03);
                transition: transform .12s ease; position: relative; }
.hizli button:active { transform: scale(.96); }
.hizli button .rozet { position: absolute; top: -6px; right: -2px; font-size: 8px; padding: 2px 6px; }
.cta { width: 100%; margin-top: 12px; border: 0; border-radius: 999px; background: var(--yesil); color: #fff; font-weight: 700; font-size: 13px;
       padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; transition: all .18s ease; }
.cta:hover { background: var(--yesil-2); }
.cta:active { transform: scale(.985); }
.cta:disabled { opacity: .6; }
.cta.ikincil { background: var(--zemin); color: var(--metin); box-shadow: inset 0 0 0 1px var(--cizgi); }
.madalyonlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.madalyon .daire { width: 48px; height: 48px; border-radius: 999px; background: var(--yesil); color: #fff; margin: 0 auto 6px;
                   display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px -6px rgba(59,139,102,.6); }
.madalyon .daire.acik { background: var(--kutu); color: var(--metin); box-shadow: none; }
.madalyon b { display: block; font-size: 11px; line-height: 1.25; }
.madalyon span { font-size: 9.5px; color: var(--soluk); }

/* --- zaman çizelgesi --- */
.cizelge { list-style: none; margin: 0; padding: 4px 4px 0; }
.cizelge li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.cizelge li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--cizgi); }
.nokta { width: 11px; height: 11px; border-radius: 999px; background: var(--yesil); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 0 4px var(--yesil-acik); }
.nokta.amber { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-zemin); }
.nokta.kirmizi { background: var(--kirmizi); box-shadow: 0 0 0 4px var(--kirmizi-zemin); }
.nokta.gri { background: #9ca3af; box-shadow: 0 0 0 4px var(--kutu-2); }
.cizelge .m { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cizelge .m b { display: block; font-size: 13px; }
.cizelge .m span { font-size: 12px; color: var(--soluk); }
.cizelge .sag { margin-left: auto; font-size: 13px; font-weight: 700; max-width: 58%; text-align: right; overflow-wrap: anywhere; }

/* --- form --- */
.alanlar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alan { background: var(--zemin); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.alan.genis { grid-column: 1 / -1; }
.alan label { font-size: 10.5px; font-weight: 600; color: var(--soluk); text-transform: uppercase; letter-spacing: .04em; }
.alan input, .alan select { border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; padding: 2px 0; width: 100%; min-width: 0; }
.alan select { -webkit-appearance: none; appearance: none; }
.alan.hata { box-shadow: inset 0 0 0 1.5px var(--kirmizi); }
.alan .ipucu { font-size: 10.5px; color: var(--soluk); }
.anahtar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--zemin); border-radius: 16px; padding: 12px; }
.anahtar .m b { font-size: 13px; display: block; }
.anahtar .m span { font-size: 11px; color: var(--soluk); }
.dugme { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.dugme input { opacity: 0; width: 0; height: 0; position: absolute; }
.dugme span { position: absolute; inset: 0; border-radius: 999px; background: #d1d9d5; transition: .18s; }
.dugme span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 999px; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dugme input:checked + span { background: var(--yesil); }
.dugme input:checked + span::after { transform: translateX(18px); }
.dugme input:focus-visible + span { outline: 2px solid var(--yesil); outline-offset: 2px; }
.liste-anahtar { display: flex; flex-direction: column; gap: 8px; }

/* --- parçalar --- */
.arama { display: flex; align-items: center; gap: 8px; background: var(--kutu); border-radius: 999px; padding: 10px 14px; }
.arama input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 13px; min-width: 0; }
.cipler { display: flex; gap: 6px; }
.cip { border: 0; border-radius: 999px; padding: 7px 12px; font-size: 11.5px; font-weight: 600; background: var(--kutu); color: var(--metin-2); }
.cip.aktif { background: var(--metin); color: var(--zemin); }
.parca { background: var(--kutu); border-radius: 20px; padding: 12px; transition: box-shadow .15s; }
.parca.secili { background: var(--zemin); box-shadow: inset 0 0 0 1.5px var(--yesil), var(--golge); }
.parca-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.parca-ust b { font-size: 13px; }
.parca-ozet { font-size: 11px; color: var(--yesil); font-weight: 600; }
.islem { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.secim { border: 0; border-radius: 12px; padding: 8px 10px; font-size: 11.5px; font-weight: 600; background: var(--zemin); color: var(--metin-2);
         box-shadow: inset 0 0 0 1px var(--cizgi); display: inline-flex; align-items: center; gap: 6px; }
.secim.aktif { background: var(--yesil); color: #fff; box-shadow: none; }
.secim:disabled { opacity: .35; cursor: default; }
.segment { display: inline-flex; background: var(--zemin); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--cizgi); padding: 2px; }
.segment button { border: 0; background: transparent; border-radius: 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: var(--metin-2); }
.segment button.aktif { background: var(--metin); color: var(--zemin); }
.segment.kapali { opacity: .35; pointer-events: none; }
.onarim-alan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.onarim-alan .alan { background: var(--kutu); }
.parca.secili .onarim-alan .alan { background: var(--kutu); }
.oran { grid-column: 1 / -1; font-size: 11px; color: var(--soluk); padding-left: 4px; }

/* --- sonuç --- */
.sonuc-kart { border-radius: 28px; padding: 22px 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #4aa57b 0%, #3b8b66 40%, #22543c 100%);
              box-shadow: 0 20px 40px -20px rgba(34,84,60,.7); position: relative; overflow: hidden; }
.sonuc-kart::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 999px; background: rgba(255,255,255,.07); }
.sonuc-kart .etiket { font-size: 11px; font-weight: 600; opacity: .85; display: flex; align-items: center; gap: 6px; }
.sonuc-kart .tutar { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.sonuc-kart .alt { font-size: 12px; opacity: .85; overflow-wrap: anywhere; }
.sonuc-kart .satirlar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sonuc-kart .mini { background: rgba(255,255,255,.12); border-radius: 16px; padding: 10px 12px; }
.sonuc-kart .mini span { font-size: 10.5px; opacity: .8; display: block; }
.sonuc-kart .mini b { font-size: 15px; }
.bos { text-align: center; padding: 40px 16px; color: var(--soluk); }
.bos .daire { width: 64px; height: 64px; border-radius: 999px; background: var(--kutu); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: var(--yesil); }
.uyari { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; padding: 10px 12px; font-size: 12px; line-height: 1.45; background: var(--yesil-acik); color: var(--metin-2); }
.uyari.uyari-sev { background: var(--amber-zemin); }
.uyari.engel { background: var(--kirmizi-zemin); color: var(--kirmizi); font-weight: 600; }
.uyari svg { flex-shrink: 0; margin-top: 1px; }
.tablo { width: 100%; border-collapse: collapse; font-size: 12px; }
.tablo td { padding: 8px 4px; border-bottom: 1px solid var(--cizgi); }
.tablo td:last-child { text-align: right; font-weight: 700; }
.not { font-size: 11px; color: var(--soluk); line-height: 1.5; margin: 0; }

/* --- alt menü: yeşil hap; etkin sekme beyaz ve etiketli --- */
.dock { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; width: calc(100% - 32px); max-width: 398px;
        background: var(--yesil); border-radius: 999px; padding: 6px; display: flex; align-items: center; justify-content: space-between;
        gap: 2px; z-index: 20; box-shadow: 0 12px 28px -10px rgba(34,84,60,.65); }
@media (max-width: 519px) { .dock { position: fixed; } }
.dock button { border: 0; background: transparent; color: rgba(255,255,255,.82); border-radius: 999px; padding: 10px 0; font-size: 12px; font-weight: 700;
               display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s ease; flex: 1; position: relative; }
.dock button span { display: none; white-space: nowrap; }
.dock button.aktif { background: #fff; color: #111827; box-shadow: 0 4px 12px rgba(0,0,0,.12); flex: 0 0 auto; padding: 10px 14px; }
.dock button.aktif span { display: inline; }
.dock .sayac { position: absolute; top: 2px; left: 50%; margin-left: 6px; background: #fff; color: var(--yesil); font-size: 9px; font-style: normal;
               font-weight: 800; border-radius: 999px; padding: 1px 5px; }
.dock button.aktif .sayac { display: none; }

/* --- alt sayfa / bildirim --- */
.perde { position: absolute; inset: 0; background: rgba(9,20,15,.45); z-index: 30; display: none; align-items: flex-end; }
.perde.acik { display: flex; }
.sayfa { background: var(--zemin); width: 100%; border-radius: 28px 28px 0 0; padding: 18px 20px 28px; max-height: 85%; overflow-y: auto; animation: yuksel .22s ease; }
@keyframes yuksel { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sayfa .tutamac { width: 40px; height: 4px; border-radius: 9px; background: var(--cizgi); margin: 0 auto 14px; }
.bildirim { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--metin); color: var(--zemin);
            padding: 10px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; opacity: 0; transition: all .25s ease; z-index: 40; white-space: nowrap; pointer-events: none; }
.bildirim.goster { opacity: 1; transform: translateX(-50%); }
@media (max-width: 519px) { .bildirim { position: fixed; } .perde { position: fixed; } }
svg.lucide { stroke-width: 1.75; }

/* --- referans yapı: üst çubuk, sayfa başlığı, KPI kutuları, tanıtım, örnekler, özet, geçmiş --- */
.ust-cubuk { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 4px; }
.ust-cubuk b { font-size: 15px; letter-spacing: -.01em; }
.yuvarlak.gri { background: var(--kutu); box-shadow: none; }
.sayfa-baslik { padding: 6px 0 0; }
.sayfa-baslik h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.sayfa-baslik p { margin: 2px 0 0; font-size: 12px; color: var(--soluk); }
.bolum-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bolum-baslik.buyuk { font-size: 15px; font-weight: 800; }
.baglanti { border: 0; background: transparent; color: var(--yesil); font-size: 12px; font-weight: 700; padding: 4px 0; }
.yesil { color: var(--yesil) !important; }
.kpiler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi { background: var(--kutu); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .et { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--metin-2); }
.kpi .et svg { color: var(--yesil); }
.kpi b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi small { font-size: 11px; color: var(--soluk); overflow-wrap: anywhere; }
.tanitim { background: var(--yesil-acik); border-radius: 22px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tanitim .m b { display: block; font-size: 13.5px; }
.tanitim .m span { font-size: 11.5px; color: var(--metin-2); }
.hap-dugme { border: 0; border-radius: 999px; background: var(--yesil); color: #fff; font-weight: 700; font-size: 12.5px; padding: 10px 16px; white-space: nowrap; }
.ornekler { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scrollbar-width: none; }
.ornekler::-webkit-scrollbar { display: none; }
#ornek-blok.sonda { order: 9; }
.ornek { flex: 0 0 156px; text-align: left; border: 0; background: var(--kutu); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ornek:active { background: var(--kutu-2); }
.ornek .tur { font-size: 10.5px; font-weight: 700; color: var(--yesil); }
.ornek b { font-size: 13.5px; }
.ornek span { font-size: 11px; color: var(--soluk); }
.ozet-kart { background: var(--kutu); border-radius: 24px; padding: 16px; }
.ozet-kart .ust { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--cizgi); }
.ozet-kart .ust img { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.ozet-kart .ust .m { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ozet-kart .ust .m b { display: block; font-size: 15px; }
.ozet-kart .ust .m span { font-size: 12px; color: var(--soluk); }
.ozet-kart .hap { flex: none; white-space: nowrap; background: var(--yesil); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.ozet-kart .hap.amber { background: var(--amber-zemin); color: var(--amber); }
.ozet-kart .alt { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; }
.ozet-kart .alt small { display: block; font-size: 11px; color: var(--soluk); }
.ozet-kart .alt .tutar { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ozet-kart .alt .durum { text-align: right; font-size: 13px; font-weight: 700; color: var(--yesil); }
.ozet-kart .alt .durum.amber { color: var(--amber); }
.cizelge .m b.yesil { color: var(--yesil); }
.cizelge li.soluk .m b { color: #9ca3af; }
.onay { display: flex; align-items: center; gap: 10px; margin: 12px 4px 0; font-size: 13px; font-weight: 600; }
.onay input { width: 18px; height: 18px; accent-color: var(--yesil); }
.cip.kirmizi { background: var(--kirmizi-zemin); color: var(--kirmizi); }
.ekran.uzun-alt { padding-bottom: 176px; }
.yapiskan { position: absolute; left: 50%; transform: translateX(-50%); bottom: 82px; width: calc(100% - 40px); max-width: 390px; z-index: 15; display: none; }
.ekran.aktif > .yapiskan { display: block; }
.yapiskan .cta { margin: 0; box-shadow: 0 10px 24px -10px rgba(34,84,60,.7); }
@media (max-width: 519px) { .yapiskan { position: fixed; } }
.profil { display: flex; align-items: center; gap: 14px; padding: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 999px; background: var(--yesil); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profil .m b { display: block; font-size: 15px; }
.gorunum-satir { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.gorunum-satir .m { flex: 1; min-width: 0; }
.gorunum-satir .m b { display: block; font-size: 14px; }
.gorunum-satir .m span { font-size: 12px; color: var(--soluk); }
.anahtar { flex: none; width: 52px; height: 30px; border-radius: 999px; border: 0; padding: 0; background: #cbd5cf; position: relative; transition: background .2s ease; }
.anahtar::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff;
                  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
@media screen { :root[data-theme="dark"] .anahtar { background: #3b4a42; } }
:root .anahtar[aria-checked="true"] { background: var(--yesil); }
.anahtar[aria-checked="true"]::after { transform: translateX(22px); }
.anahtar:focus-visible { outline: 2px solid var(--yesil); outline-offset: 2px; }
.profil .m span { font-size: 12px; color: var(--soluk); }
.gecmis { border: 0; width: 100%; text-align: left; background: var(--kutu); border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gecmis .m { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gecmis .m b { display: block; font-size: 13px; }
.gecmis .m span { font-size: 11px; color: var(--soluk); }
.gecmis .tutar { flex: none; font-size: 14px; font-weight: 800; white-space: nowrap; }

/* --- yazdırma (A4 hesap özeti) --- */
/* Dar telefonlar (320–359 px): yazılar küçülür, hiçbir değer kırpılmaz. */
@media (max-width: 359px) {
  .baslik { padding-left: 16px; padding-right: 16px; }
  .govde { padding: 16px; }
  .marka { gap: 10px; }
  .marka .k { font-size: 10px; white-space: normal; }
  .marka .b { font-size: 14px; }
  .kpi b { font-size: 17px; }
  .sonuc-kart .tutar { font-size: 33px; }
  .alan { padding: 10px; }
  .alan input, .alan select { font-size: 14px; }
}
@media print {
  body { background: #fff !important; padding: 0 !important; }
  .cerceve { max-width: 100% !important; height: auto !important; max-height: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
  .ekran { display: none !important; padding-bottom: 0 !important; overflow: visible !important; }
  #e-rapor { display: block !important; }
  .dock, .yazdirma-gizle, .perde, .bildirim, .yapiskan { display: none !important; }
  .sonuc-kart { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 portrait; margin: 12mm; }
}

/* Madde metinleri: başlık + maddenin kendi metni */
.uyari > span { flex: 1; min-width: 0; }
details.esas { margin-top: 6px; font-size: 12px; line-height: 1.5; }
details.esas summary { cursor: pointer; font-weight: 700; color: var(--yesil-2); }
details.esas p, .esas-tam p { margin: 6px 0 0; }
details.esas ul, .esas-tam ul { margin: 4px 0 0; padding-left: 18px; }
.esas-tam { padding: 10px 0; border-top: 1px solid var(--cizgi); font-size: 12.5px; line-height: 1.55; color: var(--metin-2); }
.esas-tam:first-of-type { border-top: 0; }
.esas-tam h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--metin); }
.esas-liste details.esas { padding: 10px 0; border-top: 1px solid var(--cizgi); margin: 0; font-size: 13px; }
.esas-liste details.esas:first-child { border-top: 0; }
.atif { color: var(--yesil-2); font-weight: 700; }
.atif::before { content: "\25B8\00A0"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .atif, :root:not([data-theme="light"]) details.esas summary { color: #7fcfa6; } }
@media screen { :root[data-theme="dark"] .atif, :root[data-theme="dark"] details.esas summary { color: #7fcfa6; } }
