/* =====================================================================
   KısaKod — uygulama tasarımı v1.6 ("B · Büyük kod")
   iOS tarzı: yumuşak köşeler, bol boşluk, ince gölgeler, buzlu cam çubuklar.
   Telefona göre açık/koyu (uygulama içinden de seçilebilir: html[data-tema]).
   Yönetici paneli bu dosyayı kullanmaz (stil.css).
   ===================================================================== */
:root {
  --zemin: #f3f3f5;
  --yuzey: #ffffff;
  --yuzey-2: #f7f7f9;
  --alan: #e8e8ed;
  --secim-ust: #ffffff;
  --yazi: #17171a;
  --yazi-2: #3a3a40;
  --soluk: #6b6b72;
  --cizgi: #e4e4e9;
  --birincil: #d7263d;
  --birincil-acik: #fce8eb;
  --kod: #7e1222;
  --basari: #1f9d55;
  --uyari: #b45309;
  --uyari-acik: #fff4e0;
  --hata: #d92d20;
  --cubuk: rgba(250, 250, 252, .78);
  --iskelet: #e6e6eb;
  --perde: rgba(0, 0, 0, .35);
  --bildirim-zemin: rgba(31, 31, 35, .92);
  --bildirim-yazi: #ffffff;
  --tutamac: #c7c7cc;
  --golge: 0 1px 2px rgba(0, 0, 0, .04), 0 3px 12px rgba(0, 0, 0, .05);
  --golge-2: 0 12px 40px rgba(0, 0, 0, .16);
  --yaz: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --es: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --yumusak: cubic-bezier(.2, .8, .2, 1);
  --ust-boy: 112px;
  --alt-boy: 64px;
  color-scheme: light;
}
:root[data-tema="koyu"] {
  --zemin: #1b1b1f;
  --yuzey: #2a2a2f;
  --yuzey-2: #323238;
  --alan: #3a3a40;
  --secim-ust: #636369;
  --yazi: #f3f3f6;
  --yazi-2: #d6d6dc;
  --soluk: #a3a3ab;
  --cizgi: #3a3a40;
  --birincil: #ff4e66;
  --birincil-acik: #47202a;
  --kod: #ffc7d0;
  --basari: #4ade80;
  --uyari: #f5b14c;
  --uyari-acik: #3a2a12;
  --hata: #ff8a80;
  --cubuk: rgba(38, 38, 43, .78);
  --iskelet: #34343a;
  --perde: rgba(0, 0, 0, .6);
  --bildirim-zemin: rgba(243, 243, 246, .95);
  --bildirim-yazi: #17171a;
  --tutamac: #5a5a60;
  --golge: none;
  --golge-2: 0 12px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="acik"]) {
    --zemin: #1b1b1f;
    --yuzey: #2a2a2f;
    --yuzey-2: #323238;
    --alan: #3a3a40;
    --secim-ust: #636369;
    --yazi: #f3f3f6;
    --yazi-2: #d6d6dc;
    --soluk: #a3a3ab;
    --cizgi: #3a3a40;
    --birincil: #ff4e66;
    --birincil-acik: #47202a;
    --kod: #ffc7d0;
    --basari: #4ade80;
    --uyari: #f5b14c;
    --uyari-acik: #3a2a12;
    --hata: #ff8a80;
    --cubuk: rgba(38, 38, 43, .78);
    --iskelet: #34343a;
    --perde: rgba(0, 0, 0, .6);
    --bildirim-zemin: rgba(243, 243, 246, .95);
    --bildirim-yazi: #17171a;
    --tutamac: #5a5a60;
    --golge: none;
    --golge-2: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100dvh; background: var(--zemin); color: var(--yazi);
  font: 16px/1.4 var(--yaz); -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
/* Arka plan: çok yavaş kayan, soluk renk bulutları. Göz yormaz; "hareketi azalt" açıksa durur. */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36vmax 36vmax at 20% 22%, color-mix(in srgb, var(--birincil) 10%, transparent), transparent 70%),
    radial-gradient(40vmax 40vmax at 80% 80%, color-mix(in srgb, var(--basari) 7%, transparent), transparent 70%),
    radial-gradient(28vmax 28vmax at 72% 18%, color-mix(in srgb, var(--birincil) 6%, transparent), transparent 70%);
  animation: arkaPlan 50s ease-in-out infinite alternate;
}
@keyframes arkaPlan {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4vmax, -3vmax, 0) rotate(7deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 3vmax, 0) rotate(-5deg) scale(1); }
}

button { cursor: pointer; border: 0; background: none; padding: 0; }
.kaydirma-kilitli, .kaydirma-kilitli body { overflow: hidden; }
.ikon {
  width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.ikon-dugme {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--soluk); font-size: 22px; transition: background-color .15s, transform .12s var(--yumusak);
}
.ikon-dugme:active { transform: scale(.92); background: var(--alan); }
:focus-visible { outline: 2px solid var(--birincil); outline-offset: 2px; }

/* ---------------- Düğmeler ---------------- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 18px; border-radius: 14px; font-weight: 650; font-size: 16px;
  transition: transform .12s var(--yumusak), filter .15s, background-color .15s;
}
.dugme .ikon { font-size: 20px; }
.dugme:active { transform: scale(.975); }
.dugme:disabled { opacity: .55; }
.dugme.ana { background: var(--birincil); color: #fff; }
.dugme.yumusak { background: var(--birincil-acik); color: var(--birincil); }
.dugme.ikincil { background: var(--yuzey); color: var(--yazi); box-shadow: var(--golge); }
.dugme.genis { width: 100%; }
.baglanti-dugme { color: var(--birincil); font-weight: 650; padding: 10px; border-radius: 10px; }

/* ---------------- Giriş ---------------- */
.giris {
  min-height: 100dvh; display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.giris-kart {
  width: 100%; max-width: 400px; padding: 28px 22px 18px; border-radius: 26px; background: var(--yuzey);
  box-shadow: var(--golge-2); text-align: center; animation: belir .4s var(--yumusak) both;
}
.giris-kart > img { width: 76px; height: 76px; border-radius: 18px; }
.giris-kart h1 { margin: 12px 0 2px; font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.giris-kart > p { margin: 0 0 18px; color: var(--soluk); }
.giris-kart form { display: grid; gap: 12px; text-align: left; }
.alan { display: grid; gap: 6px; }
.alan span { font-size: 13px; font-weight: 650; color: var(--yazi-2); padding-left: 4px; }
.alan input {
  height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--cizgi);
  background: var(--yuzey-2); font-size: 17px; transition: border-color .15s, background-color .15s;
}
.alan input:focus { outline: none; border-color: var(--birincil); background: var(--yuzey); }
.giris-kart .dugme.ana { margin-top: 6px; }
.hata-yazisi { color: var(--hata); font-weight: 600; min-height: 1em; margin: 10px 0 0; }
.hata-yazisi:empty { display: none; }
.bilgi-yazisi { color: var(--basari); font-weight: 600; margin: 12px 0 0; }
.kucuk-not { color: var(--soluk); font-size: 13px; margin: 12px 0 0; }
.onay-kutusu { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--yazi-2); }

/* ---------------- Üst çubuk ---------------- */
.ust-cubuk {
  position: fixed; inset: 0 0 auto; z-index: 30; padding-top: env(safe-area-inset-top);
  transition: background-color .2s, box-shadow .2s;
}
.ust-cubuk.dolu {
  background: var(--cubuk); box-shadow: 0 .5px 0 var(--cizgi);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.ust-ic { max-width: 720px; margin: 0 auto; }
.ust-satir {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 8px 0 18px;
}
.saat-alani { display: grid; line-height: 1.15; }
.saat-alani b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.saat-alani span { font-size: 12px; color: var(--soluk); }
.marka, .kucuk-baslik {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap;
}
.marka { font-size: 19px; }
.marka img { width: 28px; height: 28px; border-radius: 7px; }
.kucuk-baslik { font-size: 17px; opacity: 0; transition: opacity .15s; }
.durum .ikon { font-size: 23px; }
.durum.esitleniyor { color: var(--birincil); }
.durum.esitleniyor .ikon { animation: don 1.1s linear infinite; }
.durum.cevrimdisi { color: var(--uyari); }
.arama {
  display: flex; align-items: center; gap: 8px; height: 46px; margin: 0 16px 10px; padding: 0 4px 0 12px;
  border-radius: 14px; background: var(--alan); color: var(--soluk);
}
.arama > .ikon { font-size: 20px; }
.arama input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 17px; color: var(--yazi);
}
.arama input:focus { outline: none; }
.arama input::placeholder { color: var(--soluk); }
.arama input::-webkit-search-cancel-button { display: none; }
.temizle-dugme {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  animation: buyu .16s var(--yumusak) both;
}
.temizle-dugme span {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--soluk); color: var(--zemin); font-size: 13px;
}
.temizle-dugme .ikon { stroke-width: 2.6; }
.serit {
  display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--uyari-acik); color: var(--uyari); font-size: 13px; font-weight: 650;
  animation: belir .25s var(--yumusak) both;
}
.serit .ikon { font-size: 20px; }
.serit.bilgi-serit { background: var(--birincil-acik); color: var(--kod); }
.serit.bilgi-serit span { flex: 1; }

/* ---------------- Sayfalar ---------------- */
.sayfalar {
  max-width: 720px; margin: 0 auto;
  padding: calc(var(--ust-boy) + 4px) 0 calc(var(--alt-boy) + 20px);
}
.sayfa.gecis { animation: sayfaGel .2s var(--yumusak) both; }
.buyuk-baslik { margin: 2px 20px 0; font-size: 34px; font-weight: 750; letter-spacing: -.02em; }
.alt-baslik { margin: 2px 20px 14px; color: var(--soluk); font-size: 15px; }
.alt-baslik:empty { display: none; }
.bolum { margin: 10px 22px 8px; color: var(--soluk); font-size: 14px; font-weight: 650; }
.bolum:empty { display: none; }
.liste { list-style: none; margin: 0; padding: 0; }

/* ---------------- Ürün kartı (B · Büyük kod) ---------------- */
.kart {
  margin: 0 16px 12px; padding: 12px; border-radius: 20px; background: var(--yuzey); box-shadow: var(--golge);
  transition: transform .14s var(--yumusak);
}
.kart:has(.kart-ac:active) { transform: scale(.985); }
.kart.belir { animation: belir .3s var(--yumusak) both; }
.kart.belir:nth-child(2) { animation-delay: 30ms; }
.kart.belir:nth-child(3) { animation-delay: 60ms; }
.kart.belir:nth-child(4) { animation-delay: 90ms; }
.kart.belir:nth-child(5) { animation-delay: 120ms; }
.kart.belir:nth-child(6) { animation-delay: 150ms; }
.kart.belir:nth-child(n+7) { animation-delay: 180ms; }
.kart-ac {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; text-align: left;
}
.kart-resim {
  width: 54px; height: 54px; padding: 4px; border-radius: 14px; background: #fff; object-fit: contain;
  display: grid; place-items: center; color: #a3a3ab; font-size: 26px;
}
.kart-bilgi { display: grid; gap: 2px; min-width: 0; }
.kart-ad {
  font-size: 16px; font-weight: 650; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.kart-meta { font-size: 13px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kart-fiyat { font-size: 16px; font-weight: 650; white-space: nowrap; }
.eski-etiket {
  justify-self: start; padding: 1px 7px; border-radius: 6px; background: var(--alan); color: var(--soluk);
  font-size: 11px; font-weight: 700;
}
.seritler { display: grid; gap: 6px; margin-top: 10px; }
.kod-serit {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 12px 0 14px;
  border-radius: 14px; background: var(--birincil-acik); color: var(--kod); text-align: left;
  transition: transform .12s var(--yumusak), filter .15s;
}
.kod-serit:active { transform: scale(.98); filter: brightness(.96); }
.kod-serit .cesit { min-width: 64px; max-width: 110px; font-size: 13px; font-weight: 700; }
.kod-serit .kod-metin { flex: 1; font-size: 26px; }
.kod-serit.cesitli .kod-metin { font-size: 23px; }
.kod-serit .serit-fiyat { font-size: 13px; font-weight: 700; }
.kod-serit .ikon { font-size: 20px; }
.kod-metin { font-family: var(--es); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.kod-metin span + span { margin-left: .32em; }
.kart.eski .kart-ac { opacity: .55; }
.kart.eski .kod-serit { background: var(--alan); color: var(--soluk); }

/* Yüklenirken iskelet kartlar */
.iskelet-kart { margin: 0 16px 12px; padding: 12px; border-radius: 20px; background: var(--yuzey); }
.iskelet-kart > div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; }
.iskelet-kart i { display: block; border-radius: 8px; background: var(--iskelet); animation: nabiz 1.8s ease-in-out infinite; }
.iskelet-kart .k { height: 54px; border-radius: 14px; }
.iskelet-kart .s1 { height: 14px; margin-right: 40px; }
.iskelet-kart .s2 { height: 12px; width: 90px; margin-top: 8px; }
.iskelet-kart .serit-i { height: 50px; border-radius: 14px; margin-top: 10px; }

/* Boş durum */
.bos { display: grid; justify-items: center; gap: 6px; padding: 48px 40px; text-align: center; animation: belir .3s var(--yumusak) both; }
.bos-ikon {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 10px; border-radius: 50%;
  background: var(--alan); color: var(--soluk); font-size: 32px;
}
.bos b { font-size: 19px; font-weight: 700; }
.bos span { color: var(--soluk); font-size: 15px; }
.daha { display: grid; justify-items: center; padding: 4px 16px 12px; }

/* ---------------- Alt menü (sekme çubuğu) ---------------- */
.sekme-cubugu {
  position: fixed; inset: auto 0 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom);
  background: var(--cubuk); box-shadow: 0 -.5px 0 var(--cizgi);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.sekme-cubugu > div { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 0 auto; }
.sekme {
  display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; color: var(--soluk);
  font-size: 11px; font-weight: 650; transition: color .15s;
}
.sekme .ikon { font-size: 25px; transition: transform .15s var(--yumusak); }
.sekme:active .ikon { transform: scale(.88); }
.sekme[aria-current="page"] { color: var(--birincil); }
.sekme.dolu-ikon[aria-current="page"] .ikon { fill: currentColor; }

/* ---------------- Gruplu liste (Ayarlar, detay bilgileri) ---------------- */
.grup-baslik { margin: 18px 36px 6px; color: var(--soluk); font-size: 13px; }
.grup-not { margin: 6px 36px 0; color: var(--soluk); font-size: 13px; }
.grup { margin: 0 16px; border-radius: 16px; background: var(--yuzey); overflow: hidden; }
.satir {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 14px;
  text-align: left; position: relative;
}
button.satir:active { background: var(--alan); }
.satir + .satir::before {
  content: ""; position: absolute; top: 0; left: 58px; right: 0; height: .5px; background: var(--cizgi);
}
.satir-ikon {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px;
  background: var(--birincil-acik); color: var(--birincil); font-size: 18px;
}
.satir-orta { flex: 1; min-width: 0; display: grid; }
.satir-orta small { color: var(--soluk); font-size: 13px; }
.satir-deger { color: var(--soluk); font-size: 15px; }
.satir > .ikon { color: var(--soluk); font-size: 18px; }
.satir.tehlike { color: var(--hata); }
.satir.esitleniyor .satir-ikon .ikon { animation: don 1.1s linear infinite; }
.secici-satir { padding: 12px 14px; display: grid; gap: 10px; }
.secici {
  display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; padding: 2px; border-radius: 10px;
  background: var(--alan);
}
.secici button {
  height: 34px; border-radius: 8px; color: var(--soluk); font-size: 14px; font-weight: 650;
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.secici button[aria-pressed="true"] {
  background: var(--secim-ust); color: var(--yazi); box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.bilgi-satiri { justify-content: space-between; }
.bilgi-satiri + .bilgi-satiri::before { left: 16px; }
.bilgi-satiri span { color: var(--soluk); }
.bilgi-satiri b { font-weight: 650; text-align: right; }

/* ---------------- Ürün detayı: alttan açılan sayfa ---------------- */
.sayfa-katman { position: fixed; inset: 0; z-index: 50; }
.sayfa-katman .perde { position: absolute; inset: 0; background: var(--perde); }
.alt-sayfa {
  position: absolute; inset: auto 0 0; margin: 0 auto; width: min(100%, 560px); max-height: 92dvh;
  display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--zemin);
  box-shadow: var(--golge-2);
}
.tutamac-alan { touch-action: none; cursor: grab; }
.tutamac { width: 38px; height: 5px; margin: 8px auto 0; border-radius: 99px; background: var(--tutamac); }
.sayfa-ust { display: flex; align-items: center; gap: 12px; padding: 10px 14px 4px 20px; }
.sayfa-ust h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.kapat-dugme {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--alan); color: var(--soluk); font-size: 18px;
}
.sayfa-icerik {
  overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.sayfa-icerik > * { flex-shrink: 0; }
.cipler { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.cip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--alan); color: var(--yazi);
  font-size: 15px; font-weight: 700; transition: background-color .15s, color .15s;
}
.cip[aria-pressed="true"] { background: var(--birincil); color: #fff; }

/* Kasa kodu kartı: her temada beyaz zeminde siyah (okuyucu sorunsuz okusun) */
.kasa-kart {
  display: grid; justify-items: center; gap: 8px; padding: 16px; border-radius: 22px;
  background: #fff; color: #17171a; color-scheme: light; text-align: center;
}
.kasa-kod-alani { display: grid; place-items: center; width: 100%; }
.kasa-qr { display: block; width: min(64vw, 240px); height: auto; aspect-ratio: 1; }
.kasa-barkod { display: block; width: 100%; height: 150px; }
.kasa-kod-alani.gecis { animation: solarak .2s ease both; }
.kasa-rakam { font-size: 32px; }
.kasa-secici { display: grid; grid-template-columns: 116px 116px; padding: 3px; border-radius: 10px; background: #efeff3; margin-top: 4px; }
.kasa-secici button { height: 34px; border-radius: 8px; font-size: 14px; font-weight: 700; color: #6b6b72; }
.kasa-secici button[aria-pressed="true"] { background: #fff; color: #17171a; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.kasa-ipucu { margin: 2px 0 0; color: #6b6b72; font-size: 12.5px; }
.buyuk-resim-kutu {
  position: relative; display: grid; place-items: center; width: 100%; height: 230px; padding: 14px;
  border-radius: 22px; background: #fff; cursor: zoom-in; transition: transform .12s var(--yumusak);
}
.buyuk-resim-kutu:active { transform: scale(.985); }
/* Resim kutunun içinde kalır: ızgara satırında yüzde yükseklik çalışmadığı için tam boy + contain */
.buyuk-resim-kutu { overflow: hidden; }
.buyuk-resim-kutu img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.buyut-ipucu {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: #efeff3; color: #6b6b72; font-size: 17px;
}
.hata-bildir {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  border-radius: 12px; color: var(--soluk); font-size: 14px; font-weight: 650;
}
.hata-bildir .ikon { font-size: 17px; }
.hata-bildir:active { background: var(--alan); }
.sayfa-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sayfa-dugmeler .favoride .ikon { fill: currentColor; }

/* ---------------- Bildirim ("Kopyalandı") ---------------- */
#bildirim {
  position: fixed; left: 50%; bottom: calc(var(--alt-boy) + 14px); z-index: 70;
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 16px; border-radius: 99px; background: var(--bildirim-zemin); color: var(--bildirim-yazi);
  font-size: 15px; font-weight: 650; box-shadow: var(--golge-2); pointer-events: none;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform: translate(-50%, 12px) scale(.96); opacity: 0;
  transition: opacity .18s ease, transform .2s var(--yumusak);
}
#bildirim .ikon { font-size: 18px; }
#bildirim.goster { opacity: 1; transform: translate(-50%, 0) scale(1); }
#bildirim.hata .ikon { color: var(--hata); }
.sayfa-katman ~ #bildirim, .kaydirma-kilitli #bildirim { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------------- Yenilikler penceresi ---------------- */
.pencere {
  width: min(100% - 32px, 460px); max-height: 80dvh; padding: 22px; border: 0; border-radius: 22px;
  background: var(--yuzey); color: var(--yazi); box-shadow: var(--golge-2);
}
.pencere::backdrop { background: var(--perde); }
.pencere h2 { margin: 0 0 10px; font-size: 20px; }
.yenilik-liste { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--yazi-2); }
.pencere-dugmeler { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------------- Hata bildir penceresi ---------------- */
.pencere-alt { margin: -4px 0 12px; color: var(--soluk); font-size: 14px; }
.neden-secim { margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 6px; }
.neden-secim legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 650; color: var(--yazi-2); }
.neden-secim label {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 14px;
  background: var(--yuzey-2); cursor: pointer; transition: background-color .15s, box-shadow .15s;
}
.neden-secim label:has(input:checked) { background: var(--birincil-acik); box-shadow: inset 0 0 0 1.5px var(--birincil); }
.neden-secim input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--birincil); }
.neden-secim span { display: grid; font-weight: 600; }
.neden-secim small { color: var(--soluk); font-size: 12.5px; font-weight: 500; }
.not-alani {
  width: 100%; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--cizgi);
  background: var(--yuzey-2); color: var(--yazi); font: inherit; resize: vertical;
}
.not-alani:focus { outline: none; border-color: var(--birincil); background: var(--yuzey); }

/* ---------------- Resim: tam ekran ---------------- */
.resim-gosterici {
  position: fixed; inset: 0; z-index: 90; overflow: hidden; background: #000; touch-action: none;
  animation: solarak .18s ease both;
}
.resim-gosterici img {
  position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; background: #fff;
  transform-origin: center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform;
}
.resim-gosterici img.yumusak { transition: transform .22s var(--yumusak); }
.gosterici-kapat {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px;
}
.gosterici-ipucu {
  position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); margin: 0;
  text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; pointer-events: none;
  animation: ipucuSon 3.2s ease both;
}
@keyframes ipucuSon { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------- Hareketler ---------------- */
@keyframes belir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sayfaGel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes solarak { from { opacity: 0; } to { opacity: 1; } }
@keyframes buyu { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes nabiz { 50% { opacity: .5; } }
@keyframes don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Bilgisayar: içerik ortada, alt sayfa ortada açılır */
@media (min-width: 760px) {
  .kart:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .07); }
  .alt-sayfa { bottom: 24px; border-radius: 26px; max-height: calc(100dvh - 48px); }
}

/* ---------------- Android uygulamasını indirme sayfası (/indir/) ---------------- */
.indir-alani { display: grid; gap: 12px; text-align: left; }
.indir-alani .dugme { justify-content: center; text-decoration: none; }
.indir-baslik { margin: 8px 0 0; font-size: 1rem; }
.indir-liste { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--soluk); }
.indir-not { margin: 0; color: var(--soluk); font-size: .9rem; }

/* ---------------- Uygulamayı paylaş (QR) ---------------- */
.paylas-qr { display: grid; place-items: center; padding: 12px; margin: 4px 0 8px; background: #fff; border-radius: 16px; }
.paylas-qr .kasa-qr { width: min(60vw, 220px); }
.paylas-adres { margin: 0 0 14px; text-align: center; font: 600 15px var(--es); color: var(--soluk); }

/* Kasa kodu sadece rakam: büyük ve okunaklı */
.kasa-rakam-buyuk { font-size: clamp(40px, 13vw, 56px); padding: 14px 0 6px; }

/* BİM hakkında bilgilendirme: zemine uygun, dikkat çekmeyen küçük yazı */
.bagimsiz-kisa { margin: 18px auto 0; max-width: 340px; padding: 0 16px; text-align: center;
  font-size: 11.5px; line-height: 1.45; color: var(--soluk); opacity: .75; }
/* Giriş / şifremi unuttum ekranında not hep sayfanın en altında durur (kartların arasına karışmaz) */
.giris { position: relative; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.giris > .bagimsiz-kisa { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0 auto; }
.bagimsiz-not { margin-top: 18px; font-size: 12px; line-height: 1.45; opacity: .8; }

/* Ayarlar: bağlantı satırları da düz satır gibi görünsün (mavi altı çizili değil) */
a.satir { color: inherit; text-decoration: none; }

/* ---------------- Açılış ekranı (ilk girişte liste inerken) ---------------- */
.acilis { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; background: var(--zemin); transition: opacity .25s; }
.acilis[hidden] { display: none; }
.acilis.kayboluyor { opacity: 0; }
.acilis img { width: 92px; height: 92px; }
.acilis h1 { margin: 10px 0 0; font-size: 26px; }
.acilis p { margin: 0; color: var(--soluk); font-size: 14px; }
.acilis-cubuk { width: 160px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--alan); overflow: hidden; }
.acilis-cubuk span { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--birincil);
  animation: acilis-kay 1.1s ease-in-out infinite; }
@keyframes acilis-kay { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .acilis-cubuk span { animation: none; width: 100%; } .acilis { transition: none; } }
.acilis > .bagimsiz-kisa { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0 auto; }

/* ---------------- Duyuru ve kategori düğmeleri (Ara sekmesi) ---------------- */
.duyuru { display: flex; align-items: flex-start; gap: 10px; margin: 4px 16px 12px; padding: 12px 8px 12px 14px;
  border-radius: 16px; background: var(--birincil-acik); color: var(--yazi); font-size: 15px; line-height: 1.4; }
.duyuru[hidden] { display: none; }
.duyuru span { flex: 1; padding-top: 4px; }
.duyuru span::before { content: "📢 "; }
.kategoriler { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 10px; padding: 2px 16px 4px; scrollbar-width: none; }
.kategoriler::-webkit-scrollbar { display: none; }
.kategoriler[hidden] { display: none; }
.kategori { flex: none; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--alan); color: var(--yazi);
  font: 600 14px var(--yaz); cursor: pointer; }
.kategori.secili { background: var(--birincil); color: #fff; }

/* ---------------- Akıcı geçişler ----------------
   Ürün sayfası açıkken arkadaki ekran hafifçe küçülür ve buzlanır (iPhone'daki cam görünümü gibi);
   sekmeye basınca simgesi küçük bir "pıt" yapar. "Hareketi azalt" açıksa hiçbiri oynamaz. */
#sayfalar, #ustCubuk, #sekmeCubugu {
  transition: transform .4s cubic-bezier(.05, .7, .1, 1), filter .4s cubic-bezier(.05, .7, .1, 1);
  transform-origin: 50% 35%;
}
html.detay-acik #sayfalar, html.detay-acik #ustCubuk, html.detay-acik #sekmeCubugu {
  transform: scale(.94); filter: blur(6px) saturate(1.15);
  transition-duration: .4s, .4s;
}
.sekme[aria-current="page"] .ikon { animation: sekmePit .32s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes sekmePit { from { transform: scale(.82); } to { transform: none; } }
.kategori.secili { animation: sekmePit .3s cubic-bezier(.34, 1.56, .64, 1); }
@media (prefers-reduced-motion: reduce) {
  html.detay-acik #sayfalar, html.detay-acik #ustCubuk, html.detay-acik #sekmeCubugu { transform: none; filter: none; }
}

/* Uygulama hakkında penceresi */
.hakkinda { max-width: 560px; }
.hakkinda { max-height: 86dvh; overflow: hidden; }
.hakkinda form { display: flex; flex-direction: column; max-height: calc(86dvh - 48px); }
.hakkinda .pencere-dugmeler, .hakkinda h2, .hakkinda-not, #hakkindaSurum { flex: none; }
.hakkinda-not { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--alan); font-size: 14px; line-height: 1.5; }
.hakkinda-govde { flex: 1; min-height: 0; overflow-y: auto; margin-bottom: 10px; }
.hakkinda-govde h3 { margin: 14px 0 4px; font-size: 15px; }
.hakkinda-govde .hakkinda-ara { margin-top: 4px; font-size: 16px; }
.hakkinda-govde p { margin: 0; color: var(--soluk); font-size: 14px; line-height: 1.5; }

/* ---------------- Pencereler: yumuşak açılış / kapanış ---------------- */
.pencere[open] { animation: pencereGel .28s cubic-bezier(.05, .7, .1, 1); }
.pencere[open]::backdrop { animation: solarak .25s ease-out; }
.pencere.kapaniyor { animation: pencereGit .17s ease-in forwards; }
.pencere.kapaniyor::backdrop { animation: perdeGit .17s ease-in forwards; }
@keyframes pencereGel { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pencereGit { to { opacity: 0; transform: scale(.96); } }
@keyframes perdeGit { to { opacity: 0; } }

/* Kategori düğmeleri: basınca hafifçe içeri çöker; bilgisayarda fareyle kaydırılabilir */
.kategori { transition: transform .12s var(--yumusak), background-color .2s, color .2s; }
.kategori:active { transform: scale(.93); }
@media (hover: hover) {
  .kategori:hover:not(.secili) { background: color-mix(in srgb, var(--alan) 80%, var(--yazi) 8%); }
  .kategoriler { cursor: grab; }
  .kategoriler.surukleniyor { cursor: grabbing; user-select: none; }
  .kategoriler.surukleniyor .kategori { pointer-events: none; }
}
