/* Saha satış sistemi: telefon ve tablet için. Yönetim panelinin renkleriyle aynı aileden, Bootstrap'siz. */
:root {
  --ana: #4f46e5;
  --ana-koyu: #4338ca;
  --ana-acik: #eef2ff;
  --mor: #7c3aed;
  --zemin: #f4f6fb;
  --yuzey: #ffffff;
  --cizgi: #e5e9f2;
  --yazi: #0f172a;
  --yazi-soluk: #64748b;
  --yesil: #16a34a;
  --kirmizi: #dc2626;
  --turuncu: #ea580c;
  --yaricap: 16px;
  --golge: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --ust: 60px;
  --alt: 64px;
  --guvenli-alt: env(safe-area-inset-bottom, 0px);
  --guvenli-ust: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Uygulama kabuğu: sayfa değil, yalnızca içerik alanı kayar. Üst çubuk ve alt gezinti akışın içinde durduğu için
   klavye açılıp kapansa da, liste kısa ya da uzun olsa da yerlerinden oynamaz. */
html { font-size: 16px; -webkit-text-size-adjust: 100%; height: 100%; overflow: hidden; }
body {
  margin: 0; height: 100%; overflow: hidden; background: var(--zemin); color: var(--yazi);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
h1, h2, p, dl, dd { margin: 0; }
b { font-weight: 700; }
input, textarea, .s-bilgi dd, .s-belge-ust { -webkit-user-select: text; user-select: text; }
.d-yok { display: none !important; }

/* ---------- İskelet ---------- */
/* Kabuk ekranın dört kenarına sabitlenir. Yükseklik vh/dvh ile verilmez: ana ekrana eklenmiş uygulamada (iOS) bu birimler
   durum çubuğu kadar kısa hesaplanır ve alt gezintinin altında boşluk kalır. */
.s-kabuk { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background: var(--zemin); }
/* iPhone ana ekran uygulaması sayfayı durum çubuğu kadar kısa bildirdiğinde (saha.js ölçer) sayfa o kadar uzatılır.
   Kabuk burada sabit konumlu değildir: iPhone sabit öğeleri kısa bildirdiği alanın dışında çizmez, akıştaki içeriği çizer.
   Açılan pencereler de aynı nedenle kabuğa göre konumlanır. */
html.s-uzat { height: calc(100% + var(--ekran-eksigi, 0px)); }
html.s-uzat .s-kabuk { position: relative; height: 100%; }
html.s-uzat .s-perde, html.s-uzat .s-sepet-cubugu, html.s-uzat .s-bildirim { position: absolute; }
.s-kaydir { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.s-yukleme { position: fixed; z-index: 70; inset: 0 0 auto 0; height: 3px; pointer-events: none; opacity: 0; background: linear-gradient(90deg, #a5b4fc, #fff, #a5b4fc); background-size: 200% 100%; transition: opacity .2s; }
.s-yukleme.acik { opacity: 1; animation: s-akis 1s linear infinite; }
@keyframes s-akis { to { background-position: -200% 0; } }

.s-ust {
  flex: none; position: relative; z-index: 30; display: flex; align-items: center; gap: .75rem;
  min-height: calc(var(--ust) + var(--guvenli-ust)); padding: var(--guvenli-ust) 1rem 0; color: #fff;
  background: linear-gradient(135deg, var(--ana), var(--mor)); box-shadow: 0 4px 18px rgba(79, 70, 229, .28);
}
.s-ust-dugme, .s-ust-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 1.15rem; color: #fff; }
.s-ust-dugme:active { background: rgba(255, 255, 255, .3); }
.s-ust-baslik { flex: 1; min-width: 0; }
.s-ust-baslik h1 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ust-baslik p { font-size: .8rem; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ust-bakiye { flex: none; text-align: right; font-size: .9rem; font-weight: 700; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.s-ust-bakiye small { display: block; font-size: .68rem; font-weight: 600; opacity: .85; }
/* Borçlu müşteride bakiye beyaz kutuda koyu kırmızı yazılır; mor zeminde kırmızı yazı okunmuyordu. */
.s-ust-bakiye.borc { padding: .32rem .65rem; border-radius: 11px; background: #fff; color: #b91c1c; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); }
.s-ust-bakiye.borc small { color: #7f1d1d; opacity: 1; }

.s-govde { max-width: 780px; margin: 0 auto; padding: 1rem 1rem 1.5rem; }
.s-alt-yok .s-govde { padding-bottom: calc(var(--guvenli-alt) + 1.5rem); }

.s-alt {
  flex: none; position: relative; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--alt) + var(--guvenli-alt)); padding-bottom: var(--guvenli-alt);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--cizgi);
}
.s-alt form { display: contents; }
.s-alt a, .s-alt button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: var(--yazi-soluk); font-size: .7rem; font-weight: 600; }
.s-alt i { font-size: 1.35rem; line-height: 1; }
.s-alt .aktif { color: var(--ana); }
.s-alt .aktif i { transform: translateY(-1px); }
.s-alt a:active, .s-alt button:active { background: var(--ana-acik); }

.s-bildirim {
  position: fixed; z-index: 60; top: calc(var(--guvenli-ust) + .75rem); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 1.5rem);
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border-radius: 14px; color: #fff; font-weight: 600; font-size: .92rem;
  background: #15803d; box-shadow: 0 12px 30px rgba(15, 23, 42, .28); animation: s-in .35s cubic-bezier(.2, 1.3, .4, 1) both; transition: opacity .3s, transform .3s;
}
.s-bildirim.hata { background: #b91c1c; }
.s-bildirim.gizle { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.s-bildirim i { font-size: 1.15rem; }
@keyframes s-in { from { opacity: 0; transform: translate(-50%, -16px); } }

/* ---------- Ortak parçalar ---------- */
.s-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.15rem;
  border-radius: 14px; font-weight: 700; font-size: .98rem; background: #eef1f6; color: var(--yazi); transition: transform .1s, opacity .15s;
}
.s-dugme:active { transform: scale(.97); }
.s-dugme.ana { background: var(--ana); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.s-dugme.yesil { background: var(--yesil); color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.s-dugme.kirmizi { background: var(--kirmizi); color: #fff; box-shadow: 0 8px 20px rgba(220, 38, 38, .26); }
.s-dugme.beyaz { background: #fff; color: var(--ana-koyu); }
.s-dugme.cam { background: rgba(255, 255, 255, .12); color: #fff; }
.s-dugme.cizgili { background: var(--yuzey); border: 1px solid var(--cizgi); }
.s-dugme.genis { width: 100%; }
.s-dugme.buyuk { min-height: 56px; font-size: 1.05rem; border-radius: 16px; }
.s-dugme:disabled { opacity: .45; box-shadow: none; }
.s-dugme.bekliyor { opacity: .7; pointer-events: none; }
.s-dugme.bekliyor i { animation: s-don 1s linear infinite; }
.s-dugme.bekliyor i::before { content: "\f130"; } /* bi-arrow-repeat */
@keyframes s-don { to { transform: rotate(360deg); } }

.s-avatar {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.s-avatar.kucuk { width: 42px; height: 42px; border-radius: 13px; font-size: .9rem; background: var(--ana-acik); color: var(--ana-koyu); }
.s-avatar.buyuk { width: 76px; height: 76px; border-radius: 24px; font-size: 1.6rem; box-shadow: 0 14px 34px rgba(99, 102, 241, .5); }

.s-ikon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }
.s-ikon.kucuk { width: 42px; height: 42px; border-radius: 13px; font-size: 1.1rem; }
.mavi { background: #dbeafe; color: #2563eb; }
.turuncu { background: #ffedd5; color: #ea580c; }
.yesil:not(.s-dugme) { background: #dcfce7; color: #16a34a; }
.sari { background: #fef3c7; color: #d97706; }
.mor { background: #ede9fe; color: #7c3aed; }
.camgobegi { background: #cffafe; color: #0891b2; }
.gri { background: #e2e8f0; color: #475569; }
.kirmizi:not(.s-dugme) { background: #fee2e2; color: #dc2626; }

.s-baslik { display: flex; align-items: baseline; gap: .5rem; margin: 1.5rem .15rem .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--yazi-soluk); }
.s-baslik span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.s-baslik a, .s-baslik button { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 700; color: var(--ana); }
.s-baslik button i { margin-right: .25rem; }

.s-liste { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap); box-shadow: var(--golge); overflow: hidden; }
.s-liste:empty { display: none; }
.s-satir { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; min-height: 64px; }
.s-satir + .s-satir { border-top: 1px solid var(--cizgi); }
a.s-satir:active { background: var(--ana-acik); }
.s-satir-orta { flex: 1; min-width: 0; }
.s-satir-orta b { display: block; font-size: .97rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-satir-orta small { display: block; font-size: .8rem; color: var(--yazi-soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tutar { flex: none; text-align: right; font-weight: 700; font-size: .97rem; font-variant-numeric: tabular-nums; }
.s-tutar small { display: block; font-size: .7rem; font-weight: 600; opacity: .85; }
.s-tutar.borc, .borc { color: #c2410c; }
.s-tutar.alacak, .alacak { color: #15803d; }
.s-tutar.sifir { color: var(--yazi-soluk); font-weight: 600; }
.s-tutar.gider, .gider { color: #b91c1c; }

/* Bugün işlem yapılan (ziyaret edilen) müşteri: yeşil zemin, işaretli avatar ve günün özeti */
.s-satir.ziyaret { flex-wrap: wrap; background: #f0fdf4; box-shadow: inset 4px 0 0 #22c55e; }
a.s-satir.ziyaret:active { background: #dcfce7; }
.s-satir.ziyaret .s-avatar { position: relative; background: #bbf7d0; color: #166534; }
.s-satir.ziyaret .s-avatar i { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; font-size: .8rem; border: 2px solid #f0fdf4; }
.s-gunluk { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .5rem .7rem; border-radius: 12px; background: rgba(255, 255, 255, .8); border: 1px solid #bbf7d0; }
.s-gunluk span { min-width: 0; }
.s-gunluk span:last-child { text-align: right; }
.s-gunluk span:nth-child(2) { text-align: center; }
.s-gunluk small { display: block; font-size: .68rem; font-weight: 600; color: #4d7c5f; white-space: nowrap; }
.s-gunluk b { display: block; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.s-bos { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2.25rem 1.25rem; text-align: center; }
.s-bos .s-ikon { width: 60px; height: 60px; border-radius: 18px; font-size: 1.6rem; margin-bottom: .5rem; }
.s-bos p { color: var(--yazi-soluk); font-size: .9rem; max-width: 30ch; }
.s-bos .s-dugme { margin-top: .9rem; }

.s-arama-cubugu { position: sticky; top: 0; z-index: 20; margin: -1rem -1rem .85rem; padding: .75rem 1rem .7rem; background: var(--zemin); display: grid; gap: .6rem; }
.s-arama { display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 .95rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; color: var(--yazi-soluk); }
.s-arama:focus-within { border-color: var(--ana); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.s-arama input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--yazi); font-size: 1rem; }
.s-cipler { display: flex; gap: .45rem; flex-wrap: wrap; }
.s-cipler.kayar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem; scrollbar-width: none; }
.s-cipler.kayar::-webkit-scrollbar { display: none; }
.s-cipler.orta { justify-content: center; }
.s-cipler button { flex: none; height: 36px; padding: 0 .9rem; border-radius: 999px; background: var(--yuzey); border: 1px solid var(--cizgi); font-size: .86rem; font-weight: 600; color: var(--yazi-soluk); white-space: nowrap; }
.s-cipler button span { margin-left: .25rem; opacity: .7; font-weight: 500; }
.s-cipler button.aktif { background: var(--ana); border-color: var(--ana); color: #fff; }
.s-cipler button:active { transform: scale(.96); }

.s-bilgi { margin-top: .85rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: .25rem .95rem; }
.s-bilgi div { display: flex; gap: 1rem; padding: .65rem 0; }
.s-bilgi div + div { border-top: 1px solid var(--cizgi); }
.s-bilgi dt { flex: none; width: 72px; font-size: .82rem; color: var(--yazi-soluk); padding-top: .05rem; }
.s-bilgi dd { flex: 1; min-width: 0; font-size: .93rem; overflow-wrap: anywhere; }

.s-toplamlar { margin-top: .85rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: .35rem .95rem; font-variant-numeric: tabular-nums; }
.s-toplamlar div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; color: var(--yazi-soluk); font-size: .93rem; }
.s-toplamlar dd { font-weight: 600; color: var(--yazi); }
.s-toplamlar .genel { border-top: 1px dashed var(--cizgi); margin-top: .2rem; padding-top: .7rem; color: var(--yazi); font-weight: 700; font-size: 1.02rem; }
.s-toplamlar .genel:first-child { border-top: 0; margin-top: 0; }
.s-toplamlar .genel dd { font-size: 1.25rem; font-weight: 800; color: var(--ana-koyu); }
.s-toplamlar .alacak dd { color: #15803d; }

/* ---------- Kapı: cihaz kaydı ve şifre ekranı ---------- */
.s-kabuk.s-sade { background: #0f172a; color: #fff; }
.s-sade .s-govde { max-width: none; padding: 0; min-height: 100%; display: flex; flex-direction: column; }
.s-kapi {
  position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  padding: calc(var(--guvenli-ust) + 1.4rem) 1.4rem calc(var(--guvenli-alt) + 1.2rem);
}
.s-kapi-isik { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 15% 0%, rgba(99, 102, 241, .5), transparent 70%), radial-gradient(55% 40% at 100% 100%, rgba(139, 92, 246, .38), transparent 70%); }
.s-kapi > *:not(.s-kapi-isik) { position: relative; }
.s-kapi-marka { display: flex; align-items: center; gap: .7rem; align-self: flex-start; font-size: 1.1rem; font-weight: 500; }
.s-kapi-marka .s-ust-logo { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 6px 16px rgba(99, 102, 241, .45); }
.s-kapi-marka b { font-weight: 800; }
.s-kapi-marka em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-left: .45rem; padding: .22rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #c7d2fe; }
.s-kapi-not { margin-top: auto; padding-top: 1.25rem; font-size: .8rem; color: #64748b; text-align: center; }

.s-kayit { width: 100%; max-width: 420px; margin: auto 0; padding: 1.6rem 1.35rem 1.4rem; border-radius: 22px; background: var(--yuzey); color: var(--yazi); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); display: grid; gap: .9rem; }
.s-kayit-ikon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; font-size: 1.5rem; background: var(--ana-acik); color: var(--ana); }
.s-kayit h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.s-kayit p { color: var(--yazi-soluk); font-size: .92rem; margin-top: -.55rem; }

.s-alan { display: grid; gap: .35rem; }
.s-alan > span:first-child { font-size: .85rem; font-weight: 600; }
.s-alan em { font-style: normal; font-weight: 500; color: var(--yazi-soluk); }
.s-alan input, .s-alan textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1px solid var(--cizgi); border-radius: 13px; background: var(--yuzey); font-size: 1rem; outline: 0; resize: vertical; }
.s-alan input:focus, .s-alan textarea:focus { border-color: var(--ana); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.s-alan small { font-size: .78rem; color: var(--yazi-soluk); }
.s-alan-hata, .field-validation-error { color: var(--kirmizi); font-size: .82rem; font-weight: 600; }
.s-alan-hata:empty { display: none; }
.s-uyari { padding: .75rem .9rem; border-radius: 13px; background: #fee2e2; color: #991b1b; font-size: .9rem; font-weight: 600; }
.s-uyari ul { margin: 0; padding: 0; list-style: none; }
.validation-summary-valid { display: none; }
.s-form .s-alan { margin-top: 1rem; }
.s-form > .s-uyari { margin-bottom: .25rem; }

.s-kilit { margin: auto 0; width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 1.25rem; }
.s-amblem { position: relative; display: grid; place-items: center; width: 112px; height: 112px; }
.s-amblem svg { position: relative; width: 96px; height: 96px; filter: drop-shadow(0 14px 26px rgba(99, 102, 241, .55)); animation: s-amblem-gir .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.s-amblem::before, .s-amblem::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(165, 180, 252, .45); animation: s-halka 2.8s ease-out infinite; }
.s-amblem::after { animation-delay: 1.4s; }
@keyframes s-halka { from { transform: scale(.72); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes s-amblem-gir { from { transform: scale(.6) translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .s-amblem::before, .s-amblem::after, .s-amblem svg { animation: none; } .s-amblem::before, .s-amblem::after { opacity: 0; } }
.s-kilit-kisi { margin-top: .9rem; display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #cbd5e1; max-width: 100%; }
.s-kilit-kisi b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .68rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.s-kilit-kisi span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-kilit h1 { margin-top: .95rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.s-kilit form { width: 100%; display: flex; flex-direction: column; align-items: center; }
.s-kilit form.bekliyor { opacity: .55; pointer-events: none; }
.s-kilit-istek { margin-top: 1.6rem; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; font-size: .95rem; color: #cbd5e1; }
.s-kilit-istek.hata { color: #fca5a5; font-weight: 600; }
.s-noktalar { display: flex; gap: .85rem; margin: .9rem 0 1.5rem; }
.s-noktalar i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); transition: background .12s, transform .12s, border-color .12s; }
.s-noktalar i.dolu { background: #fff; border-color: #fff; transform: scale(1.12); }
.s-noktalar.salla { animation: s-salla .45s; }
@keyframes s-salla { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.s-tuslar { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; justify-items: center; }
.s-tuslar button {
  width: min(100%, 78px); aspect-ratio: 1; border-radius: 50%; font-size: 1.75rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .08); transition: background .1s, transform .1s; user-select: none; -webkit-user-select: none;
}
.s-tuslar button:active { background: rgba(255, 255, 255, .3); transform: scale(.94); }
.s-tuslar .islev { background: transparent; border-color: transparent; font-size: 1.5rem; color: #cbd5e1; }
.s-noktalar i { width: 16px; height: 16px; }
.s-engel { margin-top: 1.75rem; width: 100%; padding: 1.4rem 1.2rem; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: .5rem; justify-items: center; }
.s-engel > i { font-size: 2rem; color: #fca5a5; }
.s-engel span { font-size: .88rem; color: #94a3b8; }
.s-engel .s-dugme { margin-top: .6rem; }

/* ---------- Ana sayfa ---------- */
.s-karsilama { margin: -1rem -1rem 0; padding: 1.1rem 1rem 1.25rem; color: #fff; background: linear-gradient(135deg, var(--ana), var(--mor)); border-radius: 0 0 26px 26px; box-shadow: 0 12px 30px rgba(79, 70, 229, .25); }
.s-karsilama-ust { display: flex; align-items: center; gap: .8rem; }
.s-karsilama-ust .s-avatar { background: rgba(255, 255, 255, .2); }
.s-karsilama-ust > div { flex: 1; min-width: 0; }
.s-karsilama-ust small { display: block; font-size: .8rem; opacity: .85; }
.s-karsilama-ust b { display: block; font-size: 1.15rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-karsilama-tarih { flex: none; text-align: right; font-size: .8rem; font-weight: 600; }
.s-karsilama-tarih small { display: flex; justify-content: flex-end; align-items: center; gap: .25rem; font-weight: 500; max-width: 38vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-ozet { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.1rem; }
.s-ozet a { padding: .85rem .95rem; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.s-ozet span { display: block; font-size: .78rem; opacity: .88; }
.s-ozet b { display: block; margin: .15rem 0 .05rem; font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ozet small { font-size: .75rem; opacity: .8; }

.s-hizli { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.s-hizli a { display: grid; align-content: start; gap: .1rem; padding: 1rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap); box-shadow: var(--golge); }
.s-hizli a:active { transform: scale(.98); border-color: #c7d2fe; }
.s-hizli .s-ikon { margin-bottom: .6rem; }
.s-hizli b { font-size: 1.02rem; }
.s-hizli small { font-size: .78rem; color: var(--yazi-soluk); }
.s-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.s-kutu { display: flex; align-items: center; gap: .75rem; padding: .85rem .9rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap); min-width: 0; }
.s-kutu > div { min-width: 0; }
.s-kutu small { display: block; font-size: .74rem; color: var(--yazi-soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-kutu.genis { grid-column: 1 / -1; }
.s-kutu.genis > div { flex: 1; }
.s-kutu-islem { flex: none; display: inline-flex; align-items: center; gap: .3rem; height: 38px; padding: 0 .8rem; border-radius: 12px; background: #fee2e2; color: #b91c1c; font-size: .84rem; font-weight: 700; }
.s-kutu b { display: block; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-karsilama ~ .s-bos { margin-top: 1rem; background: var(--yuzey); border: 1px dashed var(--cizgi); border-radius: var(--yaricap); }

/* ---------- Müşteri kartı ---------- */
.s-musteri { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 20px; box-shadow: var(--golge); padding: 1rem; }
.s-musteri-ust { display: flex; align-items: center; gap: .8rem; }
.s-musteri-ust > div { min-width: 0; }
.s-musteri-ust b { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.s-musteri-ust small { font-size: .82rem; color: var(--yazi-soluk); }
.s-bakiye { margin-top: .95rem; padding: .85rem 1rem; border-radius: 15px; background: #f1f5f9; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.s-bakiye span { font-size: .85rem; font-weight: 600; color: var(--yazi-soluk); }
.s-bakiye b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--yazi); }
.s-bakiye.borc { background: #fff7ed; }
.s-bakiye.borc b { color: #c2410c; }
.s-bakiye.alacak { background: #f0fdf4; }
.s-bakiye.alacak b { color: #15803d; }
.s-musteri-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .95rem; }
.s-musteri-dugmeler.serbest { margin-top: 1.25rem; }
.s-iletisim { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: .85rem; }
.s-iletisim a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem .4rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 15px; font-size: .78rem; font-weight: 600; color: var(--yazi); }
.s-iletisim i { font-size: 1.25rem; color: var(--ana); }
.s-iletisim a.pasif { opacity: .4; pointer-events: none; }
.s-iletisim a:active { background: var(--ana-acik); }
.s-sekmeler { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: 1.25rem 0 .7rem; padding: .3rem; background: #e8ecf4; border-radius: 14px; }
.s-sekmeler button { height: 40px; border-radius: 11px; font-size: .9rem; font-weight: 600; color: var(--yazi-soluk); }
.s-sekmeler button.aktif { background: var(--yuzey); color: var(--yazi); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* ---------- Tahsilat ve formlar ---------- */
.s-tutar-kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 20px; box-shadow: var(--golge); padding: 1.1rem 1rem 1.2rem; display: grid; gap: .9rem; justify-items: center; text-align: center; }
.s-tutar-kart-ust { font-size: .85rem; color: var(--yazi-soluk); }
.s-tutar-kart-ust b { margin-left: .3rem; color: var(--yazi); font-variant-numeric: tabular-nums; }
.s-tutar-kart-ust b.borc { color: #c2410c; }
.s-tutar-giris { display: flex; align-items: baseline; justify-content: center; gap: .35rem; width: 100%; padding: .2rem .75rem .5rem; border-bottom: 2px solid var(--cizgi); }
.s-tutar-giris:focus-within { border-color: var(--ana); }
.s-tutar-giris span { font-size: 1.6rem; font-weight: 700; color: var(--yazi-soluk); }
.s-tutar-giris input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; text-align: center; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.s-tutar-giris input::placeholder { color: #cbd5e1; }
.s-tutar-giris input.hatali { color: var(--kirmizi); }
.s-tutar-giris.kucuk { flex: 1; padding: 0 .9rem; height: 52px; align-items: center; border: 1px solid var(--cizgi); border-radius: 14px; background: var(--yuzey); }
.s-tutar-giris.kucuk span { font-size: 1.1rem; }
.s-tutar-giris.kucuk input { text-align: left; font-size: 1.25rem; }
.s-secenekler { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; }
.s-secenekler label { position: relative; }
.s-secenekler input { position: absolute; opacity: 0; pointer-events: none; }
.s-secenekler span { display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: .6rem .85rem; border-radius: 14px; background: var(--yuzey); border: 1.5px solid var(--cizgi); font-size: .92rem; font-weight: 600; }
.s-secenekler span i { font-size: 1.15rem; color: var(--yazi-soluk); }
.s-secenekler input:checked + span { border-color: var(--ana); background: var(--ana-acik); color: var(--ana-koyu); }
.s-secenekler input:checked + span i { color: var(--ana); }
.s-secenekler input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 70, 229, .2); }
.s-alt-islem { position: sticky; bottom: 0; z-index: 15; margin: 1.25rem -1rem calc(-1.5rem - var(--guvenli-alt)); padding: .75rem 1rem calc(.75rem + var(--guvenli-alt)); background: linear-gradient(to top, var(--zemin) 72%, transparent); }
.s-ipucu { margin: .5rem .15rem 0; font-size: .82rem; color: var(--yazi-soluk); }
.s-ipucu:empty { display: none; }
.s-ipucu.orta { text-align: center; margin-top: 1rem; }
.s-ipucu.orta i { color: #16a34a; }
.s-ikili-alan { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
.s-ikili-alan .s-alan > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-form .s-alan.ilk { margin-top: 0; }
.s-ipucu.hata { color: var(--kirmizi); font-weight: 600; }

/* ---------- İşlemler ---------- */
.s-gun { display: flex; align-items: center; gap: .6rem; }
.s-gun > a { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--yuzey); border: 1px solid var(--cizgi); font-size: 1.1rem; }
.s-gun > a.pasif { opacity: .35; pointer-events: none; }
.s-gun label { position: relative; flex: 1; text-align: center; padding: .35rem; border-radius: 14px; }
.s-gun label b { display: block; font-size: 1.1rem; font-weight: 800; }
.s-gun label small { font-size: .8rem; color: var(--yazi-soluk); }
.s-gun input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.s-dortlu { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .9rem 0; }
.s-masraf-dugme { margin-top: .9rem; }
.s-dortlu div { padding: .75rem .8rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 15px; min-width: 0; }
.s-dortlu small { display: block; font-size: .74rem; color: var(--yazi-soluk); }
.s-dortlu b { display: block; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Belge ---------- */
.s-belge-ust { display: flex; align-items: center; gap: .8rem; padding: 1rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 20px; box-shadow: var(--golge); }
.s-belge-ust > div { flex: 1; min-width: 0; }
.s-belge-ust b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.s-belge-ust small { font-size: .8rem; color: var(--yazi-soluk); }
.s-belge-toplam { flex: none; font-size: 1.2rem; font-weight: 800; color: var(--ana-koyu); font-variant-numeric: tabular-nums; }

/* ---------- Satış: ürünler ve sepet ---------- */
.s-urunler { display: grid; gap: .6rem; }
.s-urun { display: flex; align-items: center; gap: .75rem; padding: .7rem; background: var(--yuzey); border: 1.5px solid var(--cizgi); border-radius: var(--yaricap); min-width: 0; }
.s-urun.secili { border-color: #a5b4fc; background: #fafaff; }
.s-urun-resim { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 13px; background: #f1f5f9; color: #94a3b8; font-size: 1.4rem; overflow: hidden; }
.s-urun-resim img { width: 100%; height: 100%; object-fit: cover; }
.s-urun-orta { flex: 1; min-width: 0; }
.s-urun-orta > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.s-urun-orta small { display: block; margin-top: .12rem; font-size: .78rem; color: var(--yazi-soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-urun-orta small b { color: var(--yazi); }
.s-urun-orta .stok.yok { color: var(--kirmizi); font-weight: 600; }
.s-urun-fiyat { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .4rem; margin-top: .2rem; font-size: 1.02rem; font-weight: 800; color: var(--ana-koyu); font-variant-numeric: tabular-nums; }
.s-urun-fiyat em { font-style: normal; font-size: .74rem; font-weight: 500; color: var(--yazi-soluk); }
.s-urun-fiyat.etiket { margin-top: .3rem; }
.s-urun-fiyat i.indirim { background: #dcfce7; color: #15803d; }
.s-urun-fiyat i.degisik { background: #dbeafe; color: #1d4ed8; }
.s-urun-orta[data-kalem] { cursor: pointer; }
.s-urun-fiyat i { font-style: normal; font-size: .68rem; font-weight: 700; padding: .12rem .4rem; border-radius: 999px; background: #fef3c7; color: #b45309; }
.s-ekle { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ana-acik); color: var(--ana); font-size: 1.25rem; }
.s-ekle:active { background: var(--ana); color: #fff; }
.s-adet { flex: none; display: flex; align-items: center; background: var(--ana); border-radius: 14px; color: #fff; box-shadow: 0 6px 14px rgba(79, 70, 229, .28); }
.s-adet button { display: grid; place-items: center; width: 40px; height: 46px; font-size: 1.05rem; color: #fff; }
.s-adet button:active { background: rgba(255, 255, 255, .2); border-radius: 14px; }
.s-adet .miktar { width: auto; min-width: 38px; padding: 0 .2rem; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.s-urunler.sepet .s-urun-orta small { white-space: normal; }
.s-urunler + .s-dugme { margin-top: .75rem; }

.s-sepet-cubugu {
  position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(var(--guvenli-alt) + .8rem); width: min(calc(100vw - 1.6rem), 748px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .7rem .7rem 1.1rem; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--ana), var(--mor)); box-shadow: 0 16px 36px rgba(79, 70, 229, .45); animation: s-yuksel .3s cubic-bezier(.2, 1.2, .4, 1) both;
}
@keyframes s-yuksel { from { opacity: 0; transform: translate(-50%, 20px); } }
.s-sepet-cubugu small { display: block; font-size: .78rem; opacity: .88; }
.s-sepet-cubugu > div > b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
[data-adim="urunler"] { padding-bottom: 5.5rem; }

.s-dilim { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: .3rem; background: #e8ecf4; border-radius: 15px; }
.s-dilim label { position: relative; }
.s-dilim input { position: absolute; opacity: 0; pointer-events: none; }
.s-dilim span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 58px; padding: .4rem .25rem; border-radius: 12px; font-size: .8rem; font-weight: 600; color: var(--yazi-soluk); text-align: center; line-height: 1.15; }
.s-dilim span i { font-size: 1.15rem; }
.s-dilim.ikili { flex: none; grid-template-columns: 1fr 1fr; width: 116px; }
.s-dilim.ikili span { min-height: 44px; font-size: 1.05rem; font-weight: 700; }
.s-dilim input:checked + span { background: var(--yuzey); color: var(--ana-koyu); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.s-pesin { display: flex; gap: .6rem; }
.s-pesin + .s-secenekler { margin-top: .6rem; }

.s-perde { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, .55); animation: s-belir .2s both; }
@keyframes s-belir { from { opacity: 0; } }
.s-yaprak { width: 100%; max-width: 520px; padding: 1.3rem 1.2rem calc(1.2rem + var(--guvenli-alt)); background: var(--yuzey); border-radius: 24px 24px 0 0; display: grid; gap: .3rem; text-align: center; animation: s-kay .28s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes s-kay { from { transform: translateY(100%); } }
.s-yaprak > b { font-size: 1.05rem; }
.s-yaprak > small { color: var(--yazi-soluk); font-size: .85rem; }
.s-yaprak .s-tutar-giris { margin: .9rem 0 1.1rem; }
.s-yaprak .s-tutar-giris span { font-size: 1.1rem; }
.s-kalem-alanlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .7rem; text-align: left; }
.s-kalem-alanlar .s-alan { margin: 0; }
.s-kalem-alanlar input { font-weight: 700; font-variant-numeric: tabular-nums; }
.s-kalem-alanlar input.hatali, .s-tutar-giris input.hatali { border-color: var(--kirmizi); color: var(--kirmizi); }
.s-kalem-ozet { margin: .8rem 0 1rem; padding: .6rem .8rem; border-radius: 12px; background: var(--ana-acik); color: var(--ana-koyu); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-kalem-ozet:empty { display: none; }
.s-yaprak:has(.s-kalem-alanlar) .s-tutar-giris { margin-bottom: .9rem; }
.s-yaprak-dugmeler { display: grid; grid-template-columns: 1fr 1.4fr; gap: .7rem; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .s-govde { padding-left: 1.5rem; padding-right: 1.5rem; }
  .s-urunler:not(.sepet) { grid-template-columns: 1fr 1fr; }
  .s-dortlu { grid-template-columns: repeat(4, 1fr); }
  .s-hizli a { padding: 1.25rem; }
  .s-tuslar button { width: 84px; }
  .s-perde { align-items: center; }
  .s-yaprak { border-radius: 24px; padding-bottom: 1.3rem; }
  .s-karsilama { border-radius: 0 0 30px 30px; }
}

/* ---------- Sayfa geçişleri: üst çubuk ve alt gezinti yerinde kalır, içerik kayarak değişir ---------- */
@supports (view-transition-name: none) {
  .s-gecis .s-ust { view-transition-name: s-ust; }
  .s-gecis .s-alt { view-transition-name: s-alt; }
  .s-gecis .s-kaydir { view-transition-name: s-icerik; }
  ::view-transition-group(*) { animation-duration: .22s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  ::view-transition-old(s-ust), ::view-transition-new(s-ust), ::view-transition-old(s-alt), ::view-transition-new(s-alt) { animation-duration: .12s; }
  ::view-transition-old(s-icerik) { animation: s-cik .16s ease both; }
  ::view-transition-new(s-icerik) { animation: s-gir .24s cubic-bezier(.2, .8, .2, 1) both; }
  html[data-yon="geri"]::view-transition-old(s-icerik) { animation-name: s-cik-geri; }
  html[data-yon="geri"]::view-transition-new(s-icerik) { animation-name: s-gir-geri; }
}
@keyframes s-cik { to { opacity: 0; transform: translateX(-18px); } }
@keyframes s-gir { from { opacity: 0; transform: translateX(26px); } }
@keyframes s-cik-geri { to { opacity: 0; transform: translateX(18px); } }
@keyframes s-gir-geri { from { opacity: 0; transform: translateX(-26px); } }
/* Geçiş sürerken dokunulan öğe basılı görünür */
a.s-satir:active, .s-kutu:active, .s-ozet a:active { opacity: .7; }
