/* İşletmenin müşterisine açık sayfalar: servis takip ve cihaz QR. Tek başına yüklenir. */
/* Inter 3.19 "Hinted for Windows" (OFL): Windows'ta normal çözünürlüklü ekranlarda net görünsün diye
   hinting'li sabit kalınlıklar kullanılır; Türkçe + Latin alt kümesi. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fontlar/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fontlar/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fontlar/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fontlar/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fontlar/inter-800.woff2") format("woff2"); }

:root {
  --m-metin: #0b1020; --m-metin-2: #3d4659; --m-soluk: #6b7489; --m-cizgi: #e3e6ee; --m-zemin: #f5f6fa;
  --m-marka: #2f5bff; --m-marka-koyu: #1f45e0; --m-marka-acik: #eef2ff; --m-yesil: #0f9f6e; --m-yesil-acik: #e7f8f0;
  --m-sari: #b7700a; --m-sari-acik: #fff4df; --m-kirmizi: #d93636; --m-kirmizi-acik: #fdecec;
  --m-ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--m-zemin); color: var(--m-metin);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--m-marka); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--m-marka); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.ms-kap { width: 100%; max-width: 640px; margin: 0 auto; padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.ms-ust { background: #fff; border-bottom: 1px solid var(--m-cizgi); padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 5; }
.ms-ust-ic { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.ms-isletme { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.ms-simge { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 800;
  background: linear-gradient(145deg, #4a72ff, var(--m-marka) 55%, #6a4cff); box-shadow: 0 4px 12px -4px rgba(47, 91, 255, .6); }
.ms-logo { flex: none; display: block; width: auto; height: auto; max-height: 52px; max-width: 160px; object-fit: contain; }
@media (max-width: 420px) { .ms-logo { max-height: 44px; max-width: 120px; } }
.ms-isletme-ad { font-weight: 700; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-ara { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px; background: var(--m-yesil-acik); color: var(--m-yesil); font-size: .92rem; }
.ms-ara:hover { text-decoration: none; filter: brightness(.97); }

.ms-ana { flex: 1; padding-top: 1.25rem; padding-bottom: 2rem; display: grid; gap: 1rem; align-content: start; }
.ms-kart { background: #fff; border: 1px solid var(--m-cizgi); border-radius: 18px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(11, 16, 32, .04); }
.ms-kart h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.ms-ust-etiket { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m-soluk); }
.ms-alt { padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom)); color: var(--m-soluk); font-size: .82rem; text-align: center; }
.ms-alt a { color: var(--m-soluk); }

.ms-mesajlar { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ms-mesaj { padding: .85rem 1rem; border-radius: 12px; font-weight: 500; font-size: .95rem; background: var(--m-marka-acik); color: var(--m-marka-koyu); }
.ms-mesaj.basari { background: var(--m-yesil-acik); color: #0a6e4d; }
.ms-mesaj.hata { background: var(--m-kirmizi-acik); color: #a42626; }

/* Durum başlığı */
.ms-manset { display: grid; gap: .35rem; }
.ms-manset h1 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
.ms-manset p { color: var(--m-metin-2); }
.ms-canli { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--m-soluk); margin-top: .35rem; }
.ms-canli::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m-yesil); box-shadow: 0 0 0 0 rgba(15, 159, 110, .5); animation: ms-nabiz 2s infinite; }
@keyframes ms-nabiz { 0% { box-shadow: 0 0 0 0 rgba(15, 159, 110, .45); } 70% { box-shadow: 0 0 0 8px rgba(15, 159, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 159, 110, 0); } }

/* Adımlar */
.ms-adimlar { list-style: none; margin: 0; padding: 0; }
.ms-adim { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: .85rem; padding-bottom: 1.15rem; }
.ms-adim:last-child { padding-bottom: 0; }
.ms-adim::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--m-cizgi); }
.ms-adim:last-child::before { display: none; }
.ms-adim.tamam::before { background: var(--m-yesil); }
.ms-nokta { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--m-cizgi); color: var(--m-soluk); z-index: 1; }
.ms-adim.tamam .ms-nokta { background: var(--m-yesil); border-color: var(--m-yesil); color: #fff; }
.ms-adim.simdiki .ms-nokta { background: var(--m-marka); border-color: var(--m-marka); color: #fff; box-shadow: 0 0 0 5px var(--m-marka-acik); }
.ms-adim-ad { font-weight: 600; padding-top: .3rem; }
.ms-adim:not(.tamam) .ms-adim-ad { color: var(--m-soluk); font-weight: 500; }
.ms-adim-zaman { font-size: .85rem; color: var(--m-soluk); }

.ms-liste { list-style: none; margin: 0; padding: 0; }
.ms-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--m-cizgi); font-size: .95rem; }
.ms-liste li:first-child { border-top: 0; padding-top: 0; }
.ms-liste li > span:first-child { color: var(--m-soluk); }
.ms-liste li > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }

.ms-dugme { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 50px; padding: .8rem 1.1rem;
  border-radius: 13px; border: 1px solid var(--m-marka-koyu); background: linear-gradient(180deg, #4a72ff, var(--m-marka)); color: #fff !important;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -10px rgba(47, 91, 255, .8); }
.ms-dugme:hover { background: var(--m-marka-koyu); }
.ms-dugme.ikincil { background: #fff; color: var(--m-metin) !important; border-color: #d8dce6; box-shadow: 0 1px 2px rgba(11, 16, 32, .05); }

/* Form */
.ms-grup { margin-bottom: 1rem; }
.ms-grup label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.ms-grup input, .ms-grup textarea { display: block; width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: 16px; color: var(--m-metin);
  background: #fff; border: 1px solid #d8dce6; border-radius: 11px; -webkit-appearance: none; appearance: none; }
.ms-grup textarea { min-height: 110px; resize: vertical; }
.ms-grup input:focus, .ms-grup textarea:focus { outline: none; border-color: var(--m-marka); box-shadow: 0 0 0 4px rgba(47, 91, 255, .14); }
.ms-hata { color: var(--m-kirmizi); font-size: .85rem; margin-top: .35rem; font-weight: 500; }
.ms-tuzak { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ms-rozet { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--m-zemin); color: var(--m-metin-2); }
.ms-rozet.yesil { background: var(--m-yesil-acik); color: #0a6e4d; }
.ms-not { font-size: .85rem; color: var(--m-soluk); }

/* Vitrin */
.ms-cipler { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.ms-cip { padding: .25rem .65rem; border-radius: 999px; background: var(--m-marka-acik); color: var(--m-marka-koyu); font-size: .82rem; font-weight: 600; }
.ms-konum { display: inline-flex; align-items: center; gap: .35rem; color: var(--m-metin-2); font-size: .95rem; }
.ms-eylemler { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; margin-top: 1rem; }
.ms-eylemler .ms-dugme { min-height: 46px; padding: .6rem .8rem; font-size: .95rem; }
.ms-dugme.yesil { background: linear-gradient(180deg, #1fb67f, #0f9f6e); border-color: #0b8a5f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -10px rgba(15, 159, 110, .8); }
.ms-galeri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.ms-galeri figure { margin: 0; }
.ms-galeri img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--m-zemin); }
.ms-galeri figcaption { margin-top: .3rem; font-size: .82rem; color: var(--m-soluk); }
.ms-grup select { display: block; width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: 16px; color: var(--m-metin); background: #fff; border: 1px solid #d8dce6; border-radius: 11px; }
.ms-dosya { display: block; width: 100%; padding: .9rem; border: 1.5px dashed #c3c8d4; border-radius: 12px; background: var(--m-zemin); font-size: .9rem; color: var(--m-metin-2); }
.ms-dosya input { display: block; width: 100%; margin-top: .45rem; font: inherit; font-size: .9rem; }
.ms-onay { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--m-metin-2); cursor: pointer; }
.ms-grup .ms-onay { display: flex; margin: 0; font-weight: 500; }
.ms-grup .ms-onay input { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: .1rem 0 0; border: 0; box-shadow: none; accent-color: var(--m-marka); -webkit-appearance: auto; appearance: auto; }
.ms-kilit { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 12px; background: var(--m-yesil-acik); color: #0a6e4d; font-size: .88rem; margin-bottom: 1rem; }
.ms-ozet { white-space: pre-line; color: var(--m-metin); }
.ms-geri-cek summary { cursor: pointer; color: var(--m-soluk); font-size: .88rem; }
.ms-geri-cek[open] summary { margin-bottom: .6rem; }
.ms-dugme.tehlike { background: #fff; color: var(--m-kirmizi) !important; border-color: #f2c4c4; box-shadow: none; }
.ms-metin h2 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.ms-metin p, .ms-metin li { color: var(--m-metin-2); font-size: .95rem; }
.ms-metin ul { padding-left: 1.2rem; }

@media (prefers-reduced-motion: reduce) { .ms-canli::before { animation: none; } }

/* Servis değerlendirmesi: yıldızlar sağdan sola dizilir, seçilen ve öncekiler dolar */
.ms-puan { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; border: 0; padding: 0; margin: 0 0 1rem; }
.ms-puan legend { width: 100%; margin-bottom: .4rem; }
.ms-puan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ms-puan label { font-size: 2.4rem; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color .1s; }
.ms-puan label:hover, .ms-puan label:hover ~ label, .ms-puan input:checked ~ label { color: #f59e0b; }
.ms-puan input:focus-visible + label { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
.ms-yildizlar { font-size: 2rem; margin: 0 0 .75rem; color: #cbd5e1; letter-spacing: .1rem; }
.ms-yildizlar .dolu { color: #f59e0b; }

/* Müşteri portalı */
.ms-ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.ms-ozet > div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: .75rem .9rem; display: grid; gap: .1rem; }
.ms-ozet span, .ms-ozet small { color: #64748b; font-size: .85rem; }
.ms-ozet strong { font-size: 1.35rem; }
.ms-borc { color: #b91c1c; }
.ms-detay summary { cursor: pointer; font-weight: 600; color: #1d4ed8; margin: .25rem 0 .5rem; }

/* Biriktirilen dosyalar (resim_yukle.js) */
.dosya-biriktir { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.dosya-biriktir li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .6rem; border: 1px solid var(--m-cizgi, #e5e7eb); border-radius: 8px; background: #fff; font-size: .88rem; }
.dosya-biriktir li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dosya-biriktir li button { flex: none; border: 0; background: none; color: #b91c1c; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: .1rem .35rem; }
.dosya-biriktir li.dosya-biriktir-bilgi { border: 0; background: none; padding: 0 .1rem; color: var(--m-soluk, #6b7280); font-size: .8rem; }

/* Müşteri değerlendirmeleri */
.ms-yildizlar.kucuk { font-size: 1.05rem; margin: 0; letter-spacing: .05rem; }
.ms-puan-ozet { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.ms-puan-buyuk { display: flex; flex-direction: column; align-items: flex-start; min-width: 120px; }
.ms-puan-buyuk strong { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.ms-dagilim { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; display: grid; gap: .25rem; font-size: .85rem; color: var(--m-metin-2); }
.ms-dagilim li { display: grid; grid-template-columns: 2.4rem 1fr 2rem; gap: .5rem; align-items: center; }
.ms-cubuk { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.ms-cubuk span { display: block; height: 100%; background: #f59e0b; }
.ms-yorum { margin: 0 0 .75rem; padding: .85rem 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.ms-yorum p { margin: .35rem 0; white-space: pre-line; }
.ms-yorum footer { font-size: .8rem; color: var(--m-soluk); }
.ms-dogrulanmis { color: #15803d; font-weight: 600; }
.ms-gun { font-size: .85rem; color: var(--m-soluk); font-weight: 600; margin: 1rem 0 .35rem; }
.ms-gun:first-of-type { margin-top: 0; }
