/* ═══════════ Trendyol rehber sayfaları ═══════════
   /trendyol-komisyon-hesaplama · /trendyol-alternatifi
   home.css'in hx-* sınıflarının üstüne kurulur; renkler app.css değişkenlerinden (açık/koyu tema otomatik).
   Mobil öncelikli, animasyon kütüphanesi yok. */

.page-tz main { overflow-x: clip; }
.page-tz { --hx-hdr: 84px; }
@media (max-width: 760px) { .page-tz { --hx-hdr: 66px; } }

/* Açık temada eyebrow okunur kalsın (app.css rengi koyu zemine göre) */
[data-theme="light"] .page-tz .eyebrow { color: var(--brand); }

/* ─── Kahraman ─── */
.tz-hero {
  padding: calc(var(--hx-hdr, 84px) + clamp(1rem, 3vw, 2.4rem)) 0 clamp(2.4rem, 5vw, 4rem);
  background:
    radial-gradient(60% 50% at 88% 12%, color-mix(in oklab, var(--brand) 11%, transparent), transparent 70%),
    radial-gradient(45% 40% at 4% 70%, color-mix(in oklab, var(--peak) 10%, transparent), transparent 70%);
}
.tz-hero__txt { max-width: 64rem; }
.tz-h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin: .8rem 0 .7rem; }
.tz-hero .hx-lead strong { color: var(--ink); }
.tz-hero .hx-trust { margin-top: 1rem; }
.tz-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.tz-hero__split .tz-hero__txt { max-width: none; }

/* ─── Kart ─── */
.tz-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.1rem, 2.4vw, 1.6rem); box-shadow: var(--shadow-2);
  display: grid; gap: 1rem; align-content: start; min-width: 0;
}

/* ─── Hesaplayıcı ─── */
.tz-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.tz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem .8rem; align-items: end; }
.tz-grid > * { min-width: 0; }
.tz-span2 { grid-column: 1 / -1; }
.hx-f > span:first-child small { font-weight: 500; color: var(--ink-3); font-size: .78rem; margin-left: .3rem; }
.hx-f > span:first-child { justify-content: flex-start; flex-wrap: wrap; }
.tz-in--w input { padding-right: 3.8rem; }
.tz-sel {
  width: 100%; height: 50px; padding: 0 2.3rem 0 .85rem; font: 600 .98rem var(--font-body); color: var(--ink);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23898597' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .9rem center;
  border: 1px solid var(--line); border-radius: 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  text-overflow: ellipsis;
}
.tz-sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); }
.tz-sel option { color: var(--ink); background: var(--surface); }

/* Döküm listesi */
.tz-dl { display: grid; margin: 0; }
.tz-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); }
.tz-dl dt { color: var(--ink-2); font-size: .92rem; }
.tz-dl dt span { color: var(--ink-3); font-size: .82rem; }
.tz-dl dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-dl > div:nth-last-child(2) { border-bottom: 0; }
.tz-dl .tz-dl__sum { border-bottom: 0; border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .7rem; }
.tz-dl__sum dt { color: var(--ink); font-weight: 700; }
.tz-dl__sum dd { font-size: 1.08rem; }
.tz-dl__sum em { font-style: normal; font-size: .82rem; color: var(--ink-3); margin-left: .3rem; }

.tz-net {
  display: grid; gap: .1rem; padding: .95rem 1.05rem; border-radius: 16px;
  background: color-mix(in oklab, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
}
.tz-net small { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.tz-net b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.2rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tz-net__p { font-size: .86rem; color: var(--ink-2); }
.tz-net__p.is-pos { color: oklch(52% .15 155); font-weight: 600; }
.tz-net__p.is-neg { color: var(--err); font-weight: 600; }
:root:not([data-theme="light"]) .tz-net__p.is-pos { color: var(--ok); }

/* Aylık / yıllık mini tablo */
.tz-per { display: grid; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.tz-per__r { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; padding: .55rem .8rem; font-size: .9rem; align-items: baseline; }
.tz-per__r + .tz-per__r { border-top: 1px solid var(--line-soft); }
.tz-per__r > span:not(:first-child) { text-align: right; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-per__r > span:first-child { color: var(--ink-2); }
.tz-per__h { background: var(--surface-2); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.tz-per__h > span:not(:first-child) { font-family: var(--font-body); font-weight: 700; }
.tz-per__n { color: var(--ink-3); font-size: .76rem; line-height: 1.45; }

/* Kendi sitenizde */
.tz-own {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: 1rem; padding: clamp(1.1rem, 2.4vw, 1.6rem); border-radius: 22px;
  background: var(--surface); border: 1px solid color-mix(in oklab, var(--ok) 40%, var(--line));
}
.tz-own__t { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: .45rem 0 .4rem; }
.tz-own__l p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; margin-bottom: 1rem; }
.tz-own__r { display: grid; gap: .9rem; align-content: start; }
.tz-own__res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.tz-own__res > div { background: var(--surface-2); border-radius: 14px; padding: .75rem .85rem; display: grid; gap: .15rem; min-width: 0; }
.tz-own__res small { font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.tz-own__res b { font-family: var(--font-mono); font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tz-own__diff { background: color-mix(in oklab, var(--ok) 14%, var(--surface)) !important; }
.tz-own__diff b, .tz-good { color: oklch(50% .15 155); }
:root:not([data-theme="light"]) .tz-own__diff b, :root:not([data-theme="light"]) .tz-good { color: var(--ok); }
.tz-own .hx-calc__pay { margin: 0; }
.tz-more { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 700; color: var(--brand); justify-self: start; }
.tz-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.tz-foot { margin-top: 1rem; font-size: .8rem; line-height: 1.55; color: var(--ink-3); max-width: 70em; }

/* ─── Kesintiler ─── */
.tz-cuts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tz-cuts li { padding: 1.15rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); min-width: 0; }
.tz-cuts__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font: 700 .9rem var(--font-mono); color: #fff; background: var(--grad-dawn); margin-bottom: .6rem; }
.tz-cuts b { display: block; font-family: var(--font-display); font-size: 1.04rem; margin-bottom: .3rem; }
.tz-cuts p { margin: 0; color: var(--ink-2); font-size: .91rem; line-height: 1.55; }
.tz-cuts strong { color: var(--ink); }

/* ─── Tablolar ─── */
.tz-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.tz-2col .hx-h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.tz-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.tz-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tz-table th, .tz-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; overflow-wrap: normal; }
.tz-table thead th { background: var(--surface-2); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.tz-table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.tz-table td small { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .1rem; }
.tz-table .num { text-align: right; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-table thead .num { font-family: var(--font-body); white-space: normal; }
.tz-table__sum td { font-weight: 700; border-top: 1px solid var(--line) !important; }
.tz-table__net td { font-weight: 800; background: color-mix(in oklab, var(--brand) 7%, transparent); }
.tz-table__net .num { font-size: 1.02rem; }
.tz-cap { margin-top: .7rem; font-size: .8rem; line-height: 1.5; color: var(--ink-3); }
.tz-na { color: var(--ink-3); font-weight: 400; }
.tz-cmp .tz-tablewrap { box-shadow: none; }
.tz-table--cmp td small { display: inline; margin: 0 0 0 .25rem; }

/* ─── İpuçları ─── */
.tz-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tz-tip { padding: 1.2rem 1.25rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); min-width: 0; }
.tz-tip b { display: block; font-family: var(--font-display); font-size: 1.04rem; margin-bottom: .35rem; }
.tz-tip p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }

.tz-src { max-width: 780px; margin: 1.4rem auto 0; font-size: .82rem; color: var(--ink-3); line-height: 1.5; text-align: center; }
.tz-src b { color: var(--ink-2); }
.tz-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── 3 yıl karşılaştırma ─── */
.tz-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tz-bar { display: grid; gap: .45rem; align-content: start; padding: 1.2rem 1.25rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); min-width: 0; }
.tz-bar--us { border-color: color-mix(in oklab, var(--ok) 45%, var(--line)); }
.tz-bar__k { font-size: .82rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.tz-bar__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tz-bar__v small { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.tz-bar__t { position: relative; display: block; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tz-bar__t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--err); }
.tz-bar__t--range i:first-child { background: color-mix(in oklab, var(--peak) 45%, transparent); }
.tz-bar__t--range i:last-child { background: var(--peak); }
.tz-bar--us .tz-bar__t i { background: var(--ok); }
.tz-bar p { margin: .2rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }

/* ─── Hibrit adımlar (hx-steps 3 sütun) ─── */
.tz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ─── Kurallar kutusu ─── */
.tz-rule {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.2rem; padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 20px; background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--warn) 45%, var(--line)); border-left-width: 5px;
}
.tz-rule__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--peak-2); background: color-mix(in oklab, var(--peak) 16%, transparent); }
.tz-rule__t { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .5rem; }
.tz-rule p { color: var(--ink-2); font-size: .97rem; line-height: 1.6; max-width: 62em; }
.tz-chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tz-chips li { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: .88rem; font-weight: 600; }
.tz-chips small { font-weight: 500; color: var(--ink-3); }

/* ─── Ek ürünler + bağlantılar ─── */
.tz-up, .tz-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tz-up__i small, .tz-links small { display: block !important; }

/* ─── Tablet ─── */
@media (max-width: 1023px) {
  .tz-calc, .tz-own, .tz-hero__split, .tz-2col { grid-template-columns: minmax(0, 1fr); }
  .tz-cuts, .tz-tips, .tz-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-steps { grid-template-columns: 1fr; }
}

/* ─── Mobil ─── */
@media (max-width: 760px) {
  .tz-cuts, .tz-tips, .tz-bars, .tz-up, .tz-links { grid-template-columns: 1fr; gap: .7rem; }
  .tz-cuts li, .tz-tip, .tz-bar { padding: 1rem .95rem; border-radius: 15px; }
  .tz-cuts li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; align-items: start; }
  .tz-cuts__n { grid-row: span 2; margin: .05rem 0 0; width: 30px; height: 30px; }
  .tz-cuts b { margin-bottom: .2rem; }
  .tz-cuts p { font-size: .88rem; }
  .tz-own__res { grid-template-columns: 1fr 1fr; }
  .tz-own__diff { grid-column: 1 / -1; }
  .tz-table th, .tz-table td { padding: .6rem .55rem; }
  .tz-table { font-size: .84rem; }
  .tz-table thead th { font-size: .66rem; letter-spacing: .03em; }
  .tz-table td:first-child { min-width: 5.4rem; }
  .tz-rule { grid-template-columns: 1fr; border-left-width: 1px; border-top-width: 5px; }
}
@media (max-width: 420px) {
  .tz-card, .tz-own { padding: 1rem .85rem; border-radius: 18px; }
  .tz-grid { gap: .8rem .6rem; }
  .tz-sel { font-size: .88rem; padding: 0 1.9rem 0 .7rem; background-position: right .7rem center; }
  .tz-dl dt { font-size: .86rem; }
  .tz-dl dd { font-size: .92rem; }
  .tz-per__r { padding: .5rem .6rem; font-size: .82rem; gap: .35rem; }
  .tz-table th, .tz-table td { padding: .55rem .45rem; }
  .tz-table { font-size: .8rem; }
  .tz-table .num { font-size: .78rem; }
  .tz-table__net .num { font-size: .84rem; }
  .tz-table--cmp { font-size: .8rem; }
  .tz-table--cmp td small { display: block; margin: .1rem 0 0; }
}
