/* =====================================================================
   assets/tema.css — TEKNOPERS SAHA tasarım sistemi (müşteri · yönetim · saha · CEO)
   Soğuk nötr zemin + firmanın marka rengi (--accent, markaUygula() ile).
   İmza öğe: "iş fişi" — her iş, koparılabilir koçanlı bir iş emri fişi gibi görünür.
   ===================================================================== */
:root {
  --ink: #0E1726; --ink-2: #334155; --muted: #64748B; --faint: #94A3B8;
  --line: #E3E8EF; --line-2: #CFD8E3;
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #F7F9FB;
  --accent: #0F766E; --accent-deep: #0B554F; --accent-soft: #E7F1F0; --accent-soft-2: #CFE4E2; --accent-ink: #FFFFFF;
  --ok: #15803D; --ok-soft: #E7F6EC; --warn: #B45309; --warn-soft: #FEF3E2; --bad: #B42318; --bad-soft: #FDECEA; --info: #1D4ED8; --info-soft: #E9EFFE;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px -6px rgba(16, 24, 40, .09);
  --sh-2: 0 2px 4px rgba(16, 24, 40, .04), 0 14px 30px -14px rgba(16, 24, 40, .2);
  --sh-3: 0 24px 60px -12px rgba(15, 23, 42, .32);
  --f-disp: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  --accent-hi: #2F6BF0;
  --accent-glow: rgba(29, 78, 216, .42);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
body.kilit { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.faint { color: var(--faint); }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); } .acc-t { color: var(--accent); }
.right { margin-left: auto; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: .16em; padding-bottom: .16em; margin-top: -.16em; margin-bottom: -.16em; }   /* Ö, Ü, İ noktaları kesilmesin */

/* ---------------------------------------------------------------- TİPOGRAFİ */
h1, h2, h3 { font-family: var(--f-disp); letter-spacing: -.02em; margin: 0; }
h1 { font-size: 28px; line-height: 1.12; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 16.5px; line-height: 1.3; font-weight: 650; }
.sec { display: flex; align-items: baseline; gap: 10px; margin: 26px 2px 10px; font: 650 15px/1.3 var(--f-disp); color: var(--ink); }
.sec small { font: 500 13px var(--f-body); color: var(--muted); }
.sec .right { font: 600 13.5px var(--f-body); color: var(--accent); text-decoration: none; background: none; border: 0; padding: 0; }
.sub { color: var(--muted); font-size: 14.5px; }
.mini { color: var(--muted); font-size: 13px; line-height: 1.45; }
.etiket { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* ---------------------------------------------------------------- İSKELET */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(96px + var(--sab)); }
.app.genis { max-width: 760px; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--sat)) 16px 10px; background: var(--bg); }
.bar .logo { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: linear-gradient(145deg, var(--accent-hi), var(--accent-deep)); color: var(--accent-ink); display: grid; place-items: center; font: 700 16px var(--f-disp); flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 14px -6px var(--accent-glow); }
.bar .ad { font: 700 17px/1.15 var(--f-disp); letter-spacing: -.01em; }
.bar .alt { font-size: 12.5px; color: var(--muted); }
.wrap { padding: 4px 16px 24px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 6px 8px calc(6px + var(--sab)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(16, 24, 40, .14); }
.tabbar-in { display: flex; width: 100%; max-width: 560px; }
.app.genis ~ .tabbar .tabbar-in { max-width: 760px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; border: 0; background: none; color: var(--faint); font-size: 11.5px; font-weight: 600; position: relative; border-radius: 12px; isolation: isolate; }
.tab .ic { width: 23px; height: 23px; }
.tab.on { color: var(--accent-deep); }
.tab.on::before { content: ''; position: absolute; top: 3px; left: 50%; width: 54px; height: 29px; margin-left: -27px; border-radius: 15px; background: var(--accent-soft); z-index: -1; }
.tab .nokta { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; line-height: 17px; font-weight: 700; }

/* ---------------------------------------------------------------- BUTONLAR */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-m); border: 1.5px solid var(--accent); background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); font-weight: 650; font-size: 15px; text-decoration: none; transition: transform .12s var(--ease), background .15s, box-shadow .15s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 22px -12px var(--accent-glow); white-space: nowrap; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.blok { width: 100%; }
.btn.buyuk { min-height: 56px; font-size: 16px; border-radius: 16px; }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 14px; border-radius: 11px; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.soft { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; box-shadow: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: none; }
.btn.danger-ghost { background: var(--surface); border-color: #F1C9C5; color: var(--bad); box-shadow: none; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -12px rgba(21, 128, 61, .5); }
.btn.wa { background: #1FAF56; border-color: #1FAF56; color: #fff; box-shadow: none; }
.btn.yukleniyor { color: transparent !important; position: relative; }
.btn.yukleniyor::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--accent-ink) var(--accent-ink) transparent transparent; animation: don .7s linear infinite; }
.btn.ghost.yukleniyor::after, .btn.soft.yukleniyor::after { border-color: var(--accent) var(--accent) transparent transparent; }
@keyframes don { to { transform: rotate(360deg); } }
.btns { display: flex; gap: 10px; }
.btns > .btn { flex: 1; }
.icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:active { background: var(--line); }
.icon-btn.kutu { background: var(--surface); border: 1px solid var(--line); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- FORM */
.fld { display: block; margin-top: 14px; }
.fld > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 2px; }
.fld > span em { font-style: normal; font-weight: 500; color: var(--faint); }
.fld input, .fld select, .fld textarea, .inp { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.fld textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fld.hata input, .fld.hata textarea, .fld.hata select { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.fld .ipucu { display: block; font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }
.iki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iki > .fld { margin-top: 14px; }
.pin-inp { letter-spacing: .5em; text-align: center; font: 700 24px var(--f-disp) !important; }

.ara { position: relative; }
.ara .ic { position: absolute; left: 14px; bottom: 15px; color: var(--faint); pointer-events: none; }
.ara input { padding-left: 42px !important; }
/* Seçim çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink-2); user-select: none; transition: all .15s var(--ease); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on, .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.chip .ic { width: 17px; height: 17px; }
.chip:active { transform: scale(.97); }
/* Seçim kartları (hizmet) */
.secim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secim.tek { grid-template-columns: 1fr; }
.kart-sec { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 13px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; min-height: 74px; transition: all .15s var(--ease); }
.kart-sec b { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.kart-sec small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.kart-sec input { position: absolute; opacity: 0; pointer-events: none; }
.kart-sec::after { content: ''; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); }
.kart-sec.on, .kart-sec:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 22px -14px var(--accent-glow); }
.kart-sec.on::after, .kart-sec:has(input:checked)::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.kart-sec b { padding-right: 22px; }
/* Segment */
.seg { display: flex; padding: 4px; gap: 4px; background: #E9EDF2; border-radius: 14px; }
.seg button, .seg label { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); display: grid; place-items: center; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg .on, .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
/* Sayaç */
.sayac { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.sayac b { font-weight: 600; font-size: 14.5px; }
.sayac .ctl { display: flex; align-items: center; gap: 4px; }
.sayac button { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--surface-2); font-size: 20px; font-weight: 600; color: var(--ink); display: grid; place-items: center; }
.sayac button:disabled { opacity: .35; }
.sayac output { min-width: 28px; text-align: center; font: 700 17px var(--f-disp); }
/* Anahtar */
.anahtar { display: flex; align-items: center; gap: 12px; padding: 14px 2px; }
.anahtar .grow b { display: block; font-weight: 600; font-size: 15px; }
.anahtar .grow small { color: var(--muted); font-size: 13px; }
.sw { position: relative; width: 50px; height: 30px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #CBD3DD; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.sw input:checked + i { background: var(--accent); }
.sw input:checked + i::after { transform: translateX(20px); }

/* ---------------------------------------------------------------- KART / SATIR / ROZET */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.card.pad { padding: 16px; }
.card + .card { margin-top: 12px; }
.card.vurgu { border-color: var(--accent-soft-2); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.card.uyari { border-color: #F6D9A8; background: #FFFBF3; }
.card.tehlike { border-color: #F1C9C5; background: #FFF8F7; }
.liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); }
.satir { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; text-align: left; text-decoration: none; color: inherit; }
.liste > .satir + .satir, .liste > * + .satir { border-top: 1px solid var(--line); }
button.satir:active, a.satir:active { background: var(--surface-2); }
.satir .grow b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.satir .grow small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.satir > .ic:last-child { color: var(--faint); }
.av { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font: 700 14px var(--f-disp); }
.av.yuvarlak { border-radius: 50%; }
.av .ic { width: 20px; height: 20px; }
.av.gri { background: #EEF1F5; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: #EEF1F5; color: var(--ink-2); white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); } .badge.acc { background: var(--accent-soft); color: var(--accent-deep); }
.badge.dolu { background: var(--accent); color: var(--accent-ink); }
.nokta-canli { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: nabiz 1.8s infinite; display: inline-block; }
@keyframes nabiz { 70% { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; word-break: break-word; }

/* ---------------------------------------------------------------- İŞ FİŞİ (imza öğe) */
.fis { position: relative; display: flex; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); color: inherit; text-decoration: none; padding: 0; overflow: hidden; }
button.fis:active { transform: scale(.992); }
.fis + .fis { margin-top: 10px; }
.fis .kocan { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; background: var(--surface-2); position: relative; }
.fis .kocan::after { content: ''; position: absolute; right: -1px; top: 10px; bottom: 10px; border-right: 2px dashed var(--line-2); }
.fis::before, .fis::after { content: ''; position: absolute; left: 66px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); z-index: 1; }
.fis::before { top: -9px; } .fis::after { bottom: -9px; }
.fis .g-ay { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fis .g-no { font: 700 28px/1 var(--f-disp); letter-spacing: -.03em; margin: 2px 0 3px; }
.fis .g-sa { font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fis .govde { flex: 1; min-width: 0; padding: 13px 14px 13px 18px; }
.fis .ust { display: flex; align-items: center; gap: 8px; }
.fis .baslik { font-weight: 650; font-size: 15.5px; line-height: 1.3; margin-top: 4px; }
.fis .alt { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.fis .alt .ic { width: 14px; height: 14px; }
.fis .ilerleme { height: 4px; border-radius: 4px; background: var(--line); margin-top: 10px; overflow: hidden; }
.fis .ilerleme i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.fis.bugun .kocan { background: var(--accent); color: var(--accent-ink); }
.fis.bugun .g-ay, .fis.bugun .g-sa { color: var(--accent-ink); opacity: .9; }
.fis.soluk { opacity: .72; }
.fis .fiyat { font: 700 15px var(--f-disp); margin-left: auto; white-space: nowrap; }

/* Aşama rayı: Talep · Teklif · Onay · Sahada · Bitti */
.ray { display: flex; align-items: flex-start; margin: 14px 0 4px; }
.ray .adim { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: center; }
.ray .adim::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.ray .adim:first-child::before { display: none; }
.ray .adim i { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); position: relative; z-index: 1; }
.ray .adim.tamam { color: var(--ink-2); }
.ray .adim.tamam i { background: var(--accent); border-color: var(--accent); }
.ray .adim.tamam::before, .ray .adim.simdi::before { background: var(--accent); }
.ray .adim.simdi { color: var(--accent-deep); }
.ray .adim.simdi i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------------------------------------------------------------- KPI / GRAFİK */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; box-shadow: var(--sh-1); }
.kpi small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; font: 700 22px/1.2 var(--f-disp); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.vurgu { background: linear-gradient(145deg, var(--accent-hi), var(--accent-deep)); border-color: transparent; color: var(--accent-ink); box-shadow: 0 14px 28px -16px var(--accent-glow); }
.kpi.vurgu small, .kpi.vurgu span { color: inherit; opacity: .82; }
.cubuk { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.cubuk i { flex: 1; min-width: 3px; background: var(--accent-soft-2); border-radius: 4px 4px 1px 1px; position: relative; }
.cubuk i.dolu { background: var(--accent); }
.cubuk-alt { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; }
.oran { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; display: flex; }
.oran i { display: block; height: 100%; }

/* ---------------------------------------------------------------- SOHBET */
.sohbet { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 12px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 17px; font-size: 15px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; }
.msg time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; text-align: right; }
.msg.ben { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.msg.o { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-gun { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: #E9EDF2; padding: 3px 10px; border-radius: 99px; margin: 8px 0; }
.yaz { position: sticky; bottom: calc(66px + var(--sab)); z-index: 5; display: flex; gap: 8px; align-items: flex-end; padding: 10px 0; background: var(--bg); }
#sohbet { min-height: calc(100dvh - 330px); }
.yaz textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 24px; border: 1.5px solid var(--line-2); background: var(--surface); resize: none; font-size: 16px; line-height: 1.35; outline: none; }
.yaz textarea:focus { border-color: var(--accent); }
.yaz .btn { width: 48px; min-height: 48px; padding: 0; border-radius: 50%; }

/* ---------------------------------------------------------------- FOTO */
.fotolar { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #E9EDF2; border: 0; padding: 0; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .sil { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .72); color: #fff; display: grid; place-items: center; }
.foto .sil .ic { width: 14px; height: 14px; }
.foto small { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(15, 23, 42, .6); padding: 2px 6px; border-radius: 6px; }
.foto-ekle { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; position: relative; }
.foto-ekle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------------------------------------------------------------- PENCERELER */
.ov { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.ov-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .44); opacity: 0; transition: opacity .2s; }
.ov.on .ov-bg { opacity: 1; }
.sheet { position: relative; width: 100%; max-width: 620px; max-height: calc(100dvh - 40px - var(--sat)); display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: var(--sh-3); transform: translateY(104%); transition: transform .26s var(--ease); }
.sheet.tam { height: calc(100dvh - 12px - var(--sat)); max-height: none; }
.ov.on .sheet { transform: none; }
.sh-head { display: flex; align-items: center; gap: 8px; padding: 14px 10px 8px 18px; }
.sh-head::before { content: ''; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--line-2); }
.sh-head h2 { flex: 1; font-size: 18.5px; }
.sh-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 20px; -webkit-overflow-scrolling: touch; }
.sh-foot { padding: 10px 16px calc(12px + var(--sab)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 10px; }
.sh-foot > .btn { flex: 1; }
.ov-mid { align-items: center; padding: 20px; }
.dlg { position: relative; width: 100%; max-width: 380px; background: var(--surface); border-radius: 22px; padding: 22px 20px 18px; box-shadow: var(--sh-3); transform: scale(.96); opacity: 0; transition: all .18s var(--ease); }
.ov.on .dlg { transform: none; opacity: 1; }
.dlg h3 { font-size: 18px; }
.dlg p { color: var(--ink-2); margin: 8px 0 0; font-size: 14.5px; }
.dlg-act { display: flex; gap: 10px; margin-top: 20px; }
.dlg-act .btn { flex: 1; }
.lb { align-items: center; background: rgba(8, 12, 20, .94); }
.lb .ov-bg { background: transparent; }
.lb-fig { position: relative; margin: 0; max-width: 100%; max-height: 100%; opacity: 0; transition: opacity .2s; }
.lb.on .lb-fig { opacity: 1; }
.lb-fig img { max-width: 100vw; max-height: 86dvh; object-fit: contain; }
.lb-say { position: fixed; top: calc(18px + var(--sat)); left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; font-weight: 600; }
.lb .icon-btn { position: fixed; color: #fff; background: rgba(255, 255, 255, .12); }
.lb-x { top: calc(10px + var(--sat)); right: 10px; } .lb-p { left: 10px; top: 50%; } .lb-n { right: 10px; top: 50%; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + var(--sab)); z-index: 200; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 520px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: #0E1726; color: #fff; font-size: 14.5px; font-weight: 550; line-height: 1.35; box-shadow: var(--sh-3); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.toast.on { transform: none; opacity: 1; }
.toast.ok .ic { color: #4ADE80; } .toast.err { background: #7A1A12; }

/* ---------------------------------------------------------------- DURUMLAR */
.bos { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 20px; color: var(--muted); }
.bos .ic { width: 34px; height: 34px; color: var(--faint); margin-bottom: 4px; }
.bos b { color: var(--ink-2); font-size: 15.5px; }
.bos span { font-size: 14px; max-width: 300px; }
.isk { height: 86px; border-radius: 18px; margin-bottom: 10px; background: linear-gradient(90deg, #E9EDF2 25%, #F3F5F8 50%, #E9EDF2 75%); background-size: 200% 100%; animation: parla 1.2s infinite linear; }
@keyframes parla { to { background-position: -200% 0; } }
.uyari-serit { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: #7A3E06; font-size: 14px; }
.uyari-serit.info { background: var(--info-soft); color: #1E3A8A; }
.uyari-serit.ok { background: var(--ok-soft); color: #14532D; }
.uyari-serit.bad { background: var(--bad-soft); color: #7A1A12; }
.uyari-serit .ic { flex: none; margin-top: 1px; }

/* Alt sabit eylem çubuğu (form gönder) */
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + var(--sab)); background: linear-gradient(180deg, rgba(243, 245, 248, 0), var(--bg) 26%); }
.cta-in { max-width: 528px; margin: 0 auto; }

/* Harita */
.harita { height: 220px; border-radius: 16px; overflow: hidden; background: #E9EDF2; border: 1px solid var(--line); }
.harita.buyuk { height: 60dvh; }

/* Gün şeridi (tarih seçimi) */
.gunler { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.gunler::-webkit-scrollbar { display: none; }
.gun { flex: none; width: 62px; padding: 9px 0 10px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 1px; scroll-snap-align: start; }
.gun small { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: capitalize; }
.gun b { font: 700 20px/1.1 var(--f-disp); }
.gun span { font-size: 11px; color: var(--faint); font-weight: 600; }
.gun.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gun.on small, .gun.on span { color: var(--accent-ink); opacity: .85; }
.saatler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.saat-b { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.saat-b.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.saat-b:disabled { opacity: .35; text-decoration: line-through; }

/* Üst sekmeler (sayfa içi) */
.sekmeler { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.sekmeler::-webkit-scrollbar { display: none; }
.sekme { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 650; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.sekme.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sekme .say { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.sekme.on .say { background: #fff; color: var(--ink); }

/* Giriş ekranı */
.giris { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(24px + var(--sat)) 22px calc(24px + var(--sab)); max-width: 420px; margin: 0 auto; }
.giris .marka { width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent-hi), var(--accent-deep)); color: var(--accent-ink); margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 32px -14px var(--accent-glow); }
.giris .marka .ic { width: 30px; height: 30px; }
.giris h1 { font-size: 26px; }
.tus-takim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.tus { height: 60px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: 600 24px var(--f-disp); box-shadow: var(--sh-1); }
.tus:active { background: var(--accent-soft); }
.pin-noktalar { display: flex; justify-content: center; gap: 14px; margin: 26px 0 6px; }
.pin-noktalar i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); transition: all .15s; }
.pin-noktalar i.dolu { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.pin-noktalar.salla { animation: salla .4s; }
@keyframes salla { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@supports not (aspect-ratio: 1) { .foto, .foto-ekle { height: 90px; } }
@media (min-width: 700px) {
  .sheet { border-radius: 24px; margin-bottom: 20px; }
  .ov { align-items: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
