/* ===================================================================
   Checkout Modal — sipariş özeti → giriş → ödeme → başarı
   =================================================================== */

.co-backdrop {
  position: fixed; inset: 0;
  background: rgba(16, 20, 29, .82);   /* PERF: backdrop blur kaldırıldı (modal açılış hızı) */
  z-index: 260;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.co-backdrop.is-open { display: flex; animation: wzFade .25s ease; }

.co-modal {
  width: 100%;
  max-width: 760px;
  background: var(--c-surface);
  border-radius: 24px;
  box-shadow: 0 50px 120px rgba(0,0,0,.4);
  overflow: hidden;
  position: relative;
  animation: wzPop .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
}

.co-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.06);
  display: grid; place-items: center;
  color: var(--c-ink-soft);
  transition: all .15s;
  z-index: 5;
}
.co-close:hover { background: var(--c-coral); color: #fff; transform: rotate(90deg); }
.co-close svg { width: 14px; height: 14px; }

/* progress */
.co-progress {
  padding: 22px 30px 16px;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, #fff 0%, #FAFAF8 100%);
  flex-shrink: 0;
}
.co-progress-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  /* sağ üstteki kapat (X) butonu için yer aç → adım ismi X'in altına girmesin */
  padding-right: 46px;
}
.co-progress-top .step-name {
  color: var(--c-ink); font-size: 13.5px;
  text-transform: none; letter-spacing: -.005em;
}
.co-bar { height: 6px; background: var(--c-bg-2); border-radius: 3px; overflow: hidden; }
.co-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--c-mint), var(--c-mint-deep));
  border-radius: 3px; width: 0%;
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}

.co-body { flex: 1; overflow-y: auto; padding: 26px 30px; min-height: 0; }
.co-step { display: none; animation: fadeUp .3s ease; }
.co-step.is-active { display: block; }
.co-step h3 {
  font-size: 20px; line-height: 1.2; letter-spacing: -.015em;
  margin: 0 0 6px; font-weight: 800;
}
.co-step .hint { font-size: 13.5px; color: var(--c-ink-soft); margin: 0 0 18px; }

/* ----- STEP 1: cart summary ----- */
.co-product-card {
  display: flex; gap: 14px;
  padding: 14px;
  background: var(--c-bg-2);
  border-radius: 14px;
  margin-bottom: 16px;
  align-items: center;
}
.co-product-thumb {
  width: 70px; height: 88px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.co-product-thumb svg { width: 100%; display: block; }
.co-product-meta b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.005em; line-height: 1.3; margin-bottom: 4px; }
.co-product-meta span { display: block; font-size: 12.5px; color: var(--c-ink-soft); margin-bottom: 6px; }
.co-product-meta .px {
  font-size: 13px; font-weight: 800;
  color: var(--c-mint-deep);
}

.co-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.co-list .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 13.5px;
  color: var(--c-ink-soft);
}
.co-list .row:last-child { border-bottom: none; }
.co-list .row b { color: var(--c-ink); font-weight: 700; }
.co-list .row.discount b { color: var(--c-coral); }
/* Riode/demo temalı sayfalar global `.row{flex-wrap:wrap}` + `.row>*{width:100%}` bastırıyor →
   özet satırı label/fiyatı alt alta diziyordu. Modal özetini o sızıntıya karşı sağlamlaştır:
   label solda (uzunsa kendi içinde sarar), fiyat sağda tek satır. 4 modalda birebir aynı. */
.co-list .row { flex-wrap: nowrap; gap: 12px; }
.co-list .row > * { width: auto; }
.co-list .row > span {
  flex: 1 1 auto; min-width: 0;
  font-size: 14.5px; font-weight: 700; color: var(--c-ink);
}
.co-list .row > b { flex: 0 0 auto; white-space: nowrap; }
/* Domain modalı: özet satırlarını (başlık + fiyat) biraz daha büyük göster (tipe özel) */
.co-type-domain .co-list .row { font-size: 15px; }
.co-type-domain .co-list .row > span { font-size: 16px; }
.co-type-domain .co-list .row > b { font-size: 15.5px; }

.co-coupon {
  display: flex; gap: 8px;
  padding: 8px;
  background: var(--c-bg-2);
  border-radius: 12px;
  margin-bottom: 16px;
}
.co-coupon input {
  flex: 1;
  font: inherit; font-size: 13.5px;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: var(--c-surface);
  outline: none;
  transition: border-color .15s;
}
.co-coupon input:focus { border-color: var(--c-mint); }
.co-coupon input::placeholder { color: var(--c-muted); }
.co-coupon button {
  padding: 10px 18px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700; font-size: 13px;
  transition: background .15s;
}
.co-coupon button:hover { background: #000; }
.co-coupon-msg {
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.co-coupon-msg.show { display: block; }
.co-coupon-msg.ok  { background: var(--c-mint-soft); color: var(--c-mint-deep); }
.co-coupon-msg.bad { background: var(--c-coral-soft); color: var(--c-coral); }

.co-totals {
  border-top: 2px solid var(--c-ink);
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14.5px;
}
.co-totals .v {
  font-size: 24px; font-weight: 800; letter-spacing: -.01em;
  color: var(--c-ink);
}

/* ----- STEP 2: identity / login ----- */
.co-id-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.co-id-tab {
  padding: 14px 12px;
  background: var(--c-surface);
  border: 2px solid var(--c-line);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.co-id-tab:hover:not(:disabled) { border-color: var(--c-ink); transform: translateY(-2px); }
.co-id-tab.is-active {
  border-color: var(--c-mint);
  background: var(--c-mint-soft);
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .12);
}
.co-id-tab:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.co-id-tab .ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--c-bg-2);
  color: var(--c-ink);
  display: grid; place-items: center;
  margin: 0 auto 8px;
}
.co-id-tab.is-active .ic { background: var(--c-surface); color: var(--c-mint-deep); }
.co-id-tab .ic svg { width: 18px; height: 18px; }
.co-id-tab b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.co-id-tab span { display: block; font-size: 11.5px; color: var(--c-ink-soft); line-height: 1.4; }

.co-form { display: flex; flex-direction: column; gap: 12px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field label {
  font-size: 12px; font-weight: 700;
  color: var(--c-ink-soft);
}
.co-field label .req { color: var(--c-coral); }
.co-field input {
  font-family: inherit; font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  transition: all .15s;
  color: var(--c-ink);
}
.co-field input:focus {
  outline: none;
  border-color: var(--c-mint);
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .12);
}
.co-field.is-error input { border-color: var(--c-coral); }
.co-field .err {
  display: none;
  font-size: 11.5px; color: var(--c-coral);
}
.co-field.is-error .err { display: block; }

.co-login-disabled {
  background: var(--c-bg-2);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--c-ink-soft);
}
.co-login-disabled b { display: block; font-size: 14px; color: var(--c-ink); margin-bottom: 4px; }

/* ----- Modal auth (giriş / hızlı kayıt) — login ekranı gibi ferah aralık + güvenlik sorusu ----- */
.co-auth .co-login, .co-auth .co-register { flex-direction: column; gap: 15px; }   /* alanlar birbirinden uzak */
/* Güvenlik sorusu — musteri-girisi tasarımı: solda rakam kutusu (gradient+çapraz tarama), sağda input */
.co-auth .co-cap-row { display: grid; grid-template-columns: minmax(100px, 132px) 1fr; gap: 10px; align-items: stretch; }
.co-auth .co-cap-q {
  position: relative; overflow: hidden; user-select: none; min-height: 46px;
  border: 1.5px solid var(--c-line); border-radius: 12px;
  background: linear-gradient(135deg, var(--c-bg-2), var(--c-line));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; letter-spacing: .06em; color: var(--c-ink);
}
.co-auth .co-cap-q::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(0,0,0,.06) 49%, rgba(0,0,0,.06) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0,0,0,.05) 49%, rgba(0,0,0,.05) 51%, transparent 52%);
  background-size: 8px 8px;
}
@media (max-width: 480px) { .co-auth .co-cap-row { grid-template-columns: 1fr; } }
.co-auth .co-cap-err { display: none; color: var(--c-coral); font-size: 12px; font-weight: 600; margin-top: 2px; }
.co-auth-toggle { font-size: 14.5px !important; margin: 8px 0 0 !important; color: var(--c-ink-soft); }
.co-auth-toggle a { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
/* güvenlik sorusu doğru cevaplanana kadar buton görsel olarak da pasif */
.co-auth .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.2); }

/* ----- STEP 3: payment ----- */
.co-pay-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.co-pay-tab {
  flex: 1 1 0; min-width: 0;   /* görünür yöntemler tek satırda eşit genişlik (3 varsa 3 yan yana, 2 varsa 2) */
  padding: 16px;
  background: var(--c-surface);
  border: 2px solid var(--c-line);
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  position: relative;
}
.co-pay-tab:hover:not(:disabled) { border-color: var(--c-ink); transform: translateY(-2px); }
.co-pay-tab.is-active {
  border-color: var(--c-mint);
  background: var(--c-mint-soft);
}
.co-pay-tab:disabled {
  opacity: .5; cursor: not-allowed;
}
.co-pay-tab .ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.co-pay-tab.kart .ic { background: var(--c-indigo-soft); color: var(--c-indigo); }
.co-pay-tab.havale .ic { background: var(--c-mint-soft); color: var(--c-mint-deep); }
.co-pay-tab.kredi .ic { background: var(--c-amber-soft); color: #B47F25; }
.co-pay-tab.kapida .ic { background: var(--c-coral-soft); color: var(--c-coral); }
.co-pay-tab .ic svg { width: 20px; height: 20px; }
.co-pay-tab b { display: block; font-size: 14px; font-weight: 800; }
.co-pay-tab span { display: block; font-size: 11.5px; color: var(--c-ink-soft); margin-top: 2px; }
.co-pay-tab .lock-tag {
  position: absolute; top: 8px; right: 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  background: var(--c-bg-2);
  color: var(--c-muted);
  padding: 3px 8px;
  border-radius: 999px;
}

.co-pay-content { display: none; }
.co-pay-content.is-active { display: block; animation: fadeUp .25s ease; }

/* credit card */
.co-cc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.co-cc-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* havale banks */
.co-banks { display: flex; flex-direction: column; gap: 10px; }
.co-bank {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.co-bank.is-selected {
  border-color: var(--c-mint);
  box-shadow: inset 0 0 0 1px var(--c-mint);
  background: var(--c-mint-wash, #EAFBF1);
}
.co-bank .b-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.co-bank.is { background: linear-gradient(135deg, #FFD200, #FFA500); color: #1A1F2E; }
.co-bank.zb .b-logo { background: linear-gradient(135deg, #00A1DE, #006B99); }
.co-bank.gp .b-logo { background: linear-gradient(135deg, #E91E63, #C2185B); }
.co-bank.yk .b-logo { background: linear-gradient(135deg, #003876, #001F3D); }
.co-bank b { display: block; font-size: 13.5px; font-weight: 800; }
.co-bank .iban {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--c-ink-soft);
  margin-top: 2px;
  letter-spacing: .03em;
}
.co-bank .copy {
  margin-left: auto;
  background: var(--c-bg-2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px; font-weight: 700;
  color: var(--c-ink);
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.co-bank .copy:hover { background: var(--c-ink); color: #fff; }
.co-bank .copy.is-copied { background: var(--c-mint); color: #fff; }
.co-bank .copy svg { width: 12px; height: 12px; }

/* credit balance */
.co-credit-card {
  background: linear-gradient(135deg, var(--c-amber-soft) 0%, #fff 70%);
  border: 1.5px solid #F4DBA8;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
}
.co-credit-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.co-credit-row .label { font-size: 12.5px; color: var(--c-ink-soft); font-weight: 600; }
.co-credit-row b {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.01em;
  color: var(--c-ink);
}
.co-credit-row.use b {
  background: linear-gradient(135deg, #B47F25, var(--c-amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.co-credit-warn {
  background: var(--c-coral-soft);
  color: var(--c-coral);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
}
.co-credit-warn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* bedelsiz (0 tutar / hediye) — ödeme adımı yerine geçen onay kartı */
.co-free-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--c-mint-soft) 0%, #fff 72%);
  border: 1.5px solid var(--c-mint);
  border-radius: 14px;
  padding: 18px;
}
.co-free-ic { font-size: 30px; line-height: 1; flex-shrink: 0; }
.co-free-txt { display: flex; flex-direction: column; gap: 4px; }
.co-free-title { font-size: 15px; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; }
.co-free-sub { font-size: 12.5px; color: var(--c-ink-soft); line-height: 1.5; }
.co-free-sub b { color: var(--c-mint-deep); font-weight: 800; }

/* ----- STEP 4: success ----- */
.co-success {
  text-align: center;
  padding: 14px 0;
}
.co-success .ic {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-mint) 0%, var(--c-mint-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 50px rgba(var(--c-accent-rgb), .26);
  animation: wzPop .5s cubic-bezier(.2, 1.4, .3, 1);
}
.co-success .ic svg { width: 42px; height: 42px; }
.co-success h2 {
  font-size: 26px; letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 8px; font-weight: 800;
}
.co-success p { font-size: 15.5px; line-height: 1.55; color: var(--c-ink-soft); margin: 0 0 22px; }

.co-order-card {
  background: var(--c-mint-soft);
  border: 1px solid #B8E6D4;
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  margin-bottom: 18px;
}
.co-order-card b { display: block; font-size: 13px; color: var(--c-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.co-order-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-mint-deep);
  letter-spacing: .04em;
}
.co-order-card .lines {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed #B8E6D4;
  font-size: 14.5px;
}
.co-order-card .lines > div {
  display: flex; justify-content: space-between;
  color: var(--c-ink-soft);
}
.co-order-card .lines > div b {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14.5px;
  color: var(--c-ink);
  margin: 0;
  font-weight: 700;
}
.co-order-card .lines > div.discount b { color: var(--c-coral); }
.co-order-card .lines .ln-div { border-top: 1px dashed #B8E6D4; margin: 6px 0 2px; }
.co-order-card .lines .ln-total b { font-size: 16px; color: var(--c-mint-deep); }

.co-success .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* Gateway doğrulama (3DS) — modal İÇİ iframe overlay (sayfadan çıkılmaz) */
.co-gw {
  position: absolute; inset: 0; z-index: 10;
  background: var(--c-surface);
  display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden;
  animation: wzFade .2s ease;
}
.co-gw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--c-line);
  font-weight: 800; font-size: 14px; color: var(--c-ink);
  background: linear-gradient(180deg, #fff 0%, #FAFAF8 100%);
  flex-shrink: 0;
}
.co-gw-cancel {
  padding: 7px 14px; border-radius: 999px;
  background: var(--c-bg-2); color: var(--c-ink-soft);
  font-weight: 700; font-size: 12.5px; transition: all .15s;
}
.co-gw-cancel:hover { background: var(--c-coral-soft); color: var(--c-coral); }
.co-gw-body { flex: 1; min-height: 0; background: #fff; }
.co-gw-frame { width: 100%; height: 100%; border: 0; display: block; }
.co-gw-foot {
  padding: 10px 20px; border-top: 1px solid var(--c-line);
  font-size: 12px; color: var(--c-ink-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #FAFAFA; flex-shrink: 0;
}
.co-gw-newtab { color: var(--c-mint-deep); font-weight: 700; white-space: nowrap; }
/* Popup fallback butonu — banka 3DS iframe'de açılmazsa ayrı pencerede açar (co-gw-popup) */
.co-gw-popup {
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  background: rgba(var(--c-accent-rgb), .12); color: var(--c-mint-deep);
  font-weight: 700; font-size: 12.5px; transition: all .15s;
}
.co-gw-popup:hover { background: var(--c-mint); color: #fff; }
@media (max-width: 560px) {
  .co-gw-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .co-gw-popup { width: 100%; padding: 12px; font-size: 13.5px; }   /* dokunma hedefi ≥44px */
  .co-gw-status { text-align: center; }
}

/* footer */
.co-foot {
  padding: 16px 30px;
  border-top: 1px solid var(--c-line);
  display: flex; justify-content: space-between; align-items: center;
  background: #FAFAFA;
  flex-shrink: 0;
  gap: 14px;
}
.co-foot .total-mini {
  font-size: 12.5px; color: var(--c-ink-soft);
}
.co-foot .total-mini b {
  display: block; font-size: 18px; font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -.005em;
}
.co-foot .btns { display: flex; gap: 8px; }
.co-foot .btn { padding: 12px 22px; font-size: 13.5px; }
.co-foot .btn-back {
  background: transparent;
  color: var(--c-ink-soft);
  padding: 12px 14px;
}
.co-foot .btn-back:hover { color: var(--c-ink); }
.co-foot .btn-back.hidden { visibility: hidden; }

/* Riode temalı sayfalarda (domain-sorgula) `.riode-rounded-skin .btn` modal butonlarını
   köşeli (3px) yapıyordu; temiz sayfalarda pill (999px). id-özgüllüğüyle sabitle →
   4 modalda butonlar birebir aynı pill görünsün. */
#checkout-modal .btn { border-radius: 999px; }

@media (max-width: 640px) {
  .co-backdrop { padding: 12px; }
  .co-modal { border-radius: 18px; max-height: calc(100vh - 24px); }
  .co-progress { padding: 16px 20px 12px; }
  .co-body { padding: 18px 20px; }
  .co-foot { padding: 14px 22px; flex-wrap: wrap; }
  .co-id-tabs { grid-template-columns: 1fr; }
  .co-pay-tabs { flex-direction: column; }
  .co-row, .co-cc-row, .co-cc-row.three { grid-template-columns: 1fr; }
  .co-product-card { flex-direction: column; align-items: flex-start; }
  .co-product-thumb { width: 100%; height: 120px; }
  /* footer: toplam üstte tam satır, butonlar altta tam satır, ileri butonu genişler */
  .co-foot .total-mini { flex: 1 1 100%; }
  .co-foot .btns { flex: 1 1 100%; }
  .co-foot .btns [data-co-next] { flex: 1; justify-content: center; }
  /* sipariş tamamlandı ekranı: mobilde scroll'suz sığsın (ikon/başlık/kart kompakt) */
  .co-success { padding: 2px 0; }
  .co-success .ic { width: 60px; height: 60px; margin-bottom: 12px; }
  .co-success .ic svg { width: 28px; height: 28px; }
  .co-success h2 { font-size: 20px; }
  .co-success p { font-size: 14px; margin: 0 0 14px; }
  .co-order-card { padding: 14px; margin-bottom: 14px; }
  .co-order-card .num { font-size: 19px; }
  .co-success .actions .btn { padding: 11px 16px; font-size: 13px; }
}

/* ===================================================================
   İşlem kilidi overlay'i — sipariş/ödeme sunucudayken (.is-processing)
   Modal içi TÜM etkileşimi kapatır, "işleniyor" durumunu net gösterir.
   Amaç: sipariş yarıda bırakılıp tutarsız duruma düşemesin + kullanıcı
   işlem biterken başka bir şeyi değiştiremesin (js: coLock/coUnlock).
   =================================================================== */
.co-processing {
  position: absolute; inset: 0;
  z-index: 20;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 24px;
}
.co-backdrop.is-processing .co-processing { display: flex; }
/* İşlem sürerken kapatma butonu da tıklanamaz (js guard'a ek görsel/erişim engeli) */
.co-backdrop.is-processing .co-close { pointer-events: none; opacity: .35; }

.co-processing-box {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 320px;
}
.co-spinner {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(var(--c-accent-rgb), .18);
  border-top-color: var(--c-mint);   /* accent — tweaks paletine bağlı */
  animation: coSpin .7s linear infinite;
  margin-bottom: 16px;
}
@keyframes coSpin { to { transform: rotate(360deg); } }
.co-processing-title {
  font-size: 17px; font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.co-processing-sub {
  font-size: 13.5px; line-height: 1.5;
  color: var(--c-ink-soft);
}

/* Dark mode — tweaks.css :root[data-theme=dark] token'larına uyumlu */
:root[data-theme="dark"] .co-processing { background: rgba(15, 19, 28, .8); }

@media (max-width: 560px) {
  .co-processing { border-radius: 0; padding: 20px; }
  .co-spinner { width: 40px; height: 40px; margin-bottom: 14px; }
  .co-processing-title { font-size: 15.5px; }
  .co-processing-sub { font-size: 13px; }
}

/* ── TOPLU YENİLEME satır seçimi (2026-07-27) ────────────────────────────────
   Müşteri panelinin global input reset'i native checkbox kutusunu gizleyebiliyor
   (Yaklaşan Ödemeler tablosunda aynı sorun yaşandı) → kutu burada kendi çizimiyle
   basılır. `.co-batch-row.is-off` = seçimi kaldırılmış satır (soluk, tutara girmez). */
.co-batch-cb {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  width: 18px; height: 18px; margin: 0; padding: 0; flex: 0 0 auto; vertical-align: middle;
  border: 1.5px solid #cbd5e1; border-radius: 5px; background: #fff;
  cursor: pointer; position: relative; box-shadow: none;
  transition: background .15s, border-color .15s;
}
.co-batch-cb:hover { border-color: var(--c-mint-deep, #0d8a64); }
.co-batch-cb:checked { background: var(--c-mint-deep, #0d8a64); border-color: var(--c-mint-deep, #0d8a64); }
.co-batch-cb:checked::after {
  content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.co-batch-row.is-off { opacity: .48; }
.co-batch-row.is-off select { pointer-events: none; }

/* ===================================================================
   YENİLEME EKRANI v2 (kullanıcı isteği 2026-07-30)
   -------------------------------------------------------------------
   Eski toplu-yenileme çizimi (.co-batch-row + satır içi style'lar)
   DOKUNULMADAN duruyor; geri dönmek için:  window.__CO_YENILEME_TASARIM = 'v1'

   Neden yeniden yapıldı:
     · Aynı tutar iki yerde: satır fiyatı + özet satırı, ayrıca "Toplam"
       hem gövdede (.co-totals) hem alt çubukta (.co-foot) yazıyordu.
     · Üç başlık üst üste biniyordu (Yenilenecek hizmetler / çekirdek
       bloğu / bağlı hizmetler) ve her biri farklı kutu diliyle çizilmişti.
     · Renkler SABİT hex'ti (#f2f8fd, #0b5f8a…) → tema paletiyle uyumsuzdu.
       v2 yalnız --c-* tokenlarını kullanır, demo teması değişince uyar.

   Tasarım kuralı: TEK kart dili, tek çerçeve kalınlığı, iç içe renkli
   kutu yok. Seçim alanında fiyat (ne seçtiğini görmek için), para
   dökümü özet bölümünde, tek toplam alt çubukta.
   =================================================================== */

.co-rnw { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 6px; }

.co-rnw-sec {
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface);
  overflow: hidden;
}
.co-rnw-sec.is-core { border-color: color-mix(in srgb, var(--c-mint) 42%, var(--c-line)); }

.co-rnw-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
}
.co-rnw-head .t { font-size: 13px; font-weight: 800; color: var(--c-ink); }
.co-rnw-head .n { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--c-ink-soft); white-space: nowrap; }

.co-rnw-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--c-mint-soft); color: var(--c-mint-deep);
}
.co-rnw-chip svg { width: 11px; height: 11px; }

.co-rnw-note {
  padding: 9px 14px;
  font-size: 11.5px; line-height: 1.55; color: var(--c-ink-soft);
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-line);
}
.co-rnw-note b { color: var(--c-ink); font-weight: 700; }

/* Süre satırı — çekirdeğin TEK süre seçimi (kalem kalem değil) */
.co-rnw-when {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
}
.co-rnw-when > .lb { font-size: 12px; font-weight: 700; color: var(--c-ink); }
.co-rnw-when select {
  padding: 8px 11px; border: 1px solid var(--c-line); border-radius: 9px;
  font-size: 12.5px; font-weight: 700; background: var(--c-surface); color: var(--c-ink);
  cursor: pointer; font-family: inherit;
}
.co-rnw-when .to { margin-left: auto; font-size: 11.5px; color: var(--c-ink-soft); }
.co-rnw-when .to b { color: var(--c-mint-deep); font-weight: 800; }

.co-rnw-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--c-ink); cursor: pointer; user-select: none;
}

/* Kalem satırı — çekirdek ve bağlı hizmetlerde AYNI dil */
.co-rnw-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-line);
}
.co-rnw-row:last-child { border-bottom: none; }
.co-rnw-row.is-off { opacity: .5; }
.co-rnw-row.is-off select { pointer-events: none; }
.co-rnw-row .bd { flex: 1 1 auto; min-width: 0; }
.co-rnw-row .nm {
  font-size: 12.5px; font-weight: 700; color: var(--c-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-rnw-row .sub { font-size: 10.5px; color: var(--c-ink-soft); margin-top: 2px; }
.co-rnw-row .sub b { color: var(--c-mint-deep); font-weight: 700; }
.co-rnw-row select {
  flex: 0 0 auto; max-width: 130px;
  padding: 7px 9px; border: 1px solid var(--c-line); border-radius: 8px;
  font-size: 12px; font-weight: 700; background: var(--c-surface); color: var(--c-ink);
  cursor: pointer; font-family: inherit;
}
.co-rnw-row .px {
  flex: 0 0 auto; min-width: 78px; text-align: right;
  font-size: 12.5px; font-weight: 800; color: var(--c-ink); white-space: nowrap;
}
.co-rnw-row .px.is-free { color: var(--c-ink-soft); font-weight: 700; font-size: 11.5px; }

/* Satır altı açıklama — hizalama farkı, tavan uyarısı, reaktivasyon bedeli */
.co-rnw-tip { font-size: 10.5px; line-height: 1.5; color: var(--c-ink-soft); margin-top: 3px; }
.co-rnw-tip.is-warn { color: var(--c-coral); }

/* (.co-rnw-warn kaldırıldı 31.07.2026 — domain uyarısı artık ayrı kart değil,
   çekirdekteki domain satırının sağındaki "i" ikonunda.) */

@media (max-width: 560px) {
  .co-rnw-row { flex-wrap: wrap; }
  .co-rnw-row .bd { flex: 1 1 100%; order: 1; }
  .co-rnw-row select { order: 2; }
  .co-rnw-row .px { order: 3; margin-left: auto; }
  .co-rnw-when .to { margin-left: 0; flex: 1 1 100%; }
}

/* Okuma sırası: başlık → NE yenileniyor → NE KADAR tutuyor → öde.
   Varsayılan iskelette özet listesi (.co-summary-list) seçim alanının ÜSTÜNDE duruyor;
   website/hizmet siparişinde doğru (ürün zaten kartta), ama yenilemede müşteri daha ne
   seçtiğini görmeden tutarı okuyor. Yalnız yenileme ekranında (.is-rnw) sıra değişir —
   diğer ürün tiplerinin iskeleti aynen kalır. */
.co-step[data-step="summary"].is-active.is-rnw { display: flex; flex-direction: column; }
.co-step[data-step="summary"].is-rnw > * { order: 5; }
.co-step[data-step="summary"].is-rnw > h3 { order: 0; }
.co-step[data-step="summary"].is-rnw > .hint { order: 1; }
.co-step[data-step="summary"].is-rnw > .co-batch { order: 2; }
.co-step[data-step="summary"].is-rnw > .co-summary-list { order: 3; margin-top: 4px; }
.co-step[data-step="summary"].is-rnw > .co-settlement-note { order: 6; }

/* Başlık yanındaki "i" — açıklama sürekli şerit olarak durmaz, tıklayınca açılır
   (panelin Yönet modalındaki ipucu deseniyle aynı davranış, kullanıcı isteği 2026-07-31). */
.co-rnw-i {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; border: none; padding: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 900; line-height: 1;
  color: #fff; background: var(--c-mint);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--c-mint) 40%, transparent);
  transition: transform .15s, background .15s;
}
.co-rnw-i span { transform: translateY(-.5px); }
.co-rnw-i:hover { background: var(--c-mint-deep); transform: scale(1.12); }

/* Bilgilendirme kartı — sipariş modalının İÇİNDE açılır, modalı kapatmaz. */
.co-rnw-info {
  position: absolute; inset: 0; z-index: 40;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15, 19, 28, .5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border-radius: inherit;
}
.co-rnw-info.is-open { display: flex; animation: wzFade .2s ease; }
.co-rnw-info-card {
  width: 100%; max-width: 420px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px;
  padding: 20px; box-shadow: 0 18px 50px rgba(15, 19, 28, .28);
}
.co-rnw-info-card h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--c-ink); }
.co-rnw-info-card .bd p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.65; color: var(--c-ink-soft); }
.co-rnw-info-card .bd p:last-child { margin-bottom: 0; }
.co-rnw-info-card .bd b { color: var(--c-ink); font-weight: 700; }
.co-rnw-info-card .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* Süre satırı bileşen listesinin ALTINDA (kullanıcı isteği 2026-07-31) — üst çizgi taşır,
   alt çizgi taşımaz; bölümün kapanışıdır. */
.co-rnw-when.is-foot {
  border-bottom: none;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-2);
}
/* Satır sağındaki "i" — fiyat hücresinin solunda, dikey ortalı. */
.co-rnw-row > .co-rnw-i { align-self: center; margin-left: 2px; }

/* Özet listesinin son satırı: TOPLAM (yalnız yenileme ekranında; diğer akışlarda gövdedeki
   .co-totals bloğu zaten görünür). Alt çubuktaki toplamla aynı sayı ama burada dökümün
   kapanışı olarak duruyor — kullanıcı isteği 31.07.2026. */
.co-list .row.grand {
  border-bottom: none;
  border-top: 1.5px solid var(--c-line);
  margin-top: 4px; padding-top: 12px;
}
.co-list .row.grand > span { font-size: 14px; font-weight: 800; color: var(--c-ink); }
.co-list .row.grand > b { font-size: 16px; font-weight: 900; color: var(--c-mint-deep); }

/* Sepet uyarısı — yenileme sepeti temizleyerek başlıyor (tekil=1); müşteri yarım kalmış
   alışverişini sessizce kaybetmesin (2026-07-31). */
.co-rnw-sepet-uyari {
  border: 1px solid var(--c-coral);
  background: var(--c-coral-soft, #fff5f5);
  border-radius: 12px; padding: 10px 13px;
  font-size: 11.5px; line-height: 1.55; color: var(--c-ink-soft);
}
.co-rnw-sepet-uyari b { color: var(--c-ink); font-weight: 800; }
