/* ==========================================================================
   Praxys B2B — hero: iki sekmeli sahne (Kampanya motoru / Kupon sistemi)
   Yalnız praxys-b2b.html yükler. İşaretleme: praxys-b2b.html içinde.
   Kart sitenin .mock / .mock-bar / .mock-tabs / .mock-foot dilini kullanır; renkler style.css token'larına bağlı.
   Küçük yazılar --b2b-fs (12 px; fareyle eğim açık cihazlarda 12,5 px: 3B eğimde ekranda 11 px altına inmesin).
   EMPİ sahnesinin (empi-scene.css) yapısından türetildi; kartlar B2B'ye özgü.
   ==========================================================================*/

/* ---- hero yerleşimi (WMS sahnesiyle aynı): metin keskinliği için flat, dar ekranda scale yerine kartın düzeni ---- */
.lp-hero .b2b-vis .hs-3d { transform-style: flat; }
.lp-hero .b2b-vis .fl.chip small { font-size: 13px; }
.lp-hero .b2b-vis .fl.chip > div { transition: transform .18s ease; }
.lp-hero .b2b-vis .fl.chip.b2b-swap > div { transform: translateY(-2px); }   /* metin hiçbir anda boş/gizli olmaz */
@media (max-width: 960px) {
  .lp-hero .b2b-vis { height: auto; }
  .lp-hero .b2b-vis .hs-3d { scale: none; width: min(540px, 100%); margin-left: auto; margin-right: auto; }
}

/* ---- kart ---- */
.b2b-card { --b2b-fs: 12px; --b2b-warm: #f59e0b; font-size: 12.5px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .b2b-card { --b2b-fs: 12.5px; } }
.b2b-in { container-type: inline-size; }
.b2b-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.b2b-bar { padding: 9px 12px 9px 12px; }
.b2b-tabs { flex: none; }
.b2b-tab { position: relative; padding: 4px 11px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: var(--b2b-fs); line-height: 16px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.b2b-tab:not(.b2b-on):hover { background: var(--tq-ll); color: var(--tq-d); }
.b2b-tab.b2b-on { background: var(--tq-l); color: var(--tq-d); font-weight: 600; }
.b2b-tab:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.b2b-tabs .b2b-tab span { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; }   /* site: .mock-tabs span */
.b2b-tab .b2b-s { display: none; }
.b2b-prog { position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.b2b-tab.b2b-on .b2b-prog { opacity: 1; }
.b2b-bar { justify-content: flex-start; }
.b2b-panel .b2b-kpis { justify-content: flex-end; padding: 8px 12px 0; background: linear-gradient(180deg, var(--blue-50), var(--blue-50)); }
.b2b-foot { display: block; }   /* site: .mock-foot flex; burada adımlar üstte, durum altta */
.b2b-stack { display: grid; }
.b2b-panel { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.b2b-panel.b2b-on { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.b2b-panel[data-scene="kupon"] .b2b-nd .b2b-pr { stroke: url(#b2b-c-gStep); }

/* sayaçlar */
.b2b-kpis { display: flex; gap: 6px; margin: 0; }
.b2b-kpis div { position: relative; }
.b2b-kpis div::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }
.b2b-kpis div { display: flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.b2b-kpis dt { font-size: var(--b2b-fs); line-height: 16px; font-weight: 500; color: var(--muted); }
.b2b-kpis dd { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.b2b-kpis .b2b-d { display: inline-block; width: .62em; text-align: center; }

/* sahne */
.b2b-scene { position: relative; background: linear-gradient(180deg, var(--blue-50), #fff 78%); }
.b2b-scene-svg { display: block; width: 100%; height: auto; }

.b2b-tag { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 7px; background: rgba(255, 255, 255, .95); border: 1px solid var(--blue-200); box-shadow: 0 6px 12px -8px rgba(var(--navy-950-rgb), .45); font-size: 13.5px; line-height: 1; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.b2b-tag .b2b-ok { display: block; width: 0; height: 14px; border-radius: 50%; text-decoration: none; overflow: hidden; margin-right: -4px;
  background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.b2b-tag { opacity: 0; }   /* 13,5 px: kartın 3B eğiminde uzak (sol-üst) köşede ekranda 11 px altına inmesin (1100–1440 ölçüldü) */
.b2b-tag::after { content: ""; position: absolute; inset: -3px; border-radius: 9px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }


/* adımlar + durum */
.b2b-steps { list-style: none; margin: 0; padding: 0 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.b2b-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.b2b-steps li + li::before, .b2b-steps li + li::after { content: ""; position: absolute; top: 9px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; border-radius: 2px; background: var(--line); }
.b2b-steps li + li::after { background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(var(--c, 0)); }
.b2b-nd, .b2b-nd svg { display: block; width: 20px; height: 20px; overflow: visible; }
.b2b-nd .b2b-tr { fill: #fff; stroke: var(--line); stroke-width: 2; }
.b2b-nd .b2b-pr { fill: none; stroke: url(#b2b-k-gStep); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 47.12; stroke-dashoffset: 47.12; transform: rotate(-90deg); transform-origin: 10px 10px; }
.b2b-nd .b2b-fi { fill: var(--navy-700); opacity: 0; transform-origin: 10px 10px; }
.b2b-nd .b2b-ck { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; }
.b2b-lb { font-size: var(--b2b-fs); line-height: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.b2b-status { display: flex; align-items: center; gap: 9px; margin: 9px 4px 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.b2b-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 3px rgba(var(--blue-500-rgb), .16); }
.b2b-st { position: relative; flex: 1; min-width: 0; height: 18px; }
.b2b-st > span { position: absolute; inset: 0 0 auto 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- B2B kartları: geniş kartta sahnenin sol-alt boşluğunda (merkez masasının önü; ERP rafı ve akış çizgileri açıkta kalır),
   dar kartta (< 500 px) sahnenin altında ayrı bir satırda ---- */
.b2b-stage { position: relative; }
.b2b-ov-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 1px 4px; white-space: nowrap; }
.b2b-ov-h b { font-weight: 600; color: var(--ink); }
.b2b-ov-h span { color: var(--muted); }
.b2b-ov { position: absolute; left: 2%; bottom: 3%; width: 236px; padding: 7px 7px 6px; border-radius: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--blue-200); box-shadow: 0 14px 28px -16px rgba(var(--navy-950-rgb), .45); font-size: var(--b2b-fs); line-height: 16px; opacity: 0; }
.b2b-ov ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.b2b-rule li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 6px; border-radius: 6px; background: var(--blue-50); white-space: nowrap; opacity: 0; }
.b2b-rule li span { color: var(--muted); } .b2b-rule li b { color: var(--navy-800); font-weight: 600; }
.b2b-note { margin: 5px 1px 0; color: var(--ink-2); white-space: nowrap; opacity: 0; }
.b2b-cart ul li { display: grid; grid-template-columns: minmax(0, 1fr) 26px 72px; gap: 5px; align-items: center; padding: 1px 6px; border-radius: 6px; background: var(--blue-50); opacity: 0; }
.b2b-cart li span { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-cart li i { font-style: normal; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.b2b-cart li b { text-align: right; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-cart li.b2b-r-vana { position: relative; }
.b2b-cart li.b2b-r-vana::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--blue-500); opacity: var(--on, 0); }
/* öneri / kupon kontrolü ve indirim satırı aynı yuvada sırayla görünür: kart yüksekliği sabit kalır */
.b2b-slot { display: grid; margin-top: 4px; }
.b2b-slot > * { grid-area: 1 / 1; min-width: 0; }
.b2b-hint { padding: 4px 6px 5px; border-radius: 8px; background: var(--tq-ll); border: 1px dashed var(--blue-300); opacity: 0; }
.b2b-hint p { display: flex; align-items: center; gap: 6px; margin: 0; min-height: 16px; }
.b2b-badge { flex: none; padding: 0 6px; border-radius: 999px; background: var(--blue-500); color: #fff; font-weight: 600; }
.b2b-hts { display: grid; min-width: 0; }
.b2b-ht { grid-area: 1 / 1; color: var(--ink-2); white-space: nowrap; }
.b2b-ht + .b2b-ht { color: var(--navy-700); font-weight: 600; opacity: 0; }
.b2b-mrow { margin-top: 4px !important; gap: 8px !important; }
.b2b-mrow span { flex: none; color: var(--navy-700); font-weight: 600; }
.b2b-meter { display: block; flex: 1; height: 5px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.b2b-meter > i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; }
.b2b-code { justify-content: space-between; }
.b2b-code span { color: var(--muted); }
.b2b-code b { min-width: 108px; padding: 0 6px; border-radius: 6px; background: #fff; border: 1px solid var(--blue-300); color: var(--navy-800); font-size: 13px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.b2b-checks { gap: 8px !important; margin-top: 4px !important; }
.b2b-checks span { display: flex; align-items: center; gap: 4px; color: var(--ink-2); opacity: 0; white-space: nowrap; }
.b2b-checks s { display: block; flex: none; width: 13px; height: 13px; border-radius: 50%; text-decoration: none;
  background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.b2b-disc { align-self: end; display: flex; justify-content: space-between; margin: 0; padding: 1px 6px; border-radius: 6px; background: var(--tq-ll); color: var(--blue-600); font-weight: 600; white-space: nowrap; opacity: 0; }
.b2b-tot { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 4px 6px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; white-space: nowrap; }
.b2b-tot > span:first-child { flex: 1; }
.b2b-tot b { color: var(--navy-800); font-variant-numeric: tabular-nums; }
.b2b-send { padding: 2px 10px; border-radius: 7px; background: var(--blue-500); color: #fff; font-weight: 600; }

/* orta genişlik: kartlar sahnenin altında (sahne kapanmaz) */
@container (max-width: 499px) {
  .b2b-scene { display: grid; }
  .b2b-stage { grid-area: 1 / 1; }
  .b2b-ov { position: relative; grid-area: 2 / 1; left: auto; bottom: auto; width: auto; margin: 0 10px 10px; align-self: start; }
  .b2b-status { align-items: flex-start; min-height: 36px; }
  .b2b-dot { margin-top: 5px; }
  .b2b-st { height: 36px; }
  .b2b-st > span { white-space: normal; }
}
/* dar kart */
@container (max-width: 440px) {
  .b2b-bar { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .b2b-kpis { width: 100%; }
  .b2b-tag { display: none; }
  .b2b-foot { padding: 9px 6px 10px; }
  .b2b-status { font-size: 12.5px; line-height: 17px; }
  .b2b-st { height: 34px; }
  .b2b-tab .b2b-l { display: none; }
  .b2b-tab .b2b-s { display: inline; }
  .b2b-panel .b2b-kpis { justify-content: flex-start; padding: 7px 10px 0; }
  .b2b-kpis { gap: 4px; flex-wrap: nowrap; }
  .b2b-kpis div { flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 3px 8px; border-radius: 10px; }
  .b2b-kpis div::after { border-radius: 12px; }
}
@container (max-width: 300px) {
  .b2b-kpis div { padding: 3px 5px; }
}
