/* peşintaksit — ürün sayfası, karşılaştırma, hesap ve giriş sayfaları
   styles.css'teki kimliğin üstüne: kutu yerine çizgi (üst çizgi + boşluk), tek hüküm, tek ikon takımı.
   Kutulu yüzey yalnızca koyu fiyat kutusu (.deal), para kartı ve fişte kalır. */

/* --- İkon takımı (public/icons.js) ------------------------------------------------ */

.ico { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; }

/* --- Ürün sayfası: fiyat kutusu ve tek hüküm ----------------------------------------- */

.verdict { margin: 0 0 22px; padding: 2px 0 20px 16px; border-left: 4px solid #ff7a59; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.verdict-ok { border-left-color: var(--lime); }
.verdict:not(.verdict-ok) p b { color: #ffab94; }
.verdict p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--night-muted); max-width: 60ch; }
.verdict p b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; color: var(--night-text); }
.verdict .verdict-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; }
.verdict-foot a { color: var(--night-text); font-weight: 600; text-underline-offset: 3px; }
.verdict-foot span { color: var(--night-muted); }

.score > span small { font-size: 11px; letter-spacing: 0.06em; }
.deal-tools { align-items: center; }
.deal-stores { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--night-text); text-underline-offset: 3px; }

/* "Neden bu puan?": artı/eksi yazı karakteri yerine çizgi ok */
.score-why summary::after { content: ''; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.score-why[open] summary::after { transform: translateY(1px) rotate(-135deg); }

/* --- Mağazalar --------------------------------------------------------------------- */

.offer, #price-history, #calc, #stores, #alarm { scroll-margin-top: 150px; }

/* --- Taksit tablosu ---------------------------------------------------------------- */

/* Kaydırma kutusu konumlu olmalı: hücrelerdeki .sr-only (absolute) sayfayı yana taşırmasın */
.table-wrap, .cmp-wrap { position: relative; }
.plan-grid th, .plan-grid td { padding: 13px 14px; }
.plan-grid thead th { border-bottom: 1px solid var(--line); }
.plan-grid thead th.c, .plan-grid td.plan { text-align: right; }
.plan-grid thead th.longest { color: var(--text); box-shadow: inset 0 -4px 0 var(--lime); }
.plan-grid tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.plan-grid tbody th small { display: block; font-size: 12px; font-weight: 600; color: var(--lime-text); }
.plan-grid td.plan.zero { color: var(--text); font-size: 14px; }
.plan-grid td.plan.interest { color: var(--muted); opacity: 0.55; cursor: help; }
.plan-grid tr.mine > * { background: var(--lime-soft); }
.plan-grid thead th:first-child, .plan-grid tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); }
.plan-grid tr.mine > th { background: var(--lime-soft); }
.legend { margin: 12px 0 0; font-size: 13px; color: var(--muted); max-width: 80ch; }
.legend-longest { color: var(--text); font-weight: 600; box-shadow: inset 0 -4px 0 var(--lime); }
.legend b { color: var(--text); }

/* --- Fiyat geçmişi: kutusuz --------------------------------------------------------- */

.ph-stats { gap: 0; margin: 0 0 12px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.ph-stats div { background: none; padding: 14px 16px 14px 0; }
.ph-stats div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.ph-stats dd .ico { width: 15px; height: 15px; vertical-align: -1px; margin-right: 2px; }
.ph-chart { background: none; border: 0; border-radius: 0; padding: 6px 0 0; }
.ph-t-lab { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: var(--muted); }

/* --- Hesapla: sekmeler (Aylık yük / Kazanç) ---------------------------------------------- */

/* Hesapla: sayfada kaybolmasın diye ayrı zeminli blok */
.block.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 22px; }
.block.calc .block-head { border-bottom-color: var(--line); }
.block.calc .calc-count select { background: var(--paper); }
@media (max-width: 640px) { .block.calc { padding: 20px 16px 16px; border-radius: 14px; margin-left: -4px; margin-right: -4px; } }
.calc-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin: 6px 0 4px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 28px; }
.tabs [role='tab'] { position: relative; padding: 12px 0 13px; border: 0; background: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--muted); }
.tabs [role='tab']:hover { color: var(--text); }
.tabs [role='tab'][aria-selected='true'] { color: var(--text); }
.tabs [role='tab'][aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--text); }
.calc-count { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.calc-count select { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); min-width: 130px; font-weight: 600; color: var(--text); }
.calc-panel[hidden] { display: none; }
.calc-lead { margin: 16px 0 0; color: var(--muted); max-width: 62ch; }

.gain-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gain-result > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px 16px 0; min-width: 0; }
.gain-result > div + div { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.gain-result small { font-size: 13px; color: var(--muted); }
.gain-result span { font-size: 12px; color: var(--muted); }
.gain-result b { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.gain-result .hi b { color: var(--lime-text); }
.gain-result .hi small::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; background: var(--lime); border: 1px solid var(--text); vertical-align: 0; }
.gain-result b.load-cta-b { font-size: 20px; }
.gain-result a { color: inherit; font-weight: 600; }
/* "Kazanç" sekmesi (product-page.js gainResultHtml): üstte aylık taksit (büyük) + toplam aynı karede ve kazanç; altta
   bu ürünün rakamlarıyla adım adım anlatım, çıkarma satırı ve birikim notu. Kazanç olumlu yeşil (--good), lime değil. */
.gain-explain { margin: 14px 0 12px; }
.gx-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gx-top > div { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px 16px 0; min-width: 0; }
.gx-top > div + div { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.gx-top small { font-size: 13px; color: var(--muted); }
.gx-top span { font-size: 13px; color: var(--text-2); }
.gx-top b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.gx-gain b { color: var(--good-text); }
.gx-steps { list-style: none; counter-reset: gx; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.gx-steps li { counter-increment: gx; position: relative; padding-left: 36px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.gx-steps li::before { content: counter(gx); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); }
.gx-steps b { color: var(--text); font-weight: 650; }
.gx-steps b.num { white-space: nowrap; }
.gx-sum { display: grid; gap: 4px; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--good-soft); color: var(--good-text); }
.gx-sum-l { font-size: 13px; font-weight: 600; }
.gx-sum-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.gx-sum-v > span.num { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.gx-sum b { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; white-space: nowrap; }
.gx-save { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 70ch; }
.gx-save b { color: var(--text); }
.gx-save b.num { white-space: nowrap; }
.gain-bought { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.gain-bought .btn .ico { width: 18px; height: 18px; }
.gain-bought .purchase-form { margin-top: 16px; }
.bought-done { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; }
.bought-done .ico { color: var(--lime-text); width: 18px; height: 18px; }

/* --- Alarm: kutusuz ---------------------------------------------------------------- */

.alarm-form { margin-top: 18px; }
.alarm-guest { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 18px 0 0; }
.alarm-guest > .ico { width: 20px; height: 20px; color: var(--text); }
.alarm-guest p { flex: 1 1 320px; margin: 0; color: var(--text-2); }

/* --- Karşılaştırma ------------------------------------------------------------------ */

.cmp-wrap { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--text); }
.cmp-table thead th { border-bottom: 1px solid var(--line); }
.cmp-corner { border-bottom: 1px solid var(--line); }
/* Hücre metni Geist; yalnızca tutarlar ve sayılar Geist Mono */
.cmp-table td { font-family: var(--sans); letter-spacing: 0; }
.cmp-table td b.num { font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; }
.cmp-table td .cmp-price { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
.cmp-table tbody th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cmp-prod img { width: 96px; max-width: 96px; margin-bottom: 10px; }
.cmp-prod .ph { width: 96px; height: 96px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; }
.cmp-prod .ph-brand, .cmp-prod .ph-strip { display: none; }
.cmp-prod .ph-icon { width: 46%; margin: 0; }
.cmp-table td.is-best > b:first-child, .cmp-table td.is-best > .cmp-banks { font-weight: 700; color: var(--text); }
.cmp-table td.is-best > b:first-child::before, .cmp-table td.is-best > .cmp-banks::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--lime); border: 1px solid var(--text); vertical-align: 2px; }
.cmp-table td .strip { margin: 6px 0 0; }

/* --- Giriş / kayıt ------------------------------------------------------------------ */

.auth-perks li { padding-left: 22px; }
.auth-perks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }

/* --- Hesabım ------------------------------------------------------------------------ */

.account-id > div { min-width: 0; }
.account-id small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; word-break: normal; overflow-wrap: anywhere; }

/* Sayılar: kutu yerine çizgiler */
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0 0 28px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.stat { display: block; padding: 16px 20px 16px 0; min-width: 0; color: inherit; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.stat b { display: block; font-family: var(--display); font-size: clamp(26px, 2.3vw, 32px); white-space: nowrap; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.block-head + .stat-row { border-top: 0; margin-top: 0; }
.stat span { color: var(--muted); font-size: 13px; }
a.stat { text-decoration: none; }
a.stat:hover span { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.stat-down b, .stat-gain b { color: var(--lime-text); }

/* Başlarken: 3 adım */
.checklist { margin: 0 0 56px; }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--text); }
.cl-head h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.018em; }
.cl-progress { display: inline-flex; align-items: center; gap: 10px; }
.cl-strip { width: 96px; height: 10px; }
.cl-strip i.on { background: var(--lime); box-shadow: inset 0 0 0 1px var(--text); }
.cl-progress small { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.checklist ol { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li b { display: block; font-family: var(--display); font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.checklist li p { margin: 2px 0 0; font-size: 14px; color: var(--muted); max-width: 62ch; }
.cl-no { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 600; background: var(--lime); color: #0f100d; }
.checklist li.done .cl-no { background: var(--text); color: var(--lime); }
.checklist li.done b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.cl-done { font-size: 13px; color: var(--muted); }

/* Boş durumlar: tek satır + küçük çizim + düğme */
.empty-state { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.es-text { flex: 1 1 280px; min-width: 0; }
.es-text b { display: block; font-weight: 600; }
.es-text p { margin: 2px 0 0; font-size: 14px; color: var(--muted); max-width: 64ch; }
.es-art { flex-shrink: 0; }
.es-strip { display: grid; grid-template-columns: repeat(6, 9px); gap: 2px; }
.es-strip i { height: 9px; border-radius: 2px; background: var(--line); }
.es-strip i:first-child { background: var(--lime); box-shadow: inset 0 0 0 1px var(--text); }
.es-receipt { position: relative; width: 40px; height: 48px; padding: 9px 7px 0; display: grid; align-content: start; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0; }
.es-receipt::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -5px; height: 6px; background: radial-gradient(circle at 3px 6px, transparent 3px, var(--line) 3.5px, var(--surface) 4.5px) 0 0 / 6px 6px repeat-x; }
.es-receipt i { height: 2px; background: var(--line); }
.es-receipt i:last-child { width: 60%; background: var(--text); }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 40px; padding: 4px 0 4px 16px; border-left: 3px solid var(--text); }
.callout .link-btn { margin: 0; }
.callout-lime { border-left-color: var(--lime-text); }
.callout-warn { border-left-color: var(--warn); }

/* Özet: para kartı koyu kalır; yanındaki liste kutusuz */
.overview-money { margin-bottom: 28px; }
.money-next { padding: 4px 0 0; border-top: 1px solid var(--text); }
.money-next > small { display: block; padding-top: 10px; color: var(--muted); }

/* Bildirim ikonları */
.note-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line-soft); color: var(--text); }
.note-alert, .note-price-drop, .note-back { background: var(--lime); color: #0f100d; }
.notes li.unread .note-icon { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--text); }
.price-change .ico { width: 14px; height: 14px; vertical-align: -2px; }

/* Kartlarım: düz satırlar */
.cards-privacy { margin: 14px 0 20px; font-size: 14px; color: var(--muted); max-width: 72ch; }
.cards-privacy b { color: var(--text); }
.program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 0 0 8px; border-top: 1px solid var(--line); }
.program { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.program input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.program-box { width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid var(--text); display: grid; place-items: center; color: transparent; background: var(--surface); }
.program-box .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.program input:checked + .program-box { background: var(--lime); border-color: #0f100d; color: #0f100d; }
.program input:focus-visible + .program-box { outline: 2px solid var(--text); outline-offset: 2px; }
.program-name { min-width: 0; }
.program-name b { display: block; font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.program-name small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.program-stat { font-family: var(--mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.program:hover .program-box { border-width: 2px; }
.cards-save { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 8px; padding: 14px 0; background: var(--paper); border-top: 1px solid var(--text); }
.cards-save > span { font-size: 14px; color: var(--muted); margin-right: auto; }
.cards-save .link-btn { margin: 0; font-weight: 500; }
body.has-tray .cards-save { bottom: 74px; }

/* Alışverişlerim */
.form-hint { margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.how-box { margin: 0 0 12px; padding: 4px 0 4px 16px; border-left: 3px solid var(--line); font-size: 14px; }
.how-box p { margin: 6px 0; }
.purchase-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.paychart { padding: 8px 0 0; }
.paychart-empty .paychart-bars { display: grid; place-items: center; border-bottom: 1.5px dashed var(--muted); }
.paychart-empty .paychart-bars p { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.budget-panel { padding-top: 4px; }

@media (max-width: 980px) {
  .gain-result { grid-template-columns: 1fr; }
  .gain-result > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .gx-top { grid-template-columns: 1fr; }
  .gx-top > div { padding: 14px 0; }
  .gx-top > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .gx-steps li { font-size: 14.5px; }
  .purchase-form { grid-template-columns: 1fr 1fr; }
  .program-list { grid-template-columns: 1fr; }
  .overview-money { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Görsel en fazla 240 px: fiyat ilk ekranda görünsün */
  .detail { gap: 20px; }
  .detail-media { max-width: none; height: 240px; }
  .detail-media img { height: 100%; width: 100%; aspect-ratio: auto; }
  .detail-media > .ph { aspect-ratio: auto; height: 100%; }
  .detail h1 { margin-bottom: 14px; }
  .specs { margin-bottom: 18px; }
  .verdict p b { font-size: 18px; }
  .deal-stores { margin-left: 0; flex-basis: 100%; }
  .plan-grid th, .plan-grid td { padding: 11px 10px; }
  .tabs { gap: 22px; }
  .calc-bar { align-items: stretch; }
  .calc-count { width: 100%; justify-content: space-between; margin: 10px 0 12px; }
  .ph-stats div + div { border-left: 0; padding-left: 0; }
  .ph-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-soft); }
  .ph-stats div:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .loadchart-peak { font-size: 11px; }
  .paychart-axis { font-size: 11px; }
  .tag { font-size: 11px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .stat b { font-size: 24px; }
  .checklist li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .cl-head h2 { font-size: 28px; }
  .checklist li > .btn, .checklist li > .cl-done { grid-column: 2; justify-self: start; }
  .program { grid-template-columns: 22px minmax(0, 1fr); }
  .program-stat { grid-column: 2; margin-top: -8px; }
  .purchase-form { grid-template-columns: 1fr; }
  .purchase-form .span-2 { grid-column: auto; }
  .cmp-prod img { width: 72px; }
  .cmp-prod .ph { width: 72px; height: 72px; }
  .cmp-table tbody th { font-size: 12px; }
}

@media (max-width: 640px) {
  .cards-save .link-btn { display: none; }
}

/* Koyu modda fiyat kutusu zeminle birleşmesin */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .deal { box-shadow: inset 0 0 0 1px var(--line); }
}
:root[data-theme='dark'] .deal { box-shadow: inset 0 0 0 1px var(--line); }

/* En küçük metin 12 px (11 yalnızca büyük harfli etiket) */
.sw-label small, .sw-parts b small, .paychart-tip small, .ph-ylab, .ph-xlab, .ph-30-lab, .ph-low-lab, .ph-high-lab { font-size: 12px; }
.alarm-form select, .alarm-form input { font-weight: 400; }

/* Kart başına taksit listesi */
.cardplans { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cardplans li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.cp-card b { font-size: 16px; }
.cp-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
/* Kullanıcının kartları: parlayan çerçeveli blok (ürün sayfası ve kampanyalar sayfası) */
.cp-mine-block, .camp-mine { position: relative; border: 1.5px solid var(--frame, var(--lime-text)); border-radius: 14px; padding: 4px 4px 0; margin-bottom: 22px; background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 18%, transparent), 0 10px 34px -12px color-mix(in srgb, var(--lime) 55%, transparent); }
.cp-mine-block .cardplans { border-top: 0; }
.cp-mine-block .cardplans li:last-child { border-bottom: 0; }
.cp-mine-title { display: flex; align-items: center; gap: 10px; margin: 8px 8px 4px; font-size: 13px; color: var(--muted); }
.cp-mine-title span { padding: 2px 9px; border-radius: 6px; background: var(--lime); color: #0f100d; font-size: 12px; font-weight: 700; }
.cp-others-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) :is(.cp-mine-block, .camp-mine) { --frame: var(--lime); } }
:root[data-theme='dark'] :is(.cp-mine-block, .camp-mine) { --frame: var(--lime); }
.camp-mine { padding: 18px 20px 4px; margin-bottom: 36px; }
.camp-mine .camp-group:last-child { margin-bottom: 14px; }
.camp-mine-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.camp-mine-title span { padding: 2px 9px; border-radius: 6px; background: var(--lime); color: #0f100d; font-size: 12px; font-weight: 700; }
.camp-mine-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 20px; }
.camp-mine-empty p { margin: 0; max-width: 60ch; }
#camp-pick:not(:empty) { margin: -12px 0 32px; }
.camp-others-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 12px; letter-spacing: 0; }
.cardplans .strip { height: 8px; }
/* Mağazaya özel kart (src/cards.js storeCard, ör. Hepsiburada Premium Worldcard): genel kartlardan ayrı, krem kesik
   çerçeveli blok. Lime değil: bu taksit sitenin başlığı değil, yalnızca o kartı olana geçerli. */
.cp-store-block { margin-top: 22px; border: 1.5px dashed var(--accent); border-radius: 14px; padding: 4px 4px 0; background: var(--surface); }
.cp-store-block .cardplans { border-top: 0; }
.cp-store-block .cardplans li:last-child { border-bottom: 0; }
.cp-store-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 8px 8px 4px; font-size: 13px; color: var(--muted); }
.cp-store-title span { padding: 2px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.cp-card .cp-store-note { color: var(--accent-text); font-weight: 600; }
.strip-store i.on { background: var(--accent); }
.cp-amount { text-align: right; display: grid; gap: 2px; }
.cp-amount b { font-family: var(--display); font-size: 18px; }
.cp-amount span { font-family: var(--mono); font-size: 14px; color: var(--text-2); }
@media (max-width: 640px) {
  .cardplans li { grid-template-columns: minmax(0, 1fr) auto; }
  .cardplans .strip { grid-column: 1 / -1; order: 3; }
}

/* Kart kampanyaları: fiyat kutusunda (koyu zemin) ve mağaza satırlarında */
.card-deals { margin: 16px 0 4px; padding: 14px 16px; border-radius: 10px; background: rgba(241, 227, 194, 0.08); border: 1px solid rgba(241, 227, 194, 0.3); }
.cd-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #e6d3a8; }
.cd-title small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--night-muted); margin-left: 6px; }
.card-deals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card-deals li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 8px; font-size: 14px; color: var(--night-text); }
.card-deals li b { font-weight: 700; }
.card-deals .cd-benefit { grid-column: 3; }
.card-deals small { grid-column: 1 / -1; color: var(--night-muted); font-size: 12px; }
.cd-mine { padding: 0 6px; border-radius: 5px; background: var(--lime); color: #0f100d; font-size: 11px; font-weight: 700; }
.offer-perks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.perk { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--lime-soft); color: var(--lime-text); }
.perk-card { background: var(--accent-soft); color: var(--accent-text); }

/* /kampanyalar */
.camp-group { margin: 0 0 32px; }
.camp-group h2 { font-size: 24px; font-weight: 700; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--text); }
.camp-list { list-style: none; margin: 0; padding: 0; }
.camp-list li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr) minmax(0, 1fr) 110px; gap: 6px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.camp-store { font-weight: 600; }
.camp-benefit { color: var(--accent-text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.camp-cond { color: var(--muted); font-size: 14px; }
.camp-link { font-size: 13px; font-weight: 600; grid-column: 4; justify-self: end; }
@media (max-width: 640px) { .camp-list li { grid-template-columns: minmax(0, 1fr) auto; } .camp-cond { grid-column: 1 / -1; } .camp-link { grid-column: auto; justify-self: start; } }

/* Mağaza güvenilirliği rozeti */
.trust { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-2); white-space: nowrap; }
.trust i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.trust-hi i { background: var(--text); }
.trust-ok i { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-text); }
.trust-new { white-space: normal; font-weight: 500; }
.trust-new i { background: var(--line); box-shadow: inset 0 0 0 1px var(--muted); }

/* İki seçenekli düğme grubu (Mağazalar: Fiyat / Güvenilirlik) */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--text); color: var(--paper); }
.block-head .seg { align-self: center; }
.block-head:has(.seg) > p { margin-left: auto; }

/* Sana uygunluk (fiyat kutusu koyu zeminde) */
.deal-fit { margin: 8px 0 0; font-size: 14px; color: var(--night-muted); }
.deal-fit b { font-family: var(--display); font-size: 18px; color: #f1e3c2; margin-left: 4px; }
.deal-fit small { color: var(--night-muted); }
.sw-fit { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sw-fit-head { margin: 0 0 10px; font-weight: 600; }
.sw-fit-head b { font-family: var(--display); font-size: 20px; color: #f1e3c2; margin-left: 6px; }
.sw-fit-head small { color: var(--night-muted); }
.sw-fit-cta { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: var(--night-muted); }

.camp-group h2 small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.camp-more summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 600; list-style: none; }
.camp-more summary::-webkit-details-marker { display: none; }
.camp-more summary::before { content: '+'; display: inline-block; width: 18px; font-family: var(--mono); color: var(--muted); }
.camp-more[open] summary::before { content: '−'; }

/* === Mağazalar listesi ve ürün sayfası (telefon): fiyat ve satın al ilk ekranda ============== */

/* Mağazalar listesi: satıcı adı yalnızca mağaza adından farklıysa; tutar tek parça (TL alt satıra düşmez) */
.offers-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); max-width: 80ch; }
.offers-note b { color: var(--text-2); }
/* Mağaza kartları (parts.js offersListHtml): her mağaza ayrı kart. Başlıkta mağazanın baş harfli renkli rozeti
   (storeMarkHtml; gerçek logo değil), ad, satıcı ve güven notu; ortada aylık taksit (büyük) ve toplam aynı karede;
   altında taksit şeridi, geçerli kartlar ve düğmeler. Telefonda alt alta, genişte yan yana ızgara. */
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.offer { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--surface); }
.offer.current { border: 2px solid var(--text); padding: 15px; }
.offer:target { border-color: var(--warn); background: var(--warn-soft); }
.offer-head { display: flex; align-items: flex-start; gap: 12px; }
.store-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-size: 17px; font-weight: 750; letter-spacing: -0.02em; background: hsl(var(--sh) 55% 90%); color: hsl(var(--sh) 60% 26%); box-shadow: inset 0 0 0 1px hsl(var(--sh) 40% 78%); }
.offer-src { flex: 1 1 auto; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.offer-src small { display: block; margin-top: 2px; font-family: var(--sans); font-weight: 400; font-size: 12.5px; color: var(--muted); letter-spacing: 0; }
.offer-src > .trust { display: flex; width: fit-content; margin-top: 5px; }
.offer-here { flex: none; align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--text); color: var(--paper); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.offer-figs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.offer-figs small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.offer-pay b { display: block; font-family: var(--display); font-size: 26px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-pay b small { display: inline; font-size: 0.62em; font-weight: 600; color: inherit; }
.offer-pay b .per { color: var(--muted); }
.offer-pay b.offer-none { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: normal; color: var(--muted); }
.offer-pay > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.offer-price { text-align: right; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.offer-amount { white-space: nowrap; }
.offer-diff, .offer-min, .offer-suspect { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.offer-diff { color: var(--muted); font-family: var(--mono); font-weight: 500; }
.offer-min { color: var(--lime-text); }
.offer-suspect { color: var(--warn-text); }
.offer-plan .strip { height: 7px; margin-bottom: 6px; }
.offer-plan small { font-size: 12.5px; color: var(--muted); }
.offer-plan .offer-storecard { display: block; margin-top: 4px; font-weight: 600; color: var(--accent-text); }
.offer-banks { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.offer-banks:empty { display: none; }
.offer-banks-l { font-weight: 600; color: var(--text-2); }
.offer-actions { display: flex; gap: 8px; margin-top: auto; }
.offer-actions .btn { flex: 1 1 0; }
.offer.not-eligible .offer-pay b, .offer.not-eligible .store-mark { opacity: 0.75; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .store-mark { background: hsl(var(--sh) 30% 20%); color: hsl(var(--sh) 70% 82%); box-shadow: inset 0 0 0 1px hsl(var(--sh) 30% 32%); }
}
:root[data-theme='dark'] .store-mark { background: hsl(var(--sh) 30% 20%); color: hsl(var(--sh) 70% 82%); box-shadow: inset 0 0 0 1px hsl(var(--sh) 30% 32%); }
@media (max-width: 640px) {
  .offers { gap: 12px; }
  .offer { padding: 14px; gap: 12px; }
  .offer.current { padding: 13px; }
  .store-mark { width: 40px; height: 40px; font-size: 16px; border-radius: 11px; }
  .offer-src { font-size: 18px; }
  .offer-pay b { font-size: 24px; }
}

/* Hangi kartla kaç taksit: aynı planı veren kartlar tek satırda */
.cp-names { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.4; margin-top: 2px; }

/* Ürün sayfası (telefon): görsel en fazla ~220 px, fiyat ve satın al ilk ekranda */
@media (max-width: 640px) {
  .detail { gap: 12px; margin-bottom: 40px; }
  .detail-media { max-width: none; height: 210px; }
  .crumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 10px 0 8px; }
  .detail h1 { font-size: 21px; line-height: 1.12; margin: 2px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .detail-info .specs { display: none; }
  /* Fiyat ve satın al önce; "en ucuz" gibi olumlu not satın al düğmesinin altına iner (uyarılar üstte kalır) */
  .deal { padding: 16px; display: flex; flex-direction: column; }
  .deal > .verdict-ok { order: 1; margin: 14px 0 0; padding: 12px 0 0 14px; border-bottom: 0; }
  .deal > .card-deals { order: 1; margin-top: 14px; }
  .deal > .deal-actions ~ * { order: 2; }
  .deal .verdict { margin-bottom: 12px; padding-bottom: 10px; }
  .deal .verdict p { font-size: 13px; }
  .deal .verdict p b { font-size: 17px; }
  .deal-price-row { margin: 8px 0 6px; }
  .deal-monthly b { font-size: clamp(30px, 10vw, 40px); font-size: min(clamp(30px, 10vw, 40px), calc(100cqi / (var(--len, 14) * 0.48))); }
  .deal-cash { margin: 12px 0 14px; padding-top: 10px; }
  .deal-price { font-size: clamp(24px, 7.5vw, 30px); }
  .deal-price-row .score { gap: 8px; }
  .deal-price-row .score > b { min-width: 44px; height: 44px; font-size: 17px; padding: 0 6px; }
  .deal-price-row .score > span { font-size: 12px; max-width: 80px; }
  .deal-price-row .score > span small { font-size: 10px; letter-spacing: 0.06em; white-space: nowrap; }
  .deal .strip { height: 10px; }
  .deal-plan { margin: 0 0 10px; }
  .deal-plan > b { font-size: 19px; }
  .deal-actions .btn-block { height: 50px; }
}


/* --- Fiyat kutusu: 30 günlük küçük grafik ve "Fiyat düşünce haber ver" --------------------------
   Koyu kutunun içinde, fiyatın hemen altında (telefonda satın al düğmesi ilk ekranda kalsın diye düğmenin
   altına iner). Çizgi kutu metni renginde, "30 günün en düşüğü" rozeti krem (bilgi). Lime yok: lime yalnızca
   "vade farkı sıfır" demek. */
.deal-cash + .deal-spark { margin-top: -8px; }
.deal-spark { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); grid-template-areas: 'head head' 'chart stats'; gap: 8px 18px; align-items: center; margin: 0 0 22px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; color: var(--night-text); text-decoration: none; }
a.deal-spark:hover { border-color: rgba(255, 255, 255, 0.34); }
a.deal-spark:focus-visible { outline: 2px solid var(--night-text); outline-offset: 2px; }
.spark-head { grid-area: head; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.spark-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--night-muted); }
.spark-title small { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.spark-badge { padding: 2px 8px; border-radius: 6px; background: #f1e3c2; color: #0f100d; font-size: 12px; font-weight: 700; }
.spark { grid-area: chart; display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 200 / 44; overflow: visible; }
.spark-line { fill: none; stroke: var(--night-text); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: rgba(255, 255, 255, 0.07); }
.spark-now { fill: #f1e3c2; stroke: var(--night); stroke-width: 1.5; }
.spark-stats { grid-area: stats; display: grid; gap: 3px; font-family: var(--mono); font-size: 12.5px; color: var(--night-muted); font-variant-numeric: tabular-nums; }
.spark-more { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--night-text); text-decoration: underline; text-underline-offset: 3px; }
.deal-alarm { height: 48px; }
.deal-alarm .ico { width: 18px; height: 18px; }
.alarm-short { display: none; }
/* Alarm düğmesi satın al / favori ile aynı ızgarada, tam genişlik (telefonda favorinin yanında) */
.deal-actions .deal-alarm { grid-column: 1 / -1; height: 48px; }
/* Fiyat geçmişi henüz yoksa: fiyat geçmişi bölümünde kısa not (fiyat kutusunda değil) */
.ph-new { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 70ch; }
.ph-new .ico { flex-shrink: 0; margin-top: 3px; }
/* Satıcı sitesi / doğrulama notları: fiyat kutusunun hemen altında, sayfa zemininde (hep görünür) */
.deal-notes { margin-top: 12px; padding: 0 4px; }
.deal-notes .deal-note { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.deal-notes .deal-note:first-child { margin-top: 0; }
.deal-notes .deal-note b { color: var(--text-2); font-weight: 600; }
@media (max-width: 640px) {
  .deal > .deal-spark { order: 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'chart' 'stats'; gap: 6px; margin: 14px 0 0; padding: 10px 12px; }
  .spark { max-width: 260px; }
  .spark-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .spark-more { margin-left: auto; }
  /* Favori ve alarm tek satırda, iki sütun (44 px); favori yoksa (sunucu sayfası) alarm tam genişlik */
  .deal-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .deal-actions > .btn-lime { grid-column: 1 / -1; }
  .deal-actions .fav-wide, .deal-actions .deal-alarm { height: 44px; padding: 0 10px; gap: 6px; font-size: 14px; }
  .deal-actions:has(.fav-wide) .deal-alarm { grid-column: auto; }
  .deal-actions:has(.fav-wide) .alarm-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .deal-actions:has(.fav-wide) .alarm-short { display: inline; }
}

/* --- Kart kampanyaları: filtreler ---------------------------------------------------------------- */
.camp-filters { display: grid; gap: 12px; margin: 0 0 26px; }
.camp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.camp-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.camp-chip small { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.camp-chip:hover { border-color: var(--text); }
.camp-chip[aria-current='true'] { background: var(--text); border-color: var(--text); color: var(--paper); }
.camp-chip[aria-current='true'] small { color: inherit; opacity: 0.8; }
.camp-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
.camp-q { position: relative; display: block; }
.camp-q .search-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.camp-q input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.camp-sel { display: grid; gap: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.camp-sel select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; min-width: 0; }
.camp-apply[hidden] { display: none; }
/* Banka başlığı düz metin; yalnızca tutar krem (kart kampanyası rengi) */
.camp-list .camp-benefit { color: var(--text); font-weight: 500; }
.camp-amt { color: var(--accent-text); font-weight: 700; }
.camp-card { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.camp-cond .tag { margin-left: 8px; vertical-align: 1px; }
.camp-left { color: var(--text-2); }
@media (max-width: 760px) {
  .camp-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .camp-q { grid-column: 1 / -1; }
  .camp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .camp-chip { flex-shrink: 0; }
  .camp-apply { grid-column: 1 / -1; justify-self: start; }
}
