/* ═══════════════════════════════════════════════════════════════════
   KONSEPT 9-PANEL — MÜŞTERİ SALONU
   Giriş yapmış müşterinin paneli. Konsept-9 / 9-portal token ailesi:
   paper/ink/red, Archivo + Inter + IBM Plex Mono, klaket künyeler,
   yeşil mühür dili. Canvas YOK — salon sakin, zemin soluk grid dokusu.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --paper: #fbfbf9;
  --ink: #101214;
  --red: #ff0009;
  --red-block: #d40008;
  --red-deep: #b30009;
  --green: #22c55e;
  --green-deep: #15803d;
  --grey: #6a7076;
  --hair: rgba(16, 18, 20, .10);
  --gutter: clamp(16px, 2.6vw, 40px);
  --headerH: 64px;
  --rayW: 84px;
  --altBarH: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-d: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-b: "Inter", "Segoe UI", Arial, sans-serif;
  --font-m: "IBM Plex Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: var(--headerH) 0 var(--altBarH) var(--rayW);
}
/* Çok soluk grid dokusu — canvas yok, salon sakin */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 18, 20, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 20, .026) 1px, transparent 1px);
  background-size: 56px 56px;
}

::selection { background: var(--red); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.mono {
  font-family: var(--font-m);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 400;
  background: var(--ink); color: #fff; padding: .6rem 1.2rem;
  font-family: var(--font-m); font-size: .75rem; letter-spacing: .1em;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

.noscript {
  position: fixed; inset: auto 0 0 0; z-index: 500;
  background: var(--ink); color: #fff;
  padding: 1rem var(--gutter); font-size: .85rem; text-align: center;
}

/* ═══ ÜST BAR ═══ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 251, 249, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  height: var(--headerH);
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand img { height: 22px; width: auto; }
.ai-rozet {
  font-size: .6rem;
  background: var(--red); color: #fff;
  padding: 2px 6px;
  letter-spacing: .12em;
}

/* Global arama */
.ara {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
}
.ara-ikon {
  position: absolute; left: .7rem; top: 50%;
  transform: translateY(-50%);
  color: var(--grey); pointer-events: none;
}
.ara input {
  width: 100%;
  border: 1px solid var(--hair);
  background: #fff;
  padding: .5rem .8rem .5rem 2.15rem;
  font-size: .68rem; letter-spacing: .12em;
  outline: none;
  transition: border-color .25s var(--ease);
}
.ara input:focus { border-color: var(--red); }
.ara input::placeholder { color: rgba(106, 112, 118, .55); }
.ara-sonuc {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 120;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 2px solid var(--red);
  box-shadow: 0 18px 50px rgba(16, 18, 20, .12);
  max-height: 320px; overflow-y: auto;
}
.ara-sec {
  display: flex; align-items: baseline; gap: .7rem;
  width: 100%; text-align: left;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--hair);
  transition: background-color .2s var(--ease);
}
.ara-sec:last-child { border-bottom: none; }
.ara-sec:hover, .ara-sec:focus-visible { background: var(--paper); }
.ara-sec .as-no { font-family: var(--font-m); font-size: .72rem; letter-spacing: .1em; color: var(--red-deep); white-space: nowrap; }
.ara-sec .as-detay { font-size: .74rem; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ara-bos { padding: .7rem .8rem; color: var(--grey); font-size: .62rem; }

.topbar-sag { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.firma { color: var(--grey); font-size: .62rem; white-space: nowrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-d); font-weight: 700; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* Bildirim zili */
.zil-kutu { position: relative; }
.zil {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.zil:hover { border-color: var(--hair); }
.zil-nokta {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--paper);
}
.js .zil-nokta { animation: nokataNabiz 2s infinite; }
@keyframes nokataNabiz { 0%, 100% { box-shadow: 0 0 0 2px var(--paper); } 50% { box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px rgba(255, 0, 9, .12); } }
.zil-nokta[hidden] { display: none; }
.zil-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 2px solid var(--red);
  box-shadow: 0 18px 50px rgba(16, 18, 20, .12);
}
.zil-baslik { padding: .7rem .9rem .5rem; color: var(--grey); font-size: .6rem; border-bottom: 1px solid var(--hair); }
.zil-item {
  display: block;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--hair);
  font-size: .78rem; line-height: 1.45;
}
.zil-item .zi-zaman { display: block; font-family: var(--font-m); font-size: .56rem; letter-spacing: .12em; color: var(--grey); margin-top: .15rem; text-transform: uppercase; }
.zil-item.yeni { border-left: 2px solid var(--red); background: rgba(255, 0, 9, .025); }
.zil-not { padding: .55rem .9rem; color: var(--grey); font-size: .54rem; }

/* ═══ SOL RAY — kırmızı şerit navigasyon ═══ */
.ray {
  position: fixed; top: var(--headerH); bottom: 0; left: 0; z-index: 90;
  width: var(--rayW);
  background: rgba(251, 251, 249, .94);
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
  padding-top: .9rem;
}
/* ince şerit — filmden gelen kırmızı ray */
.ray::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: rgba(255, 0, 9, .22);
}
/* aktif göstergesi — ray kalınlaşıp kırmızı dolar */
.ray-gosterge {
  position: absolute; left: 0;
  width: 5px; background: var(--red);
  transition: top .3s var(--ease), height .3s var(--ease), left .3s var(--ease), width .3s var(--ease);
}
.ray-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .8rem 0 .7rem;
  color: var(--grey);
  transition: color .25s var(--ease);
}
.ray-item:hover { color: var(--ink); }
.ray-item[aria-current="page"] { color: var(--red-deep); }
.ray-etiket {
  font-size: .48rem; letter-spacing: .08em;
  opacity: 0; transform: translateY(-2px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  text-align: center; line-height: 1.35;
  max-width: 74px;
}
.ikon-sar { position: relative; display: inline-flex; }
.ray-rozet {
  position: absolute; top: -7px; right: -11px;
  min-width: 15px; height: 15px;
  background: var(--red); color: #fff;
  font-size: .5rem; letter-spacing: 0;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--paper);
}
.ray-rozet[hidden] { display: none; }
.ray-item:hover .ray-etiket,
.ray-item:focus-visible .ray-etiket,
.ray-item[aria-current="page"] .ray-etiket { opacity: 1; transform: none; }
.ray-cikis { margin-top: auto; margin-bottom: .9rem; }
.ray-cikis:hover { color: var(--red-deep); }

/* ═══ GÖRÜNÜM SİSTEMİ ═══ */
main { position: relative; z-index: 1; min-height: calc(100vh - var(--headerH) - 120px); }
.view { display: none; }
.view.on { display: block; }
.js .view.on { animation: gorunumGel .25s var(--ease) both; }
.js .view.out { animation: gorunumGit .2s var(--ease) both; }
@keyframes gorunumGel { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes gorunumGit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-3px); } }

.icerik {
  max-width: 1240px; margin-inline: auto;
  padding: clamp(1.2rem, 3vh, 2rem) var(--gutter) 2.4rem;
}
.gorunum-tag { color: var(--red-deep); font-size: .6rem; margin-bottom: .9rem; }

.selam {
  font-family: var(--font-d);
  font-weight: 800; font-stretch: 113%;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.02; letter-spacing: -.03em;
  text-transform: uppercase;
}
.selam em { font-style: normal; color: var(--red); }
.selam:focus { outline: none; }
.selam-satir {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.1rem, 2.6vh, 1.7rem);
}
.ozet { color: var(--grey); font-size: .66rem; font-variant-numeric: tabular-nums; }

.bolum-baslik { color: var(--red-deep); margin: clamp(1.4rem, 3vh, 2rem) 0 .8rem; }

/* ═══ ONAY KARTI — imza an ═══ */
.onay-kart {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: 1.2rem clamp(1.1rem, 2vw, 1.6rem) 1.3rem;
  display: flex; flex-direction: column; gap: .55rem;
  overflow: hidden;
}
.ok-tag { color: var(--red-deep); font-size: .6rem; }
.ok-baslik {
  font-family: var(--font-d);
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.06; letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 26em;
}
.ok-baslik b { color: var(--red); font-weight: 800; }
.ok-detay { color: var(--grey); font-size: .64rem; font-variant-numeric: tabular-nums; }
.ok-eylem { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: .5rem; }
.onayla-btn {
  background: var(--red-block); color: #fff;
  font-family: var(--font-d); font-weight: 800; font-stretch: 110%;
  font-size: 1.02rem; text-transform: uppercase; letter-spacing: .03em;
  padding: .85rem 2.4rem;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.onayla-btn:hover { background: var(--ink); }
.onayla-btn:active { transform: scale(.98); }
.onayla-btn.yes { background: var(--green-deep); cursor: default; }
.onayla-btn.yes:hover { background: var(--green-deep); }
.ok-incele { color: var(--red-deep); font-size: .64rem; }
.ok-incele:hover { color: var(--red); }

/* yeşil onay mührü — kartın sağına vurulur */
.onay-muhur {
  position: absolute; right: clamp(.9rem, 4vw, 3rem); top: 50%;
  width: clamp(104px, 12vw, 136px); aspect-ratio: 1;
  margin-top: calc(clamp(104px, 12vw, 136px) / -2);
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; text-align: center;
  color: var(--green-deep);
  transform: rotate(-10deg);
  pointer-events: none;
}
.onay-muhur::before {
  content: ""; position: absolute; inset: 5px;
  border: 1.5px dashed var(--green);
  border-radius: 50%;
}
.onay-muhur .om-yazi {
  font-family: var(--font-d); font-weight: 800; font-stretch: 115%;
  font-size: .88rem; line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
}
.onay-muhur .om-saat { font-size: .54rem; }
.onay-muhur.mini {
  width: 92px; margin-top: -46px;
  right: clamp(.7rem, 2vw, 1.4rem);
  border-width: 2.5px;
}
.onay-muhur.mini .om-yazi { font-size: .64rem; }
.onay-muhur.mini .om-saat { font-size: .48rem; }
.js .onay-muhur { animation: muhurVur .5s cubic-bezier(.2, 1.35, .35, 1) both; }
.onay-muhur[hidden] { display: none; }

@keyframes muhurVur {
  0% { opacity: 0; transform: rotate(4deg) scale(2.1); }
  62% { opacity: 1; transform: rotate(-12deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}

/* kartın listeye akışı */
#onayYuva { transition: max-height .35s var(--ease) .1s, opacity .3s var(--ease); overflow: hidden; }
#onayYuva:not(:empty) { margin-bottom: .4rem; }
.js .onay-kart.git { animation: kartGit .4s var(--ease) both; }
@keyframes kartGit { to { opacity: 0; transform: translateY(20px) scale(.985); } }

/* "tüm onay bekleyenler" linki */
.onay-tum { margin: .5rem 0 0; font-size: .62rem; }
.onay-tum a { color: var(--red-deep); }
.onay-tum a:hover { color: var(--red); }
.onay-tum[hidden] { display: none; }
.liste-bos {
  color: var(--grey); font-size: .62rem;
  padding: 1rem 0;
  display: flex; align-items: center; gap: .6rem;
}

/* ═══ AKTİF İŞLEM LİSTESİ ═══ */
.islem-liste { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.isl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 96px minmax(130px, 210px) 22px;
  align-items: center; gap: clamp(.7rem, 1.6vw, 1.4rem);
  padding: .85rem .35rem;
  border-bottom: 1px solid var(--hair);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.isl:hover { border-color: rgba(255, 0, 9, .45); background: #fff; }
.js .isl.yeni { animation: satirYan 1.2s var(--ease) both; }
@keyframes satirYan {
  0% { background: rgba(34, 197, 94, .12); box-shadow: inset 2px 0 0 var(--green); }
  100% { background: transparent; box-shadow: inset 0 0 0 transparent; }
}
.isl-no { font-family: var(--font-m); font-size: .76rem; letter-spacing: .08em; color: var(--red-deep); font-weight: 500; }
.isl-bilgi { min-width: 0; display: block; }
.isl-rota { font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.isl-alt { display: flex; align-items: center; gap: .3rem .6rem; flex-wrap: wrap; margin-top: .25rem; }
.isl-kunye { color: var(--grey); font-size: .58rem; letter-spacing: .1em; white-space: nowrap; }
.isl-evrak { display: flex; gap: .35rem; flex-wrap: wrap; }
.isl-evrak span {
  font-family: var(--font-m); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--hair); color: var(--grey);
  padding: 1px 6px;
}
/* mini ilerleme — 5 duraklı çizelgenin minyatürü */
.mini-ciz { position: relative; height: 14px; }
.mini-ciz .mc-hat {
  position: absolute; top: 6px; left: 2px; right: 2px; height: 2px;
  background: var(--hair);
}
.mini-ciz .mc-dolu { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.mini-ciz i {
  position: absolute; top: 3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--hair);
}
.mini-ciz i.g { border-color: var(--green); background: var(--green); }
.mini-ciz i.a { border-color: var(--red); background: var(--red); }
.js .mini-ciz i.a { animation: durakNabizKucuk 1.6s infinite; }
@keyframes durakNabizKucuk {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 9, .3); }
  55% { box-shadow: 0 0 0 5px rgba(255, 0, 9, 0); }
}
/* durum rozeti */
.durum-rozet {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-m); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--hair); color: var(--grey);
  max-width: 230px; line-height: 1.4; text-align: left;
}
.durum-rozet .dr-nokta { margin-top: 1px; }
.durum-rozet .dr-nokta { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); flex-shrink: 0; }
.durum-rozet.sahada { border-color: rgba(255, 0, 9, .35); color: var(--red-deep); }
.durum-rozet.sahada .dr-nokta { background: var(--red); }
.js .durum-rozet.sahada .dr-nokta { animation: nabizNokta 1.6s infinite; }
@keyframes nabizNokta { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 9, .3); } 55% { box-shadow: 0 0 0 5px rgba(255, 0, 9, 0); } }
.durum-rozet.onay { border-color: rgba(255, 0, 9, .35); color: var(--red-deep); }
.durum-rozet.onay .dr-nokta { background: var(--red); }
.durum-rozet.onaylandi { border-color: rgba(34, 197, 94, .5); color: var(--green-deep); }
.durum-rozet.onaylandi .dr-nokta { background: var(--green); }
.durum-rozet.tamam { border-color: rgba(34, 197, 94, .5); color: var(--green-deep); transform: rotate(-2deg); }
.durum-rozet.tamam .dr-nokta { background: var(--green); }
.isl-ok { color: var(--grey); transition: transform .25s var(--ease), color .25s var(--ease); }
.isl:hover .isl-ok { transform: translateX(3px); color: var(--red); }

/* ═══ ALT GRID KARTLARI ═══ */
.alt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 1.6vw, 1.2rem);
  margin-top: clamp(1.4rem, 3vh, 2rem);
}
.kart {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: 1rem 1.15rem 1.1rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.kart:hover { border-color: rgba(255, 0, 9, .45); border-top-color: var(--red); box-shadow: 0 14px 40px rgba(16, 18, 20, .07); }
.kart-tag { color: var(--grey); font-size: .6rem; }
.kart-bakiye {
  font-family: var(--font-d); font-weight: 800; font-stretch: 113%;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.kart-alt { color: var(--grey); font-size: .56rem; }
.kart-eylem { display: flex; align-items: center; gap: .9rem; margin-top: auto; padding-top: .4rem; flex-wrap: wrap; }
.kart-link { color: var(--red-deep); font-size: .6rem; white-space: nowrap; }
.kart-link:hover { color: var(--red); }

.btn-kucuk {
  border: 1px solid var(--hair);
  background: #fff;
  padding: .5rem .9rem;
  font-size: .6rem; color: var(--ink);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.btn-kucuk:hover { border-color: var(--red); color: var(--red-deep); }
.btn-ana {
  background: var(--red-block); color: #fff;
  font-family: var(--font-d); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .02em;
  padding: .7rem 1.4rem;
  transition: background-color .25s var(--ease);
}
.btn-ana:hover { background: var(--ink); }
.btn-ana:disabled { background: var(--grey); cursor: default; }
.btn-ana.yes, .btn-ana.yes:disabled, .btn-ana.yes:hover { background: var(--green-deep); cursor: default; }

/* son evraklar */
.ev-satir {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem 0;
  border-bottom: 1px dotted var(--hair);
}
.ev-satir:last-child { border-bottom: none; }
.ev-satir .es-ad { font-family: var(--font-m); font-size: .64rem; letter-spacing: .06em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-satir .es-is { font-family: var(--font-m); font-size: .54rem; letter-spacing: .1em; color: var(--grey); white-space: nowrap; }
.ikon-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair); color: var(--grey);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.ikon-btn:hover { border-color: var(--red); color: var(--red-deep); }

/* bildirim tercihleri */
.tercih-satir { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dotted var(--hair); }
.tercih-ad { font-size: .62rem; color: var(--ink); }
.anahtar {
  position: relative;
  width: 40px; height: 22px; flex-shrink: 0;
  border: 1px solid var(--hair); border-radius: 22px;
  background: var(--paper);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.anahtar i {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grey);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.anahtar.acik { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .5); }
.anahtar.acik i { transform: translateX(18px); background: var(--green-deep); }

/* ═══ GÖRÜNÜM 02 — İŞLEM DETAY ═══ */
.geri { color: var(--red-deep); font-size: .64rem; }
.geri:hover { color: var(--red); }
.islem-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: .8rem 1.6rem; flex-wrap: wrap;
  margin: .8rem 0 clamp(1.4rem, 3.4vh, 2.2rem);
}
.islem-head-sag { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
/* plakalar — etiketsiz, ilk bakışta okunur mono blok */
.plaka-blok {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: .7rem;
  font-size: 1.08rem; letter-spacing: .14em; font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--red);
  padding: .4rem .8rem;
  font-variant-numeric: tabular-nums;
}
.plaka-blok .pb-ayir { color: var(--grey); font-weight: 400; }
.islem-no {
  font-family: var(--font-d); font-weight: 800; font-stretch: 113%;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1; letter-spacing: -.03em; text-transform: uppercase;
}
.islem-no em { font-style: normal; color: var(--red); }
.islem-kunye { color: var(--grey); font-size: .64rem; margin-top: .45rem; font-variant-numeric: tabular-nums; }

/* zaman çizelgesi — 4 FAZ kompakt (REV 3) */
.cizelge-kaydir { overflow-x: auto; padding-bottom: .4rem; }
.cizelge {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-width: 560px;
  padding: 2.6rem 0 .4rem;
}
.cizelge-faz { grid-template-columns: repeat(4, 1fr); min-width: 480px; }
.cizelge-faz .ciz-hat { left: 12.5%; right: 12.5%; }
.ciz-hat {
  position: absolute;
  top: calc(2.6rem + 7px);
  left: 10%; right: 10%;
  height: 2px;
  background: var(--hair);
}
.ciz-dolu {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--red);
  transition: width .7s var(--ease);
}
.durak {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: .55rem;
}
.d-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--hair);
  z-index: 1;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.d-ad { font-size: .6rem; color: var(--grey); text-align: center; }
.d-ts { font-size: .52rem; color: var(--grey); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.durak.gecti .d-dot { border-color: var(--green); background: var(--green); }
.durak.gecti .d-ad { color: var(--ink); }
.durak.aktif .d-dot { border-color: var(--red); background: var(--red); }
.durak.aktif .d-ad { color: var(--red-deep); font-weight: 500; }
.durak.aktif .d-ts { color: var(--red-deep); }
.js .durak.aktif .d-dot { animation: durakNabiz 1.6s infinite; }
@keyframes durakNabiz {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 9, .32); }
  55% { box-shadow: 0 0 0 9px rgba(255, 0, 9, 0); }
}
.d-muhur {
  position: absolute; top: -2.45rem;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green-deep);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-12deg);
  opacity: 0;
}
.d-muhur::before {
  content: ""; position: absolute; inset: 3px;
  border: 1px dashed var(--green);
  border-radius: 50%;
}
.durak.gecti .d-muhur { opacity: 1; }
.js .durak.gecti .d-muhur { animation: muhurVurKucuk .5s cubic-bezier(.2, 1.35, .35, 1) both; }
@keyframes muhurVurKucuk {
  0% { opacity: 0; transform: rotate(4deg) scale(2.1); }
  62% { opacity: 1; transform: rotate(-14deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}

/* İŞLEM GÜNLÜĞÜ — dikey adım listesi (REV 3) */
.gunluk {
  list-style: none;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: .6rem 1rem .8rem;
}
.g-faz {
  color: var(--red-deep); font-size: .56rem;
  padding: .7rem 0 .35rem;
  border-bottom: 1px solid var(--hair);
}
.g-adim {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: baseline; gap: .6rem;
  padding: .42rem 0;
  border-bottom: 1px dotted var(--hair);
  font-size: .8rem;
}
.g-adim:last-child { border-bottom: none; }
.g-ikon {
  width: 16px; height: 16px; border-radius: 50%;
  align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700;
  border: 1.5px solid var(--hair); color: transparent;
  background: #fff;
}
.g-adim.yapildi .g-ikon { border-color: var(--green); background: rgba(34, 197, 94, .1); color: var(--green-deep); }
.g-adim.yapildi .g-txt { color: var(--ink); }
.g-adim.aktif .g-ikon { border-color: var(--red); background: var(--red); }
.js .g-adim.aktif .g-ikon { animation: durakNabiz 1.6s infinite; }
.g-adim.aktif .g-txt { color: var(--red-deep); font-weight: 600; }
.g-adim.gelecek .g-txt, .g-adim.gelecek .g-ts { color: var(--grey); opacity: .6; }
.g-simdi {
  font-size: .5rem; color: #fff; background: var(--red);
  padding: 1px 5px; margin-left: .35rem;
  letter-spacing: .12em; vertical-align: 1px;
}
.g-ts { font-size: .56rem; color: var(--grey); letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* detay gövde: sol evrak+ödeme, sağ mini sohbet */
.islem-govde {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: clamp(.9rem, 2vw, 1.5rem);
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
  align-items: start;
}
.evrak-kartlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1rem); }
.evrak {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: .95rem 1.05rem 1rem;
  display: flex; flex-direction: column; gap: .4rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.evrak:hover { border-color: rgba(255, 0, 9, .45); border-top-color: var(--red); box-shadow: 0 14px 40px rgba(16, 18, 20, .07); }
.ev-tag { color: var(--grey); font-size: .56rem; }
.ev-ad {
  font-family: var(--font-d); font-weight: 800; font-stretch: 112%;
  font-size: 1.25rem; line-height: 1;
  text-transform: uppercase; letter-spacing: -.01em;
}
.ev-dosya { font-family: var(--font-m); font-size: .58rem; letter-spacing: .06em; color: var(--grey); }
.ev-rozet {
  align-self: flex-start;
  font-family: var(--font-m); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; margin-top: .15rem;
}
.ev-rozet.hazir { color: var(--green-deep); border: 1px solid rgba(34, 197, 94, .45); }
.ev-rozet.hazir::before { content: "✓ "; }
.ev-rozet.bekliyor { color: var(--red-deep); border: 1px solid rgba(255, 0, 9, .3); }
.ev-rozet.hazirlaniyor { color: var(--grey); border: 1px solid var(--hair); }
.ev-eylem { display: flex; gap: .45rem; margin-top: .35rem; }

/* ödeme satırı */
.odeme-satir {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--red);
  padding: .85rem 1.05rem;
  margin-top: clamp(.8rem, 1.6vh, 1.1rem);
}
.odeme-satir.odendi { border-left-color: var(--green); }
.odeme-l { color: var(--grey); font-size: .6rem; }
.odeme-txt { font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.odeme-txt .ok-yesil { color: var(--green-deep); font-weight: 600; }
.odeme-btn { margin-left: auto; }

.hata-satir { margin-top: .8rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.hata-not { color: var(--grey); font-size: .54rem; }

/* mini sohbet */
.sohbet-mini {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  display: flex; flex-direction: column;
  min-height: 300px; max-height: 430px;
}
.sm-head { padding: .75rem 1rem .6rem; color: var(--grey); font-size: .6rem; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: .5rem; }
.sm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255, 0, 9, .15); }
.sm-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem .5rem; }
.balon {
  max-width: 88%;
  padding: .5rem .75rem;
  font-size: .8rem; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}
.js .balon { animation: balonGel .22s var(--ease) both; }
@keyframes balonGel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.balon.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--hair); border-left: 2px solid var(--red); }
.balon.ben { align-self: flex-end; background: var(--ink); color: #fff; }
.balon .b-tag {
  display: block;
  font-family: var(--font-m); font-size: .52rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); margin-bottom: .25rem;
}
.balon.ben .b-tag { color: rgba(255, 255, 255, .55); }
.sm-foot { display: flex; gap: .5rem; padding: .7rem 1rem .85rem; border-top: 1px solid var(--hair); }
.sm-foot input {
  flex: 1; min-width: 0;
  border: 1px solid var(--hair); background: var(--paper);
  padding: .55rem .75rem; font-size: .82rem; outline: none;
  transition: border-color .25s var(--ease);
}
.sm-foot input:focus { border-color: var(--red); }
.sm-foot input:disabled { color: var(--grey); }
.sm-foot button {
  background: var(--red-block); color: #fff;
  font-family: var(--font-d); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; padding: 0 1rem;
  transition: background-color .25s var(--ease);
}
.sm-foot button:hover { background: var(--ink); }
.sm-foot button:disabled { background: var(--grey); cursor: default; }
.sm-not { padding: 0 1rem .7rem; color: var(--grey); font-size: .52rem; }

.bulunamadi { padding: 3rem 0; text-align: center; color: var(--grey); }

/* ═══ GÖRÜNÜM 03 — YENİ İŞLEM · TAM İŞ FORMU ═══ */
.yeni-sub { color: var(--grey); font-size: .82rem; max-width: 46em; margin-top: .5rem; }
.yeni-profil { color: var(--grey); font-size: .56rem; margin-top: .7rem; }
.yeni-grid {
  display: grid;
  grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
  gap: clamp(.9rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2.6vh, 1.6rem);
  align-items: start;
}
.manifest-sabit { position: sticky; top: calc(var(--headerH) + 16px); }

#yeniForm { display: flex; flex-direction: column; gap: clamp(.8rem, 1.6vh, 1.1rem); min-width: 0; }
.form-bolum {
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  background: #fff;
  padding: 1rem 1.15rem 1.1rem;
  min-width: 0;
}
.fb-baslik { color: var(--red-deep); font-size: .62rem; }
.form-bolum > legend { padding: 0 .3rem; margin-left: -.3rem; }
.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem .9rem;
  margin-top: .6rem;
}
.fb-not { color: var(--grey); font-size: .54rem; margin-top: .6rem; display: block; }
.etiket-kucuk { font-size: .5rem; color: var(--grey); letter-spacing: .1em; }

.alan { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.alan label { color: var(--grey); font-size: .56rem; }
.alan input, .alan select {
  border: 1px solid var(--hair); background: var(--paper);
  padding: .55rem .7rem;
  font-family: var(--font-m); font-size: .76rem; letter-spacing: .05em;
  outline: none; width: 100%;
  transition: border-color .25s var(--ease);
}
.alan input.buyuk-harf { text-transform: uppercase; }
.alan input:focus, .alan select:focus { border-color: var(--red); }
.alan input[type="file"] { padding: .42rem .55rem; font-size: .64rem; background: #fff; }
.alan input.alan-hata { border-color: var(--red); background: rgba(255, 0, 9, .04); }
.alan.gizli, .fb-grid.gizli { display: none; }  /* yfAlanlar (fb-grid) da gizlenebilsin — işlem yeri seçilene kadar alanlar kapalı */
.tel-grup { display: flex; gap: .4rem; }
.tel-grup select { width: 84px; flex-shrink: 0; }
.tel-grup input { flex: 1; min-width: 0; }

/* yük kartları — is-formu yukler[] blokları */
.yuk-kart {
  border: 1px solid var(--hair);
  border-left: 2px solid var(--red);
  background: var(--paper);
  padding: .75rem .9rem .9rem;
  margin: .6rem 0;
}
.yk-bas { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.yk-sil {
  color: var(--grey); font-size: .56rem;
  border: 1px solid transparent; padding: 2px 6px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.yk-sil:hover { color: var(--red-deep); border-color: rgba(255, 0, 9, .3); }
.yuk-kart .fb-grid { margin-top: .45rem; }
.yuk-kart .alan input, .yuk-kart .alan select { background: #fff; }

.form-gonder { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-gonder .fb-not { margin-top: 0; }

/* ═══ SİHİRBAZ (REV 4) ═══ */
.sihirbaz { min-width: 0; }
.adim-gosterge {
  color: var(--red-deep); font-size: .64rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  padding-bottom: .35rem;
  margin-bottom: 1rem;
}
.js .adim-panel { animation: gorunumGel .25s var(--ease) both; }
.adim-panel[hidden] { display: none; }
.ap-baslik {
  font-family: var(--font-d); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.ap-baslik em { font-style: normal; color: var(--red); }
.ap-baslik:focus { outline: none; }
.ap-soru { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.arac-sayi { color: var(--red-deep); font-size: .72rem; }
.sihirbaz-nav {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--hair);
}

/* tip kartları — Üç Kapı dili */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.7rem, 1.4vw, 1rem);
}
.tip-kart {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: .45rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 1rem 1.1rem 1.1rem;
  min-height: 150px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tip-kart:hover { border-color: rgba(255, 0, 9, .5); box-shadow: 0 14px 40px rgba(16, 18, 20, .07); }
.tip-tag { color: var(--grey); font-size: .56rem; }
.tip-ad {
  font-family: var(--font-d); font-weight: 800; font-stretch: 112%;
  font-size: 1.2rem; line-height: 1.02;
  text-transform: uppercase; letter-spacing: -.01em;
}
.tip-sub { font-size: .76rem; color: var(--grey); }
.tip-cta { margin-top: auto; color: var(--red-deep); font-size: .62rem; }
.tip-kart:hover .tip-cta { color: var(--red); }
.tip-kart.kilitli { opacity: .55; cursor: pointer; }
.tip-kart.kilitli:hover { border-color: var(--hair); box-shadow: none; opacity: .7; }
.yakinda {
  margin-top: auto;
  font-size: .54rem; color: var(--grey);
  border: 1px dashed var(--grey);
  padding: 3px 8px;
}
.corners { position: absolute; inset: 6px; pointer-events: none; }
.corners b {
  position: absolute; width: 12px; height: 12px;
  border: 0 solid var(--red);
  opacity: 0; transform: scale(.4);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.corners b:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corners b:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corners b:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corners b:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.tip-kart:hover .corners b, .tip-kart:focus-visible .corners b { opacity: 1; transform: scale(1); }

/* araç kartları + araç-yük blokları */
.ak-eylem { display: inline-flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.arac-yuk { margin-top: .9rem; }
.arac-yuk .yuk-kart { background: #fff; }
.ozet-band {
  color: var(--ink); font-size: .64rem;
  background: #fff;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--red);
  padding: .65rem .9rem;
  margin-top: 1rem;
}

/* grup çipi + grup görünümü */
.grup-cip {
  display: inline-flex; align-items: center;
  font-size: .56rem; letter-spacing: .1em;
  color: var(--red-deep);
  border: 1px solid rgba(255, 0, 9, .35);
  padding: 1px 7px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.grup-cip:hover { background: var(--red-block); color: #fff; }
.grup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(.8rem, 1.6vw, 1.2rem);
  max-width: 900px;
}
.grup-kart {
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: 1rem 1.1rem 1.1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.grup-kart:hover { border-color: rgba(255, 0, 9, .45); box-shadow: 0 14px 40px rgba(16, 18, 20, .07); }
.grup-kart .mini-ciz { width: 120px; }
.gk-plaka { font-size: .8rem; letter-spacing: .12em; color: var(--ink); font-weight: 500; }
.gk-adim { font-size: .56rem; color: var(--grey); }
.grup-kart .kart-link { margin-top: .3rem; }

/* canlı manifest (portal ailesi) */
.manifest {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: 1rem 1.1rem 1.1rem;
  display: flex; flex-direction: column;
}
.man-head {
  display: flex; align-items: center; gap: .55rem;
  color: var(--grey); font-size: .62rem;
  padding-bottom: .65rem; margin-bottom: .3rem;
  border-bottom: 1px solid var(--hair);
}
.man-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 0, 9, .18);
}
.js .man-dot { animation: manNabiz 2s infinite; }
@keyframes manNabiz { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 0, 9, .18); } 50% { box-shadow: 0 0 0 6px rgba(255, 0, 9, .06); } }
.man-alanlar { flex: 1; }
.mf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px dotted var(--hair);
}
.mf dt { color: var(--grey); font-size: .6rem; }
.mf dd { font-size: .74rem; color: var(--grey); text-align: right; letter-spacing: .08em; }
.mf.dolu dd { color: var(--ink); }
.mf.dolu dt { color: var(--red-deep); }
.mf.dolu { border-bottom: 1px solid rgba(255, 0, 9, .3); }
.js .mf.yaniyor { animation: mfYan .7s var(--ease); }
@keyframes mfYan {
  0% { background: rgba(255, 0, 9, .07); box-shadow: inset 2px 0 0 var(--red); }
  100% { background: transparent; box-shadow: inset 0 0 0 transparent; }
}
.mf .imlec { display: inline-block; width: .55em; background: var(--red); color: transparent; margin-left: 1px; animation: imlecYan .7s steps(1) infinite; }
@keyframes imlecYan { 50% { opacity: 0; } }
.mf.tamam dd { color: var(--green-deep); }
.man-eylem { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: .7rem; }
.man-eylem[hidden] { display: none; }
.man-not {
  color: var(--grey); font-size: .54rem;
  border-top: 1px solid var(--hair);
  padding-top: .7rem; margin-top: .7rem;
}

/* ═══ GÖRÜNÜM 04 — CÜZDAN ═══ */
.cuzdan-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
}
.cuzdan-tek { color: var(--grey); font-size: .6rem; margin-top: .5rem; }
.cuzdan-sag { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.cuzdan-bakiye {
  font-family: var(--font-d); font-weight: 800; font-stretch: 113%;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.cuzdan-not { color: var(--grey); font-size: .78rem; max-width: 46em; margin-top: .9rem; }

.tablo-kaydir { overflow-x: auto; background: #fff; border: 1px solid var(--hair); }
.hareket-tablo { width: 100%; border-collapse: collapse; font-size: .66rem; min-width: 520px; }
.hareket-tablo th {
  text-align: left; font-weight: 500;
  color: var(--grey); font-size: .56rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--hair);
}
.hareket-tablo td {
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--hair);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.hareket-tablo tr:last-child td { border-bottom: none; }
.hareket-tablo .sag { text-align: right; }
.hareket-tablo .arti { color: var(--green-deep); font-weight: 500; }
.hareket-tablo .eksi { color: var(--ink); }
.hareket-tablo .notr, .hareket-tablo .bakiye-h { color: var(--grey); }
.js .hareket-tablo tr.yeni { animation: satirYan 1.2s var(--ease) both; }

/* ═══ GÖRÜNÜM 05 — ARŞİV ═══ */
.arsiv-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filtreler { display: flex; align-items: center; gap: .5rem .7rem; flex-wrap: wrap; }
.filtreler label { color: var(--grey); font-size: .56rem; }
.filtreler select {
  border: 1px solid var(--hair); background: #fff;
  padding: .45rem .6rem; font-size: .62rem; letter-spacing: .1em;
  outline: none;
  transition: border-color .25s var(--ease);
}
.filtreler select:focus { border-color: var(--red); }
.filtre-sayi { color: var(--red-deep); font-size: .6rem; margin-left: .3rem; }

.arsiv-tablo { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 680px; }
.arsiv-tablo thead th {
  text-align: left; font-weight: 500;
  color: var(--grey); font-size: .56rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--hair);
}
.arsiv-tablo td { padding: .7rem .9rem; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.arsiv-tablo tbody tr { transition: background-color .2s var(--ease); }
.arsiv-tablo tbody tr:hover { background: var(--paper); }
.arsiv-tablo tbody tr:last-child td { border-bottom: none; }
.arsiv-tablo .a-no { font-family: var(--font-m); font-size: .74rem; letter-spacing: .08em; color: var(--red-deep); white-space: nowrap; }
.arsiv-tablo .a-no:hover { color: var(--red); }
.arsiv-tablo .a-tarih, .arsiv-tablo .a-rota, .arsiv-tablo .a-arac { font-family: var(--font-m); font-size: .64rem; letter-spacing: .06em; color: var(--grey); white-space: nowrap; }
.arsiv-tablo .a-arac { color: var(--ink); }
.indir-tum { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }

/* ═══ GÖRÜNÜM 05 — ONAY BEKLEYEN LİSTESİ ═══ */
.onay-liste { display: flex; flex-direction: column; border-top: 1px solid var(--hair); margin-top: 1rem; }
.ol-satir {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 90px auto;
  align-items: center; gap: clamp(.7rem, 1.6vw, 1.4rem);
  padding: .95rem .35rem;
  border-bottom: 1px solid var(--hair);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.ol-satir:hover { border-color: rgba(255, 0, 9, .45); background: #fff; }
.js .ol-satir.onaylandi { animation: satirYan 1.2s var(--ease) both; }
.ol-tutar { font-size: .78rem; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.ol-eylem { display: flex; align-items: center; gap: .9rem; justify-self: end; }
.ol-eylem .btn-ana { font-size: .78rem; padding: .55rem 1.1rem; }

/* ═══ GÖRÜNÜM 07 — RAPORLAMA ═══ */
.rapor-ozet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.7rem, 1.4vw, 1.1rem);
  margin-bottom: clamp(1.2rem, 2.6vh, 1.8rem);
}
.rp-kart { gap: .35rem; }
.rp-deger {
  font-family: var(--font-d); font-weight: 800; font-stretch: 113%;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rp-deger.yesil { color: var(--green-deep); }
.rapor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.5rem);
  margin-bottom: clamp(.9rem, 2vh, 1.5rem);
}
.rapor-blok {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: 1rem 1.15rem 1.1rem;
}
.rb-baslik { margin: 0 0 .8rem; }
.bar-liste { display: flex; flex-direction: column; }
.bar-satir {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 74px minmax(0, 1fr);
  align-items: center; gap: .8rem;
  padding: .5rem 0;
  border-bottom: 1px dotted var(--hair);
}
.bar-satir:last-child { border-bottom: none; }
.bar-etiket { color: var(--grey); font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-deger { font-size: .72rem; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bar-deger.yesil { color: var(--green-deep); }
.bar-kanal { display: block; height: 10px; background: var(--paper); border: 1px solid var(--hair); }
.bar-dolu { display: block; height: 100%; background: var(--ink); }
.bar-dolu.vurgu { background: var(--red); }

/* ═══ MODAL — bakiye yükle ═══ */
.modal-ort {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16, 18, 20, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-ort[hidden] { display: none; }
.modal {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  width: min(400px, 100%);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 30px 80px rgba(16, 18, 20, .25);
}
.js .modal { animation: gorunumGel .25s var(--ease) both; }
.modal-baslik { color: var(--ink); font-size: .7rem; margin-bottom: 1rem; }
.tutar-secim { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tutar {
  border: 1px solid var(--hair);
  padding: .8rem .4rem;
  font-size: .8rem; font-variant-numeric: tabular-nums;
  text-align: center;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.tutar:hover { border-color: var(--red); }
.tutar.secili { border-color: var(--red); background: rgba(255, 0, 9, .05); color: var(--red-deep); }
.modal-not { color: var(--grey); font-size: .54rem; margin: .9rem 0 1rem; }
.modal-eylem { display: flex; justify-content: flex-end; gap: .6rem; }

/* hata bildir modalı */
.hata-l { color: var(--grey); font-size: .58rem; display: block; margin: .6rem 0 .35rem; }
.hata-evraklar { display: flex; flex-direction: column; gap: .35rem; }
.hata-cb {
  display: flex; align-items: center; gap: .55rem;
  border: 1px solid var(--hair);
  padding: .5rem .7rem;
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.hata-cb:hover { border-color: rgba(255, 0, 9, .4); }
.hata-cb:has(input:checked) { border-color: var(--red); background: rgba(255, 0, 9, .04); }
.hata-cb input { accent-color: var(--red-block); width: 15px; height: 15px; }
.hata-cb .mono { font-size: .66rem; }
.hata-dosya { margin-left: auto; color: var(--grey); font-size: .54rem; }
#hataNot {
  width: 100%;
  border: 1px solid var(--hair); background: var(--paper);
  padding: .55rem .7rem;
  font: inherit; font-size: .82rem;
  resize: vertical; outline: none;
  transition: border-color .25s var(--ease);
}
#hataNot:focus { border-color: var(--red); }

/* ═══ FOOTER + DEMO ROZETİ + TOAST ═══ */
.mini-footer {
  position: relative; z-index: 1;
  background: var(--ink); color: rgba(255, 255, 255, .82);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .8rem 2.4rem;
  padding: 1.5rem var(--gutter);
}
.footer-note { font-size: .74rem; color: rgba(255, 255, 255, .55); max-width: 38em; flex: 1 1 280px; }
.footer-legal { color: rgba(255, 255, 255, .55); font-size: .62rem; }
.panel-aktif {
  color: var(--green);
  display: flex; align-items: center; gap: .6rem;
  font-size: .66rem;
}
.sec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}

.demo-veri {
  position: fixed; right: 14px; bottom: calc(14px + var(--altBarH)); z-index: 250;
  background: rgba(251, 251, 249, .92);
  color: var(--red-deep);
  border: 1px solid rgba(255, 0, 9, .35);
  padding: 4px 9px;
  font-size: .56rem;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.toast {
  position: fixed; z-index: 350;
  left: 50%; bottom: calc(26px + var(--altBarH));
  transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem;
  font-size: .64rem;
  border-left: 2px solid var(--red);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1060px) {
  .yeni-grid { grid-template-columns: 1fr; }
  .manifest-sabit { position: static; }
  .rapor-ozet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rapor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .alt-grid { grid-template-columns: 1fr; }
  .islem-govde { grid-template-columns: 1fr; }
  .firma { display: none; }
  .ol-satir { grid-template-columns: 78px minmax(0, 1fr); row-gap: .5rem; }
  .ol-tutar { grid-column: 2; text-align: left; }
  .ol-eylem { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 768px) {
  :root { --rayW: 0px; --altBarH: 62px; --headerH: 56px; }
  body { padding-left: 0; }
  /* ray alta yatay bar olur */
  .ray {
    top: auto; bottom: 0; left: 0; right: 0;
    width: auto; height: var(--altBarH);
    flex-direction: row; align-items: stretch;
    border-right: none; border-top: 1px solid var(--hair);
    padding-top: 0;
    background: rgba(251, 251, 249, .97);
  }
  .ray::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .ray-gosterge { top: 0; height: 4px; width: 0; }
  .ray-item { flex: 1; padding: .5rem 0 .4rem; gap: .2rem; justify-content: center; min-width: 0; }
  .ray-item svg { width: 18px; height: 18px; }
  .ray-etiket { opacity: 1; transform: none; font-size: .4rem; letter-spacing: .04em; max-width: 100%; padding-inline: 2px; }
  .ray-rozet { top: -5px; right: -8px; min-width: 13px; height: 13px; font-size: .46rem; }
  .ray-cikis { margin: 0; }
  .ara { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .topbar-inner { flex-wrap: wrap; height: auto; min-height: var(--headerH); padding-block: .5rem; row-gap: .5rem; }
  body { padding-top: 106px; }
  .isl { grid-template-columns: 78px minmax(0, 1fr) 22px; row-gap: .35rem; }
  .isl .mini-ciz { display: none; }
  .isl .durum-rozet { grid-column: 2; justify-self: start; }
  .evrak-kartlar { grid-template-columns: 1fr; }
  .fb-grid { grid-template-columns: 1fr; }
  .onay-muhur { position: static; margin: .4rem 0 0; transform: rotate(-8deg); }
  .onay-muhur.mini { margin: .4rem 0 0; }
  .islem-head-sag { align-items: flex-start; }
  .plaka-blok { font-size: .92rem; letter-spacing: .1em; flex-wrap: wrap; }
  .tip-grid { grid-template-columns: 1fr; }
  .ap-soru { flex-direction: column; gap: .3rem; }
  .g-adim { grid-template-columns: 20px minmax(0, 1fr); }
  .g-ts { grid-column: 2; }
  .cuzdan-sag { align-items: flex-start; }
  .gizle-dar { display: none; }
  .rapor-ozet { grid-template-columns: 1fr 1fr; }
  .bar-satir { grid-template-columns: minmax(72px, 96px) 64px minmax(0, 1fr); gap: .5rem; }
}
@media (max-width: 480px) {
  .selam { font-size: 1.45rem; }
  .ok-eylem { gap: .8rem; }
  .onayla-btn { width: 100%; text-align: center; }
  .odeme-btn { margin-left: 0; }
  .rapor-ozet { grid-template-columns: 1fr; }
  .ol-eylem { width: 100%; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════════════════
   REV 5 — KULLANICI AYARLARI + MEVZUAT AI + AVATAR MENÜ
   ═══════════════════════════════════════════════════════════════════ */

/* avatar mini menü (Ayarlar / Çıkış) */
.avatar-kutu { position: relative; }
button.avatar { cursor: pointer; transition: box-shadow .25s var(--ease); }
button.avatar:hover { box-shadow: 0 0 0 2px rgba(255, 0, 9, .35); }
.avatar-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  width: 230px;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 2px solid var(--red);
  box-shadow: 0 18px 50px rgba(16, 18, 20, .12);
}
.js .avatar-menu:not([hidden]) { animation: gorunumGel .2s var(--ease) both; }
.am-firma {
  padding: .65rem .9rem .55rem;
  color: var(--ink); font-size: .6rem;
  border-bottom: 1px solid var(--hair);
}
.am-firma .am-mail { display: block; color: var(--grey); font-size: .52rem; letter-spacing: .08em; margin-top: .2rem; text-transform: none; }
.am-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .9rem;
  font-size: .62rem; color: var(--ink);
  border-bottom: 1px solid var(--hair);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.am-item:last-child { border-bottom: none; }
.am-item:hover { background: var(--paper); color: var(--red-deep); }

/* sol ray — ayarlar çıkışın üstünde, altta kümelenir */
.ray-ayar { margin-top: auto; }
.ray-cikis { margin-top: 0; }

/* ayar sekmeleri */
.ayar-sekmeler {
  display: flex; gap: .2rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(1rem, 2.4vh, 1.5rem);
}
.sekme {
  padding: .55rem 1rem .5rem;
  font-size: .62rem; color: var(--grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.sekme:hover { color: var(--ink); }
.sekme.aktif { color: var(--red-deep); border-bottom-color: var(--red); }
.ayar-panel { display: flex; flex-direction: column; gap: clamp(.8rem, 1.6vh, 1.1rem); }
.ayar-panel[hidden] { display: none; }
.js .ayar-panel { animation: gorunumGel .25s var(--ease) both; }
.alan-genis { grid-column: 1 / -1; }
.alan[hidden] { display: none; }
.ayar-eylem {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid var(--hair);
}
.ayar-eylem .fb-not { margin-top: 0; }

/* şifre alanları + güç çubuğu */
.sifre-grup { display: flex; gap: .4rem; }
.sifre-grup input { flex: 1; min-width: 0; }
.sifre-goz { width: 34px; height: auto; align-self: stretch; }
.sifre-goz.acik-goz { border-color: var(--red); color: var(--red-deep); }
.guc-bar { display: flex; gap: 3px; margin-top: .4rem; }
.guc-bar i { height: 4px; flex: 1; background: var(--hair); transition: background-color .25s var(--ease); }
.guc-bar[data-guc="1"] i:nth-child(1) { background: var(--red); }
.guc-bar[data-guc="2"] i:nth-child(-n+2) { background: var(--red); }
.guc-bar[data-guc="3"] i:nth-child(-n+3) { background: var(--green); }
.guc-bar[data-guc="4"] i { background: var(--green-deep); }

/* oturumlar */
.oturum-satir {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: .6rem 1.2rem;
  padding: .6rem 0;
  border-bottom: 1px dotted var(--hair);
}
.oturum-satir:last-child { border-bottom: none; }
.ot-cihaz { font-size: .64rem; color: var(--ink); }
.ot-bu {
  font-size: .5rem; color: var(--green-deep);
  border: 1px solid rgba(34, 197, 94, .5);
  padding: 1px 6px; margin-left: .4rem;
}
.ot-meta { font-size: .56rem; color: var(--grey); }

/* alt kullanıcılar */
.kul-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.kul-satir {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 150px auto;
  align-items: center; gap: .6rem 1rem;
  padding: .7rem 0;
  border-bottom: 1px dotted var(--hair);
}
.kul-satir:last-child { border-bottom: none; }
.kul-kim { min-width: 0; display: block; }
.kul-ad { display: block; font-size: .82rem; font-weight: 500; }
.kul-sahip {
  font-size: .5rem; color: var(--red-deep);
  border: 1px solid rgba(255, 0, 9, .35);
  padding: 1px 6px; margin-left: .4rem; vertical-align: 1px;
}
.kul-email { display: block; font-size: .56rem; letter-spacing: .08em; color: var(--grey); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rol-rozet {
  justify-self: start;
  font-size: .54rem; letter-spacing: .12em;
  padding: 3px 8px;
  border: 1px solid var(--hair); color: var(--grey);
}
.rol-rozet.yonetici { border-color: rgba(255, 0, 9, .4); color: var(--red-deep); }
.rol-rozet.operasyon { border-color: rgba(16, 18, 20, .35); color: var(--ink); }
.rol-rozet.sofor { border-color: var(--hair); color: var(--grey); }
.kul-durum { font-size: .56rem; color: var(--green-deep); }
.kul-durum.davet { color: var(--grey); }
.rol-notlar { margin-top: .9rem; border-top: 1px dotted var(--hair); padding-top: .7rem; }
.rol-notlar .fb-not { margin-top: .25rem; }
.rol-notlar b { color: var(--ink); font-weight: 600; }
.davet-alanlar { display: flex; flex-direction: column; gap: .7rem; }

/* mevzuat ai */
.temsili-rozet {
  color: var(--red-deep); font-size: .56rem;
  border: 1px dashed rgba(255, 0, 9, .45);
  padding: 2px 8px;
}
.mevzuat-grid {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: clamp(.9rem, 2vw, 1.5rem);
  align-items: start;
  margin-top: clamp(.6rem, 1.6vh, 1rem);
}
.mg-gecmis {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  padding: .8rem .9rem .9rem;
}
.mg-gecmis .fb-not { margin-top: .7rem; }
.mg-baslik {
  color: var(--red-deep); font-size: .6rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--hair);
}
.mg-item {
  display: block; width: 100%; text-align: left;
  padding: .6rem .5rem .65rem;
  border-bottom: 1px dotted var(--hair);
  border-left: 2px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.mg-item:last-child { border-bottom: none; }
.mg-item:hover { background: var(--paper); }
.mg-item.aktif { border-left-color: var(--red); background: rgba(255, 0, 9, .03); }
.mg-tarih { display: block; font-size: .52rem; letter-spacing: .12em; color: var(--grey); }
.mg-item.aktif .mg-tarih { color: var(--red-deep); }
.mg-soru { display: block; font-size: .78rem; line-height: 1.45; margin-top: .2rem; }
.mg-item.aktif .mg-soru { font-weight: 500; }
.mv-chat { max-height: none; height: clamp(440px, calc(100vh - 330px), 640px); }
.mv-kunye {
  display: block;
  margin-top: .55rem; padding-top: .45rem;
  border-top: 1px dotted var(--hair);
  color: var(--grey); font-size: .54rem; letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

/* REV 5 responsive */
@media (max-width: 1060px) {
  .mevzuat-grid { grid-template-columns: 1fr; }
  .mv-chat { height: clamp(380px, 62vh, 560px); }
}
@media (max-width: 900px) {
  .kul-satir { grid-template-columns: minmax(0, 1fr) auto; }
  .kul-satir .kul-durum { grid-column: 1; }
  .kul-satir .yk-sil { grid-column: 2; grid-row: 2; justify-self: end; }
  .oturum-satir { grid-template-columns: minmax(0, 1fr) auto; }
  .oturum-satir .ot-meta { grid-column: 1; }
  .oturum-satir .btn-kucuk { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 768px) {
  .ayar-sekmeler { flex-wrap: nowrap; overflow-x: auto; }
  .sekme { white-space: nowrap; }
  .avatar-menu { right: -6px; }
  .kul-head .btn-ana { width: 100%; text-align: center; }
}

/* ═══ DİL SEÇİCİ (üst bar) ═══ */
.dil-sec {
  border: 1px solid var(--hair);
  background: var(--paper);
  color: var(--ink);
  padding: .4rem 1.6rem .4rem .6rem;
  font-family: var(--font-m); font-size: .62rem;
  letter-spacing: .06em;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--red-deep) 50%), linear-gradient(135deg, var(--red-deep) 50%, transparent 50%);
  background-position: right .75rem center, right .55rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color .25s var(--ease);
}
.dil-sec:hover { border-color: var(--red); }
.dil-sec:focus-visible { border-color: var(--red); }
@media (max-width: 860px) {
  .dil-sec { padding: .35rem 1.4rem .35rem .5rem; }
}

/* ═══ RTL (ar / fa) — ayna + tofu-önleyici font ═══ */
html[lang="ar"] { --font-d: 'Noto Sans Arabic', 'Archivo', sans-serif; --font-b: 'Noto Sans Arabic', 'Inter', sans-serif; --font-m: 'Noto Sans Arabic', 'IBM Plex Mono', monospace; }
html[lang="fa"] { --font-d: 'Vazirmatn', 'Archivo', sans-serif; --font-b: 'Vazirmatn', 'Inter', sans-serif; --font-m: 'Vazirmatn', 'IBM Plex Mono', monospace; }

[dir="rtl"] { text-align: right; }
/* Gövde payı: sol ray → sağ ray */
[dir="rtl"] body { padding: var(--headerH) var(--rayW) var(--altBarH) 0; }
[dir="rtl"] .skip-link { left: auto; right: 16px; }
/* Üst bar */
[dir="rtl"] .dil-sec {
  padding: .4rem .6rem .4rem 1.6rem;
  background-position: left .75rem center, left .55rem center;
}
[dir="rtl"] .ara-ikon { left: auto; right: .7rem; }
[dir="rtl"] .ara input { padding: .5rem 2.15rem .5rem .8rem; }
[dir="rtl"] .ara-sec { text-align: right; }
[dir="rtl"] .zil-item.yeni { border-left: none; border-right: 2px solid var(--red); }
[dir="rtl"] .zil-item .zi-zaman { text-align: right; }
/* Sol ray → sağ ray */
[dir="rtl"] .ray { left: auto; right: 0; }
[dir="rtl"] .ray::before { left: auto; right: 0; }
[dir="rtl"] .ray-gosterge { left: auto; right: 0; }
/* Kartlar / bloklar — kırmızı kenar aynalanır */
[dir="rtl"] .balon.bot { border-left: none; border-right: 2px solid var(--red); }
[dir="rtl"] .sohbet-mini .sm-log .balon.ben { align-self: flex-start; }
[dir="rtl"] .odeme-satir { border-left: none; border-right: 3px solid var(--red); }
[dir="rtl"] .odeme-btn { margin-left: 0; margin-right: auto; }
[dir="rtl"] .onay-kart, [dir="rtl"] .grup-kart { border-left: none; border-right: 3px solid var(--red); }
[dir="rtl"] .form-bolum > legend { margin-left: 0; margin-right: -.3rem; }
[dir="rtl"] .filtre-sayi { margin-left: 0; margin-right: .3rem; }
[dir="rtl"] .hata-dosya { margin-left: 0; margin-right: auto; }
/* Çizelge / ilerleme — dolgu sağdan sola */
[dir="rtl"] .mini-ciz .mc-dolu { inset: 0 0 0 auto; }
[dir="rtl"] .ciz-dolu { inset: 0 0 0 auto; }
/* Formlar / etiketler */
[dir="rtl"] .alan label, [dir="rtl"] .fb-baslik, [dir="rtl"] .mono { text-align: right; }
[dir="rtl"] .hareket-tablo th, [dir="rtl"] .arsiv-tablo th { text-align: right; }
[dir="rtl"] .hareket-tablo .sag, [dir="rtl"] .arsiv-tablo .sag { text-align: left; }
[dir="rtl"] .bar-etiket { text-align: right; }
[dir="rtl"] .bar-dolu { inset: 0 0 0 auto; }
/* Mobil: ray alt bara dönünce yatay taşma olmasın */
@media (max-width: 768px) {
  [dir="rtl"] body { padding: var(--headerH) 0 var(--altBarH) 0; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .view.on, .js .view.out, .js .balon, .js .modal { animation: none; }
  .mf .imlec { animation: none; opacity: 0; }
  .js .man-dot, .js .durak.aktif .d-dot, .js .zil-nokta,
  .js .mini-ciz i.a, .js .durum-rozet.sahada .dr-nokta { animation: none; }
}

/* ── CANLI PANEL ROZETİ (2026-07-28) — panel kendi kendine tazelenir ── */
.canli-rozet{display:inline-flex;align-items:center;gap:.4rem;font-size:.62rem;letter-spacing:.08em;
  color:#0a7a3d;opacity:.9;white-space:nowrap;padding:.15rem .1rem}
.canli-rozet::before{content:"";width:6px;height:6px;border-radius:50%;background:#12a355;
  box-shadow:0 0 0 0 rgba(18,163,85,.55);animation:canliNabiz 2.4s ease-out infinite}
.canli-rozet.kopuk{color:#8a8a86}
.canli-rozet.kopuk::before{background:#b9b9b4;animation:none}
@keyframes canliNabiz{0%{box-shadow:0 0 0 0 rgba(18,163,85,.5)}70%{box-shadow:0 0 0 7px rgba(18,163,85,0)}100%{box-shadow:0 0 0 0 rgba(18,163,85,0)}}
@media (max-width:768px){.canli-rozet{display:none}}
