:root {
  --ana: #1a2140; --ana-koyu: #111730; --altin: #c9971c; --altin-acik: #f7efd9;
  --zemin: #f3f4f8; --yuzey: #fff; --cizgi: #e4e7ef; --metin: #1c2033; --soluk: #6b7189;
  --hata: #b3261e; --hata-zemin: #fdecea; --uyari: #8a5a00; --uyari-zemin: #fff4d6; --ok: #1b6e3c; --ok-zemin: #e6f4ea;
  --golge: 0 1px 2px rgba(20, 26, 55, .05), 0 4px 16px rgba(20, 26, 55, .05);
  --yan-gen: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--metin); background: var(--zemin); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.ikon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- kabuk ---------- */
.kabuk { display: flex; min-height: 100dvh; }
.yan { width: var(--yan-gen); flex: 0 0 var(--yan-gen); background: var(--yuzey); border-right: 1px solid var(--cizgi); display: flex; flex-direction: column; padding: 22px 16px 16px; position: sticky; top: 0; height: 100dvh; }
.marka { display: flex; align-items: center; color: var(--ana); text-decoration: none; font-size: 20px; letter-spacing: 3px; }
.yan .marka { padding: 0 8px 22px; margin-bottom: 14px; border-bottom: 1px solid var(--cizgi); }
.logo { height: 38px; width: auto; display: block; }
.logo.buyuk { height: 52px; margin: 0 auto; }
.yan nav { display: flex; flex-direction: column; gap: 4px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--soluk); text-decoration: none; font-weight: 500; position: relative; }
nav a:hover { background: var(--zemin); color: var(--ana); }
nav a.aktif { background: var(--ana); color: #fff; }
nav a.aktif .ikon { color: #e9c35a; }
.yan-alt { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.kota { background: var(--zemin); border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px; }
.kota-ust { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--soluk); }
.kota-ust b { color: var(--ana); font-size: 15px; }
.cubuk { height: 6px; background: #dfe2ec; border-radius: 3px; margin: 8px 0 6px; overflow: hidden; }
.cubuk i { display: block; height: 100%; background: var(--altin); border-radius: 3px; }
.kota.yakin .cubuk i { background: #d97a00; }
.kota.dolu .cubuk i { background: var(--hata); }
.kota small { color: var(--soluk); font-size: 12px; }
.kisi { display: flex; align-items: center; gap: 10px; padding: 4px; min-width: 0; }
.kisi div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.kisi small { color: var(--soluk); font-size: 12px; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--ana); color: #e9c35a; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; letter-spacing: .5px; }
.avatar.kucuk { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
.avatar.buyuk { width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; }
button.cikis { background: none; border: 1px solid var(--cizgi); color: var(--soluk); min-height: 40px; font-size: 14px; }
button.cikis:hover:not(:disabled) { background: none; color: var(--hata); border-color: var(--hata); box-shadow: none; }
.govde { flex: 1; min-width: 0; }
.mobil-ust { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 32px 36px 48px; }

/* ---------- sayfa başlığı ---------- */
.sayfa-bas { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; color: var(--ana); letter-spacing: -.3px; }
.sayfa-bas .alt { margin: 6px 0 0; color: var(--soluk); }
.eylemler { display: flex; flex-wrap: wrap; gap: 10px; }
h2 { font-size: 15px; margin: 26px 0 10px; color: var(--ana); letter-spacing: .2px; }
.geri { display: inline-flex; align-items: center; gap: 4px; color: var(--soluk); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.geri:hover { color: var(--ana); }
.geri .ikon { width: 16px; height: 16px; }
.soluk { color: var(--soluk); }

/* ---------- bileşenler ---------- */
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: var(--golge); }
.kart > h2:first-child { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--cizgi); margin-bottom: 16px; }
button, .btn { font: inherit; font-weight: 600; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--ana); background: var(--ana); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, box-shadow .15s; }
button:hover:not(:disabled), .btn:hover { background: var(--ana-koyu); box-shadow: 0 2px 8px rgba(20, 26, 55, .2); }
button.ikincil, .btn.ikincil { background: var(--yuzey); color: var(--ana); border-color: #c9cddb; }
button.ikincil:hover:not(:disabled), .btn.ikincil:hover { background: var(--zemin); box-shadow: none; }
button.tehlike { background: var(--hata); border-color: var(--hata); }
button.tehlike:hover:not(:disabled) { background: #8f1d17; }
button.tehlike-cizgi { background: var(--yuzey); color: var(--hata); border-color: #e3b2ae; }
button.tehlike-cizgi:hover:not(:disabled) { background: var(--hata-zemin); box-shadow: none; }
button.kucuk { min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 8px; }
button:disabled { opacity: .5; cursor: default; }
.satir { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.dugmeler { margin-top: 16px; }
label { display: block; font-size: 13px; font-weight: 500; color: #4a5068; margin-bottom: 5px; }
input, select { font: inherit; font-size: 16px; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c9cddb; border-radius: 10px; background: var(--yuzey); color: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: 0; border-color: var(--altin); box-shadow: 0 0 0 3px rgba(201, 151, 28, .22); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--altin); outline-offset: 2px; }
.alanlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.alan.hatali input, .alan.hatali select { border-color: var(--hata); background: #fff8f7; }
.alan.emin-degil input, .alan.emin-degil select { border-color: #d9a400; background: #fffbeb; }
.alan small { display: block; font-size: 12px; margin-top: 4px; }
.alan small.hata { color: var(--hata); }
.alan small.not { color: var(--uyari); }
.zorunlu::after { content: " *"; color: var(--hata); }
.mesaj { padding: 12px 14px; border-radius: 10px; margin: 12px 0; border: 1px solid transparent; }
.mesaj.hata { background: var(--hata-zemin); color: var(--hata); border-color: #f4c7c3; }
.mesaj.uyari { background: var(--uyari-zemin); color: var(--uyari); border-color: #f1dc9c; }
.mesaj.ok { background: var(--ok-zemin); color: var(--ok); border-color: #b9dfc5; }
.rozet { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--zemin); color: var(--soluk); white-space: nowrap; vertical-align: middle; text-transform: capitalize; }
.rozet.açık { background: var(--uyari-zemin); color: var(--uyari); }
.rozet.tamamlandı { background: var(--ok-zemin); color: var(--ok); }
.rozet.iptal { background: var(--hata-zemin); color: var(--hata); }

/* ---------- liste ---------- */
.istatistikler { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.istatistik { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 16px 18px; box-shadow: var(--golge); border-left: 4px solid var(--ana); }
.istatistik.acik { border-left-color: #d9a400; }
.istatistik.tamam { border-left-color: #2e9a59; }
.istatistik.iptal { border-left-color: #d0453c; }
.istatistik small { display: block; color: var(--soluk); font-size: 13px; }
.istatistik b { font-size: 28px; line-height: 1.2; color: var(--ana); }
.arac { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.arac input { flex: 1 1 260px; max-width: 420px; }
.cipler { display: flex; flex-wrap: wrap; gap: 6px; }
button.cip { min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--yuzey); color: var(--soluk); border-color: var(--cizgi); font-weight: 500; font-size: 14px; }
button.cip:hover:not(:disabled) { background: var(--zemin); box-shadow: none; }
button.cip.aktif, button.cip.aktif:hover:not(:disabled) { background: var(--ana); color: #fff; border-color: var(--ana); }
.tablo-kap { border: 1px solid var(--cizgi); border-radius: 14px; overflow: hidden; background: var(--yuzey); box-shadow: var(--golge); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--cizgi); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { background: #f8f9fc; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--soluk); }
tr.tikla { cursor: pointer; }
tr.tikla:hover { background: #f8f9fc; }
.kisi-hucre { display: inline-flex; align-items: center; gap: 10px; }
.bos { background: var(--yuzey); border: 1px dashed #c9cddb; border-radius: 16px; padding: 56px 24px; text-align: center; }
.bos.kucuk { padding: 28px 24px; }
.bos h2 { font-size: 19px; margin: 16px 0 6px; }
.bos p { color: var(--soluk); max-width: 440px; margin: 0 auto 20px; }
.bos.kucuk p { margin-bottom: 0; }
.bos-ikon { width: 68px; height: 68px; border-radius: 50%; background: var(--altin-acik); color: var(--altin); display: inline-flex; align-items: center; justify-content: center; }
.bos-ikon .ikon { width: 32px; height: 32px; }

/* ---------- ayrıntı ---------- */
.gruplar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.gruplar .kart { margin: 0; }
.bilgiler { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 20px; }
.bilgi small { display: block; color: var(--soluk); font-size: 12px; margin-bottom: 2px; }
.bilgi span { font-weight: 500; }
.fotolar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.fotolar .kart { margin: 0; }
.foto { max-width: 100%; max-height: 70vh; border: 1px solid var(--cizgi); border-radius: 10px; display: block; margin: 0 auto; }
.iki { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* ---------- tarama ---------- */
.secenekler { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; max-width: 760px; }
button.secenek { flex-direction: column; align-items: flex-start; text-align: left; gap: 6px; padding: 24px; background: var(--yuzey); color: var(--metin); border: 1px solid var(--cizgi); border-radius: 16px; box-shadow: var(--golge); font-weight: 400; }
button.secenek:hover:not(:disabled) { background: var(--yuzey); border-color: var(--altin); box-shadow: 0 6px 22px rgba(20, 26, 55, .12); }
.secenek b { font-size: 18px; color: var(--ana); }
.secenek small { color: var(--soluk); font-size: 14px; line-height: 1.45; }
.secenek-ikon { width: 52px; height: 52px; border-radius: 14px; background: var(--ana); color: #e9c35a; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.secenek-ikon .ikon { width: 26px; height: 26px; }

/* ---------- hesabım ---------- */
.profil { display: flex; align-items: center; gap: 18px; }
.profil div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.profil b { font-size: 18px; color: var(--ana); }
.profil span:not(.rozet):not(.avatar) { color: var(--soluk); }

/* ---------- pencere ---------- */
.perde { position: fixed; inset: 0; background: rgba(15, 20, 40, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.pencere { background: var(--yuzey); border-radius: 16px; padding: 24px; width: 100%; max-width: 540px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.pencere h2 { margin-top: 0; font-size: 18px; }

/* ---------- giriş ve ilk kurulum ---------- */
.giris-sayfa { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(160deg, #1a2140 0%, #0f1429 100%); }
.giris { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; border-top: 4px solid var(--altin); padding: 32px 32px 28px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.giris-bas { text-align: center; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--cizgi); }
.alt-baslik { margin: 12px 0 0; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--soluk); }
.giris h1 { font-size: 20px; margin: 0 0 6px; }
.giris .aciklama { margin: 0 0 16px; color: var(--soluk); }
.giris .alan { margin-top: 14px; }
.giris > button { width: 100%; margin-top: 4px; min-height: 48px; }
.sifre { position: relative; }
.sifre input { padding-right: 84px; }
.sifre .goster { position: absolute; right: 4px; top: 4px; bottom: 4px; min-height: 0; padding: 0 12px; background: none; border: 0; color: var(--ana); font-size: 14px; box-shadow: none; }
.sifre .goster:hover:not(:disabled) { background: var(--zemin); box-shadow: none; }
.dogrulama { min-height: 65px; margin: 18px 0 12px; display: flex; justify-content: center; }

@media (min-width: 1000px) {
  .iki { grid-template-columns: 5fr 6fr; align-items: start; }
  .iki .foto-kap { position: sticky; top: 24px; }
}

/* ---------- tablet ve telefon: yan menü alta iner ---------- */
@media (max-width: 860px) {
  .kabuk { display: block; }
  .yan { position: static; width: auto; height: auto; padding: 0; border: 0; background: none; }
  .yan > .marka, .yan-alt { display: none; }
  .yan nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; flex-direction: row; gap: 0; background: var(--yuzey); border-top: 1px solid var(--cizgi); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(20, 26, 55, .06); }
  .yan nav a { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; min-height: 50px; justify-content: center; text-align: center; border-radius: 10px; }
  .yan nav a.aktif { background: none; color: var(--ana); }
  .yan nav a.aktif .ikon { color: var(--altin); }
  .yan nav .ikon { width: 22px; height: 22px; }
  .mobil-ust { display: flex; align-items: center; justify-content: space-between; background: var(--yuzey); border-bottom: 1px solid var(--cizgi); padding: 10px 16px; position: sticky; top: 0; z-index: 5; }
  .mobil-ust .logo { height: 30px; }
  .sayac { background: var(--zemin); color: var(--ana); border: 1px solid var(--cizgi); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
  main { padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); }
  h1 { font-size: 22px; }
  .sayfa-bas { align-items: stretch; flex-direction: column; margin-bottom: 16px; }
  .eylemler > * { flex: 1 1 auto; }
  .kart { padding: 16px; }
  .istatistikler { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .istatistik { padding: 12px 14px; }
  .istatistik b { font-size: 24px; }
  .arac input { max-width: none; flex-basis: 100%; }
  .satir > button, .satir > .btn { flex: 1 1 auto; }
  .kart.satir > div { flex: 1 1 100%; }
  .bilgiler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foto { max-height: 55vh; }
  .bos { padding: 36px 18px; }

  /* Tablolar karta döner */
  .tablo-kap { border: 0; background: none; overflow: visible; box-shadow: none; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tbody tr { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; box-shadow: var(--golge); }
  td { border: 0; padding: 5px 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; }
  td::before { content: attr(data-label); color: var(--soluk); font-size: 12px; text-align: left; flex: 0 0 auto; }
}
@media (max-width: 480px) { .giris { padding: 24px 20px 22px; } }
input.gizli:not(:placeholder-shown) { -webkit-text-security: disc; }
.alanlar.tek { grid-template-columns: minmax(0, 1fr); }
.onay-kutusu { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--zemin); cursor: pointer; margin: 0; }
.onay-kutusu input { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--ana); }
.onay-kutusu b { display: block; color: var(--ana); font-size: 14px; }
.onay-kutusu small { color: var(--soluk); font-size: 13px; font-weight: 400; }
.kayitli-anahtar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.kayitli-anahtar code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.bakiye-satir { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cizgi); }
a.kota { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.kota:hover { border-color: var(--altin); box-shadow: 0 2px 10px rgba(20, 26, 55, .08); }
.kota-ust b.buyuk-sayi { font-size: 24px; line-height: 1; }
a.sayac { text-decoration: none; }
.pay { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.pay .cubuk { flex: 1; margin: 0; min-width: 70px; }
.pay small { color: var(--soluk); font-size: 12px; min-width: 34px; text-align: right; }
/* Tablo hücrelerinde kelimeler harf harf bölünmez; sığmazsa tablo yana kayar */
.tablo-kap { overflow-x: auto; }
th { white-space: nowrap; }
td { overflow-wrap: normal; word-break: normal; }
.kisi-hucre b, td b { white-space: nowrap; }
@media (max-width: 860px) { .tablo-kap { overflow: visible; } td { overflow-wrap: anywhere; } .kisi-hucre b, td b { white-space: normal; } }

/* Kart başlığının sağındaki komut ikonu ve komut penceresi */
h2.baslik-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
button.komut-dugme { min-height: 0; width: 36px; height: 36px; padding: 0; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: var(--yuzey); color: var(--ana); border: 1px solid #c9cddb; }
button.komut-dugme:hover:not(:disabled) { background: var(--zemin); box-shadow: none; }
button.komut-dugme .ikon { width: 18px; height: 18px; }
textarea.komut-metin { width: 100%; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border: 1px solid #d5d8e3; border-radius: 10px; background: #f6f7fa; resize: vertical; }
.baslik-dugmeler { display: flex; align-items: center; gap: 8px; }
.yigin { display: grid; gap: 10px; }

/* Yeni sürüm bildirimi: ekranın altında, mobilde alt menünün üstünde */
button.yeni-surum { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--altin); border-color: var(--altin); color: #1a2140; border-radius: 999px; padding: 10px 22px; box-shadow: 0 8px 24px rgba(20, 26, 55, .28); white-space: nowrap; }
button.yeni-surum:hover:not(:disabled) { background: #b88a17; }
@media (max-width: 860px) { button.yeni-surum { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Tarama: bekleme görünümü */
.tarama-perde { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 40, .82); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: belir .25s ease-out; }
.tarama-kutu { display: grid; justify-items: center; gap: 14px; color: #fff; text-align: center; }
.tarama-kutu b { font-size: 19px; letter-spacing: .2px; }
.tarama-kutu small { color: rgba(255, 255, 255, .65); font-size: 14px; }
.tarama-foto { position: relative; width: min(240px, 60vw); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #0f1428; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: nefes 2.4s ease-in-out infinite; }
.tarama-foto img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.tarama-cizgi { position: absolute; left: 0; right: 0; top: 0; height: 28%; background: linear-gradient(to bottom, transparent, rgba(201, 151, 28, .35) 85%, #e9c35a); border-bottom: 2px solid #f2d27a; box-shadow: 0 6px 18px rgba(233, 195, 90, .6); animation: tara 2s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.tarama-kose { position: absolute; inset: 10px; border-radius: 8px; background:
  linear-gradient(#e9c35a, #e9c35a) left top / 22px 2px, linear-gradient(#e9c35a, #e9c35a) left top / 2px 22px,
  linear-gradient(#e9c35a, #e9c35a) right top / 22px 2px, linear-gradient(#e9c35a, #e9c35a) right top / 2px 22px,
  linear-gradient(#e9c35a, #e9c35a) left bottom / 22px 2px, linear-gradient(#e9c35a, #e9c35a) left bottom / 2px 22px,
  linear-gradient(#e9c35a, #e9c35a) right bottom / 22px 2px, linear-gradient(#e9c35a, #e9c35a) right bottom / 2px 22px;
  background-repeat: no-repeat; }
.tarama-adimlar { display: flex; gap: 8px; }
.tarama-adimlar i { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: background .4s; }
.tarama-adimlar i.aktif { background: #e9c35a; }
@keyframes tara { from { transform: translateY(-100%); } to { transform: translateY(360%); } }
@keyframes nefes { 50% { transform: scale(1.02); } }
@keyframes belir { from { opacity: 0; } }
@keyframes yuksel { from { opacity: 0; transform: translateY(12px); } }

/* Tarama sonrası: alanlar önde, fotoğraf sağda küçük */
.inceleme { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: yuksel .35s ease-out; }
.inceleme .foto-kap { order: -1; justify-self: end; }
button.kucuk-foto { position: relative; min-height: 0; padding: 0; width: 96px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--yuzey); border: 1px solid var(--cizgi); box-shadow: var(--golge); display: block; }
button.kucuk-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
button.kucuk-foto:hover:not(:disabled) img { transform: scale(1.06); }
button.kucuk-foto span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(15, 20, 40, .85)); display: flex; align-items: center; justify-content: center; gap: 4px; }
button.kucuk-foto .ikon { width: 14px; height: 14px; }
.buyuk-foto { position: fixed; inset: 0; z-index: 70; background: rgba(10, 13, 28, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; animation: belir .2s ease-out; }
.buyuk-foto img { max-width: 100%; max-height: calc(100dvh - 32px); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: buyu .25s ease-out; }
.buyuk-foto button { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; }
@keyframes buyu { from { transform: scale(.9); opacity: 0; } }
@media (min-width: 1000px) {
  .inceleme { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }
  .inceleme .foto-kap { order: 1; position: sticky; top: 24px; justify-self: stretch; }
  button.kucuk-foto { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tarama-cizgi, .tarama-foto, .inceleme, .buyuk-foto, .buyuk-foto img, .tarama-perde { animation: none; }
  .tarama-cizgi { top: 36%; }
}

/* Şifre alanı üstündeki etiket + "Şifre öner"; giriş bilgileri kutusu */
.etiket-satir { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.etiket-satir label { margin: 0; }
.etiket-satir button.kucuk { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.bilgi-kutu { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--zemin); }
.bilgi-kutu small { color: var(--soluk); font-size: 12px; }
.bilgi-kutu small:not(:first-child) { margin-top: 8px; }
.bilgi-kutu code { font: 600 18px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; word-break: break-all; }
.bakiye-satir + .kota-ust { margin-top: 8px; }
.sifre-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Aranabilir portföy seçici */
.secici { display: grid; gap: 10px; }
.secici-liste { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; padding: 2px; }
button.secici-satir { display: grid; justify-items: start; gap: 2px; min-height: 0; padding: 10px 14px; text-align: left; background: var(--yuzey); color: var(--metin); border: 1px solid var(--cizgi); border-radius: 10px; font-weight: 400; }
button.secici-satir:hover:not(:disabled), button.secici-satir:focus-visible { background: var(--altin-acik); border-color: var(--altin); box-shadow: none; }
button.secici-satir b { color: var(--ana); display: flex; align-items: center; gap: 8px; }
button.secici-satir small, .secici-secili small { color: var(--soluk); font-size: 13px; }
button.secici-satir.yeni { border-style: dashed; }
.secici-not { margin: 4px 2px; font-size: 13px; }
.secici-secili { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--altin); background: var(--altin-acik); border-radius: 10px; }
.secici-secili div { display: grid; gap: 2px; }
.secici-secili b { color: var(--ana); }

/* Kullanıcı düzenleme penceresi */
.pencere-kisi { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--zemin); border: 1px solid var(--cizgi); }
.pencere-kisi div { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.pencere-kisi b { color: var(--ana); font-size: 16px; }
.pencere-kisi small { color: var(--soluk); font-size: 13px; overflow-wrap: anywhere; }
.pencere-kisi .rozet { margin-top: 4px; }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button.ikili-secenek { display: grid; justify-items: start; gap: 2px; min-height: 0; padding: 12px 14px; text-align: left; background: var(--yuzey); color: var(--metin); border: 1px solid var(--cizgi); border-radius: 10px; font-weight: 400; }
button.ikili-secenek:hover:not(:disabled) { background: var(--zemin); box-shadow: none; }
button.ikili-secenek b { color: var(--ana); font-size: 15px; }
button.ikili-secenek small { color: var(--soluk); font-size: 12px; }
button.ikili-secenek.secili { border-color: #2e8b57; background: #e9f5ee; box-shadow: inset 0 0 0 1px #2e8b57; }
button.ikili-secenek.secili b { color: #1e6b3a; }
button.ikili-secenek.pasif.secili { border-color: var(--hata); background: #fcebea; box-shadow: inset 0 0 0 1px var(--hata); }
button.ikili-secenek.pasif.secili b { color: var(--hata); }

/* Sıralanabilir tablo ve sıra numarası sütunu */
th.siralanir { cursor: pointer; user-select: none; }
th.siralanir:hover, th.siralanir.secili { color: var(--ana); }
th .ok { margin-left: 6px; font-size: 10px; opacity: .45; }
th.secili .ok { opacity: 1; color: var(--altin); }
th.sira, td.sira { width: 1%; white-space: nowrap; color: var(--soluk); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { td.sira { display: none; } }

/* İşlem bildirimi */
.bildirim { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 12px; background: var(--ana); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 12px 32px rgba(15, 20, 40, .35); animation: bildirim-gir .25s ease-out; }
.bildirim .ikon { width: 20px; height: 20px; color: #7ddc9f; flex: 0 0 20px; }
@keyframes bildirim-gir { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 860px) { .bildirim { bottom: calc(88px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .bildirim { animation: none; } }

/* Pasife al (sarı) ve Aktif et (yeşil) düğmeleri */
button.uyari-cizgi { background: #fff8e6; color: #8a6100; border-color: #e6c66a; }
button.uyari-cizgi:hover:not(:disabled) { background: #ffefc2; box-shadow: none; }
button.olumlu-cizgi { background: #e9f5ee; color: #1e6b3a; border-color: #9fd0b3; }
button.olumlu-cizgi:hover:not(:disabled) { background: #d6eddf; box-shadow: none; }
.tarama-not { max-width: 760px; margin: 14px 0 0; color: var(--soluk); font-size: 14px; }

/* Tarama inceleme ekranı */
.inceleme-ust { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; animation: yuksel .35s ease-out; }
.inceleme-ust button.kucuk-foto { flex: none; width: 84px; }
.inceleme-baslik { min-width: 0; }
.inceleme-baslik small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--altin); }
.inceleme-baslik h1 { margin: 2px 0 8px; font-size: 22px; line-height: 1.2; }
.inceleme-ozet { display: flex; flex-wrap: wrap; gap: 6px; }
.ozet-etiket { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ozet-etiket.iyi { background: var(--ok-zemin); color: var(--ok); }
.ozet-etiket.dikkat { background: #fff4d6; color: #8a6100; }
.inceleme-form { max-width: 760px; }
.inceleme-form .alanlar { gap: 14px 16px; }
.inceleme-form .alan label { font-size: 13px; }
.onay-cubugu { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; max-width: 760px; margin-top: 16px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--cizgi); box-shadow: 0 8px 24px rgba(20, 26, 55, .12); }
.onay-cubugu button { display: inline-flex; align-items: center; gap: 8px; }
.onay-cubugu .ikon { width: 18px; height: 18px; }
.tarama-iptal { margin-top: 14px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
@media (max-width: 860px) {
  .inceleme-ust { gap: 14px; margin-bottom: 14px; }
  .inceleme-ust button.kucuk-foto { width: 72px; }
  .inceleme-baslik h1 { font-size: 20px; }
  .inceleme-form { padding: 16px; }
  .onay-cubugu { bottom: calc(80px + env(safe-area-inset-bottom)); margin: 16px -4px 0; }
  .onay-cubugu > * { flex: 1; justify-content: center; text-align: center; }
  .onay-cubugu button { flex: 2; }
}
input.tarama-secici { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Mobil alt menü: lacivert zemin, canlı simgeler, etkin sekmede altın vurgu */
@media (max-width: 860px) {
  .yan nav { background: #1a2140; border-top: 0; box-shadow: 0 -6px 20px rgba(15, 20, 40, .25); }
  .yan nav a { color: rgba(255, 255, 255, .78); font-weight: 600; }
  .yan nav a .ikon { color: #fff; stroke-width: 2.1; }
  .yan nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .yan nav a.aktif { color: #e8c15a; background: rgba(201, 151, 28, .16); }
  .yan nav a.aktif .ikon { color: #e8c15a; }
}

/* Mobil: ekran sabit bir çerçeve; yalnız içerik kayar, alt menü hiç oynamaz (iOS'ta kaydırma/esneme dahil) */
@media (max-width: 860px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .kabuk { position: fixed; inset: 0; display: flex; flex-direction: column; }
  .govde { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .yan { order: 2; flex: none; }
  .yan nav { position: static; }
  main { padding-bottom: 24px; }
  .onay-cubugu { bottom: 12px; }
}

/* Başarı penceresi */
.basari-perde { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(15, 20, 40, .45); backdrop-filter: blur(3px); animation: belir .2s ease-out; }
.basari-kutu { width: min(340px, 100%); background: var(--yuzey); border-radius: 20px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: basari-gir .35s cubic-bezier(.2, .9, .3, 1.3); }
.basari-kutu b { display: block; font-size: 20px; color: var(--ana); margin-top: 14px; }
.basari-kutu p { margin: 6px 0 18px; color: var(--soluk); }
.basari-kutu button { width: 100%; }
.basari-ikon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ok-zemin); }
.basari-ikon svg { width: 56px; height: 56px; fill: none; stroke: #1b9e52; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.basari-ikon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: basari-ciz .5s ease-out forwards; }
.basari-ikon path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: basari-ciz .35s .4s ease-out forwards; }
@keyframes basari-gir { from { opacity: 0; transform: scale(.85); } }
@keyframes basari-ciz { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .basari-perde, .basari-kutu, .basari-ikon circle, .basari-ikon path { animation: none; stroke-dashoffset: 0; } }
.fiyat { color: var(--ana); white-space: nowrap; } .fiyat.tamam { color: var(--ok); }

/* Kurumsal tablo görünümü (masaüstü) */
@media (min-width: 861px) {
  .tablo-kap { border-radius: 12px; border-color: #e3e6ee; box-shadow: 0 1px 2px rgba(20, 26, 55, .04), 0 6px 20px rgba(20, 26, 55, .05); }
  th { background: #fff; color: #1a2140; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 14px 14px 12px; border-bottom: 2px solid #1a2140; }
  td { padding: 11px 14px; font-size: 14px; white-space: nowrap; color: #2a3045; font-variant-numeric: tabular-nums; }
  tbody tr:nth-child(even) td { background: #fafbfd; }
  tr.tikla:hover td { background: #f1f3f9; }
  th.sag, td.sag { text-align: right; }
  th.sag.siralanir .ok { margin-left: 4px; }
}
.iki-satir { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.iki-satir small { font-size: 12.5px; color: var(--soluk); font-weight: 500; }
a.tel { color: var(--soluk); text-decoration: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
a.tel:hover { color: var(--ana); text-decoration: underline; }
.durum-rozet { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #4b5470; white-space: nowrap; }
.durum-rozet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa1b4; }
.durum-rozet.açık { color: #8a6100; } .durum-rozet.açık::before { background: #d9a400; }
.durum-rozet.tamamlandı { color: #1b6e3c; } .durum-rozet.tamamlandı::before { background: #22a05a; }
.durum-rozet.iptal { color: #a3271f; } .durum-rozet.iptal::before { background: #d0453b; }
.fiyat { font-weight: 700; }
@media (max-width: 860px) { .iki-satir { align-items: flex-end; text-align: right; } a.tel { font-size: 14px; color: var(--ana); } }
@media (min-width: 861px) {
  th { padding: 13px 10px 11px; letter-spacing: .05em; font-size: 10.5px; }
  td { padding: 10px 10px; font-size: 13.5px; }
  th.sira, td.sira { padding-left: 16px; }
  th .ok { margin-left: 3px; }
}

/* ---------- Portföy listesi (kurumsal düzen) ---------- */
.yalniz-mobil { display: none; }
@media (max-width: 860px) { .yalniz-mobil { display: block; } .yalniz-masa { display: none; } }
.ozet-serit { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--yuzey); border: 1px solid #e3e6ee; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(20, 26, 55, .04); overflow: hidden; }
.ozet-serit > div { padding: 16px 22px; border-left: 1px solid #edf0f5; }
.ozet-serit > div:first-child { border-left: 0; box-shadow: inset 3px 0 0 var(--altin); }
.ozet-serit small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soluk); }
.ozet-serit b { display: block; margin-top: 4px; font-size: 24px; color: #1a2140; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ozet-serit b.yesil { color: var(--ok); }
.liste-panel { background: var(--yuzey); border: 1px solid #e3e6ee; border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 26, 55, .04), 0 6px 20px rgba(20, 26, 55, .05); overflow: hidden; }
.liste-panel .tablo-kap { border: 0; border-radius: 0; box-shadow: none; }
.liste-arac { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #edf0f5; flex-wrap: wrap; }
.sekmeler { display: inline-flex; background: #f1f3f8; border-radius: 10px; padding: 3px; gap: 2px; }
.sekme { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: #4b5470; font-weight: 600; font-size: 13.5px; box-shadow: none; }
.sekme b { font-size: 12px; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e3e6ee; color: #4b5470; font-variant-numeric: tabular-nums; }
.sekme:hover:not(:disabled) { background: rgba(255, 255, 255, .6); color: #1a2140; }
.sekme.aktif { background: #fff; color: #1a2140; box-shadow: 0 1px 3px rgba(20, 26, 55, .12); }
.sekme.aktif b { background: #1a2140; color: #fff; }
.sekme.açık.aktif b { background: #d9a400; } .sekme.tamamlandı.aktif b { background: #22a05a; } .sekme.iptal.aktif b { background: #d0453b; }
.arama-kap { position: relative; flex: 1 1 260px; max-width: 380px; margin-left: auto; }
.arama-kap .ikon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--soluk); pointer-events: none; }
.arama-kap input { width: 100%; padding-left: 38px; min-height: 40px; border-radius: 10px; }
.kayit-sayi { font-size: 13px; color: var(--soluk); white-space: nowrap; }
.liste-panel .bos { margin: 0; border: 0; box-shadow: none; }

@media (max-width: 860px) {
  .ozet-serit { grid-template-columns: 1fr 1fr; }
  .ozet-serit > div { padding: 12px 14px; }
  .ozet-serit > div:nth-child(3) { border-left: 0; }
  .ozet-serit > div:nth-child(n + 3) { border-top: 1px solid #edf0f5; }
  .ozet-serit b { font-size: 19px; }
  .liste-panel { background: none; border: 0; box-shadow: none; overflow: visible; }
  .liste-arac { padding: 0 0 12px; border: 0; gap: 10px; }
  .sekmeler { width: 100%; overflow-x: auto; }
  .sekme { flex: 1; justify-content: center; padding: 7px 8px; font-size: 13px; gap: 5px; }
  .arama-kap { max-width: none; flex-basis: 100%; margin: 0; order: -1; }
  .kayit-sayi { display: none; }
  .yan nav a { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.pkartlar { display: grid; gap: 12px; }
.pkart { background: var(--yuzey); border: 1px solid #e3e6ee; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(20, 26, 55, .05), 0 4px 14px rgba(20, 26, 55, .05); border-left: 4px solid #9aa1b4; cursor: pointer; }
.pkart.açık { border-left-color: #d9a400; } .pkart.tamamlandı { border-left-color: #22a05a; } .pkart.iptal { border-left-color: #d0453b; }
.pkart:active { transform: scale(.995); }
.pkart-ust { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pkart-ust b { display: block; font-size: 16.5px; color: #1a2140; }
.pkart-ust small { display: block; color: var(--soluk); font-size: 13px; margin-top: 1px; }
.pkart-etiketler { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pkart-etiketler span { font-size: 12px; font-weight: 600; color: #4b5470; background: #f1f3f8; border-radius: 6px; padding: 3px 8px; }
.pkart-fiyat { display: flex; gap: 22px; padding: 10px 0; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.pkart-fiyat small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); }
.pkart-fiyat b { font-size: 18px; color: #1a2140; font-variant-numeric: tabular-nums; }
.pkart-fiyat .gercek b { color: var(--ok); }
.pkart-alt { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: #4b5470; }
.pkart-alt > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.avatar.mini { width: 26px; height: 26px; flex-basis: 26px; font-size: 10.5px; }
.pkart-sag { display: inline-flex; align-items: center; gap: 10px; color: var(--soluk); }
a.ara-dugme { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok-zemin); color: var(--ok); }
a.ara-dugme .ikon { width: 18px; height: 18px; }
@media (min-width: 861px) { .pkartlar.yalniz-mobil { display: none; } }
.sekme { white-space: nowrap; }
@media (max-width: 860px) { .sekme { padding: 7px 6px; font-size: 12.5px; } .sekme b { min-width: 0; padding: 1px 6px; } .ozet-serit small { font-size: 10.5px; } }
