/* m-tool.css (2026-11-16): araç sayfası hareket katmanı (m-tool.js ile). Dosyanın yolculuğu: Seç → İşle → İndir → Silinir.
   Kurallar: yalnız m-* sınıfları / m-tool.js'in eklediği aria-hidden süs öğeleri; tool.js'in sınıflarının anlamı değişmez.
   Hareket yalnız html.m-tfx altında (m-tool.js: azaltılmış hareket, ?still=1, "Hareketi durdur" → yok); son hâller
   (onaylar, halkalar, renkler) hareket kapalıyken de doğrudan görünür. Animasyonlar transform / opacity / clip-path. */
:root {
  /* 2026-11-16 (m-core): eğriler tek yerden (m-core.css'teki hareket dili) */
  --m-e: var(--mc-out, cubic-bezier(.22, .8, .24, 1));
  --m-io: var(--mc-io, cubic-bezier(.65, 0, .35, 1));
  --m-ok: var(--ok, #1E8A4F);
  --m-brand: var(--brand, #E3262B);
  --m-info: var(--info, #2E6BE6);
  --m-line: var(--line, #E3E6EC);
}

/* ======================= ortak: çizilen onay, halka ======================= */
.m-ck { display: block; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.m-ck path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.m-ring { display: block; overflow: visible; transform: rotate(-90deg); }
.m-ring circle { fill: none; stroke-width: 2; }
.m-ring__t { stroke: var(--m-line); }
.m-ring__f { stroke: var(--m-info); stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; }
[dir="rtl"] .m-ring { transform: rotate(-90deg) scaleY(-1); }

/* ======================= 1 · adım çubuğu ======================= */
.m-inst .inst__head { position: relative; }
.inst .m-steps li::after { display: none !important; }
.m-rail { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; z-index: 2; }
.m-rail > i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.m-rail__done { background: var(--m-ok); }
.m-rail__cur { background: var(--m-brand); overflow: hidden; }
.m-rail.is-busy .m-rail__cur { background: color-mix(in srgb, var(--m-brand) 18%, transparent); }
.m-rail__p { position: absolute; inset: 0; background: var(--m-brand); transform-origin: 0 50%; }
[dir="rtl"] .m-rail__p { transform-origin: 100% 50%; }
.m-tfx .m-rail.is-ready > i { transition: transform .75s var(--m-io), opacity .35s ease; }
.m-tfx .m-rail.is-ready .m-rail__p { transition: transform .5s var(--m-e); }

/* adım daireleri: biten adımda numara yerine çizilen onay */
.inst .m-steps .m-sn { position: relative; }
.m-sn > .m-ck { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; color: #fff; }
.inst .m-steps li.is-done .m-sn, .inst .m-steps li.m-done .m-sn, .inst .m-steps li.m-end .m-sn { color: transparent !important; background: var(--m-ok) !important; border-color: var(--m-ok) !important; }
.m-steps li.is-done .m-sn > .m-ck path, .m-steps li.m-done .m-sn > .m-ck path, .m-steps li.m-end .m-sn > .m-ck path { stroke-dashoffset: 0; }
.inst .m-steps li.m-done, .inst .m-steps li.m-end { color: var(--ink-2) !important; }
.m-tfx .m-sn > .m-ck path { transition: stroke-dashoffset .42s .18s var(--m-e); }
.m-tfx .m-steps li.is-done .m-sn, .m-tfx .m-steps li.m-done .m-sn { animation: m-pop .5s var(--m-e); }
@keyframes m-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
/* şimdiki adım: sakin bir nefes (yalnız dairenin çevresi) */
.m-tfx .m-inst:is([data-state="uploading"], [data-state="processing"]) .m-steps li[aria-current="step"] .m-sn::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--m-brand); opacity: 0; animation: m-breathe 2.4s var(--m-e) infinite; }
@keyframes m-breathe { 0% { transform: scale(.8); opacity: .4; } 100% { transform: scale(1.25); opacity: 0; } }

/* 4. adım "Silinir": sonuç hazırken daire, sağdaki sayaçla AYNI süreyi gösteren bir halkaya dönüşür; silinince yeşil onay */
.m-ring--step { position: absolute; inset: -1.5px; width: calc(100% + 3px); height: calc(100% + 3px); opacity: 0; transition: opacity .4s; }
.m-ring--step .m-ring__t { stroke: transparent; }
.m-ring--step .m-ring__f { stroke-width: 2.2; }
.m-inst[data-state="done"]:not(.m-gone) .v3-stepdel .m-ring--step { opacity: 1; }
.m-inst[data-state="done"]:not(.m-gone) .v3-stepdel { color: var(--ink-2) !important; }
.m-inst[data-state="done"]:not(.m-gone) .v3-stepdel .m-sn { color: var(--m-info) !important; }
.m-tfx .m-ring--step .m-ring__f, .m-tfx .m-ring--cd .m-ring__f { transition: stroke-dashoffset 1s linear, stroke .4s; }

/* ======================= 2 · seçildi ======================= */
.m-ck--ok { display: inline-block; width: 13px; height: 13px; margin-inline-end: 4px; vertical-align: -1px; stroke-width: 3.4; }
.m-inst[data-state="selected"] .m-ck--ok path { stroke-dashoffset: 0; }
.m-tfx .m-inst[data-state="selected"] .m-ck--ok path { transition: stroke-dashoffset .45s .5s var(--m-e); }
.m-tfx .m-inst[data-state="selected"] .chip__ok { animation: m-fade .4s .45s both; }
/* "hazır" parıltısı: dosya seçilince ana düğme bir kez ışıldar (sonraki adım burada) */
.m-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translate3d(-100%, 0, 0); }
.m-tfx .m-ready .m-shine, .m-tfx .m-attn .m-shine { animation: m-sweep 1.1s .35s var(--m-io) both; }
[dir="rtl"] .m-tfx .m-ready .m-shine, [dir="rtl"] .m-tfx .m-attn .m-shine { animation-name: m-sweep-r; }
@keyframes m-sweep { 0% { opacity: 1; transform: translate3d(-100%, 0, 0); } 100% { opacity: 1; transform: translate3d(100%, 0, 0); } }
@keyframes m-sweep-r { 0% { opacity: 1; transform: translate3d(100%, 0, 0); } 100% { opacity: 1; transform: translate3d(-100%, 0, 0); } }

/* ======================= 3 · yükleniyor → işleniyor ======================= */
.m-inst .pv { position: relative; overflow: hidden; }
.m-inst .pv__doc { position: relative; }
/* yükleme: belgenin köşesinde kilit (şifreli aktarım), üstünden yukarı akan paketler; çubuk mavi */
.m-lock { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--info-soft, #E9F0FD); color: var(--m-info); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--m-e); }
.m-lock__i { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.m-inst[data-state="uploading"] .m-lock { opacity: 1; transform: none; }
.m-tun { position: absolute; left: 50%; top: calc(50% - 98px); width: 60px; height: 64px; margin: -64px 0 0 -30px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.m-tun__pk { position: absolute; bottom: 0; width: 6px; height: 6px; border-radius: 2px; background: var(--m-info); opacity: 0; }
.m-tun__pk:nth-child(1) { left: 8px; } .m-tun__pk:nth-child(2) { left: 21px; } .m-tun__pk:nth-child(3) { left: 33px; } .m-tun__pk:nth-child(4) { left: 46px; }
.m-tfx .m-inst[data-state="uploading"] .m-tun { opacity: 1; }
.m-tfx .m-inst[data-state="uploading"] .m-tun__pk { animation: m-pk 1.5s cubic-bezier(.3, .5, .4, 1) infinite; }
.m-tun__pk:nth-child(2) { animation-delay: .55s !important; } .m-tun__pk:nth-child(3) { animation-delay: .2s !important; } .m-tun__pk:nth-child(4) { animation-delay: .85s !important; }
@keyframes m-pk { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate3d(0, -58px, 0); opacity: 0; } }
.m-inst[data-state="uploading"] .proc__bar > i { background: linear-gradient(90deg, var(--m-info), #6C9BF2) !important; }
/* işleme: belgeyi tarayan ışık, satırlar sırayla "okunur" */
.m-scan { position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--m-brand) 10%, transparent) 70%, color-mix(in srgb, var(--m-brand) 55%, transparent) 97%, transparent); }
.m-tfx .m-inst[data-state="processing"] .m-scan { animation: m-scan 2.4s var(--m-io) infinite; }
@keyframes m-scan { 0% { transform: translate3d(0, -40px, 0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translate3d(0, 200px, 0); opacity: 0; } }
.m-tfx .m-inst[data-state="processing"] .pv__l { animation: m-read 2.4s ease-in-out infinite; }
.m-tfx .m-inst[data-state="processing"] .pv__l:nth-child(2) { animation-delay: .25s; } .m-tfx .m-inst[data-state="processing"] .pv__l:nth-child(3) { animation-delay: .4s; }
.m-tfx .m-inst[data-state="processing"] .pv__l:nth-child(4) { animation-delay: .55s; } .m-tfx .m-inst[data-state="processing"] .pv__l:nth-child(5) { animation-delay: .7s; }
.m-tfx .m-inst[data-state="processing"] .pv__l:nth-child(6) { animation-delay: .85s; }
@keyframes m-read { 0%, 100% { opacity: 1; } 30% { opacity: .35; } }
/* ilerleme çubuğu: dolan kısımda ince bir ışık (ilerlemenin kendisi tool.js'in gerçek değeri) */
.m-inst .proc__bar > i { overflow: hidden; }
.m-tfx .m-inst:is([data-state="uploading"], [data-state="processing"]) .proc__bar > i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: m-shim 1.7s linear infinite; }
[dir="rtl"] .m-tfx .m-inst .proc__bar > i::after { animation-direction: reverse; }
@keyframes m-shim { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(260%, 0, 0); } }

/* yan liste: aşamalar bir kontrol listesine döner (bekliyor ○ · sürüyor ◌ dönen · bitti ✓) */
.m-stages li { position: relative; }
.m-inst .m-stages li > i { position: relative; display: grid; place-items: center; width: 18px !important; height: 18px !important; border-radius: 50% !important;
  border: 1.5px solid var(--line-2, #CED3DC) !important; background: var(--paper, #fff) !important; animation: none !important; transition: background-color .3s, border-color .3s; }
.m-inst .m-stages li.is-on > i { border-color: var(--m-brand) !important; }
.m-inst .m-stages li.is-on > i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--m-brand); }
.m-tfx .m-inst .m-stages li.is-on > i { border-color: color-mix(in srgb, var(--m-brand) 18%, var(--m-line)) !important; border-top-color: var(--m-brand) !important; animation: m-spin .85s linear infinite !important; }
.m-tfx .m-inst .m-stages li.is-on > i::before { content: none; }
@keyframes m-spin { to { transform: rotate(360deg); } }
.m-inst .m-stages li.is-done > i { background: var(--m-ok) !important; border-color: var(--m-ok) !important; }
.m-ck--st { width: 11px; height: 11px; color: #fff; stroke-width: 3.6; }
.m-stages li.is-done .m-ck--st path { stroke-dashoffset: 0; }
.m-tfx .m-stages .m-ck--st path { transition: stroke-dashoffset .4s .1s var(--m-e); }
.m-tfx .m-stages li.is-done > i { animation: m-pop .45s var(--m-e) !important; }
.m-stages li.is-done { color: var(--ink-2) !important; }
/* aşamalar arası bağ: biten aşamadan sonrakine yeşil çizgi iner */
.m-stages li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 8.25px; top: calc(50% + 12px); bottom: calc(-50% + 12px); width: 1.5px;
  background: var(--m-ok); transform: scaleY(0); transform-origin: 50% 0; }
.m-stages li.is-done:not(:last-child)::after { transform: none; }
.m-tfx .m-stages li:not(:last-child)::after { transition: transform .5s var(--m-io); }
.m-tfx .m-stages li.is-on { animation: m-fade .4s both; }

/* ======================= 4 · bitti ======================= */
.m-ck--res { width: 13px; height: 13px; stroke-width: 3.4; flex: none; }
.m-inst[data-state="done"] .m-ck--res path { stroke-dashoffset: 0; }
.m-tfx .m-inst[data-state="done"] .m-ck--res path { transition: stroke-dashoffset .45s .3s var(--m-e); }
/* sonuç başlığı: sitenin her başlığı gibi yarıktan yükselir (m-core.css · mc-mask) */
.m-tfx .m-inst[data-state="done"] .res__h { animation: mc-mask var(--mc-t4, .7s) var(--m-e) .08s backwards; }
.m-tfx .m-inst[data-state="done"] .res__k { animation: m-pill .5s var(--m-e) both; }
@keyframes m-pill { from { opacity: 0; transform: scale(.88); } }
.m-tfx .m-inst[data-state="done"] .bars__row { animation: m-up .5s .05s var(--m-e) both; }
.m-tfx .m-inst[data-state="done"] .bars__row + .bars__row { animation-delay: .13s; }
.m-tfx .m-inst[data-state="done"] .bars__v { animation: m-fade .4s .35s both; }
.m-tfx .m-inst[data-state="done"] .bars__v--b { animation-delay: 1.15s; } /* "sonra" değeri, çubuk küçülmeyi bitirince */
.m-tfx .m-inst[data-state="done"] .res__quip { animation: m-up .6s .6s var(--m-e) both; }
/* sağ sütun: indir → ekler → sayaç → sırada ne var, sırayla */
.m-tfx .m-inst[data-state="done"] .side--done > * { animation: m-up .55s var(--m-e) both; }
.m-tfx .m-inst[data-state="done"] .side--done > :nth-child(2) { animation-delay: .07s; }
.m-tfx .m-inst[data-state="done"] .side--done > :nth-child(3) { animation-delay: .14s; }
.m-tfx .m-inst[data-state="done"] .side--done > :nth-child(4) { animation-delay: .21s; }
.m-tfx .m-inst[data-state="done"] .side--done > :nth-child(5) { animation-delay: .28s; }
.m-tfx .m-inst[data-state="done"] .side--done > :nth-child(n+6) { animation-delay: .35s; }
/* İndir: bir kez ışıldar, ok iki kez aşağı işaret eder (dikkat çeker, tekrar etmez) */
.m-tfx #dl.m-attn .ico { animation: m-dl .7s .5s var(--m-io) 2; }
@keyframes m-dl { 0%, 100% { transform: none; } 45% { transform: translate3d(0, 3px, 0); } }

/* geri sayım kutusu: halka (tool.js'in gerçek süresi), silinince yeşil halka + onay */
.m-cd { position: relative; isolation: isolate; }
.m-cd .cd__t { justify-content: flex-start; align-items: center; }
.m-cd .cd__n { margin-inline-start: auto; }
.m-cdr { position: relative; flex: none; width: 26px; height: 26px; margin-inline-end: 10px; }
.m-ring--cd { width: 100%; height: 100%; }
.m-ck--cd { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; color: #fff; stroke-width: 3.4; }
.m-gone .m-ring__f { stroke: var(--m-ok); stroke-dashoffset: 0 !important; }
.m-gone .m-ring--cd .m-ring__t { fill: var(--m-ok); stroke: var(--m-ok); }
.m-gone .m-ck--cd path { stroke-dashoffset: 0; }
.m-tfx .m-ring--cd .m-ring__t { transition: fill .3s .55s, stroke .3s .55s; }
.m-tfx .m-ck--cd path { transition: stroke-dashoffset .45s .8s var(--m-e); }
.m-tfx .m-gone .m-ring__f { transition: stroke-dashoffset .6s var(--m-io), stroke .3s; }
.m-inst.m-gone .cd { border-color: color-mix(in srgb, var(--m-ok) 38%, var(--m-line)) !important; background: color-mix(in srgb, var(--m-ok) 5%, var(--paper, #fff)); }
.m-cd__sweep { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--m-ok) 14%, transparent), color-mix(in srgb, var(--m-ok) 4%, transparent)); }
.m-tfx .m-gone-now .m-cd__sweep { animation: m-wipe 1.4s var(--m-io) both; }
[dir="rtl"] .m-tfx .m-gone-now .m-cd__sweep { animation-name: m-wipe-r; }
@keyframes m-wipe { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 45% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes m-wipe-r { 0% { opacity: 1; clip-path: inset(0 0 0 100%); } 45% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
.m-tfx .m-gone-now .cd__s { animation: m-up .5s .3s var(--m-e) both; }
/* silindi = söz tutuldu: kutunun yazısı yeşil (tool.css'teki eski kırmızı kuralın yerine yalnız bu durumda) */
.m-inst.m-gone .cd.is-over .cd__s, .m-inst.m-gone .cd.is-over .cd__n { color: var(--m-ok); }
/* silindi: sonucun görseli solar (başlık ve açıklama okunur kalır); indir düğmesi zaten pasif */
.m-inst :is(.res__pct, .res__num, .bars, .res__flow, .res__ext, .res__stamp) { transition: opacity .9s var(--m-e), filter .9s var(--m-e); }
.m-gone :is(.res__pct, .res__num, .bars, .res__flow:not(.v3-resf--fl):not(.v3-resf--h3), .res__ext, .res__stamp) { opacity: .4; filter: grayscale(1); }  /* 2026-11-17: sahne (hflow) grileşmez; "silindi"yi yeşil ✓ ile kendisi anlatır */

/* ======================= 5 · hata: sallanmadan, sakin dikkat ======================= */
.m-tfx .m-inst[data-state="error"] .errc, .m-tfx .m-inst[data-state="error"] .limitc:not([hidden]) { animation: m-up .5s var(--m-e) both; }
.m-tfx .m-inst[data-state="error"] .errc__m { animation: m-up .5s .12s var(--m-e) both; }
.m-tfx .m-inst[data-state="error"] .limitc__b li { animation: m-up .45s var(--m-e) both; }
.m-tfx .m-inst[data-state="error"] .limitc__b li:nth-child(2) { animation-delay: .07s; }
.m-tfx .m-inst[data-state="error"] .limitc__b li:nth-child(3) { animation-delay: .14s; }
.m-tfx .m-inst[data-state="error"] .limitc__b li:nth-child(n+4) { animation-delay: .21s; }
.m-tfx .m-inst[data-state="error"] .side--err .side__go > * { animation: m-up .5s .15s var(--m-e) both; }

/* ======================= mikro etkileşimler ======================= */
/* seçenek bölmeleri: seçili kutunun koyu zemini bir sonrakine KAYAR */
.m-seg { position: relative; isolation: isolate; }
.m-seg__ind { position: absolute; left: 0; top: 0; width: 100px; height: 100px; z-index: 0; pointer-events: none; transform-origin: 0 0;
  background: var(--ink, #121418); opacity: 0; }
.m-tfx .m-seg__ind.is-ready { transition: transform .42s var(--m-e), opacity .25s; }
.m-seg .seg__o { z-index: 1; }
.m-seg .seg__o:has(input:checked) { background: transparent !important; }
.m-tfx .m-seg .seg__o { transition: color .3s var(--m-e), background-color .25s; }
/* basınca hafifçe içeri: m-core.js'teki ortak yay (scale) */
.m-tfx .m-inst :is(.cd__del, .chip__x) { transition: background-color .3s, color .3s, border-color .3s, transform .15s; }
/* sırada ne var / ilgili araçlar */
.m-tfx .row__a .row__go, .m-tfx .row__a .row__to, .m-tfx .next__a .fx { transition: transform .35s var(--m-e); }
.m-tfx .row__a:hover .row__go, .m-tfx .row__a:focus-visible .row__go { transform: translate3d(2px, -2px, 0); }
[dir="rtl"] .m-tfx .row__a:hover .row__go, [dir="rtl"] .m-tfx .row__a:focus-visible .row__go { transform: translate3d(-2px, -2px, 0); }
.m-tfx .row__a:hover .row__to { transform: translate3d(2px, 0, 0); }
[dir="rtl"] .m-tfx .row__a:hover .row__to { transform: translate3d(-2px, 0, 0); }
/* rehber (bölüm görünmesi, SSS, g-chip) m-pages.css/js'in işi: burada yok */

/* ortak anahtar kareler */
@keyframes m-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes m-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .m-tun, .m-scan, .m-shine { display: none !important; }
}
@media print { .m-rail, .m-tun, .m-scan, .m-shine { display: none !important; } }
