/* v8 — ödeme/başlatma akışı (Kira). v7.css'ten sonra yüklenir.
   Talep akışı: piksel "seviye yolu" (1 Plan → 2 Bilgiler → 3 Onay), piksel panelde plan özeti,
   oyun düğmesiyle gönderim. Oyun öğeleri süs: hiçbiri bilgiyi taşımaz ya da adımı engellemez. */

.co { position: relative; }
.co .co-form { max-width: none; gap: 0; margin-top: 8px; }

/* ── Adım yolu ── */
.co-track { position: relative; margin: 22px 0 6px; padding-top: 30px; }
.co-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; padding: 0 4px; }
/* Kareleri bağlayan kesik piksel yol; tamamlanan bölüm nane rengine döner */
.co-step + .co-step::before {
  content: ""; position: absolute; top: 13px; height: 4px; z-index: 0;
  left: calc(-50% + 22px); right: calc(50% + 22px);
  background: repeating-linear-gradient(90deg, var(--px-path) 0 6px, transparent 6px 10px);
}
.co-step.is-done::before, .co-step.is-current::before { background: repeating-linear-gradient(90deg, var(--px-mint) 0 6px, transparent 6px 10px); }
.co-tile {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px;
  font: 700 .9rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--dim);
  background: var(--surface); --edge: var(--px-dim); box-shadow: var(--pxb);
}
.co-step.is-current .co-tile { color: var(--fg); --edge: var(--px-violet); background: var(--surface-2); box-shadow: var(--pxb), 4px 4px 0 0 var(--drop); }
.co-step.is-done .co-tile { color: var(--surface); background: var(--px-mint); --edge: var(--px-mint); }
.co-lbl { font: 500 .88rem/1.3 var(--font-body); color: var(--muted); overflow-wrap: anywhere; }
.co-step.is-current .co-lbl { color: var(--fg); font-weight: 650; }
.co-step.is-done .co-lbl { color: var(--fg); }
/* Duran piksel ajan: o anki adımın karesinin üstünde (konumu JS ile, transform) */
.co-agent {
  position: absolute; left: 0; top: 0; width: 22px; height: 26px; pointer-events: none;
  background: var(--px-violet); -webkit-mask: var(--sprite-agent) center / contain no-repeat; mask: var(--sprite-agent) center / contain no-repeat;
}
.co-agent.is-walking { animation: co-walk .16s steps(1, end) infinite; }
.co-track.is-complete .co-agent { background: var(--px-mint); }
@keyframes co-walk { 50% { -webkit-mask-image: var(--sprite-agent-b); mask-image: var(--sprite-agent-b); } }

/* ── Bölümler ── */
.co-sec { display: grid; gap: 14px; padding: 22px 0 4px; border-top: 2px solid var(--line); margin-top: 18px; }
.co-h { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 1.2rem/1.2 var(--font-display); color: var(--fg); }
.co-num {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  font: 700 .85rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--surface); background: var(--px-violet);
}
.co-sec:nth-of-type(2) .co-num { background: var(--px-sky); }
.co-sec:nth-of-type(3) .co-num { background: var(--px-pink); }
.co .seg label { min-height: 44px; border: 0; --edge: var(--line-2); box-shadow: var(--pxb); background: var(--surface); }
.co .seg label:has(input:checked) { --edge: var(--fg); }
.co .actions-row { margin: 0; }
.co .actions-row .btn-sm { min-height: 44px; }
.co .watch-cta { margin: 0; border: 0; --edge: var(--line-hi); box-shadow: var(--pxb); }
.co #action-status:empty { display: none; }
.co .form input[type="text"], .co .form input[type="email"], .co .form input[type="tel"], .co .form textarea,
.co-form input[type="text"], .co-form input[type="email"], .co-form input[type="tel"], .co-form textarea {
  border: 0; --edge: var(--line-2); box-shadow: var(--pxb);
}
.co-form input:focus, .co-form textarea:focus { --edge: var(--lilac); box-shadow: var(--pxb), 4px 4px 0 0 var(--drop); }
.co-form [aria-invalid="true"] { --edge: var(--warn); }
.co-form .err { display: block; }
.co-form .err:empty { display: none; }
.co-form .check { min-height: 44px; align-items: center; color: var(--muted); }
.co-form .check input { width: 24px; height: 24px; margin: 0; }
.co-form .check a { color: var(--lilac); }

/* ── Plan özeti: piksel panel ── */
.co-sum { background: var(--surface-2); --edge: var(--line-2); box-shadow: var(--pxb), 8px 8px 0 0 var(--drop); padding: 18px clamp(14px, 3vw, 22px); display: grid; gap: 14px; }
.co-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.co-sum-title { margin: 0; font: 500 1.1rem/1.2 var(--font-display); color: var(--fg); }
.co-sum-n { margin-left: 6px; font: 500 .86rem var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.co-est { padding: 3px 8px; background: var(--px-amber); color: #1A1204; font: 650 .78rem/1.4 var(--font-body); }
.co-mode { margin: 0; font-size: .92rem; color: var(--muted); }
.co-mode strong { color: var(--fg); font-weight: 650; }
.co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.co-lines li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; background: var(--surface); --edge: var(--line); box-shadow: var(--pxb); font-size: .93rem; }
.co-ln-px { width: 10px; height: 10px; background: var(--px-violet); }
.co-lines li:nth-child(5n+2) .co-ln-px { background: var(--px-sky); }
.co-lines li:nth-child(5n+3) .co-ln-px { background: var(--px-pink); }
.co-lines li:nth-child(5n+4) .co-ln-px { background: var(--px-mint); }
.co-lines li:nth-child(5n+5) .co-ln-px { background: var(--px-amber); }
.co-ln-main { display: grid; gap: 2px; min-width: 0; }
.co-ln-name { font-weight: 600; overflow-wrap: anywhere; }
.co-ln-meta { color: var(--muted); font-size: .84rem; }
.co-ln-price { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.co-facts, .co-grand { margin: 0; display: grid; gap: 0; }
.co-facts > div, .co-grand > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 7px 0; border-bottom: 2px dashed var(--line); }
.co-facts dt, .co-grand dt { color: var(--muted); font-size: .9rem; }
.co-facts dd, .co-grand dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; margin-left: auto; }
.co-grand { padding: 4px 14px; background: var(--surface); --edge: var(--px-violet); box-shadow: var(--pxb); }
.co-grand > div:last-child { border-bottom: 0; }
.co-grand .co-big dt { color: var(--fg); font-weight: 650; }
.co-grand .co-big dd { font: 700 clamp(1.35rem, 3.4vw, 1.7rem)/1.15 var(--font-body); letter-spacing: -0.02em; text-shadow: 3px 3px 0 var(--deep); }
:root[data-theme="light"] .co-grand .co-big dd { text-shadow: 3px 3px 0 rgba(61, 28, 158, .14); }
.co-grand .co-strong dt { color: var(--fg); }
.co-fine { margin: 0; color: var(--dim); font-size: .84rem; }
.co-sum .warn-box { margin: 0; border: 0; box-shadow: inset 0 0 0 2px var(--warn-line); }

/* ── Onay bölümü ── */
.co-nopay { margin: 0; padding: 12px 14px 12px 34px; position: relative; background: var(--surface-2); color: var(--fg); font-size: .93rem; --edge: var(--px-mint); box-shadow: var(--pxb); }
.co-nopay::before { content: ""; position: absolute; left: 14px; top: 1.05em; width: 8px; height: 8px; background: var(--px-mint); }
.co-next-box { display: grid; gap: 6px; }
.co-next-h { margin: 0; font-weight: 650; font-size: .95rem; }
.co-next { margin: 0; padding: 0; list-style: none; counter-reset: co; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.co-next li { counter-increment: co; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; }
.co-next li::before { content: counter(co); display: grid; place-items: center; width: 22px; height: 22px; font: 700 .78rem/1 var(--font-body); color: var(--fg); background: var(--tint-2); box-shadow: inset 0 0 0 2px var(--line-2); }
.co .notice { border: 0; box-shadow: inset 0 0 0 2px var(--line); }

/* ── Gönder: oyun düğmesi; basınca iner, gönderirken "şarj" çubuğu dolar ── */
.co-submit { position: relative; }
.co-go { position: relative; overflow: hidden; min-height: 52px; padding: 0 22px; gap: 10px; font-size: 1rem; }
.co-go-px { flex: none; width: 16px; height: 19px; background: currentColor; -webkit-mask: var(--sprite-agent) center / contain no-repeat; mask: var(--sprite-agent) center / contain no-repeat; transition: transform .12s steps(2, end); }
.co-go:hover .co-go-px { transform: translateX(3px); }
.co-go:active .co-go-px { transform: translateX(6px); }
.co-go::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--px-mint) 0 6px, transparent 6px 8px);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.co-go.is-charging { cursor: progress; opacity: 1; }
.co-go.is-charging::after { animation: co-charge 1.2s steps(10, end) infinite; }
.co-go.is-charging .co-go-px { animation: co-walk .16s steps(1, end) infinite; }
@keyframes co-charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.co-go:disabled { cursor: progress; }

/* Başarı: sonuç metni net; kutlama yalnız süs */
.co-ok { display: grid; gap: 6px; border: 0 !important; --edge: var(--px-mint); box-shadow: var(--pxb); }
.co-ok p { margin: 0; }
.co-ok-h { font: 500 1.15rem/1.2 var(--font-display); color: var(--fg); }
.status-box:focus { outline: none; }
.status-box:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.co-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.co-burst .co-bit { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; }
.co-burst .co-bot { position: absolute; left: -9px; top: -40px; width: 18px; height: 21px; opacity: 0; -webkit-mask: var(--sprite-agent) center / contain no-repeat; mask: var(--sprite-agent) center / contain no-repeat; }

@media (max-width: 560px) {
  .co-go { width: 100%; justify-content: center; }
  .co-lines li { grid-template-columns: 10px minmax(0, 1fr); }
  .co-ln-price { grid-column: 2; text-align: left; }
  .co-lbl { font-size: .8rem; }
}

/* Hareket kapalı / azaltılmış: ajan durur, şarj çubuğu sabit yarı dolu görünür */
:root[data-motion="off"] .co-agent, :root[data-motion="off"] .co-go-px { animation: none !important; transition: none; }
:root[data-motion="off"] .co-go.is-charging::after { animation: none; transform: scaleX(.6); }
:root[data-motion="off"] .co-burst { display: none; }
:root:not([data-motion="on"]) .co-agent, :root:not([data-motion="on"]) .co-go-px { animation: none !important; transition: none; }
:root:not([data-motion="on"]) .co-go.is-charging::after { animation: none; transform: scaleX(.6); }

/* Mobil fiyat çubuğu: piksel yazıda 2/8 ve 5/8 karışıyordu (₺22.000 → ₺88.000 gibi okunuyordu); fiyat her zaman Geist */
.mb-price { font-family: var(--font-body) !important; font-variant-numeric: tabular-nums; }
