/* =====================================================================
   Teklif sayfaları — sipariş düzeni (15.10.2026)
   Yalnız body.teklif (teklif-pcb / -seri / -3d / -gomulu / -tamir). form.css'in üstüne biner;
   araçlar, talep sayfası ve yönetim paneli form.css'i aynen kullanmaya devam eder.
   Düzen: üstte hizmet sekmeleri · solda adım kartları · sağda kayarken sabit kalan özet ·
   telefonda altta sabit gönder çubuğu. Renkler style.css değişkenlerinden (açık/koyu tema).
   ===================================================================== */

body.teklif { --tk-genis: 1160px; --tk-yan: 360px; }
body.teklif .tk-genis { max-width: var(--tk-genis); }

/* ---------- üst: konum, başlık, hizmet sekmeleri ---------- */

.tk-hero {
  position: relative; overflow: hidden;
  padding: 34px 0 26px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 260px at 12% -40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(700px 240px at 92% -60%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%),
    linear-gradient(var(--izgara) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--izgara) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}
.tk-iz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.tk-iz a { color: var(--muted); display: inline-flex; align-items: center; min-height: 34px; }
.tk-iz a:hover { color: var(--accent); text-decoration: none; }
.tk-hero h1 { font-size: clamp(26px, 4.4vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 8px; }
.tk-hero > .kap > p { color: var(--muted); font-size: 16px; max-width: 70ch; margin: 0; }

.tk-sekmeler {
  display: grid; gap: 10px; margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tk-sekmeler a {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px;
  min-height: 60px; padding: 9px 14px; border-radius: var(--r2);
  color: var(--ink); background: color-mix(in srgb, var(--panel) 78%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .18s, transform .18s, box-shadow .18s, background-color .18s;
}
.tk-sekmeler a::before {                          /* simge: assets/ikon-*.svg maskesi, rengi temadan */
  content: ""; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: var(--r1);
  background: var(--accent-soft); border: 1px solid var(--line);
}
.tk-sekmeler a::after {
  content: ""; position: absolute; left: 34px; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  background: var(--accent); -webkit-mask: var(--ikon) center / contain no-repeat; mask: var(--ikon) center / contain no-repeat;
}
.tk-sekmeler a[data-oge="pcb"]    { --ikon: url("ikon-pcb.svg"); }
.tk-sekmeler a[data-oge="seri"]   { --ikon: url("ikon-seri.svg"); }
.tk-sekmeler a[data-oge="3d"]     { --ikon: url("ikon-3d.svg"); }
.tk-sekmeler a[data-oge="gomulu"] { --ikon: url("ikon-gomulu.svg"); }
.tk-sekmeler a[data-oge="tamir"]  { --ikon: url("ikon-tamir.svg"); }
.tk-sekmeler b { align-self: end; font-size: 16px; line-height: 1.25; }
.tk-sekmeler small { align-self: start; }
.tk-sekmeler b, .tk-sekmeler small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* tek satır: kart boyu sabit (≤ 64 px) */
.tk-sekmeler small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.tk-sekmeler a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.tk-sekmeler a[aria-current="page"] {
  border-color: var(--accent); background: var(--panel);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 32px -18px color-mix(in srgb, var(--accent) 85%, transparent);
}
.tk-sekmeler a[aria-current="page"]::before { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.tk-sekmeler a[aria-current="page"]::after { background: var(--accent-ink); }

/* ---------- iki sütun: adımlar + özet ---------- */

body.teklif form.tk-duzen {
  display: grid; gap: 22px; align-items: start; padding-top: 26px; padding-bottom: 72px;
  grid-template-columns: minmax(0, 1fr) var(--tk-yan);
}
.tk-ana { min-width: 0; }

/* adım kartı: numara yuvarlakta, başlık büyük */
body.teklif fieldset {
  border-radius: var(--r2); padding: 20px 24px 24px; margin: 0 0 16px;
  transition: border-color .2s, box-shadow .2s;
}
body.teklif fieldset:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
body.teklif legend {
  display: flex; align-items: center; gap: 10px; float: left; width: 100%;
  margin: 0 0 16px; padding: 0; border: 0; background: none; border-radius: 0;
  font: 700 18px/1.3 var(--baslik); letter-spacing: -.01em; text-transform: none; color: var(--ink);
}
body.teklif legend + * { clear: both; }
body.teklif form.sirali fieldset.sirali > legend::before {
  counter-increment: bolum; content: counter(bolum);
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px/1 var(--mono); color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 90%, transparent);
}
/* adım tamam (zorunlu alanlarının hepsi geçerli — teklif-form.js): numara yerine ✓, kısa büyüme */
body.teklif form.sirali fieldset.sirali.tamam > legend::before {
  content: "✓"; font: 700 16px/1 var(--yazi);
  background: var(--ok); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--ok) 90%, transparent);
  animation: adim-tamam .35s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes adim-tamam { from { transform: scale(.55); } }
body.teklif fieldset:not(.sirali) > legend::before {          /* koşullu ek bölüm (ör. via): numarasız işaret */
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent) 60%, var(--line));
}
body.teklif fieldset > .aciklama { margin: -6px 0 16px; }

/* ---------- seçenek kutucukları ---------- */

body.teklif .secenekler { gap: 8px; }
body.teklif .secenekler label {
  position: relative; gap: 9px; min-height: 42px; padding: 8px 14px 8px 12px;
  border-radius: var(--r1); font-size: 14px; background: var(--bg);
  transition: border-color .15s, background-color .15s, box-shadow .15s, color .15s;
}
body.teklif .secenekler label::before {           /* radyo: halka · onay kutusu: kare */
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--muted) 70%, transparent); background: var(--panel);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.teklif .secenekler.coklu label::before { border-radius: var(--r1); }
body.teklif .secenekler input:checked + label {
  color: var(--ink); background: var(--accent-soft); border-color: var(--accent); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent);
}
body.teklif .secenekler input:checked + label::before {
  border-color: var(--accent); background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
}
body.teklif .secenekler.coklu input:checked + label::before {
  box-shadow: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
body.teklif .secenekler label.bilmiyorum { border-style: dashed; font-style: normal; }
body.teklif .secenekler input:checked + label.bilmiyorum { color: var(--ink); }
body.teklif .secenekler input:focus-visible + label { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }

/* hizmet seçimi (baskı devre "Ne yapalım?"): üç büyük kart */
body.teklif .secenekler[data-icerik="pcb.hizmet"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.teklif .secenekler[data-icerik="pcb.hizmet"] label { min-height: 52px; font-size: 14px; font-weight: 600; padding: 9px 14px; line-height: 1.3; }

/* 3D renk: küçük renk örneği (seçeneğin kimliğine bağlı; panelden ad değişse de kalır) */
body.teklif [data-icerik="3d.renk"] label::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: var(--r1); border: 1px solid rgba(127, 127, 127, .45); margin-left: auto; display: none; }
body.teklif [data-icerik="3d.renk"] #r1 + label::after { display: block; background: #111; }
body.teklif [data-icerik="3d.renk"] #r2 + label::after { display: block; background: #fff; }
body.teklif [data-icerik="3d.renk"] #r3 + label::after { display: block; background: #8a9099; }
body.teklif [data-icerik="3d.renk"] #r4 + label::after { display: block; background: #d33a2c; }
body.teklif [data-icerik="3d.renk"] #r5 + label::after { display: block; background: #2563eb; }

/* ---------- dosya bırakma alanı ---------- */

.tk-yukle {
  position: relative; border-radius: var(--r2); overflow: hidden;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    radial-gradient(420px 140px at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 75%),
    var(--bg);
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s;
}
.tk-yukle input[type="file"] {                    /* görünmez ama tüm alanı kaplar: tıklama + sürükle-bırak doğal çalışır */
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0;
  opacity: 0; cursor: pointer; z-index: 2; font-size: 0;
}
.tk-yukle-yuz {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 4px; min-height: 168px; padding: 22px 18px; pointer-events: none;
}
.tk-yukle-ikon {
  width: 52px; height: 52px; border-radius: var(--r2); margin-bottom: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: url("ikon-yukle.svg") center / 34px no-repeat; mask: url("ikon-yukle.svg") center / 34px no-repeat;
}
.tk-yukle-yuz b { font-size: 16px; }
.tk-yukle-yuz .tk-sec { font-size: 14px; color: var(--muted); }
.tk-yukle-yuz .tk-sec u { color: var(--accent); text-decoration: none; font-weight: 600; }
.tk-yukle-yuz small { font-size: 12px; color: var(--muted); max-width: 52ch; margin-top: 4px; overflow-wrap: anywhere; }
.tk-yukle:hover, .tk-yukle.uzerinde { border-color: var(--accent); }
.tk-yukle.uzerinde { box-shadow: 0 0 0 4px var(--accent-soft); transform: scale(1.005); }
.tk-yukle:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tk-yukle.dolu .tk-yukle-yuz { min-height: 104px; }
.tk-yukle.dolu .tk-yukle-yuz b::after { content: " · ekle"; color: var(--muted); font-weight: 500; }

.tk-dosyalar { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tk-dosyalar:empty { display: none; }
.tk-dosyalar li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--panel);
  font-size: 14px;
}
.tk-dosyalar .tk-uzanti {
  width: 34px; height: 34px; border-radius: var(--r1); display: flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--mono); letter-spacing: 0; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); overflow: hidden;
}
.tk-dosyalar .tk-ad { overflow-wrap: anywhere; font-weight: 600; }
.tk-dosyalar .tk-boyut { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tk-dosyalar button {
  width: 34px; height: 34px; padding: 0; border-radius: var(--r1); font-size: 18px; line-height: 1;
  background: transparent; color: var(--muted); border: 1px solid transparent;
}
.tk-dosyalar button:hover { color: var(--bad); border-color: var(--line); filter: none; }

/* ---------- sınırlar / gerekenler: katlanır bilgi şeridi ---------- */

details.tk-sinir {
  margin: 0 0 16px; border-radius: var(--r2); background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
details.tk-sinir > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  padding: 14px 18px; min-height: 64px;
}
details.tk-sinir > summary::-webkit-details-marker { display: none; }
details.tk-sinir > summary::before {
  content: ""; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: var(--r1);
  background: var(--uyari); -webkit-mask: url("ikon-bilgi.svg") center / 24px no-repeat; mask: url("ikon-bilgi.svg") center / 24px no-repeat;
}
details.tk-sinir > summary::after {
  content: "Aç"; grid-column: 3; grid-row: 1 / span 2; font-size: 14px; font-weight: 600; color: var(--accent);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r2); min-height: 34px; display: inline-flex; align-items: center;
}
details.tk-sinir[open] > summary::after { content: "Kapat"; }
details.tk-sinir > summary h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; grid-column: 2; }
details.tk-sinir > summary p { margin: 2px 0 0; grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.45; }
details.tk-sinir .tk-sinir-govde { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
details.tk-sinir .yetenek { margin-top: 14px; }

/* ---------- özet (sağ sütun) ---------- */

.tk-yan { position: sticky; top: 84px; align-self: start; min-width: 0; }
body.teklif .ozet-sar { padding: 0; }
body.teklif .ozet { border-radius: var(--r2); display: flex; flex-direction: column; max-height: calc(100vh - 140px); }
body.teklif .ozet h3 { font-size: 16px; letter-spacing: -.005em; padding: 14px 18px; }
body.teklif .ozet .govde { overflow: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
body.teklif .ozet table { table-layout: fixed; }                 /* uzun değer (e-posta, kart adı) sütunu genişletmesin */
body.teklif .ozet td { padding: 7px 18px; overflow-wrap: anywhere; }
body.teklif .ozet td:first-child { width: 40%; }
.tk-hizmet {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.tk-hizmet::before {
  content: ""; width: 36px; height: 36px; border-radius: var(--r1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: var(--ikon) center / 26px no-repeat; mask: var(--ikon) center / 26px no-repeat;
}
.tk-hizmet[data-oge="pcb"] { --ikon: url("ikon-pcb.svg"); }
.tk-hizmet[data-oge="seri"] { --ikon: url("ikon-seri.svg"); }
.tk-hizmet[data-oge="3d"] { --ikon: url("ikon-3d.svg"); }
.tk-hizmet[data-oge="gomulu"] { --ikon: url("ikon-gomulu.svg"); }
.tk-hizmet[data-oge="tamir"] { --ikon: url("ikon-tamir.svg"); }
.tk-hizmet b { font-size: 16px; display: block; line-height: 1.25; }
.tk-hizmet span { font-size: 12px; color: var(--muted); }

.tk-ilerleme { padding: 12px 18px 4px; }
.tk-ilerleme p { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.tk-ilerleme p b { color: var(--ink); font-weight: 600; }
.tk-cubuk { height: 6px; border-radius: var(--r1); background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.tk-cubuk span { display: block; height: 100%; width: 0; border-radius: var(--r1); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.tk-hazir .tk-cubuk span { background: var(--ok); }

body.teklif .gonder-satir { padding: 14px 18px; gap: 10px; }
body.teklif .gonder-satir button[type="submit"] {
  flex: 1 1 100%; min-height: 48px; font-size: 16px; border-radius: var(--r2); border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 90%, transparent);
}
body.teklif .gonder-satir button.ikincil { flex: 1 1 100%; min-height: 40px; font-size: 14px; }
body.teklif .gonder-satir .not { flex: 1 1 100%; }
.tk-guven {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 4px 0; font-size: 12px; color: var(--muted); line-height: 1.5;
}
.tk-guven::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: var(--ok);
  -webkit-mask: url("ikon-kilit.svg") center / contain no-repeat; mask: url("ikon-kilit.svg") center / contain no-repeat;
}

/* telefonda altta sabit gönder çubuğu (özet görününce saklanır — teklif-form.js) */
.tk-alt-cubuk { display: none; }

/* ---------- dar ekran ---------- */

@media (max-width: 1023px) {
  body.teklif form.tk-duzen { grid-template-columns: minmax(0, 1fr); }
  .tk-yan { position: static; }
  body.teklif .ozet { max-height: none; }
  body.teklif .ozet .govde { overflow: visible; }
  .tk-sekmeler { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tk-alt-cubuk {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .45);
    transition: transform .25s ease;
  }
  .tk-alt-cubuk.sakla { transform: translateY(110%); }
  .tk-alt-cubuk .tk-alt-bilgi { flex: 1 1 auto; min-width: 0; }
  .tk-alt-cubuk .tk-alt-bilgi span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tk-alt-cubuk button { flex: none; min-height: 44px; padding: 10px 18px; border-radius: var(--r2); border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
  body.teklif { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) {
  .tk-hero { padding: 22px 0 18px; }
  .tk-sekmeler { gap: 8px; margin-top: 16px; }
  .tk-sekmeler a { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; min-height: 58px; padding: 9px 10px; }
  .tk-sekmeler a::before { width: 34px; height: 34px; }
  .tk-sekmeler a::after { left: 27px; width: 19px; height: 19px; }
  .tk-sekmeler b { font-size: 14px; }
  .tk-sekmeler small { font-size: 12px; }
  body.teklif form.tk-duzen { padding-top: 16px; gap: 16px; }
  body.teklif fieldset { padding: 16px 16px 18px; border-radius: var(--r2); }
  body.teklif legend { font-size: 16px; }
  body.teklif .secenekler[data-icerik="pcb.hizmet"] { grid-template-columns: minmax(0, 1fr); }
  body.teklif .secenekler label { white-space: normal; }
  .tk-yukle-yuz { min-height: 140px; }
  details.tk-sinir > summary { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px 14px; column-gap: 10px; }
  details.tk-sinir > summary::before { width: 30px; height: 30px; }
  details.tk-sinir .tk-sinir-govde { padding: 4px 14px 14px; }
  .tk-dosyalar li { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .tk-dosyalar .tk-boyut { grid-column: 2; grid-row: 2; }
  .tk-dosyalar button { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 380px) {
  .tk-sekmeler a { padding: 9px 8px; column-gap: 8px; }
  .tk-sekmeler a::after { left: 25px; }
  .tk-alt-cubuk button { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-sekmeler a, .tk-yukle, .tk-cubuk span, .tk-alt-cubuk { transition: none; }
  body.teklif form.sirali fieldset.sirali.tamam > legend::before { animation: none; }
}

/* alan ızgarası: dar sol sütunda 2 sütun (3+1 kırık satır olmasın) */
body.teklif .alanlar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* =====================================================================
   Hizmet şeridi: beşi her ekranda tek sırada, kayma yok (Emre, 15.10).
   Seçili kart geniş (simge + ad + alt yazı); diğerleri dar (masaüstü: simge + ad · telefon: yalnız simge).
   Tıklayınca: hedef genişler, seçili daralır (flex-grow geçişi) → sayfa geçişi (destekleyen tarayıcıda
   view transition ile akarak). teklif-form.js sekmeleriKur(). Hareket azaltmada animasyon yok.
   ===================================================================== */
.tk-sekmeler { display: flex; gap: 10px; }
.tk-sekmeler a {
  flex: 1 1 0; min-width: 0;
  transition: flex-grow .34s cubic-bezier(.2, .8, .2, 1), border-color .18s, transform .18s, box-shadow .25s, background-color .25s;
}
.tk-sekmeler a[aria-current="page"] { flex-grow: 1.8; }
.tk-sekmeler a:not([aria-current="page"]) small { display: none; }
.tk-sekmeler a:not([aria-current="page"]) b { grid-row: 1 / span 2; align-self: center; }

/* geçiş: hedef genişler + parlar, eski seçili daralır */
.tk-sekmeler.gecis a[aria-current="page"] { flex-grow: 1; box-shadow: none; }
.tk-sekmeler.gecis a.hedef {
  flex-grow: 1.8; border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 32px -18px color-mix(in srgb, var(--accent) 85%, transparent);
}
.tk-sekmeler.gecis a.hedef::before { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.tk-sekmeler.gecis a.hedef::after { background: var(--accent-ink); }
/* sayfa geç gelirse hedef kart nefes alır: "yükleniyor" belli olsun */
.tk-sekmeler.gecis a.hedef { animation: tk-bekle 1.1s .5s ease-in-out infinite; }
@keyframes tk-bekle { 50% { box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 32px -18px var(--accent); } }

/* sayfalar arası akış (Chrome/Edge/Safari 18+; desteklemeyen tarayıcı anında geçer) */
@view-transition { navigation: auto; }
.tk-sekmeler a[data-oge="pcb"]    { view-transition-name: tk-sekme-pcb; }
.tk-sekmeler a[data-oge="seri"]   { view-transition-name: tk-sekme-seri; }
.tk-sekmeler a[data-oge="3d"]     { view-transition-name: tk-sekme-3d; }
.tk-sekmeler a[data-oge="gomulu"] { view-transition-name: tk-sekme-gomulu; }
.tk-sekmeler a[data-oge="tamir"]  { view-transition-name: tk-sekme-tamir; }
::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 760px) {
  .tk-sekmeler { gap: 6px; }
  .tk-sekmeler a[aria-current="page"], .tk-sekmeler.gecis a.hedef { flex-grow: 3; }
  .tk-sekmeler a:not([aria-current="page"]) { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 8px 4px; }
  .tk-sekmeler a:not([aria-current="page"])::after { left: 50%; }
  .tk-sekmeler a:not([aria-current="page"]) b { font-size: 0; }   /* yalnız simge; ad ekran okuyucuda kalır */
  .tk-sekmeler a[aria-current="page"] b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-sekmeler a { transition: none; }
  .tk-sekmeler.gecis a.hedef { animation: none; }
  @view-transition { navigation: none; }
}
@media (max-width: 760px) {
  /* eski seçili, yeni sayfa gelene kadar yalnız simge: daralan kutuda ad taşmasın (03.11) */
  .tk-sekmeler.gecis a[aria-current="page"] { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 8px 4px; }
  .tk-sekmeler.gecis a[aria-current="page"]::after { left: 50%; }
  .tk-sekmeler.gecis a[aria-current="page"] b { font-size: 0; }
  .tk-sekmeler.gecis a.hedef { grid-template-columns: 34px minmax(0, 1fr); justify-items: stretch; padding: 9px 10px; }
  .tk-sekmeler.gecis a.hedef::after { left: 27px; }
  .tk-sekmeler.gecis a.hedef b { font-size: 14px; }
}
/* tablet: beş sekmenin adı sığmaz → seçili olmayanlar telefondaki gibi yalnız simge (01.11, kart tamiri) */
@media (min-width: 761px) and (max-width: 1179px) {
  .tk-sekmeler a[aria-current="page"], .tk-sekmeler.gecis a.hedef { flex-grow: 3; }
  .tk-sekmeler a:not([aria-current="page"]) { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 9px 4px; }
  .tk-sekmeler a:not([aria-current="page"])::after { left: 50%; }
  .tk-sekmeler a:not([aria-current="page"]) b { font-size: 0; }
  .tk-sekmeler.gecis a[aria-current="page"] { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 9px 4px; }
  .tk-sekmeler.gecis a[aria-current="page"]::after { left: 50%; }
  .tk-sekmeler.gecis a[aria-current="page"] b { font-size: 0; }
  .tk-sekmeler.gecis a.hedef { grid-template-columns: 40px minmax(0, 1fr); justify-items: stretch; padding: 9px 14px; }
  .tk-sekmeler.gecis a.hedef::after { left: 34px; }
  .tk-sekmeler.gecis a.hedef b { font-size: 16px; }
}
.tk-sekmeler.gecis a[aria-current="page"] { border-color: var(--line); background: color-mix(in srgb, var(--panel) 78%, transparent); }
.tk-sekmeler.gecis a[aria-current="page"]::before { background: var(--accent-soft); border-color: var(--line); }
.tk-sekmeler.gecis a[aria-current="page"]::after { background: var(--accent); }
.tk-sekmeler.gecis a[aria-current="page"] small { display: none; }

/* telefon: beş sekmede seçili olanın adı sığsın → simgeler 30 px, diğerleri sabit 36 px, seçilide alt yazı yok (01.11) */
@media (max-width: 560px) {
  .tk-sekmeler a::before { width: 30px; height: 30px; border-radius: var(--r1); }
  .tk-sekmeler a::after { width: 17px; height: 17px; }
  .tk-sekmeler a:not([aria-current="page"]), .tk-sekmeler.gecis a[aria-current="page"] { flex: 0 0 36px; padding: 8px 3px; }
  .tk-sekmeler a[aria-current="page"], .tk-sekmeler.gecis a.hedef { flex: 1 1 0; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 9px 8px; }
  .tk-sekmeler a[aria-current="page"]::after, .tk-sekmeler.gecis a.hedef::after { left: 23px; }
  .tk-sekmeler a[aria-current="page"] small, .tk-sekmeler.gecis a.hedef small { display: none; }
  .tk-sekmeler a[aria-current="page"] b, .tk-sekmeler.gecis a.hedef b { grid-row: 1 / span 2; align-self: center; font-size: 14px; }
}
@media (max-width: 359px) {
  .tk-sekmeler { gap: 4px; }
  .tk-sekmeler a:not([aria-current="page"]), .tk-sekmeler.gecis a[aria-current="page"] { flex-basis: 34px; }
  .tk-sekmeler a[aria-current="page"], .tk-sekmeler.gecis a.hedef { padding: 9px 6px; column-gap: 6px; }
  .tk-sekmeler a[aria-current="page"]::after, .tk-sekmeler.gecis a.hedef::after { left: 21px; }
  .tk-sekmeler a[aria-current="page"] b, .tk-sekmeler.gecis a.hedef b { font-size: 14px; }
}
