/* B2B sipariş API'si sayfası (/entegrasyonlar/b2b-api). Renk, yazı ve yarıçap site.css değişkenlerinden.
   Sahne motoru ve cihaz takımı ortaktır (scenes.js, devices.css); burada yalnız bu sayfaya özel yerleşim ve animasyon vardır.
   Hareket yalnız transform / opacity / clip-path ile yapılır; döngülü süs hareketi yoktur. */

/* ───────── yardımcılar ───────── */
.b2-stack { display: grid; justify-items: start; }
.b2-stack > * { grid-area: 1 / 1; }
.b2-sm { min-height: 2em; padding: 0 .9em; font-size: .85em; }
.b2-chips { display: flex; flex-wrap: wrap; gap: .5em; }
.b2-pb { width: 5em; } .b2-pb > i { --p: 0; }
.b2-kv { padding: .2em .2em .4em; }
code.ep { display: inline-block; padding: 0 8px; border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 24px; overflow-wrap: anywhere; }
.is-dark code.ep { background: var(--ink-3); color: var(--white); }

/* koyu kod yüzeyleri açık bölümde de durur: durum renklerinin koyu değerleri burada yerel tanımlanır */
.b2-con, .b2-blk, .b2-keycard {
  --ok: #34D399; --wait: #E0B25A; --err: #FF9AA0;
  --ok-bg: rgba(52, 211, 153, .14); --wait-bg: rgba(224, 178, 90, .14); --err-bg: rgba(255, 154, 160, .14);
}
.b2-con :focus-visible, .b2-blk :focus-visible, .b2-keycard :focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* ───────── sözdizimi renkleri ───────── */
/* üç ton: nötr (--paper), ikincil (--muted-d), sarı yalnız JSON anahtarı */
.b2-code .k, .b2-pre .k { color: var(--sun); }
.b2-code .s, .b2-pre .s { color: var(--paper); }
.b2-code .n, .b2-pre .n { color: var(--paper); }
.b2-code .b, .b2-pre .b { color: var(--muted-d); }
.b2-code .m, .b2-pre .m { color: var(--paper); font-weight: 600; }
.b2-code .u, .b2-pre .u { color: var(--paper); }
.b2-code .h, .b2-pre .h { color: var(--muted-d); }
.b2-code .c { color: var(--muted-d); }
.b2-st { display: inline-block; padding: 0 .55em; border-radius: 4px; font: 600 .86em/1.55 var(--f-mono); }
.b2-st--ok { background: var(--ok-bg); color: var(--ok); }
.b2-st--err { background: var(--err-bg); color: var(--err); }
.b2-st--wait { background: var(--wait-bg); color: var(--wait); }

/* ───────── hero + Sahne 1 ───────── */
.b2-hero { padding: 112px 0 72px; }
.b2-hero .crumbs { color: var(--muted-d); margin-bottom: 24px; }
.b2-hero .crumbs a { color: var(--muted-d); }
.b2-hero .crumbs a:hover { color: var(--white); }
.b2-hero .crumbs li + li::before { color: var(--muted-d); }
.b2-hero h1 { max-width: 15em; font-size: 56px; line-height: 62px; }
@media (min-width: 1200px) { .b2-hero h1 { font-size: 64px; line-height: 70px; } }
.b2-hero .lead { margin-top: 28px; max-width: 40em; }
.b2-hero__btns { margin-top: 36px; }
.b2-hero__note { margin-top: 20px; color: var(--muted-d); font-size: 15px; line-height: 24px; max-width: 60ch; }
.b2-s1wrap { margin-top: 64px; }
.b2-s1 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.b2-steps { margin-top: 54px; }
.b2-steps .sc-lab { font-size: 14px; }

/* konsol */
.b2-con { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--ink-line); color: var(--paper); }
.b2-con__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); font: 500 13px/20px var(--f-body); color: var(--muted-d); }
.b2-con__dots { display: inline-flex; gap: 6px; }
.b2-con__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.b2-con__ttl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-con__body { position: relative; flex: 1; display: grid; padding: 16px 16px 12px; min-height: 0; }
.b2-cv { grid-area: 1 / 1; min-width: 0; }
.b2-code { margin: 0; font: 500 13px/22px var(--f-mono); white-space: normal; color: var(--paper); overflow: hidden; }
.b2-ln, .b2-rs { display: block; white-space: pre; }
.b2-rs { margin-top: 0; }
.b2-ln + .b2-rs, .b2-cv .b2-rs:first-of-type { margin-top: 12px; }
.b2-clock { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-d); font-size: 12.5px; white-space: nowrap; }
.b2-clock svg { width: 20px; height: 20px; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.b2-clock__t { stroke: var(--ink-line); }
.b2-clock__f { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 28; }

/* konsol satırlarının yazılması ve yanıtın gelmesi */
@keyframes b2-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes b2-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.b2-ln.tl { --tt: .8s; } .b2-ln.ts { --tt: .45s; }
.td0 { --td: .1s; } .td1 { --td: .85s; } .td2 { --td: 1.4s; } .td3 { --td: 2.05s; }
.rd1 { --td: 2.9s; } .rd2 { --td: 3.25s; }
.b2-cv--q .rd1 { --td: 1.1s; } .b2-cv--q .rd2 { --td: 1.5s; }
.b2-con--sm .rd1 { --td: 1s; } .b2-con--sm .rd2 { --td: 1.4s; }
.sc.at-1 [data-at~="1"] .b2-ln,
.sc.at-2 [data-at~="2"] .b2-ln,
.sc.at-3 [data-at~="3"] .b2-ln,
.sc.at-4 [data-at~="4"] .b2-ln,
.sc.at-5 [data-at~="5"] .b2-ln,
.sc.at-6 [data-at~="6"] .b2-ln,
.sc.at-7 [data-at~="7"] .b2-ln { animation: b2-type var(--tt, .8s) steps(32, end) var(--td, 0s) both; }
.sc.at-1 [data-at~="1"] .b2-rs,
.sc.at-2 [data-at~="2"] .b2-rs,
.sc.at-3 [data-at~="3"] .b2-rs,
.sc.at-4 [data-at~="4"] .b2-rs,
.sc.at-5 [data-at~="5"] .b2-rs,
.sc.at-6 [data-at~="6"] .b2-rs,
.sc.at-7 [data-at~="7"] .b2-rs { animation: b2-in .45s var(--ease-out) var(--td, 0s) both; }

/* ERP penceresi (Sahne 1) */
.b2-erp { --dv-w: min(683px, calc((100vw - 76px) * .583)); width: var(--dv-w); justify-self: end; aspect-ratio: 16 / 8.7; }
.b2-con__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid var(--ink-line); font: 500 12px/18px var(--f-mono); color: var(--muted-d); }
.b2-con__foot code { font: inherit; }
.b2-cols { --cols: 1.1fr 1.8fr .4fr 1.5fr 1.15fr; }
.b2-cols2 { --cols: 1.1fr 1.8fr .5fr 1.6fr 1.1fr; }
.b2-toast { position: absolute; right: 1.2em; top: .9em; z-index: 6; min-width: 21em; }
.b2-trk { font: 600 .82em/1.4 var(--f-mono); color: var(--u-ok); }
.b2-cursor { left: 74%; top: 52%; opacity: 0; }
.sc.s3 .b2-cursor { opacity: 1; --cx: 3.4em; --cy: 3.2em; }
.sc.s4 .b2-cursor { opacity: 0; --cx: 3.4em; --cy: 3.2em; transition: translate 1s var(--ease-out), opacity .4s .3s; }
.b2-new { position: relative; }
.b2-erp .ui-chip[data-at] { white-space: nowrap; }

/* ───────── Sahne 2: otomasyon zinciri ───────── */
.b2-chain-sec { padding-bottom: 88px; }
.b2-chain { display: grid; gap: 58px; }

.b2-stage { display: grid; border-radius: 20px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); overflow: hidden; min-height: 600px; position: relative; }
.b2-v { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 44px; padding: 60px 32px 76px; min-width: 0; position: relative; }
.b2-loc { position: absolute; left: 22px; top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font: 600 13px/20px var(--f-body); color: var(--ink); }
.b2-loc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.b2-pill { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; max-width: calc(100% - 48px); margin: 0; padding: 8px 16px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font: 500 14px/22px var(--f-body); text-align: center; }
.b2-w { --dv-w: min(880px, calc(100vw - 32px)); aspect-ratio: 16 / 8.8; }
.b2-w.dvw--md { --dv-w: min(620px, calc(100vw - 32px)); aspect-ratio: 16 / 10.4; }
.b2-v4__l, .b2-v6__l { display: grid; justify-items: center; gap: 18px; position: relative; z-index: 2; }
.b2-v4 .b2-pill, .b2-v6 .b2-pill { position: static; translate: none; }

/* 1 — onay: imleç, rozet değişimi */
.b2-chips .ui-chip { cursor: default; }
.b2-onay-row { position: relative; }
.b2-bo { opacity: 0; }
.b2-cur1 { left: 86.5%; top: 51%; opacity: 0; }
.b2-cur1::after { animation: none; }
@keyframes b2-cur1 { 0% { opacity: 0; translate: -14em 5em; } 14% { opacity: 1; } 56% { opacity: 1; translate: 0 0; scale: 1; } 66% { scale: .88; } 76% { scale: 1; } 100% { opacity: 1; translate: 0 0; } }
@keyframes b2-off { to { opacity: 0; } }
@keyframes b2-on { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.sc.at-1 .b2-cur1 { animation: b2-cur1 2.8s var(--ease-out) .5s both; }
.sc.at-1 .b2-cur1::after { animation: ui-ring .7s var(--ease-out) 1.95s both; }
.sc.at-1 .b2-onay-btn { animation: ui-press .5s var(--ease-out) 1.95s, b2-off .3s 2.4s both; }
.sc.at-1 .b2-bw { animation: b2-off .3s 2.15s both; }
.sc.at-1 .b2-bo { animation: b2-on .5s var(--ease-out) 2.15s both; }

/* 2 — stok satırları sırayla düşer */
@keyframes b2-row { from { opacity: 0; translate: -14px 0; } to { opacity: 1; translate: 0 0; } }
.sc.at-2 .b2-r1 { animation: b2-row .55s var(--ease-out) .25s both; }
.sc.at-2 .b2-r2 { animation: b2-row .55s var(--ease-out) .75s both; }
.sc.at-2 .b2-r3 { animation: b2-row .55s var(--ease-out) 1.25s both; }
.sc.at-2 .b2-r4 { animation: b2-row .55s var(--ease-out) 1.95s both; }
.b2-row .ui-row__end { display: inline-flex; align-items: center; gap: .8em; }
.b2-row .ui-row__end b { min-width: 1.2em; text-align: right; }

/* 3 — kontrol listesi, bildirim */
.b2-toast3 { position: absolute; right: 28px; top: 70px; z-index: 6; width: 300px; font-size: 15px; transition-delay: .9s !important; box-shadow: var(--shadow); }
.b2-v3 .ui-row__end { display: inline-flex; align-items: center; gap: .8em; }
.b2-v3 .ui-row__end b { min-width: 2.4em; text-align: right; }

/* 4 — yazdırma ajanı + yazıcı */
.dv-printer .dv-paper.b2-paper { left: 8%; right: 8%; }
.b2-paper .dv-paper__r { grid-template-columns: 4.8em 4.4em minmax(0, 1fr) 3.7em 1.9em; gap: .45em; font-size: .86em; }
.b2-paper .dv-paper__r > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-printer.b2-prn { --dv-w: min(360px, 84vw); }
.b2-paper .dv-paper__r.hd { font-size: .74em; }
.b2-paper .dv-paper__m { grid-template-columns: auto 1fr; font-size: .86em; }
@keyframes b2-feed { 0% { transform: translateY(-5%); clip-path: inset(0 -2em 100% -2em); } 100% { transform: none; clip-path: inset(0 -2em -2em -2em); } }
.sc.at-4 .b2-v4 .dv-printer .dv-paper { animation: b2-feed 2.6s linear .9s both; }
.sc.at-6 .b2-v6 .dv-printer .dv-paper { animation: b2-feed 2.4s linear 1.4s both; }
.sc.at-4 .b2-v4 .dv-printer__lcd, .sc.at-6 .b2-v6 .dv-printer__lcd { animation: none; }
.b2-v4 .b2-pill { max-width: 36em; }
.b2-agent { aspect-ratio: 16 / 8.8; }
.b2-agent .ui-row__end { display: inline-flex; }
.b2-jo { opacity: 0; }
@keyframes b2-job { to { opacity: 0; } }
.sc.at-4 .b2-jw { animation: b2-off .3s 2.9s both; }
.sc.at-4 .b2-jo { animation: b2-on .5s var(--ease-out) 2.9s both; }
.sc.at-4 .dv-printer__lcd { animation: none; }

/* 5 — QR okutma ve toplama */
.b2-v5 { gap: 40px; padding-top: 56px; }
.b2-v5__c { display: grid; justify-items: center; position: relative; z-index: 2; }
.b2-held { position: relative; z-index: 3; width: 252px; height: 112px; overflow: hidden; font-size: 14px; rotate: -1.5deg; filter: drop-shadow(0 .8em 1em rgba(0, 0, 0, .2)); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.b2-held .dv-paper { padding-top: 1em; }
.b2-held .dv-paper__h b { font-size: 1.1em; }
.b2-qrwrap { position: relative; display: block; flex: none; }
.b2-qrwrap::after { content: ""; position: absolute; inset: -.35em; border: .18em solid var(--ok); border-radius: .4em; opacity: 0; }
.sc.at-5 .b2-qrwrap::after { animation: b2-lock 1.5s .15s both; }
@keyframes b2-lock { 0% { opacity: 0; scale: 1.5; } 25% { opacity: 1; scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.b2-termwrap { --dv-w: min(240px, 66vw); font-size: calc(var(--dv-w) / 26); padding: 10em 4em 0; margin-bottom: -32em; clip-path: inset(0 0 32em 0); -webkit-mask-image: linear-gradient(#000 calc(100% - 38em), transparent calc(100% - 32em)); mask-image: linear-gradient(#000 calc(100% - 38em), transparent calc(100% - 32em)); position: relative; z-index: 2; margin-top: -1px; }
.b2-termwrap .dv-term { --dv-w: min(240px, 66vw); --beam-w: 13em; --beam-h: 10em; }
.b2-v5 .ta__body { gap: .4em; }
.b2-ti { overflow: hidden; }
.b2-ti .ct { position: relative; display: grid; justify-items: end; }
.b2-ti .ct > span { grid-area: 1 / 1; }
.b2-c1 { opacity: 0; }
@keyframes b2-tick { 0% { opacity: 1; } 100% { opacity: .62; } }
.sc.at-5 .ta__item.b2-ti { animation: b2-dim .5s var(--ease-out) var(--d) both; }
.sc.at-5 .b2-c0 { animation: b2-off .2s var(--d) both; }
.sc.at-5 .b2-c1 { animation: b2-on .45s var(--ease-out) var(--d) both; }
@keyframes b2-dim { to { opacity: .7; border-color: var(--ta-ok); } }
.b2-ti1 { --d: 2.3s; } .b2-ti2 { --d: 3.7s; } .b2-ti3 { --d: 5.1s; }
@keyframes b2-fill { from { clip-path: inset(0 100% 0 0 round 99em); } to { clip-path: inset(0 0 0 0 round 99em); } }
.b2-tb > i { clip-path: inset(0 100% 0 0 round 99em); }
.sc.at-5 .b2-tb > i { animation: b2-fill 3.2s linear 2.2s both; }
.b2-pill--v5 { bottom: 18px; }
.b2-side { flex: 0 0 290px; width: 290px; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; position: relative; z-index: 2; }
.b2-side__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 16px/24px var(--f-head); color: var(--ink); }
.b2-side .ui-kv { font-size: 14px; line-height: 22px; }
.b2-side__n { color: var(--muted); font-size: 14px; line-height: 22px; max-width: none; padding-top: 12px; border-top: 1px solid var(--line); margin: 0; }
.b2-so { opacity: 0; }
.sc.at-5 .b2-sw { animation: b2-off .3s .9s both; }
.sc.at-5 .b2-so { animation: b2-on .5s var(--ease-out) .9s both; }
.b2-shelves { display: grid; position: relative; }
.b2-sh { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.b2-sh + .b2-sh::before { content: ""; position: absolute; left: 27px; top: -12px; width: 2px; height: 24px; background: var(--line); }
.b2-sh__c { display: grid; place-items: center; min-width: 56px; padding: 4px 8px; border-radius: 4px; background: var(--wait-bg); color: var(--wait); font: 600 13px/18px var(--f-mono); position: relative; z-index: 1; }
.b2-sh__n { font: 600 14.5px/20px var(--f-body); color: var(--ink); }
.b2-sh__n small { display: block; color: var(--muted); font: 500 12.5px/18px var(--f-body); }
.b2-sh__k { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); opacity: 0; }
.b2-sh__k .ui-ico { width: 14px; height: 14px; }
.sc.at-5 .b2-sh__k { animation: b2-on .45s var(--ease-out) var(--d) both; }


/* 6 — kargo etiketi */
.b2-ship { display: flex; justify-content: flex-end; padding: .4em 0; }
.b2-ko { opacity: 0; }
.sc.at-6 .b2-ship-btn { animation: ui-press .5s var(--ease-out) 1.0s; }
.sc.at-6 .b2-kw { animation: b2-off .3s 1.2s both; }
.sc.at-6 .b2-ko { animation: b2-on .5s var(--ease-out) 1.2s both; }

.dv-printer .dv-paper.b2-lblpaper { left: 12%; right: 12%; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; --lw: calc(var(--dv-w) * .76); }
.b2-lblpaper::after { display: none; }
.b2-lblpaper .dv-label { --dv-w: var(--lw); width: var(--lw); }

/* 7 — takip numarası B2B tarafında */
.b2-con--sm { width: 330px; flex: none; min-height: 230px; }
.b2-con--sm .b2-code { font-size: 12.5px; }
.b2-site { --dv-w: min(560px, calc(100vw - 32px)); aspect-ratio: 16 / 10.4; }
.b2-tl { display: grid; gap: .3em; padding: .2em 0 .6em; }
.b2-tl li { position: relative; display: flex; align-items: center; gap: .8em; padding-left: .2em; font-weight: 500; color: var(--u-ink2); }
.b2-tl i { width: .9em; height: .9em; border-radius: 50%; border: .16em solid var(--u-line); background: var(--u-surface); flex: none; }
.b2-tl .is-d { color: var(--u-ink); } .b2-tl .is-d i { background: var(--u-okfill); border-color: var(--u-okfill); }
.b2-tl .is-n { color: var(--u-ink); font-weight: 600; } .b2-tl .is-n i { background: var(--u-acc); border-color: var(--u-acc); box-shadow: 0 0 0 .3em color-mix(in srgb, var(--u-acc) 20%, transparent); }
.b2-trkcard { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .8em 1em; border-radius: .9em; background: var(--u-surface); border: 1px solid color-mix(in srgb, var(--u-okfill) 50%, var(--u-line)); box-shadow: var(--u-shadow); }
.b2-trkcard span { color: var(--u-ink2); font-weight: 500; }
.b2-trkcard b { font: 600 1em/1.2 var(--f-mono); color: var(--u-ok); }
.b2-pill--v7 { bottom: 22px; }

/* adım şeridi: zincir (7 kart) */
.b2-rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-top: 14px; }
.b2-rail > li { flex: none; min-width: 0; display: flex; }
.b2-rail .cr { display: flex; flex-direction: column; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; cursor: pointer; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out); }
.b2-rail .cr:hover { background: var(--white); border-color: var(--muted); }
.b2-rail .sc-bar { margin: 0; border-radius: 0; height: 4px; }
.b2-rail .cr__in { display: grid; align-content: start; gap: 4px; padding: 16px 12px; }
.cr__n { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font: 600 14px/1 var(--f-head); color: var(--muted); transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out); }
.cr__t { margin-top: 4px; font: 600 16px/22px var(--f-head); color: var(--fg); }
.cr__d { font: 400 13.5px/20px var(--f-body); color: var(--muted); }
.cr__s { margin-top: 4px; font: 600 12.5px/18px var(--f-body); color: var(--acc); }
.b2-rail li.is-done .cr { background: var(--white); }
.b2-rail li.is-done .cr__n { background: var(--ok); border-color: var(--ok); color: var(--white); }
.b2-rail li.is-now .cr { background: var(--white); border-color: var(--ink); }
.b2-rail li.is-now .cr__n { background: var(--ink); border-color: var(--ink); color: var(--white); }
.b2-rail li.is-now .cr__n::after { content: ""; position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.b2-rail li.is-now .cr__t { color: var(--ink); }
.b2-rail .sc-bar::after { background: var(--ink); }

.b2-without { margin-top: 56px; padding: 32px 36px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); display: grid; grid-template-columns: 4fr 8fr; column-gap: 40px; row-gap: 12px; }
.b2-without h3 { grid-column: 1; }
.b2-without__l { grid-column: 2; display: grid; gap: 14px; }
.b2-without__l li { color: var(--muted); }
.b2-without__l b { color: var(--fg); font-weight: 600; }
.b2-without__n { grid-column: 2; color: var(--fg); font-weight: 500; max-width: none; padding-top: 6px; border-top: 1px solid var(--line); }

/* ───────── uç noktalar ───────── */
.b2-counts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-bottom: 40px; }
.b2-counts li { display: flex; align-items: baseline; gap: 12px; }
.b2-counts b { font: 600 56px/60px var(--f-head); letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.b2-counts span { color: var(--muted); font-size: 16px; max-width: 14ch; line-height: 22px; }
.b2-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.b2-gcol { display: grid; gap: 24px; align-content: start; min-width: 0; }
.b2-grp { padding: 28px; }
.b2-grp__h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.b2-grp__h h3 { font-size: 24px; line-height: 30px; }
.b2-grp__c { font: 600 13px/22px var(--f-body); color: var(--acc); padding: 0 8px; border-radius: 4px; background: var(--paper); white-space: nowrap; }
.b2-grp__l { margin-top: 8px; color: var(--muted); max-width: none; }
.b2-det { margin-top: 16px; }
.b2-det summary { list-style: none; cursor: pointer; font: 600 14px/22px var(--f-body); color: var(--acc); padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.b2-det summary::-webkit-details-marker { display: none; }
.b2-det summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.b2-det[open] summary::after { rotate: -135deg; translate: 0 2px; }
.b2-tbl { margin-top: 6px; border-top: 1px solid var(--line); }
.b2-tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.b2-mt { font: 600 12px/20px var(--f-mono); text-align: center; border-radius: 4px; padding: 0 4px; background: var(--info-bg); color: var(--fg); }
.b2-mt--get { background: var(--ok-bg); color: var(--ok); }
.b2-mt--post { background: var(--wait-bg); color: var(--wait); }
.b2-path { font: 500 13px/22px var(--f-mono); color: var(--fg); overflow-wrap: anywhere; }
.b2-d { grid-column: 2; color: var(--muted); font-size: 14.5px; line-height: 22px; }
.b2-sc { grid-column: 3; grid-row: 1; font: 500 12px/20px var(--f-mono); color: var(--muted); white-space: nowrap; }
.b2-rules { margin-top: 32px; color: var(--muted); max-width: 86ch; }

/* ───────── örnekler ───────── */
.b2-ex { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; row-gap: 32px; align-items: start; }
.b2-ex__l .lead { margin-top: 16px; }
.b2-ex__f { margin-top: 24px; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; line-height: 24px; }
.b2-ex__f li { padding-left: 18px; position: relative; }
.b2-ex__f li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1.5px; background: var(--muted); }
.b2-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.b2-tabs [role="tab"] { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font: 600 15px/1 var(--f-body); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.b2-tabs [role="tab"]:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.b2-tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.b2-panel { display: grid; gap: 12px; }
.b2-panel:not([hidden]) { animation: fadein .2s var(--ease); }
.b2-blk { border-radius: 12px; background: var(--ink-2); color: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.b2-blk--res { background: var(--ink-2); }
.b2-blk__h { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--ink-line); font: 600 13px/22px var(--f-body); color: var(--muted-d); }
/* maket başlığı: aria-hidden içinde başlık etiketi yok; devices.css'teki .dv-win__h h3 görünümüyle aynı */
.dv-win__h > .dv-win__t { font: 600 1.55em/1.2 var(--f-head); color: var(--u-ink); margin: 0; letter-spacing: 0; }
.b2-copy { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--muted-d); background: transparent; color: var(--paper); font: 600 13px/1 var(--f-body); cursor: pointer; transition: background-color .15s, border-color .15s; }
.b2-copy:hover { background: var(--ink-3); }
.b2-copy:active { transform: translateY(1px); }
.b2-copy.is-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.b2-pre { margin: 0; padding: 16px; overflow-x: auto; font: 500 13px/21px var(--f-mono); white-space: pre; tab-size: 2; }
.b2-pre code { font: inherit; }
.b2-note { color: var(--muted); font-size: 15px; line-height: 24px; max-width: none; padding: 2px 4px; }

/* ───────── güvenlik ───────── */
.b2-sec { padding-block: 96px; }
.b2-guv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.b2-guv__vis { position: sticky; top: 96px; }
.b2-key { display: grid; min-height: 330px; align-items: center; }
.b2-keycard { padding: 24px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--ink-line); display: grid; gap: 16px; color: var(--paper); }
.b2-keycard .ui-btn, .b2-keycard .ui-badge { --u-acc: var(--sun); --u-on: var(--sun-ink); --u-ok: #34D399; --u-ink2: var(--muted-d); }
.b2-keycard__h { display: flex; align-items: center; gap: 12px; font: 600 17px/24px var(--f-head); }
.b2-keycard__h .ui-ico { width: 20px; height: 20px; color: var(--sun); }
.b2-keycard__h .ui-badge { margin-left: auto; font-family: var(--f-mono); }
.b2-keybox { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 12px; background: var(--ink); border: 1px solid var(--ink-line); min-height: 64px; }
.b2-keyval { font: 600 15px/22px var(--f-mono); color: var(--sun); word-break: break-all; }
.b2-keyval--m { color: var(--muted-d); display: inline-flex; align-items: center; gap: 3px; }
.b2-keyval--m i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-d); }
.b2-keynote { font-size: 14.5px; line-height: 22px; color: var(--muted-d); min-height: 48px; }
.b2-keynote code { font: 600 13px var(--f-mono); color: var(--paper); }
.b2-keyr { justify-items: end; }
.b2-keyreq { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--err-bg); border: 1px solid var(--err); font: 500 13px/20px var(--f-mono); color: var(--err); }
.b2-guv__vis .b2-steps { margin-top: 54px; }
.b2-guv__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.b2-guv__list li { padding: 24px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; box-shadow: none; }
.b2-guv__list h3 { font-size: 18px; line-height: 26px; margin-bottom: 6px; }
.b2-guv__list p { color: var(--muted-d); font-size: 15px; line-height: 23px; max-width: none; }
.b2-more { margin-top: 28px; }
.b2-sec .sc-ctl { color: var(--white); }

/* ───────── onay ve stok ───────── */
.b2-onay { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; row-gap: 40px; align-items: start; }
.b2-appr { display: grid; }
.b2-appr .dv-win { --dv-w: min(660px, calc(100vw - 32px)); aspect-ratio: 16 / 7.8; }
.b2-cols3 { --cols: .35fr 1fr 1.7fr 1.3fr 1.3fr; }
.b2-chk { width: 1.15em; height: 1.15em; border-radius: .3em; border: .14em solid var(--u-line); background: var(--u-surface); position: relative; justify-self: start; transition: background-color .3s, border-color .3s; }
.b2-chk:is(.sc.at-2 [data-on~="2"], .sc.at-3 [data-on~="3"]) { background: var(--u-acc); border-color: var(--u-acc); }
.b2-chk:is(.sc.at-2 [data-on~="2"], .sc.at-3 [data-on~="3"])::after { content: ""; position: absolute; left: .3em; top: .08em; width: .3em; height: .6em; border: solid var(--u-on, #fff); border-width: 0 .14em .14em 0; rotate: 45deg; }
.b2-appr .ui-btn[data-at] { white-space: nowrap; }
.b2-rules3 { display: grid; gap: 22px; }
.b2-rules3 li { padding-top: 18px; border-top: 1px solid var(--line); }
.b2-rules3 h3 { font-size: 19px; line-height: 26px; margin-bottom: 6px; }
.b2-rules3 p { color: var(--muted); max-width: none; }

/* ───────── bağlantı adımları, sınırlar ───────── */
.b2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.b2-col { padding: 30px 32px 34px; }
.b2-col h3 { font-size: 26px; line-height: 32px; margin-bottom: 18px; }
.b2-steps2 { counter-reset: s; display: grid; gap: 16px; }
.b2-steps2 li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); line-height: 25px; }
.b2-steps2 li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--f-head); }
.b2-steps2 b { color: var(--fg); font-weight: 600; }
.b2-mat { margin-top: 28px; color: var(--muted); max-width: 80ch; }
.b2-lim { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; row-gap: 24px; align-items: start; }
.b2-lim__h .lead { margin-top: 16px; }
.b2-lim__l > li { color: var(--muted); padding: 16px 0; }
.b2-lim__l b { color: var(--fg); font-weight: 600; }
.cta-band .btns { gap: 12px 32px; }
.cta-band p { color: var(--fg2); margin-top: 8px; }
.faq2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.faq2__head { grid-column: 1 / span 4; }
.faq2__list { grid-column: 5 / span 8; }
.ent__more { margin-top: 24px; }

/* ───────── hareket azaltılmış ───────── */
@media (prefers-reduced-motion: reduce) {
  .b2-v4 .dv-paper, .b2-v6 .dv-paper, .b2-ln, .b2-rs, .b2-row, .b2-ti, .b2-c0, .b2-c1, .b2-bw, .b2-bo, .b2-jw, .b2-jo, .b2-kw, .b2-ko, .b2-cur1, .b2-tb > i, .b2-qrwrap::after { animation: none !important; }
  .b2-tb > i { clip-path: inset(0 0 0 0 round 99em); }
  .b2-bw, .b2-jw, .b2-kw, .b2-sw { opacity: 0; }
  .b2-bo, .b2-jo, .b2-ko, .b2-so, .b2-sh__k, .b2-c1 { opacity: 1; }
  .b2-c0 { opacity: 0; }
}

/* ───────── ekran genişlikleri ───────── */
@media (max-width: 1180px) {
  .b2-rail { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .b2-rail .cr__in { padding: 12px 10px 14px; }
  .cr__d { font-size: 12.5px; line-height: 18px; }
  .cr__t { font-size: 15px; }
  .b2-erp { --dv-w: min(720px, calc((100vw - 76px) * .6)); }
  .b2-w { --dv-w: min(760px, calc(100vw - 32px)); }
}
@media (max-width: 1060px) {
  .js .b2-col[data-reveal]:not(.in), .js .b2-ex__r[data-reveal]:not(.in) { transform: translateY(16px); }
  .b2-s1 { grid-template-columns: 1fr; }
  .b2-erp { --dv-w: min(640px, calc(100vw - 32px)); justify-self: center; }
  .b2-con { min-height: 280px; }
  .b2-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
  .b2-groups, .b2-guv, .b2-onay, .b2-two, .b2-lim, .b2-ex { grid-template-columns: minmax(0, 1fr); }
  .b2-guv__vis, .b2-key, .b2-keycard { min-width: 0; }
  .b2-guv__vis { position: static; }
  .b2-without { grid-template-columns: 1fr; padding: 26px; }
  .b2-without h3, .b2-without__l, .b2-without__n { grid-column: 1; }
  .faq2__head, .faq2__list { grid-column: 1 / -1; }
  .b2-v4, .b2-v6, .b2-v7 { flex-direction: column; gap: 24px; }
  .b2-stage { min-height: 0; }
  .b2-v { padding-bottom: 80px; }
}
@media (max-width: 760px) {
  .b2-hero { padding-top: 96px; }
  .b2-hero h1 { font-size: 36px; line-height: 42px; }
  .b2-v { padding: 60px 14px 84px; }
  .b2-w, .b2-w.dvw--md, .b2-site, .b2-erp { --dv-w: min(560px, calc(100vw - 32px)); }
  .b2-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2-counts b { font-size: 44px; line-height: 48px; }
  .b2-guv__list { grid-template-columns: 1fr; }
  .b2-tr { grid-template-columns: 52px minmax(0, 1fr); }
  .b2-sc { grid-column: 2; grid-row: auto; }
  .b2-col { padding: 24px 20px 28px; }
  .b2-con--sm { width: 100%; max-width: 330px; }
  .b2-toast, .b2-toast3 { min-width: 0; left: .6em; right: .6em; }
  .b2-pill { font-size: 13px; line-height: 20px; bottom: 16px; }
  .b2-v4 .b2-pill, .b2-v6 .b2-pill { max-width: 100%; }
}
@media (max-width: 760px) {
  .b2-v4__l .b2-agent, .b2-v6__l .dv-win, .b2-side, .b2-con--sm { display: none; }
  .b2-v4__l, .b2-v6__l { gap: 0; position: static; }
  .b2-w, .b2-w.dvw--md, .b2-site, .b2-erp, .b2-appr .dv-win { aspect-ratio: auto; }
  .b2-v5 { gap: 0; }
  .b2-v4 .b2-pill, .b2-v6 .b2-pill { position: absolute; bottom: 16px; }
  .b2-keybox { flex-wrap: wrap; }
  .b2-keyval { font-size: 13.5px; }
}
@media (max-width: 640px) {
  .b2-cols, .b2-cols2 { --cols: 1.1fr 1.7fr 1.5fr; }
  .b2-cols3 { --cols: .3fr 1.1fr 1.5fr 1.4fr; }
  .b2-cols3 > :nth-child(3) { display: none; }
  .b2-cols > :last-child, .b2-cols2 > :last-child { display: none; }
  .b2-code { font-size: 12px; line-height: 20px; }
  .b2-pre { font-size: 12px; line-height: 19px; }
  .b2-s1wrap { margin-top: 40px; }
}

.b2-stockcard { margin-top: auto; border-radius: .95em; }
.b2-bign { justify-items: end; }
.b2-bign b { font: 600 1.8em/1 var(--f-head); color: var(--u-ink); }
