/* Akoluk logo renkleri */
:root {
  --turuncu: #F48120;
  --turuncu-koyu: #C9620A;   /* beyaz zeminde okunaklı turuncu yazı */
  --mavi: #006AB5;
  --mavi-acik: #00A1E4;
  --lacivert: #0B2E4F;
  --zemin: #F3F7FB;
  --kart: #FFFFFF;
  --cizgi: #D3DEEA;
  --soluk: #5E6E80;
  --yesil: #1E9E5A;
  --hata-zemin: #FFF4EB;
  --hata-yazi: #9A4A06;
  --golge: 0 8px 28px rgba(0, 60, 110, .10);
  --golge-kucuk: 0 2px 8px rgba(0, 60, 110, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--lacivert);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body { background: var(--zemin); }

button, input { font: inherit; }
button { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

.gizli {
  position: absolute !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

@keyframes belir {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  0%   { opacity: 0; transform: scale(.94) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.015); }
  100% { transform: none; }
}
@keyframes salla {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
@keyframes don { to { transform: rotate(360deg); } }

/* ================= Sorgu sayfası ================= */
.sorgu-sayfa {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 380px at 50% -120px, #DDEEFA 0%, rgba(221, 238, 250, 0) 70%),
    var(--zemin);
  background-attachment: fixed;
}

/* ---------- Üst çubuk ---------- */
.ust {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 2px 10px rgba(0, 60, 110, .08);
}
.ust::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--mavi) 0 55%, var(--mavi-acik) 55% 78%, var(--turuncu) 78% 100%);
}
.ust-logo { height: 40px; width: auto; display: block; max-width: 60vw; }
.baglanti {
  flex: none;
  background: #fff;
  border: 2px solid var(--cizgi);
  color: var(--mavi);
  font-weight: 600;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
}
.baglanti:hover { border-color: var(--mavi); }

.icerik { flex: 1 0 auto; width: 100%; max-width: 640px; margin: 0 auto; padding: 26px 16px 40px; }

/* Alt ortadaki imza */
.imza {
  position: relative;
  z-index: 1;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .8rem;
  letter-spacing: .04em;
  color: #8796A8;
}
.imza b { font-weight: 700; color: var(--mavi); }

.sayfa-baslik {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mavi);
}

/* ---------- Sekmeler (Fiyat / Stok) ---------- */
.sekmeler {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px;
  background: #E3ECF5;
  border-radius: 16px;
}
.sekme {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--soluk);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.sekme.aktif {
  background: #fff;
  color: var(--mavi);
  box-shadow: 0 2px 8px rgba(0, 60, 110, .12);
}
.stok-modu .sekme.aktif { color: var(--turuncu-koyu); }

/* ---------- Stok kartı ---------- */
.stok-kart .rozet { background: var(--mavi); box-shadow: 0 4px 12px rgba(0, 106, 181, .35); }
.stok-kart { border-top-color: var(--mavi) !important; }
.stok-ozet {
  margin: 18px auto 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stok-ozet-sayi {
  font-size: clamp(3rem, 15vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--yesil);
  font-variant-numeric: tabular-nums;
}
.stok-ozet.sifir .stok-ozet-sayi { color: #8796A8; }
.stok-ozet.eksi .stok-ozet-sayi { color: #C62828; }
.stok-ozet-yazi { margin-top: 4px; font-size: .9rem; color: var(--soluk); }

.stok-tablo-kutu { margin: 18px -6px 0; }
.stok-tablo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.stok-tablo th {
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 700;
  color: #8796A8;
}
.stok-tablo th:last-child, .stok-tablo td:last-child { text-align: right; }
.stok-tablo td {
  padding: 12px;
  border-top: 1px solid #EDF2F7;
  font-size: 1.05rem;
}
.stok-tablo tbody tr:nth-child(odd) td { background: #F7FAFD; }
.stok-depo { font-weight: 600; }
.stok-nokta {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--yesil);
  vertical-align: middle;
}
.stok-miktar { font-weight: 800; white-space: nowrap; }
.stok-tablo tr.var .stok-miktar { color: var(--yesil); }
.stok-tablo tr.sifir .stok-nokta { background: #C5D0DC; }
.stok-tablo tr.sifir td { color: #8796A8; }
.stok-tablo tr.eksi .stok-nokta { background: #C62828; }
.stok-tablo tr.eksi .stok-miktar { color: #C62828; }
.stok-tablo tfoot td {
  border-top: 2px solid #D3DEEA;
  font-weight: 800;
  color: var(--lacivert);
}

/* ---------- Rapor: tarih filtresi ---------- */
.rapor-modu .sekme.aktif { color: #6A3FB5; }
.rapor-filtre { margin: -4px 0 14px; }
.tarih-cipleri {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.tarih-cipleri::-webkit-scrollbar { display: none; }
.cip {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 2px solid var(--cizgi);
  border-radius: 999px;
  background: #fff;
  color: var(--soluk);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}
.cip.aktif { background: #6A3FB5; border-color: #6A3FB5; color: #fff; }
.ozel-tarih { display: flex; gap: 10px; margin-top: 8px; }
.ozel-tarih label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--soluk); }
.ozel-tarih input {
  height: 44px;
  padding: 0 10px;
  border: 2px solid var(--cizgi);
  border-radius: 10px;
  background: #fff;
  color: var(--lacivert);
  font-size: 1rem;
}
.aralik-yazi { margin-top: 6px; font-size: .9rem; font-weight: 600; color: #6A3FB5; text-align: center; }

/* ---------- Rapor kartı ---------- */
.rapor-kart { border-top-color: #6A3FB5 !important; }
.rapor-kart .rozet { background: #6A3FB5; box-shadow: 0 4px 12px rgba(106, 63, 181, .35); }
.rapor-donem {
  margin-top: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: #6A3FB5;
}
.rapor-alt { margin-top: 4px; font-size: .9rem; color: var(--soluk); }
.kpi-izgara {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.kpi {
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--zemin);
  text-align: center;
}
.kpi-baslik { font-size: .8rem; font-weight: 700; color: var(--soluk); }
.kpi-deger {
  margin-top: 4px;
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  font-weight: 800;
  color: var(--lacivert);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.kpi-alt { margin-top: 2px; font-size: .78rem; color: var(--soluk); }
.rapor-tablo tr.soluk td { color: var(--soluk); font-size: .92rem; }
.rapor-tablo tr.soluk .rapor-deger { font-weight: 600; }
.kpi.kar { background: #E7F6EE; }
.kpi.kar .kpi-deger { color: var(--yesil); }
.kpi.zarar { background: #FDECEC; }
.kpi.zarar .kpi-deger { color: #C62828; }
.rapor-uyari {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF4EB;
  color: var(--hata-yazi);
  font-size: .92rem;
  font-weight: 600;
}
.rapor-bolum { margin-top: 20px !important; text-align: left; }
.rapor-tablo { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.rapor-tablo td { padding: 10px 12px; border-top: 1px solid #EDF2F7; font-size: 1rem; }
.rapor-tablo tr:first-child td { border-top: none; }
.rapor-tablo tr:nth-child(odd) td { background: #F7FAFD; }
.rapor-deger { text-align: right; font-weight: 800; white-space: nowrap; }
.rapor-tablo tr.kar .rapor-deger { color: var(--yesil); }
.rapor-tablo tr.zarar .rapor-deger { color: #C62828; }
.rapor-depo th, .rapor-depo td { text-align: right; }
.rapor-depo th:first-child, .rapor-depo td:first-child { text-align: left; }
.rapor-depo td { padding: 10px 8px; }
.rapor-kilitle { margin-top: 18px; }

/* ---------- Rapor kilidi ---------- */
.kilit-kart {
  margin-top: 44px;
  background: var(--kart);
  box-shadow: var(--golge);
  border-top: 6px solid #6A3FB5;
  animation: pop .3s ease-out;
}
.kilit-kart .rozet { background: #6A3FB5; box-shadow: 0 4px 12px rgba(106, 63, 181, .35); }
.kilit-kart .durum-alt { color: var(--soluk); }
.kilit-form { margin-top: 16px; }
.kilit-sifre {
  width: 100%;
  height: 56px;
  padding: 0 14px;
  font-size: 1.2rem;
  border: 2px solid var(--cizgi);
  border-radius: 12px;
  background: #fff;
  color: var(--lacivert);
}
.kilit-sifre:focus { outline: none; border-color: #6A3FB5; box-shadow: 0 0 0 4px rgba(106, 63, 181, .15); }
.kilit-form .birincil { background: linear-gradient(135deg, #8A5FD6, #6A3FB5); box-shadow: 0 8px 18px rgba(106, 63, 181, .3); }

/* ---------- Barkod kutusu + düğmeler ---------- */
.arama { display: flex; flex-wrap: wrap; gap: 10px; }

.barkod-kutu {
  position: relative;
  flex: 1;
  min-width: 0;
}
.barkod-kutu.salla { animation: salla .4s ease; }
/* Arama türü düğmesi (Barkod / Ad-Kod) */
.mod-btn {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #9AA8B8;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.mod-btn:active { background: #EDF2F7; }
.mod-btn .mod-metin { display: none; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.barkod-kutu.metin-modu .mod-btn { color: var(--mavi); background: #E6F3FB; }
.barkod-kutu.metin-modu .mod-btn .mod-barkod { display: none; }
.barkod-kutu.metin-modu .mod-btn .mod-metin { display: inline; }
.barkod-kutu.metin-modu input { font-size: 1.15rem; letter-spacing: 0; }
.barkod-kutu.metin-modu input::placeholder { font-size: 1.05rem; }
.barkod-kutu input {
  width: 100%;
  height: 64px;
  padding: 0 42px 0 44px;
  font-size: clamp(1.2rem, 5.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--cizgi);
  border-radius: 16px;
  background: var(--kart);
  color: var(--lacivert);
  box-shadow: var(--golge-kucuk);
  transition: border-color .15s, box-shadow .15s;
}
.barkod-kutu input::placeholder { color: #9AA8B8; font-weight: 500; letter-spacing: .02em; }
.barkod-kutu input:focus {
  outline: none;
  border-color: var(--mavi-acik);
  box-shadow: 0 0 0 4px rgba(0, 161, 228, .18);
}
.barkod-kutu:focus-within .mod-btn,
.barkod-kutu.dolu .mod-btn { color: var(--mavi); }

/* ---------- Arama sonuçları ---------- */
.arama-kart {
  padding: 18px 12px 12px;
  background: var(--kart);
  box-shadow: var(--golge);
  border-top: 6px solid var(--mavi-acik);
  text-align: left;
}
.arama-baslik { margin: 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--lacivert); }
.arama-not { margin: 4px 6px 0; font-size: .88rem; color: var(--soluk); }
.arama-liste { margin-top: 12px; box-shadow: none; border: 1px solid #EDF2F7; }
.arama-ad { white-space: normal !important; overflow-wrap: anywhere; }
.ara-onerisi { margin-top: 14px; color: var(--mavi); }

.temizle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #EDF2F7;
  color: var(--soluk);
  cursor: pointer;
}
.barkod-kutu.dolu .temizle-btn { display: flex; }
.temizle-btn:active { background: #DCE5EE; }

.kamera {
  flex: 0 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mavi-acik), var(--mavi));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 106, 181, .30);
  transition: transform .1s, background .2s;
}
.kamera:active { transform: scale(.94); }
.kamera.aktif { background: var(--turuncu); box-shadow: 0 6px 14px rgba(244, 129, 32, .35); }

.sorgula-btn {
  flex: 1 0 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF9A3D, var(--turuncu));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(244, 129, 32, .30);
  transition: transform .1s;
}
.sorgula-btn:active { transform: scale(.98); }

/* ---------- Kamera ---------- */
.kamera-alani { margin-top: 14px; animation: belir .25s ease-out; }

/* Çerçeve oranları app.js'teki CERCEVE_EN / CERCEVE_BOY ile aynı olmalı */
.vizor {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: var(--golge);
}
.vizor video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vizor-cerceve {
  position: absolute;
  left: 5%;
  width: 90%;
  top: 30%;
  height: 40%;
  border: 3px solid var(--turuncu);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42);
  pointer-events: none;
}
.vizor-cizgi {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 10%;
  height: 2px;
  background: rgba(244, 129, 32, .95);
  box-shadow: 0 0 10px 2px rgba(244, 129, 32, .6);
  animation: vizor-tara 1.6s ease-in-out infinite alternate;
}
@keyframes vizor-tara {
  from { top: 10%; }
  to   { top: 88%; }
}
.fener {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  cursor: pointer;
}
.fener.aktif { background: #FFD24D; color: #3A2A00; }

.kamera-ipucu {
  margin: 10px 2px 0;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--soluk);
  text-align: center;
}
.kamera-ipucu b { color: var(--mavi); }

.ikincil {
  width: 100%;
  margin-top: 10px;
  height: 50px;
  border: 2px solid var(--cizgi);
  border-radius: 14px;
  background: var(--kart);
  color: var(--mavi);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Sonuç ---------- */
.sonuc {
  position: relative;
  margin-top: 22px;
  padding: 28px 18px 24px;
  border-radius: 20px;
  text-align: center;
  animation: belir .25s ease-out;
}
.sonuc:empty { display: none; }

.sonuc.bulundu {
  background: var(--kart);
  box-shadow: var(--golge);
  border-top: 6px solid var(--turuncu);
  animation: pop .35s cubic-bezier(.2, .9, .3, 1.2);
}
.sonuc.hata {
  background: var(--hata-zemin);
  color: var(--hata-yazi);
  border: 2px solid #F8C9A0;
  animation: pop .3s ease-out;
}
.sonuc.bekle { background: #E8F3FB; color: var(--mavi); }
.sonuc.ipucu {
  background: rgba(255, 255, 255, .55);
  color: var(--soluk);
  padding: 30px 18px;
  border: 2px dashed var(--cizgi);
}

.rozet {
  width: 52px;
  height: 52px;
  margin: -54px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yesil);
  color: #fff;
  border: 4px solid var(--kart);
  box-shadow: 0 4px 12px rgba(30, 158, 90, .35);
}
.sonuc.hata .rozet {
  background: var(--turuncu);
  border-color: var(--hata-zemin);
  box-shadow: 0 4px 12px rgba(244, 129, 32, .35);
}
.sonuc.bulundu, .sonuc.hata { margin-top: 44px; }

.urun-adi {
  font-size: clamp(1.5rem, 6.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--lacivert);
  overflow-wrap: anywhere;
}
.fiyat {
  margin-top: 16px;
  font-size: clamp(3.2rem, 16vw, 5.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--mavi);
  font-variant-numeric: tabular-nums;
}
.fiyat .para { color: var(--turuncu-koyu); font-size: .5em; margin-left: .15em; font-weight: 800; }
.fiyat.yok { font-size: clamp(1.6rem, 7vw, 2.2rem); color: var(--turuncu-koyu); }
.fiyat-not { margin-top: 6px; font-size: .9rem; color: var(--soluk); }
.durum { font-size: clamp(1.3rem, 6vw, 1.8rem); font-weight: 800; }
.durum-alt { margin-top: 6px; font-size: 1rem; opacity: .9; }
.ipucu .durum { font-size: 1.05rem; font-weight: 500; line-height: 1.45; }
.barkod-yazi {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--zemin);
  font-size: .95rem;
  color: var(--soluk);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
/* ---------- İndirim tablosu ---------- */
.indirim {
  margin: 20px -6px 0;
  padding-top: 16px;
  border-top: 2px dashed #E3EAF2;
  text-align: left;
}
.indirim-baslik {
  margin: 0 6px 8px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soluk);
}
.indirim-tablo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.indirim-tablo th {
  padding: 6px 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #8796A8;
  text-align: right;
}
.indirim-tablo th:first-child { text-align: left; }
.indirim-tablo td {
  padding: 10px 8px;
  border-top: 1px solid #EDF2F7;
  text-align: right;
  font-size: 1.05rem;
}
.indirim-tablo td:first-child { text-align: left; }
.indirim-tablo tbody tr:nth-child(odd) td { background: #F7FAFD; }
.indirim-tablo tbody tr:first-child td:first-child { border-top-left-radius: 10px; }
.indirim-tablo tbody tr:first-child td:last-child { border-top-right-radius: 10px; }
.indirim-tablo tbody tr:last-child td:first-child { border-bottom-left-radius: 10px; }
.indirim-tablo tbody tr:last-child td:last-child { border-bottom-right-radius: 10px; }
.indirim-oran {
  display: inline-block;
  min-width: 52px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFEBD9;
  color: var(--turuncu-koyu);
  font-weight: 800;
  text-align: center;
}
.indirim-fiyat { font-weight: 800; color: var(--mavi); white-space: nowrap; }
.indirim-kazanc { color: var(--yesil); font-weight: 600; white-space: nowrap; font-size: .95rem !important; }

.sonuc.hata .barkod-yazi { background: rgba(255, 255, 255, .7); color: var(--hata-yazi); }

.yukleniyor { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.2rem; font-weight: 700; }
.donen {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(0, 106, 181, .2);
  border-top-color: var(--mavi);
  animation: don .7s linear infinite;
}

/* ---------- Son aramalar ---------- */
.gecmis { margin-top: 28px; animation: belir .3s ease-out; }
.gecmis-ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gecmis-ust h2 {
  margin: 0;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soluk);
}
.metin-btn {
  background: none;
  border: none;
  padding: 6px 4px;
  color: var(--mavi);
  font-weight: 700;
  cursor: pointer;
}
.gecmis-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--kart);
  border-radius: 16px;
  box-shadow: var(--golge-kucuk);
  overflow: hidden;
}
.gecmis-liste li + li { border-top: 1px solid #EDF2F7; }
.gecmis-oge {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.gecmis-oge:active { background: var(--zemin); }
.gecmis-sol { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gecmis-ad {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gecmis-barkod { font-size: .85rem; color: var(--soluk); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.gecmis-fiyat { flex: none; font-weight: 800; color: var(--mavi); font-variant-numeric: tabular-nums; }

/* ---------- Bekleme ekranı ---------- */
.bekleme {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #EAF4FB 70%, #DCEDF8 100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  animation: belir .4s ease-out;
}
.bekleme-ic {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}
.bekleme-logo { width: min(320px, 80vw); height: auto; }
.bekleme-firma { margin-top: 8px; font-size: 1.1rem; font-weight: 600; color: var(--mavi); }

.barkod-anim {
  position: relative;
  width: min(260px, 70vw);
  height: 110px;
  margin: 40px 0 28px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--golge);
  overflow: hidden;
}
.barkod-anim svg { width: 100%; height: 100%; display: block; }
.barkod-anim rect { fill: var(--lacivert); }
.tarama-cizgisi {
  position: absolute;
  left: 6px; right: 6px;
  top: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--turuncu);
  box-shadow: 0 0 12px 3px rgba(244, 129, 32, .55);
  animation: tara 2.2s ease-in-out infinite alternate;
}
@keyframes tara {
  from { top: 10px; }
  to   { top: calc(100% - 13px); }
}

.bekleme-baslik { font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 600; color: var(--lacivert); }
.bekleme-alt {
  margin-top: 4px;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  color: var(--turuncu);
  animation: nabiz 2s ease-in-out infinite;
}
@keyframes nabiz {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
.bekleme-saat {
  margin-top: 40px;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  font-weight: 300;
  color: var(--mavi);
  font-variant-numeric: tabular-nums;
}
.bekleme-tarih { margin-top: 2px; font-size: 1.05rem; color: var(--soluk); }
.bekleme-serit, .alt-serit {
  height: 10px;
  background: linear-gradient(90deg, var(--mavi) 0 40%, var(--mavi-acik) 40% 70%, var(--turuncu) 70% 100%);
}

/* ================= Giriş sayfası ================= */
.giris-sayfa {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(160deg, #F7FBFE 0%, #EAF4FB 55%, #FFF3E8 100%);
}

/* Arka planda yavaşça süzülen renk lekeleri */
.arka-plan { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.leke {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  animation: suzul 18s ease-in-out infinite alternate;
}
.l1 { width: 340px; height: 340px; background: var(--mavi-acik); top: -110px; left: -90px; }
.l2 { width: 300px; height: 300px; background: var(--turuncu); bottom: -100px; right: -80px; animation-delay: -6s; opacity: .35; }
.l3 { width: 220px; height: 220px; background: var(--mavi); top: 45%; left: 60%; animation-delay: -12s; opacity: .22; }
@keyframes suzul {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(.95); }
}

.giris {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.giris-kart {
  width: 100%;
  max-width: 400px;
  padding: 34px 24px 22px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 60, 110, .16);
  border-top: 6px solid var(--turuncu);
  animation: pop .5s cubic-bezier(.2, .9, .3, 1.2);
}
.giris-kart.salla { animation: salla .45s ease; }
.giris-kart.basarili { transform: scale(.98); opacity: .6; transition: transform .3s, opacity .3s; }

.giris-logo { display: block; width: min(250px, 70vw); height: auto; margin: 0 auto 14px; }
.selam {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lacivert);
}
.giris h1 {
  margin: 4px 0 26px;
  text-align: center;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mavi);
}
.giris label { display: block; margin-bottom: 8px; font-weight: 700; }

.sifre-kutu { position: relative; }
.sifre-kutu input {
  width: 100%;
  height: 58px;
  padding: 0 56px 0 16px;
  font-size: 1.3rem;
  border: 2px solid var(--cizgi);
  border-radius: 14px;
  background: #fff;
  color: var(--lacivert);
  transition: border-color .15s, box-shadow .15s;
}
.sifre-kutu input::placeholder { font-size: 1.05rem; color: #9AA8B8; }
.sifre-kutu input:focus { outline: none; border-color: var(--mavi-acik); box-shadow: 0 0 0 4px rgba(0, 161, 228, .18); }

.goz {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: none;
  color: var(--soluk);
  cursor: pointer;
}
.goz:active { background: var(--zemin); }
.goz .goz-kapali { display: none; }
.goz.acik .goz-acik { display: none; }
.goz.acik .goz-kapali { display: block; }
.goz.acik { color: var(--mavi); }

.caps {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #FFF4EB;
  color: var(--hata-yazi);
  font-size: .9rem;
  font-weight: 600;
}

.birincil {
  position: relative;
  width: 100%;
  height: 58px;
  margin-top: 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mavi-acik), var(--mavi));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 106, 181, .32);
  transition: transform .1s, opacity .2s;
}
.birincil:active { transform: scale(.98); }
.birincil:disabled { cursor: default; }
.birincil .donen {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -13px 0 0 -13px;
  border-color: rgba(255, 255, 255, .35);
  border-top-color: #fff;
}
.birincil.yukleniyor .btn-yazi { visibility: hidden; }
.birincil.yukleniyor .donen { display: block; }

.mesaj { min-height: 1.5em; margin: 14px 0 0; color: var(--hata-yazi); text-align: center; font-weight: 700; }
.alt-not { margin: 18px 0 0; font-size: .85rem; color: var(--soluk); text-align: center; }
.alt-serit { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
