/* playarchy — checkout & order page */
.checkout-page { padding: 34px 0 80px; position: relative; }
.checkout-page::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: -1;
  background: radial-gradient(600px 260px at 15% 0%, rgba(255,107,26,.13), transparent 70%), radial-gradient(600px 300px at 85% 0%, rgba(46,158,228,.12), transparent 70%); }

.co-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.co-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 10px 0 8px; }
.co-head p { color: var(--color-text-muted); }
.co-head p b { color: #fff; }
.co-eyebrow { display: inline-flex; gap: 7px; align-items: center; padding: 6px 14px; border-radius: 999px; font: 600 12px var(--font-main); letter-spacing: .06em; text-transform: uppercase;
  color: #22C55E; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); }

.co-alert { display: flex; gap: 10px; align-items: center; max-width: 1040px; margin: 0 auto 20px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: #FCA5A5; font-weight: 500; }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; max-width: 1080px; margin: 0 auto; align-items: start; }
.co-main { display: grid; gap: 18px; min-width: 0; }
.co-card { background: linear-gradient(180deg, rgba(21,38,67,.9), rgba(15,30,53,.9)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.co-card h2 { font-size: 1.35rem; margin-bottom: 16px; }
.co-step { display: flex; gap: 12px; align-items: center; }
.co-step span { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font: 700 15px var(--font-display); box-shadow: 0 0 0 5px rgba(255,107,26,.15); }
.co-muted { color: var(--color-text-dim); font-size: .88rem; }
.co-label { display: block; font: 600 .82rem var(--font-main); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 7px; }
.co-label:first-child { margin-top: 0; }
.co-input { width: 100%; padding: 15px 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: var(--color-bg); color: #fff; font: 500 1rem var(--font-main); outline: none; transition: border-color var(--tr), box-shadow var(--tr); }
.co-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(255,107,26,.15); }
.co-input.invalid { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,.15); }
.co-input-ico { position: relative; margin-bottom: 8px; }
.co-input-ico svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--color-text-dim); }
.co-input-ico .co-input { padding-left: 46px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.co-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* editions */
.co-editions { display: grid; gap: 10px; }
.co-ed input, .co-method input { position: absolute; opacity: 0; pointer-events: none; }
.co-ed-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: var(--color-bg); cursor: pointer; transition: all var(--tr); }
.co-ed-box b { color: #fff; font-family: var(--font-display); font-size: 1.08rem; }
.co-ed-box em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #16A34A; padding: 2px 7px; border-radius: 6px; margin-right: 6px; }
.co-ed-box strong { color: #fff; font: 700 1.2rem var(--font-display); }
.co-ed input:checked + .co-ed-box { border-color: var(--color-primary); background: rgba(255,107,26,.08); box-shadow: inset 0 0 0 1px var(--color-primary); }

/* methods */
.co-group-title { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 600 .8rem var(--font-main); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-dim); }
.co-group-title:first-of-type { margin-top: 0; }
.co-badge { text-transform: none; letter-spacing: 0; font-weight: 600; color: #22C55E; background: rgba(34,197,94,.1); padding: 3px 9px; border-radius: 999px; }
.co-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-methods.one { grid-template-columns: 1fr; }
.co-method { position: relative; display: block; }
.co-method-box { position: relative; display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: var(--color-bg); cursor: pointer; transition: all var(--tr); height: 100%; }
.co-method-box:hover { border-color: color-mix(in srgb, var(--coin) 60%, transparent); transform: translateY(-1px); }
.co-method-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.co-method-txt b { color: #fff; font: 700 1.05rem var(--font-display); }
.co-method-txt small { color: var(--color-text-dim); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-radio { margin-left: auto; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); transition: all var(--tr); }
.co-method input:checked + .co-method-box { border-color: var(--coin); background: color-mix(in srgb, var(--coin) 10%, var(--color-bg)); box-shadow: inset 0 0 0 1px var(--coin), 0 8px 24px color-mix(in srgb, var(--coin) 18%, transparent); }
.co-method input:checked + .co-method-box .co-radio { border-color: var(--coin); background: radial-gradient(circle, var(--coin) 0 45%, transparent 50%); }
.co-method input:focus-visible + .co-method-box { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.co-methods.error .co-method-box { border-color: rgba(239,68,68,.5); }
.co-cards { display: flex; gap: 6px; margin-left: auto; }
.co-cards i { display: grid; place-items: center; height: 24px; min-width: 38px; border-radius: 5px; background: #fff; font: italic 800 11px Arial, sans-serif; color: #1A1F71; }
.co-cards .mc { position: relative; background: #252525; }
.co-cards .mc b { position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 5px; }
.co-cards .mc b:first-child { left: 7px; background: #EB001B; } .co-cards .mc b:last-child { left: 15px; background: #F79E1B; mix-blend-mode: screen; }
.co-cards .ap { background: #000; color: #fff; font: 600 11px -apple-system, Arial, sans-serif; font-style: normal; }
.co-methods.one .co-radio { margin-left: 12px; }

.co-terms { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text-muted); font-size: .9rem; cursor: pointer; }
.co-terms input { margin-top: 3px; accent-color: var(--color-primary); width: 16px; height: 16px; }
.co-terms a { color: var(--color-accent); }
.co-wide { width: 100%; justify-content: center; display: flex; align-items: center; gap: 9px; }
.co-submit { font-size: 1.08rem; padding: 17px; }
.co-submit[disabled] { opacity: .5; pointer-events: none; }
.co-submit.loading { opacity: .8; pointer-events: none; }

/* summary */
.co-summary { position: sticky; top: 100px; }
.co-card-title { font-size: 1.05rem; color: var(--color-text-muted); margin-bottom: 16px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.co-item { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.co-item img { width: 84px; height: 126px; object-fit: cover; border-radius: 9px; box-shadow: 0 10px 22px rgba(0,0,0,.45); flex-shrink: 0; }
.co-item > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-item-title { color: #fff; font: 700 1.15rem/1.2 var(--font-display); }
.co-item-title:hover { color: var(--color-primary); }
.co-item-ed { color: var(--color-text-muted); font-size: .9rem; }
.co-chip { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--color-accent); background: rgba(46,158,228,.1); border: 1px solid rgba(46,158,228,.3); padding: 3px 9px; border-radius: 999px; }
.co-lines { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.co-lines > div { display: flex; justify-content: space-between; font-size: .93rem; }
.co-lines dt { color: var(--color-text-muted); }
.co-lines dd { color: #fff; font-weight: 600; }
.co-lines del { color: var(--color-text-dim); font-weight: 400; }
.co-lines .save dd, .co-lines .ok { color: #22C55E; }
.co-lines .total { margin-top: 4px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.1); align-items: baseline; }
.co-lines .total dt { color: #fff; font-weight: 600; }
.co-lines .total dd { font: 700 1.9rem var(--font-display); color: #fff; }
.co-perks { display: grid; gap: 10px; padding-top: 16px; }
.co-perks li { display: flex; gap: 10px; align-items: center; color: var(--color-text-muted); font-size: .9rem; }
.co-perks svg { color: var(--color-primary); flex-shrink: 0; }

/* progress */
.co-progress { display: flex; justify-content: center; gap: 0; max-width: 760px; margin: 0 auto 28px; counter-reset: s; }
.co-progress li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; color: var(--color-text-dim); text-align: center; }
.co-progress li::before { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 2px; background: rgba(255,255,255,.1); z-index: 0; }
.co-progress li:first-child::before { display: none; }
.co-progress li span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--color-bg-3); border: 2px solid rgba(255,255,255,.12); font: 700 14px var(--font-display); color: var(--color-text-muted); }
.co-progress li.done { color: #22C55E; } .co-progress li.done::before { background: #22C55E; }
.co-progress li.done span { background: #22C55E; border-color: #22C55E; color: #fff; }
.co-progress li.now { color: #fff; font-weight: 600; } .co-progress li.now::before { background: linear-gradient(90deg, #22C55E, var(--color-primary)); }
.co-progress li.now span { border-color: var(--color-primary); color: #fff; background: rgba(255,107,26,.2); box-shadow: 0 0 0 6px rgba(255,107,26,.12); }

.co-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(255,176,32,.12); color: #FFB020; }
.co-status.s-checking { background: rgba(46,158,228,.12); color: var(--color-accent); }
.co-status.s-paid, .co-status.s-delivered { background: rgba(34,197,94,.12); color: #22C55E; }
.co-status.s-expired, .co-status.s-cancelled { background: rgba(239,68,68,.12); color: #F87171; }

/* pay screen */
.co-pay-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.co-pay-head h2 { margin: 0 0 2px; }
.co-pay-amount { margin-left: auto; font: 700 1.8rem var(--font-display); color: #fff; }
.co-net { font-size: .88rem; color: var(--color-text-muted); }
.co-net b { color: var(--coin, #fff); }
.co-timer { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.3); color: #FFB020; font: 700 1.05rem var(--font-display); font-variant-numeric: tabular-nums; }
.co-timer.over { color: #F87171; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.co-crypto-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 24px; align-items: start; }
.co-qr-wrap { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.co-qr { width: 208px; height: 208px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--coin) 35%, transparent), 0 14px 30px rgba(0,0,0,.4); }
.co-qr img, .co-qr svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.co-copy-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--radius); background: var(--color-bg); border: 1px solid rgba(255,255,255,.1); }
.co-copy-field > span { flex: 1; min-width: 0; word-break: break-all; color: #fff; font-size: .92rem; line-height: 1.45; }
.co-copy-field.big > span { font: 600 1.35rem var(--font-display); color: var(--color-text-muted); }
.co-copy-field.big b { color: #fff; font-size: 1.6rem; }
.co-copy-field button, [data-copy].btn { cursor: pointer; }
.co-copy-field button { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: var(--color-surface-2); color: var(--color-text); transition: all var(--tr); }
.co-copy-field button:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.co-copy-field button.copied { background: #16A34A; border-color: #16A34A; color: #fff; }
.co-fields .co-muted { display: block; margin-top: 6px; }
.co-warn, .co-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.25); color: #FCD9A0; font-size: .9rem; line-height: 1.55; }
.co-warn svg, .co-note svg { flex-shrink: 0; color: #FFB020; margin-top: 2px; }
.co-warn b, .co-note b { color: #fff; }
.co-note { background: rgba(46,158,228,.08); border-color: rgba(46,158,228,.3); color: var(--color-text); }
.co-note svg { color: var(--color-accent); }
.co-paid-form { margin-top: 20px; display: grid; gap: 10px; }
.co-paid-form .co-label { margin: 0; }
.co-howto { counter-reset: h; display: grid; gap: 12px; margin-bottom: 20px; }
.co-howto li { counter-increment: h; display: flex; gap: 12px; align-items: flex-start; color: var(--color-text); }
.co-howto li::before { content: counter(h); flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(46,158,228,.15); color: var(--color-accent); font: 700 13px var(--font-display); }
.co-secure { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; color: var(--color-text-dim); font-size: .82rem; text-align: center; }

.co-wait { text-align: center; padding: 40px 28px; }
.co-wait p { max-width: 520px; margin: 0 auto 10px; color: var(--color-text-muted); }
.co-wait p b { color: #fff; }
.co-wait a { color: var(--color-accent); }
.co-spinner { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid rgba(255,255,255,.08); border-top-color: var(--color-primary); border-right-color: var(--color-accent); animation: coSpin 1s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.co-delivered { border-color: rgba(34,197,94,.4); }
.co-delivered h2 { display: flex; gap: 10px; align-items: center; color: #22C55E; }
.co-delivery { white-space: pre-wrap; word-break: break-word; background: var(--color-bg); border: 1px dashed rgba(34,197,94,.5); border-radius: var(--radius); padding: 18px; color: #fff; font: 500 .98rem/1.6 ui-monospace, Menlo, Consolas, monospace; margin-bottom: 12px; }
.co-back { text-align: center; } .co-back a { color: var(--color-text-muted); font-size: .9rem; } .co-back a:hover { color: var(--color-primary); }

.co-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 9999; background: #16A34A; color: #fff; font-weight: 600; padding: 11px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: all .25s ease; pointer-events: none; }
.co-toast.show { opacity: 1; transform: translate(-50%, 0); }

body.checkout .mobile-buybar { display: none !important; }

@media (max-width: 960px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .co-summary .co-perks, .co-summary .co-lines > div:not(.total) { display: none; }
  .co-summary .co-lines { padding-bottom: 0; border: 0; }
}
@media (max-width: 640px) {
  .co-card { padding: 18px; }
  .co-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-crypto-body { grid-template-columns: 1fr; }
  .co-pay-head { flex-wrap: wrap; }
  .co-cards { display: none; }
  .co-progress li { font-size: .7rem; }
}
section.co-main { padding: 0; }

/* ===== v2.4 — 2-option payment selector: Bank card | Cryptocurrency → coin ===== */
.co-paytypes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-paytypes.one { grid-template-columns: 1fr; }
.co-paytype { position: relative; display: block; }
.co-paytype input { position: absolute; opacity: 0; pointer-events: none; }
.co-paytype-box { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 12px; height: 100%;
  padding: 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: var(--color-bg); cursor: pointer; transition: all var(--tr); }
.co-paytype-box:hover { border-color: color-mix(in srgb, var(--coin) 60%, transparent); transform: translateY(-1px); }
.co-paytype-ico { grid-row: 1 / 3; display: flex; align-items: center; }
.co-coin-stack svg { margin-left: -10px; box-shadow: 0 0 0 2px #0A1628; border-radius: 50%; }
.co-coin-stack svg:first-child { margin-left: 0; }
.co-paytype-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.co-paytype-txt b { color: #fff; font: 700 1.12rem var(--font-display); }
.co-paytype-txt small { color: var(--color-text-dim); font-size: .76rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-paytype-box .co-cards, .co-paytype-box .co-badge { grid-column: 2; grid-row: 2; justify-self: start; margin: 4px 0 0; }
.co-paytype-box .co-cards i { height: 20px; min-width: 32px; font-size: 10px; }
.co-paytype-box .co-cards .mc b { width: 12px; height: 12px; top: 4px; }
.co-paytype-box .co-cards .mc b:first-child { left: 5px; } .co-paytype-box .co-cards .mc b:last-child { left: 13px; }
.co-paytype-box .co-badge { font-size: .72rem; }
.co-paytype-box .co-radio { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.co-paytype input:checked + .co-paytype-box { border-color: var(--coin); background: color-mix(in srgb, var(--coin) 10%, var(--color-bg));
  box-shadow: inset 0 0 0 1px var(--coin), 0 8px 24px color-mix(in srgb, var(--coin) 18%, transparent); }
.co-paytype input:checked + .co-paytype-box .co-radio { border-color: var(--coin); background: radial-gradient(circle, var(--coin) 0 45%, transparent 50%); }
.co-paytype input:focus-visible + .co-paytype-box { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.co-paysel.error .co-paytype-box, .co-coins.error .co-method-box { border-color: rgba(239,68,68,.6); animation: pa-shake .35s; }
@keyframes pa-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.co-coins { display: none; margin-top: 16px; }
.co-coins > .co-group-title { margin: 0 0 10px; }
.co-paysel.is-crypto .co-coins { display: block; animation: co-reveal .3s ease; }
@keyframes co-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.co-coins .co-methods { padding: 2px; }
@media (max-width: 640px) {
  .co-paytypes { grid-template-columns: 1fr; }
  .co-coins .co-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v2.4.1 — crypto card: all coins visible */
.co-paytype-box.is-crypto-box { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 6px 10px; }
.is-crypto-box .co-paytype-txt { grid-column: 1; grid-row: 1; }
.is-crypto-box .co-crypto-row { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.is-crypto-box .co-crypto-row .co-badge { margin: 0; font-size: .72rem; }
.is-crypto-box .co-coin-stack { display: flex; align-items: center; }
.is-crypto-box .co-coin-stack svg { margin-left: -7px; box-shadow: 0 0 0 2px #0A1628; border-radius: 50%; transition: transform .2s; }
.is-crypto-box .co-coin-stack svg:first-child { margin-left: 0; }
.co-paytype-box.is-crypto-box:hover .co-coin-stack svg { transform: translateY(-2px); }
.is-crypto-box .co-crypto-list { grid-column: 1 / 3; grid-row: 3; color: var(--color-text-dim); font-size: .74rem; letter-spacing: .02em; line-height: 1.35; white-space: normal; }
.is-crypto-box .co-radio { grid-column: 2; grid-row: 1 / 3; align-self: start; margin: 2px 0 0; }
