/* ==========================================================================
   agirligihesapla.com — tasarım sistemi v2 (2026-10)
   ========================================================================== */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --ink: #0b1220;
  --ink-2: #344054;
  --ink-3: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #0e7c86;
  --brand-2: #0a5f67;
  --brand-soft: #e6f4f5;
  --accent: #ffb020;
  --accent-ink: #2a1a00;
  --danger: #d92d20;
  --dark: #0b1220;
  --dark-2: #141c2b;
  --dark-line: rgb(255 255 255 / 10%);
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;
  --sh-1: 0 1px 2px rgb(16 24 40 / 5%);
  --sh-2: 0 1px 3px rgb(16 24 40 / 6%), 0 8px 24px rgb(16 24 40 / 6%);
  --sh-3: 0 2px 6px rgb(16 24 40 / 6%), 0 24px 64px rgb(16 24 40 / 14%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Manrope", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* sayfalar arası yumuşak geçiş (destekleyen tarayıcılarda) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* görünür olunca belirme */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- butonlar ---------- */
.btn {
  --b: var(--ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--b); color: var(--c); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { color: var(--c); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(11 18 32 / 18%); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-accent { --b: var(--accent); --c: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 10px 24px rgb(255 176 32 / 40%); }
.btn-ghost { --b: transparent; --c: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-light { --b: rgb(255 255 255 / 10%); --c: #fff; border-color: rgb(255 255 255 / 16%); }
.btn-light:hover { --b: rgb(255 255 255 / 16%); box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: background .15s, border-color .15s; }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- üst menü ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgb(255 255 255 / 82%);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgb(16 24 40 / 5%); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo span b { color: var(--brand); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--line); }
.hdr .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; transition: transform .25s var(--ease), opacity .2s; content: ""; }
.nav-toggle i::before { position: absolute; top: -6px; }
.nav-toggle i::after { position: absolute; top: 6px; }
.nav-open .nav-toggle i { background: transparent; }
.nav-open .nav-toggle i::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle i::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .hdr .btn { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gut) 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease);
  }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 360px at 85% -10%, rgb(14 124 134 / 55%), transparent 70%),
    radial-gradient(520px 300px at 0% 10%, rgb(255 176 32 / 16%), transparent 70%),
    var(--dark);
  padding: 0 0 clamp(150px, 15vw, 180px);
  margin-top: -68px; padding-top: calc(68px + clamp(28px, 4.5vw, 56px));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero > .wrap { position: relative; }
.home .hdr:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .hdr:not(.is-scrolled) .logo, .home .hdr:not(.is-scrolled) .nav a { color: #fff; }
.home .hdr:not(.is-scrolled) .nav a:hover, .home .hdr:not(.is-scrolled) .nav a[aria-current="page"] { background: rgb(255 255 255 / 10%); box-shadow: none; }
.home .hdr:not(.is-scrolled) .nav-toggle { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 16%); }
.home .hdr:not(.is-scrolled) .nav-toggle i, .home .hdr:not(.is-scrolled) .nav-toggle i::before, .home .hdr:not(.is-scrolled) .nav-toggle i::after { background: #fff; }
html.nav-open .home .hdr .nav a, html.nav-open .home .hdr:not(.is-scrolled) .nav a { color: var(--ink-2); }
html.nav-open .home .hdr .nav-toggle i, html.nav-open .home .hdr:not(.is-scrolled) .nav-toggle i { background: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--brand); }
.hero .eyebrow { color: #9ee6ec; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 12%); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgb(61 220 151 / 20%); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -0.035em; line-height: 1.04; margin: 16px 0 14px; max-width: 20ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd27a, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: rgb(255 255 255 / 72%); max-width: 56ch; margin-bottom: 26px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 14.5px; color: rgb(255 255 255 / 80%); }
.hero-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-ticks svg { width: 18px; height: 18px; color: #3ddc97; }

/* ---------- hesaplama uygulaması ---------- */
.calc-sec { position: relative; z-index: 2; margin-top: clamp(-150px, -13vw, -120px); }
.app {
  display: grid; grid-template-columns: 200px minmax(300px, 380px) minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); overflow: hidden; min-height: 640px;
}
.page .calc-sec { margin-top: 0; }

/* şekil listesi */
.rail { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--surface-2); border-right: 1px solid var(--line); }
.rail-title { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px 8px; }
.rail button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 11px; background: transparent;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-align: left;
  transition: background .15s, color .15s, box-shadow .2s;
}
.rail button svg { width: 30px; height: 30px; flex: none; padding: 5px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: inherit; }
.rail button:hover { background: rgb(16 24 40 / 4%); color: var(--ink); }
.rail button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.rail button.is-active svg { background: var(--ink); border-color: var(--ink); color: #fff; }

/* form */
.panel { padding: 22px 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h2 { font-size: 22px; margin: 0; }
.panel-head .hist-btn { position: relative; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.fields.swap-in { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-len { grid-column: 1 / -1; }
.field-label, .lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field-label em { font-style: normal; font-weight: 600; color: var(--ink-3); font-size: 12px; }
.field-box {
  display: flex; align-items: center; height: 48px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s;
}
.field-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(14 124 134 / 14%); }
.field-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 0 0 14px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.field-unit, .unit-toggle { flex: none; padding: 0 12px; color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.unit-toggle { height: 34px; margin-right: 7px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.unit-toggle:hover { border-color: var(--ink-2); }
.unit-toggle::after { content: " ⇄"; font-size: 11px; opacity: .6; }
.select {
  width: 100%; height: 48px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding: 0 38px 0 14px; font-weight: 600; appearance: none; -webkit-appearance: none;
}
.select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgb(14 124 134 / 14%); }
.divider { height: 1px; background: var(--line); margin: 2px 0; }
.mat-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); text-align: left; font-weight: 700;
  transition: border-color .15s;
}
.mat-btn:hover { border-color: var(--ink-2); }
.mat-btn [data-material-name] { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-btn .chev { color: var(--ink-3); }
.mat-swatch { width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff 0, var(--sw) 45%, color-mix(in srgb, var(--sw) 60%, #000) 100%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qty { display: flex; align-items: center; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.qty:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(14 124 134 / 14%); }
.qty button { width: 40px; height: 100%; border: 0; background: var(--surface-2); font-size: 18px; color: var(--ink-2); }
.qty button:hover { background: var(--line); }
.qty input { flex: 1; min-width: 0; border: 0; text-align: center; font-size: 17px; font-weight: 700; outline: none; height: 100%; }
.price-box summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.price-box summary::-webkit-details-marker { display: none; }
.price-box summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); transition: transform .2s; }
.price-box[open] summary::before { content: "–"; }
.price-box .field { margin-top: 10px; }

/* görsel + sonuç */
.stage { display: grid; grid-template-rows: minmax(300px, 1fr) auto; min-width: 0; background: var(--surface-2); }
.viewer {
  position: relative; overflow: hidden; min-height: 320px; touch-action: none;
  background:
    radial-gradient(90% 70% at 50% 20%, #ffffff 0%, #eef1f5 60%, #dfe4ea 100%);
  cursor: grab;
}
.viewer.is-grabbing { cursor: grabbing; }
.v3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.v3d-overlay { position: absolute; inset: 0; pointer-events: none; }
.v3d-label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgb(255 255 255 / 92%); color: var(--ink); box-shadow: 0 2px 10px rgb(16 24 40 / 12%), inset 0 0 0 1px var(--line);
  transition: opacity .2s;
}
.v3d-label.lbl-a { color: #b42318; }
.v3d-label.lbl-b { color: var(--brand-2); }
.v3d-label.lbl-c { color: #6941c6; }
.v3d-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: opacity .4s; }
.v3d-loading span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.v3d-loading.done { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.v3d-tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.v3d-tools .icon-btn { background: rgb(255 255 255 / 92%); box-shadow: var(--sh-1); }
.v3d-hint svg { width: 16px; height: 16px; }
.v3d-hint { position: absolute; left: 14px; bottom: 16px; z-index: 2; font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; pointer-events: none; }
.v3d-info { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: rgb(255 255 255 / 92%); padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

.result {
  margin: 0; padding: 22px 24px 24px; color: #e8edf4;
  background: linear-gradient(160deg, #101a2b 0%, var(--dark) 100%);
  position: relative;
}
.result-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 55%); margin-bottom: 4px; }
.result-total { font-family: var(--display); font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.result-total small { font-size: .42em; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.result-sum { font-size: 13.5px; color: rgb(255 255 255 / 60%); margin: 8px 0 0; }
.result-money { text-align: right; }
.result-money b { display: block; font-family: var(--display); font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
.result-money span { font-size: 12.5px; color: rgb(255 255 255 / 55%); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.stat { padding: 12px; border-radius: 12px; background: rgb(255 255 255 / 5%); border: 1px solid var(--dark-line); min-width: 0; }
.stat b { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: rgb(255 255 255 / 55%); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
.actions .btn-wa { --b: #25d366; --c: #062b14; }
.result-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgb(217 45 32 / 14%); border: 1px solid rgb(217 45 32 / 40%); color: #ffd1cc; font-size: 14px; font-weight: 600; }
.has-error .result-total, .has-error .stats, .has-error .result-money { opacity: .35; filter: grayscale(1); }
.has-error .actions { pointer-events: none; opacity: .4; }

/* mobil alt sonuç çubuğu */
.mbar { display: none; }

/* responsive uygulama */
@media (max-width: 1180px) {
  .app { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .rail { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-title { display: none; }
  .rail button { flex: none; width: auto; padding: 8px 12px 8px 8px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; border-radius: 20px; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .viewer { min-height: 280px; height: 58vw; max-height: 380px; }
  .result { padding: 18px; }
  .v3d-hint { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .result-money { text-align: left; }
  .mbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
    border-radius: 16px; background: var(--dark); color: #fff; box-shadow: var(--sh-3);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .mbar.show { transform: none; }
  .mbar b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
  .mbar small { color: var(--accent); font-weight: 800; margin-left: 4px; }
  .mbar span { display: block; font-size: 11.5px; color: rgb(255 255 255 / 60%); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
}

/* ---------- diyaloglar ---------- */
dialog.sheet {
  width: min(560px, calc(100% - 24px)); max-height: min(720px, calc(100% - 48px)); padding: 0; border: 0;
  border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-3);
  overflow: hidden; display: none; flex-direction: column;
}
dialog.sheet[open] { display: flex; animation: pop .28s var(--ease); }
dialog.sheet::backdrop { background: rgb(11 18 32 / 55%); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.sheet-search { margin: 0 20px 12px; position: relative; }
.sheet-search input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 14px 0 40px; font-size: 16px; outline: none; }
.sheet-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(14 124 134 / 14%); }
.sheet-search svg { position: absolute; left: 13px; top: 14px; width: 18px; height: 18px; color: var(--ink-3); }
.sheet-body { overflow: auto; padding: 0 12px 16px; overscroll-behavior: contain; }
.mat-group-title { position: sticky; top: 0; background: var(--surface); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 8px 6px; z-index: 1; }
.mat-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.mat-item:hover { background: var(--surface-2); }
.mat-item.is-active { background: var(--brand-soft); }
.mat-name { flex: 1; font-weight: 600; }
.mat-d { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mat-d::after { content: " g/cm³"; font-size: 11.5px; }
.mat-empty, .hist-empty { padding: 20px 8px; color: var(--ink-3); }
.hist-list { list-style: none; margin: 0; padding: 0 8px; }
.hist-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.hist-item a { flex: 1; text-decoration: none; color: inherit; display: grid; gap: 2px; }
.hist-top { display: flex; justify-content: space-between; gap: 8px; }
.hist-top time { font-size: 12px; color: var(--ink-3); }
.hist-sum { font-size: 13.5px; color: var(--ink-3); }
.hist-kg { font-family: var(--display); font-weight: 700; color: var(--brand-2); }
.sheet-foot { padding: 12px 20px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  dialog.sheet { width: 100%; max-width: none; max-height: 86vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  dialog.sheet[open] { animation: up .32s var(--ease); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: var(--sh-3); transition: opacity .2s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 820px) { .toast { bottom: 96px; } }

/* ---------- bölümler ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-tight { padding: clamp(40px, 6vw, 72px) 0; }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; margin: 10px 0 12px; }
.sec-head p { color: var(--ink-3); font-size: 17px; margin: 0; }
.grid { display: grid; gap: 16px; }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g-3, .g-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); margin-bottom: 16px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { color: var(--ink-3); margin: 0; font-size: 15px; }
.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 20px; left: 24px; font-family: var(--display); font-weight: 700; color: var(--brand); font-size: 14px; letter-spacing: .04em; }
.link-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.link-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.link-card .lc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 10px; color: var(--ink); }
.link-card .lc-ic svg { width: 26px; height: 26px; }
.link-card h3 { font-size: 17px; margin: 0; }
.link-card p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.link-card .more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; color: var(--brand); }
.link-card:hover .more { text-decoration: underline; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.dark-band { background: var(--dark); color: #fff; }
.dark-band h2 { color: #fff; }
.dark-band p { color: rgb(255 255 255 / 70%); }

/* hızlı tablolar */
.tbl-card { padding: 0; overflow: hidden; }
.tbl-card header { padding: 18px 20px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tbl-card h3 { margin: 0; font-size: 17px; }
.tbl-card header a { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 16px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--brand-soft); }
.tbl td:first-child { font-weight: 700; color: var(--ink); }

/* SSS */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* CTA */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: radial-gradient(600px 240px at 100% 0%, rgb(14 124 134 / 50%), transparent 70%), var(--dark); color: #fff; }
.cta-box h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.cta-box p { color: rgb(255 255 255 / 70%); margin: 0; }

/* ---------- içerik sayfaları ---------- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.035em; max-width: 20ch; margin: 10px 0 14px; }
.page-hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 70ch; margin: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 16px; height: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.toc { padding: 18px; }
.toc h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; font-family: var(--font); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-3); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand-2); border-left-color: var(--brand); }
.aside-cta { padding: 20px; background: var(--dark); color: #fff; border: 0; }
.aside-cta h4 { color: #fff; font-size: 17px; margin: 0 0 6px; }
.aside-cta p { color: rgb(255 255 255 / 70%); font-size: 14px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .aside { position: static; order: -1; } .toc { display: none; } .aside-cta { display: none; } }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > section { padding: 28px 0; border-top: 1px solid var(--line); }
.prose > section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 14px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); }
.prose .tbl-wrap { border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; background: var(--surface); }
.prose .tbl { font-size: 15px; }
.prose .tbl tr:first-child th, .prose .tbl tr:first-child td { border-top: 0; }
.note { padding: 14px 16px; border-radius: 12px; background: #fffaeb; border: 1px solid #fedf89; color: #7a4d00; font-size: 15.5px; }
.formula { padding: 14px 18px; border-radius: 12px; background: var(--dark); color: #e8edf4; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 15px; overflow-x: auto; }
.related { margin-top: 12px; }

/* yasal / iletişim */
.narrow { max-width: 820px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card b { display: block; font-family: var(--display); font-size: 16px; margin-top: 6px; word-break: break-word; }
.contact-grid .card span { font-size: 13px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- alt bilgi ---------- */
.ftr { background: var(--dark); color: rgb(255 255 255 / 70%); padding: 64px 0 28px; margin-top: 0; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 24px; }
@media (max-width: 860px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }
.ftr .logo { color: #fff; }
.ftr .logo span b { color: #6fd3db; }
.ftr p { font-size: 14.5px; max-width: 36ch; margin-top: 14px; }
.ftr h4 { color: #fff; font-family: var(--font); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: rgb(255 255 255 / 70%); text-decoration: none; font-size: 14.5px; }
.ftr a:hover { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 13.5px; }

/* çerez */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 420px;
  display: flex; gap: 14px; align-items: center; padding: 14px 14px 14px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 14px; color: var(--ink-2);
  transform: translateY(calc(100% + 24px)); transition: transform .45s var(--ease);
}
.cookie.show { transform: none; }
.cookie p { margin: 0; }
@media (max-width: 820px) { .cookie { left: 12px; right: 12px; max-width: none; bottom: 84px; } }

/* yazdırma raporu */
.print-report { display: none; }
@media print {
  body > *:not(.print-report) { display: none !important; }
  .print-report { display: block; font: 12pt/1.5 var(--font); color: #000; }
  .print-report header { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 16px; }
  .print-report h1 { font-size: 20pt; margin: 0 0 4px; }
  .print-report img { max-height: 260px; margin: 12px auto; }
  .print-report table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  .print-report th, .print-report td { border-bottom: 1px solid #ccc; padding: 8px; text-align: left; }
  .print-report td { text-align: right; }
  .print-report .pr-total th, .print-report .pr-total td { font-size: 14pt; font-weight: 800; border-bottom: 2px solid #000; }
  .print-report .pr-note { margin-top: 18px; font-size: 9pt; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- kompakt hero: hesaplayıcı ilk ekranda ---------- */
.hero.hero-compact { padding-top: calc(68px + 18px); padding-bottom: 104px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.hero-compact h1 { font-size: clamp(26px, 3vw, 38px); max-width: none; margin: 0 0 6px; line-height: 1.1; }
.hero-compact .hero-lead { font-size: 16px; margin: 0; max-width: 60ch; }
.hero-compact .hero-ticks { display: grid; grid-template-columns: auto auto; gap: 6px 22px; font-size: 14px; }
.home .calc-sec { margin-top: -84px; }
.home .app { min-height: 600px; }
@media (max-width: 900px) {
  .hero.hero-compact { padding-bottom: 92px; }
  .hero-compact .hero-ticks { display: none; }
  .hero-compact .hero-lead { font-size: 15px; }
  .home .calc-sec { margin-top: -72px; }
}

/* ==========================================================================
   Teklif hazırla
   ========================================================================== */
.tq { padding-bottom: 72px; }
.tq-bar { position: sticky; top: 68px; z-index: 30; background: rgb(245 246 248 / 88%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tq-bar-in { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.tq-bar h1 { font-size: 26px; margin: 2px 0 0; }
.tq-actions { margin-left: auto; display: flex; gap: 8px; }
.tq-views { display: none; }
.tq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; padding-top: 24px; }
.tq-editor { display: grid; gap: 16px; }
.tq-card { padding: 22px; }
.tq-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 16px; }
.tq-card h2 span { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.tq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tq-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tq-f > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tq-full { grid-column: 1 / -1; }
.tq input:not([type=checkbox]):not([type=file]), .tq textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; padding: 10px 12px; font: inherit; font-size: 15.5px; outline: none;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.tq textarea { min-height: 64px; }
.tq input:focus, .tq textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(14 124 134 / 14%); }
.tq .select { height: 44px; }
.tq-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.tq-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.tq-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tq-logo label { cursor: pointer; }
.tq-logo-prev { display: flex; align-items: center; gap: 10px; }
.tq-logo-prev img { height: 40px; max-width: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; }
.tq-link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.tq-rows { display: grid; gap: 12px; }
.tq-row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.tq-row.tq-in { animation: swap .3s var(--ease); }
.tq-row .tq-desc { grid-column: 1 / -1; padding-right: 34px; }
.tq-pricebox { display: flex; gap: 6px; }
.tq-pricebox select { height: 44px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; padding: 0 8px; font: inherit; font-size: 14px; }
.tq-line b { display: flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 16px; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.tq-del { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); }
.tq-del:hover { color: var(--danger); border-color: var(--danger); }
.tq-rows-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tq-sum { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.tq-sum p { display: flex; justify-content: space-between; margin: 0; color: var(--ink-2); }
.tq-sum b { font-variant-numeric: tabular-nums; }
.tq-sum-g b { font-family: var(--display); font-size: 20px; color: var(--ink); }

/* A4 önizleme */
.tq-preview { position: sticky; top: 156px; }
.tq-paper-wrap { background: #e9ecf1; border-radius: 18px; padding: 22px; border: 1px solid var(--line); max-height: calc(100vh - 180px); overflow: auto; }
.tq-paper {
  background: #fff; color: var(--ink); width: 100%; aspect-ratio: 210 / 297; padding: 7% 7% 5%; box-shadow: 0 10px 40px rgb(16 24 40 / 12%);
  display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.5; border-top: 5px solid var(--ink);
}
.pp-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pp-brand { display: flex; gap: 10px; align-items: center; }
.pp-brand img { width: 48px; height: 48px; object-fit: contain; }
.pp-mono { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.pp-brand b { display: block; font-size: 14px; }
.pp-brand span { color: var(--ink-3); font-size: 11px; }
.pp-title { text-align: right; }
.pp-title h2 { font-size: 22px; color: var(--brand); margin: 0 0 6px; letter-spacing: .02em; }
.pp-title dl { display: grid; grid-template-columns: auto auto; gap: 1px 14px; margin: 0; font-size: 10.5px; }
.pp-title dt { color: var(--ink-3); text-align: left; }
.pp-title dd { margin: 0; font-weight: 700; }
.pp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 0; }
.pp-party { display: grid; gap: 1px; align-content: start; }
.pp-party b { font-size: 13px; margin-bottom: 2px; }
.pp-party span { color: var(--ink-2); font-size: 10.5px; }
.pp-k { color: var(--ink-3) !important; font-size: 9.5px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.pp-ph { color: #c0c6cf; font-style: normal; }
.pp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pp-table th { background: var(--surface-2); color: var(--ink-3); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 8px; text-align: right; }
.pp-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.pp-table th:nth-child(-n+2), .pp-table td:nth-child(-n+2) { text-align: left; }
.pp-table td:last-child { font-weight: 700; }
.pp-bottom { display: grid; grid-template-columns: 1fr 44%; gap: 20px; padding-top: 16px; }
.pp-terms p { margin: 0 0 8px; color: var(--ink-2); font-size: 10.5px; }
.pp-terms span { display: block; color: var(--ink-3); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pp-totals p { display: flex; justify-content: space-between; margin: 0; padding: 4px 0; font-variant-numeric: tabular-nums; }
.pp-totals span { color: var(--ink-3); }
.pp-grand { margin-top: 6px !important; padding: 10px 12px !important; border-radius: 8px; background: var(--ink); color: #fff; }
.pp-grand span { color: rgb(255 255 255 / 75%) !important; }
.pp-grand b { color: #ffd27a; font-size: 14px; }
.pp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: auto; padding-top: 24px; }
.pp-sign div { height: 60px; border: 1px dashed var(--line-2); border-radius: 8px; display: flex; align-items: flex-end; padding: 6px 10px; color: var(--ink-3); font-size: 10px; }
.pp-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 9px; }

@media (max-width: 1080px) {
  .tq-grid { grid-template-columns: 1fr; }
  .tq-views { display: inline-flex; margin-left: auto; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
  .tq-views button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; color: var(--ink-2); }
  .tq-views button.is-on { background: var(--ink); color: #fff; }
  .tq-actions { margin-left: 0; }
  body:not([data-tq-view="preview"]) .tq-preview { display: none; }
  body[data-tq-view="preview"] .tq-editor { display: none; }
  .tq-preview { position: static; }
  .tq-paper-wrap { max-height: none; padding: 12px; }
  .tq-paper { aspect-ratio: auto; min-height: 600px; }
}
@media (max-width: 640px) {
  .tq-bar-in { flex-wrap: wrap; }
  .tq-bar h1 { font-size: 22px; }
  .tq-actions { width: 100%; }
  .tq-actions .btn { flex: 1; }
  .tq-fields { grid-template-columns: 1fr; }
  .tq-row { grid-template-columns: 1fr 1fr; }
  .tq-paper { font-size: 10px; padding: 18px; }
  .pp-head, .pp-bottom, .pp-parties { grid-template-columns: 1fr; display: grid; }
  .pp-title { text-align: left; }
}
@media print {
  body.page > *:not(main) { display: none !important; }
  .tq-bar, .tq-editor, .tq-views { display: none !important; }
  .tq-grid { display: block; padding: 0; width: auto; }
  .tq-preview, body .tq-preview { display: block !important; position: static; }
  .tq-paper-wrap { background: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .tq-paper { box-shadow: none; aspect-ratio: auto; min-height: 270mm; padding: 0; font-size: 10pt; border-top: 0; }
  @page { size: A4; margin: 14mm; }
}

/* ==========================================================================
   Hakkında / İletişim
   ========================================================================== */
.ab-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); background: radial-gradient(700px 300px at 90% 0%, rgb(14 124 134 / 10%), transparent 70%); }
.ab-hero h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.035em; max-width: 20ch; margin: 12px 0 16px; }
.ab-hero h1 em { font-style: normal; color: var(--brand); }
.ab-hero .lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 62ch; margin: 0; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.ab-stat { padding: 24px; border-left: 1px solid var(--line); }
.ab-stat:first-child { border-left: 0; }
.ab-stat b { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.ab-stat span { display: block; font-weight: 800; color: var(--brand-2); margin: 6px 0 6px; }
.ab-stat p { margin: 0; font-size: 14px; color: var(--ink-3); }
.ab-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.ab-split p { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.ab-h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; margin: 10px 0 14px; }
.ab-quote { padding: 32px; background: var(--dark); color: #fff; border: 0; position: relative; overflow: hidden; }
.ab-quote::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgb(14 124 134 / 55%), transparent 70%); }
.ab-quote-ic { width: 52px; height: 52px; border-radius: 14px; background: rgb(255 255 255 / 8%); display: grid; place-items: center; margin-bottom: 18px; color: #ffd27a; }
.ab-quote-ic svg { width: 30px; height: 30px; }
.ab-quote p { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: #fff; margin: 0 0 14px; position: relative; z-index: 1; }
.ab-quote span { color: rgb(255 255 255 / 60%); font-size: 14px; font-weight: 700; }
.ab-users { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-users li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; font-size: 15px; }
.ab-users svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
@media (max-width: 900px) {
  .ab-stats { grid-template-columns: 1fr 1fr; }
  .ab-stat:nth-child(3) { border-left: 0; }
  .ab-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .ab-users { grid-template-columns: 1fr; } }

.ct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ct-card { display: flex; flex-direction: column; gap: 4px; }
.ct-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); margin-bottom: 10px; }
.ct-card .ic svg { width: 22px; height: 22px; }
.ct-card span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ct-card b { font-family: var(--display); font-size: 19px; word-break: break-word; }
.ct-card p { margin: 0; color: var(--ink-3); font-size: 14px; }
.ct-act { display: flex; gap: 8px; margin-top: 12px; }
.ct-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.ct-form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.ct-form h2 { font-size: 26px; margin: 0; }
.ct-sub { margin: -8px 0 0; color: var(--ink-3); }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-topics label { cursor: pointer; }
.ct-topics input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topics span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .15s; }
.ct-topics input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-topics input:focus-visible + span { outline: 3px solid rgb(14 124 134 / 40%); outline-offset: 2px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-form input, .ct-form textarea { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; resize: vertical; }
.ct-form input:focus, .ct-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(14 124 134 / 14%); }
.ct-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.ct-priv { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink-3); }
.ct-priv svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.ct-side { display: grid; gap: 16px; }
.ct-mini h3 { font-size: 17px; margin: 0 0 10px; }
.ct-mini ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
@media (max-width: 900px) { .ct-cards, .ct-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Rehberler merkezi
   ========================================================================== */
.hub-search { position: relative; max-width: 640px; margin-top: 28px; }
.hub-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); }
.hub-search input { width: 100%; height: 58px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; padding: 0 120px 0 50px; font: inherit; font-size: 17px; box-shadow: var(--sh-2); outline: none; transition: border-color .15s, box-shadow .15s; }
.hub-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(14 124 134 / 14%), var(--sh-2); }
.hub-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 800; color: var(--ink-3); background: var(--surface-2); padding: 5px 10px; border-radius: 999px; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hub-chips a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s; }
.hub-chips a:hover { border-color: var(--ink); color: var(--ink); }
.hub-group { padding-top: 40px; scroll-margin-top: 90px; }
.hub-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hub-gh h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; }
.hub-gh p { margin: 0; color: var(--ink-3); }
.hub-card[hidden] { display: none !important; }
.hub-empty { margin: 32px 0 0; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-2); text-align: center; }
.hub-step { text-decoration: none; color: inherit; position: relative; padding-top: 64px; transition: transform .2s var(--ease), box-shadow .2s; }
.hub-step:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--sh-2); }
.hub-step span { position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.hub-step h3 { font-size: 18px; margin-bottom: 6px; }
.hub-step p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* Mobil taşma düzeltmesi: geniş tablolar ve form alanları ızgara sütununu genişletmesin */
.prose, .prose > section, .layout > *, .ct-split > *, .ct-form, .tq-grid > *, .ab-split > * { min-width: 0; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .ct-cards, .ct-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ct-row { grid-template-columns: minmax(0, 1fr); } }
.prose .tbl-wrap { max-width: 100%; }
.ct-form .ct-topics input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* ==========================================================================
   Mobil kararlılık düzeltmeleri (2026-10-06)
   ========================================================================== */
/* Çerez bildirimi: "Tamam"dan sonra telefonda yarım kalmasın, tamamen gizlensin */
.cookie { visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
.cookie.show { visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
@media (max-width: 820px) { .cookie:not(.show) { transform: translateY(calc(100% + 120px)); } }
/* 3D model: parmakla sürükleme yalnızca modeli döndürür, sayfa oynamaz (kaydırmak için modelin dışından kaydırılır) */
.viewer, .viewer canvas { touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* iPhone'da 16 pikselden küçük kutulara dokununca sayfa yakınlaşıp kalmasın */
@media (max-width: 820px) {
  input, select, textarea, .tq input:not([type=checkbox]):not([type=file]), .tq textarea, .tq-pricebox select, .tq .select, .select { font-size: 16px !important; }
  /* kaydırırken içerik aşağıdan kayarak gelmesin (titreme hissi) — yalnızca yumuşak belirme */
  .js [data-reveal] { transform: none !important; transition: opacity .35s ease var(--d, 0ms); }
}
/* klavye açıkken alttaki toplam çubuğu zıplamasın */
.is-typing .mbar { display: none !important; }
/* yatay taşmaya karşı son güvence */
html, body { overflow-x: clip; }

/* ==========================================================================
   v2.1: malzeme listesi, fire / ters hesap, yeni alanlar
   ========================================================================== */
.head-btns { display: flex; gap: 6px; }
.hist-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } }
.fields .field select.select { height: 48px; }
.price-box .row-2 { margin-top: 10px; }
.price-box .row-2 .field { margin-top: 0; }
.result-note2 { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: rgb(255 176 32 / 12%); border: 1px solid rgb(255 176 32 / 30%); color: #ffe2a8; font-size: 13.5px; }
.result-note2 b { color: #fff; }
.result-note2.rev { background: rgb(14 124 134 / 18%); border-color: rgb(111 211 219 / 30%); color: #b9eef2; }
.actions .btn-accent { --b: var(--accent); --c: var(--accent-ink); }
dialog.sheet.sheet-wide { width: min(720px, calc(100% - 24px)); }
.list-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.list-tbl th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 8px 8px; border-bottom: 1px solid var(--line); }
.list-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list-tbl td small { display: block; color: var(--ink-3); font-size: 12.5px; }
.list-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-qty { width: 64px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; text-align: center; font-size: 16px; font-weight: 700; }
.list-qty:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(14 124 134 / 14%); }
.list-empty { display: grid; gap: 6px; padding: 28px 8px; text-align: center; color: var(--ink-3); }
.list-empty b { color: var(--ink); font-size: 16px; }
.list-foot { border-top: 1px solid var(--line); padding: 14px 20px 18px; display: grid; gap: 12px; background: var(--surface-2); }
.list-fire { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.list-fire .field-box { width: 110px; height: 40px; }
.list-total { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.list-total div { display: grid; }
.list-total span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.list-total b { font-family: var(--display); font-size: 20px; }
.list-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .list-tbl th:nth-child(2) { width: 70px; } .list-foot { padding: 12px 14px 16px; } }

.prose .see-also { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2, #f5f7fa); border: 1px solid var(--line); font-size: 15px; line-height: 1.7; }
.prose .see-also b { color: var(--ink); }

/* ==========================================================================
   v3: tır yükleme planı, yenilik tanıtımı
   ========================================================================== */
.nav-new, .new-pill { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: #2a1a00; vertical-align: 2px; margin-left: 5px; line-height: 1.3; }
.new-pill { font-size: 11px; padding: 3px 9px; margin: 0 6px 0 0; }
.btn-truck { position: relative; }
.btn-truck .nav-new { position: absolute; top: -8px; right: -6px; margin: 0; box-shadow: 0 2px 6px rgb(0 0 0 / 25%); }
/* ana sayfa tanıtım kartı */
.promo-sec { padding: 8px 0; }
.promo-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 26px 30px; border-radius: 22px; text-decoration: none; color: #fff;
  background: radial-gradient(600px 260px at 100% 0%, rgb(14 124 134 / 55%), transparent 70%), linear-gradient(135deg, #0b1220, #13213a); box-shadow: 0 20px 50px rgb(16 24 40 / 25%); transition: transform .3s var(--ease), box-shadow .3s; }
.promo-card:hover { transform: translateY(-3px); }
.promo-card h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 8px; letter-spacing: -0.02em; }
.promo-card p { color: rgb(255 255 255 / 72%); margin: 0 0 18px; max-width: 52ch; }
.promo-card .btn svg, .promo-box .btn svg { width: 18px; height: 18px; }
.promo-vis { min-height: 180px; display: grid; place-items: center; }
.promo-art { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.promo-art .pb { animation: pbDrop 6s ease infinite both; }
.promo-art .pb2 { animation-delay: .35s; } .promo-art .pb3 { animation-delay: .7s; } .promo-art .pb4 { animation-delay: 1.05s; }
.promo-art .promo-kg { animation: pbKg 6s ease infinite both; animation-delay: 1.4s; }
@keyframes pbDrop { 0% { transform: translateY(-46px); opacity: 0; } 9% { opacity: 1; } 16%, 86% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes pbKg { 0%, 4% { opacity: 0; transform: translateY(6px); } 12%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .promo-art .pb, .promo-art .promo-kg { animation: none; } }
@media (max-width: 820px) { .promo-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 6px; } .promo-vis { min-height: 150px; order: -1; } }
/* tanıtım penceresi */
.promo-pop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgb(11 18 32 / 0%); transition: background .25s; }
.promo-pop.in { background: rgb(11 18 32 / 45%); }
.promo-pop.out { background: rgb(11 18 32 / 0%); }
.promo-box { position: relative; width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 22px 22px 20px; box-shadow: 0 30px 80px rgb(0 0 0 / 35%); text-align: left;
  transform: translateY(18px) scale(.97); opacity: 0; transition: transform .3s var(--ease), opacity .25s; }
.promo-pop.in .promo-box { transform: none; opacity: 1; }
.promo-pop.out .promo-box { transform: translateY(18px) scale(.97); opacity: 0; }
.promo-box .promo-vis { background: radial-gradient(260px 140px at 70% 10%, rgb(14 124 134 / 18%), transparent 70%), #f2f6fa; border-radius: 16px; margin-bottom: 14px; min-height: 0; padding: 8px; }
.promo-box h3 { margin: 10px 0 6px; font-size: 21px; letter-spacing: -0.01em; }
.promo-box p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.promo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-btns .btn { flex: 1; justify-content: center; }
.promo-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 92%); box-shadow: 0 2px 8px rgb(0 0 0 / 15%); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.promo-x svg { width: 18px; height: 18px; }
.promo-grab { display: none; }
@media (max-width: 640px) {
  .promo-pop { place-items: end center; padding: 0; }
  .promo-box { width: 100%; border-radius: 22px 22px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); max-height: 88vh; overflow: auto; }
  .promo-pop.out .promo-box { transform: translateY(100%); }
  .promo-grab { display: block; width: 44px; height: 5px; border-radius: 99px; background: #d0d5dd; margin: 0 auto 10px; }
  .promo-box h3 { font-size: 19px; }
}
/* yükleme sayfası */
.ld-hero { padding-bottom: 18px; }
.ld { padding: 0 0 40px; }
.ld-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.ld-side { padding: 20px; position: sticky; top: 84px; }
.ld-step { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.ld-step:first-child { margin-top: 0; }
.ld-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ld-step h2 { font-size: 16px; margin: 0; }
.ld-side .select { width: 100%; height: 46px; }
.ld-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ld-custom[hidden] { display: none; }
.ld-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.ld-kinds button { height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2, #d0d5dd); background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.ld-kinds button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.ld-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 186px; align-content: start; }
.ld-f { min-width: 0; display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.ld-f select { height: 42px; border-radius: 10px; border: 1px solid var(--line-2, #d0d5dd); padding: 0 8px; font: inherit; font-size: 14px; background: #fff; }
.ld-box { min-width: 0; display: flex; align-items: center; height: 42px; border: 1px solid var(--line-2, #d0d5dd); border-radius: 10px; background: #fff; padding-right: 10px; }
.ld-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(14 124 134 / 14%); }
.ld-box input { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 10px; font: inherit; font-size: 15px; font-weight: 700; outline: none; }
.ld-box i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ld-hint { min-height: 20px; margin: 8px 0; font-size: 12.5px; color: var(--brand-2, #0a5f67); }
.ld-add { width: 100%; justify-content: center; height: 46px; }
.ld-add svg { width: 18px; height: 18px; }
.ld-list { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.ld-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.ld-item > i { width: 12px; height: 34px; border-radius: 4px; }
.ld-item b { display: block; font-size: 13.5px; line-height: 1.3; word-break: break-word; }
.ld-item small { color: var(--ink-3); font-size: 12px; }
.ld-qty { display: flex; align-items: center; gap: 4px; }
.ld-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2, #d0d5dd); background: #fff; font-weight: 800; cursor: pointer; }
.ld-qty b { min-width: 24px; text-align: center; font-size: 13px; }
.ld-del { width: 30px; height: 30px; border: 0; background: transparent; font-size: 20px; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.ld-del:hover { background: #fef3f2; color: #b42318; }
.ld-empty { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.ld-listact { display: flex; gap: 8px; margin-top: 10px; }
.ld-view { position: relative; height: clamp(360px, 52vw, 560px); border-radius: 22px; overflow: hidden; background: radial-gradient(900px 400px at 50% 0%, #ffffff, #e8eef4 70%); border: 1px solid var(--line); touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.ld-view.grab { cursor: grabbing; }
.ld-stage, .ld-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.ld-loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.ld-loader span { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.ld-tabs { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 28px); }
.ld-tabs button { border: 0; border-radius: 10px; padding: 7px 12px; background: rgb(255 255 255 / 92%); box-shadow: 0 2px 8px rgb(16 24 40 / 12%); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.ld-tabs button small { color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.ld-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.ld-tabs button[aria-pressed="true"] small { color: rgb(255 255 255 / 80%); }
.ld-cams { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgb(255 255 255 / 92%); box-shadow: 0 2px 8px rgb(16 24 40 / 12%); }
.ld-cams button { border: 0; background: transparent; border-radius: 8px; padding: 7px 10px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.ld-cams button:hover { background: var(--brand-soft, #e7f5f6); color: var(--brand-2, #0a5f67); }
.ld-tip { position: absolute; left: 14px; bottom: 16px; display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); pointer-events: none; }
.ld-tip svg { width: 15px; height: 15px; }
.ld-warn { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #fff6e0; border: 1px solid #fedf89; color: #7a4d00; font-size: 14px; }
.ld-warn[hidden] { display: none; }
.ld-warn p { margin: 0; } .ld-warn p + p { margin-top: 6px; }
.ld-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; min-height: 172px; align-content: start; }
.ld-stat { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ld-stat.wide { grid-column: 1 / -1; }
.ld-stat span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.ld-stat b { display: block; font-family: var(--display); font-size: 22px; margin-top: 4px; }
.ld-stat b em { font-style: normal; font-size: 15px; color: var(--ink-3); font-family: var(--font); }
.ld-stat b.ok { color: #067647; } .ld-stat b.bad { color: #b42318; }
.ld-stat small { font-size: 12.5px; color: var(--ink-3); }
.ld-bar { height: 10px; border-radius: 99px; background: #eef1f5; overflow: hidden; margin: 10px 0 6px; }
.ld-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #12b76a, #0e9384); transition: width .5s var(--ease); }
.ld-bar i.warm { background: linear-gradient(90deg, #fdb022, #f79009); } .ld-bar i.hot { background: linear-gradient(90deg, #f97066, #d92d20); }
.ld-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ld-acts .btn svg { width: 16px; height: 16px; }
.ld-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
.ld-prose { padding-top: 24px; padding-bottom: 80px; }
@media (max-width: 1100px) { .ld-grid { grid-template-columns: 320px minmax(0, 1fr); } .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ld-grid { grid-template-columns: 1fr; }
  .ld-side { position: static; order: 2; }
  .ld-main { order: 1; }
  .ld-view { height: 340px; border-radius: 18px; }
  .ld-stats { min-height: 0; }
  .ld-cams { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; }
  .ld-cams button { flex: 1; }
  .ld-tip { display: none; }
}
@media print { body.printing-report > *:not(.print-report) { display: none !important; } body.printing-report .print-report { display: block !important; } }

.ld-view.shot .ld-cams, .ld-view.shot .ld-tip, .ld-view.shot .ld-tabs { display: none; }
.ld-view.shot { border: 0; border-radius: 0; background: transparent; }

.promo-art2 { position: relative; width: 100%; max-width: 440px; animation: promoFloat 5s ease-in-out infinite; }
.promo-art2 img { display: block; width: 100%; height: auto; border-radius: 16px; background: #eef2f6; box-shadow: 0 18px 40px rgb(0 0 0 / 28%); }
.promo-badge { position: absolute; top: 10px; right: 10px; display: grid; padding: 6px 12px; border-radius: 12px; background: #0b1220; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.2; box-shadow: 0 6px 16px rgb(0 0 0 / 25%); animation: promoPulse 2.4s ease-in-out infinite; }
.promo-badge small { font-size: 9.5px; color: #7fd3dc; letter-spacing: .08em; }
.promo-chip { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #2a1a00; font-weight: 800; font-size: 12px; }
.promo-box .promo-art2 img { box-shadow: none; }
@keyframes promoFloat { 50% { transform: translateY(-6px); } }
@keyframes promoPulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .promo-art2, .promo-badge { animation: none; } }

.ld-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ld-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: rgb(255 255 255 / 94%); color: #0a5f67; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgb(16 24 40 / 14%); transition: opacity .2s; }
.ld-lbl.c { background: #0b1220; color: #fdb022; }
@media (max-width: 860px) { .ld-lbl { font-size: 10.5px; padding: 3px 7px; } }
.ld-lbl.sm { color: #475467; font-weight: 700; }

.ld-posw { margin-top: 12px; }
.ld-poslbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.ld-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #eef1f5; }
.ld-pos button { border: 0; border-radius: 9px; padding: 7px 4px; background: transparent; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--ink-2); cursor: pointer; display: grid; line-height: 1.2; transition: all .15s; }
.ld-pos button small { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.ld-pos button[aria-pressed="true"] { background: #fff; color: var(--brand-2, #0a5f67); box-shadow: 0 1px 4px rgb(16 24 40 / 14%); }
.ld-legend { margin: -4px 0 8px; font-size: 12px; color: var(--ink-3); }

.ld-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ld-leaders line { stroke-width: 1.5; stroke-dasharray: 3 2; }
.ld-leaders line.v { stroke: #0e7c86; } .ld-leaders line.c { stroke: #b45309; }
.ld-leaders circle.v { fill: #0e7c86; } .ld-leaders circle.c { fill: #f59e0b; stroke: #0b1220; stroke-width: 1; }
.ld-lbl { z-index: 1; }
.ld-view.nodims .ld-labels { display: none; }
.ld-cams .ld-dimbtn { border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.ld-cams .ld-dimbtn[aria-pressed="true"] { color: var(--brand-2, #0a5f67); }
.ld-cams .ld-dimbtn[aria-pressed="false"] { color: var(--ink-3); text-decoration: line-through; }
.ld-view.shot .ld-labels { display: none; }

/* ==========================================================================
   v3: kesim planı ve fire
   ========================================================================== */
.cut-open { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed rgb(14 124 134 / 45%); background: linear-gradient(135deg, #f0fbfb, #fff); font: inherit; text-align: left; cursor: pointer; transition: all .2s; position: relative; }
.cut-open[hidden] { display: none; }
.cut-open:hover { border-style: solid; box-shadow: 0 6px 18px rgb(14 124 134 / 14%); }
.cut-open > svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.cut-open b { display: block; font-size: 14.5px; }
.cut-open small { display: block; font-size: 12.5px; color: var(--ink-3); }
.cut-open .nav-new { margin-left: auto; }
.cut-card { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px rgb(16 24 40 / 8%); padding: 22px; scroll-margin-top: 90px; animation: cutIn .35s var(--ease); }
.cut-card[hidden] { display: none; }
@keyframes cutIn { from { opacity: 0; transform: translateY(10px); } }
.cut-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cut-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.cut-head .eyebrow svg { width: 15px; height: 15px; }
.cut-head h3 { margin: 6px 0 4px; font-size: 22px; }
.cut-head p { margin: 0; color: var(--ink-3); font-size: 14px; }
.cut-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.cut-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cut-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.cut-f { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); min-width: 0; margin-bottom: 10px; }
.cut-f .field-box { height: 44px; min-width: 0; }
.cut-f .field-box input { min-width: 0; width: 100%; }
.cut-f .select { height: 44px; width: 100%; }
.cut-help { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 12px; line-height: 1.5; }
.cut-rot { font-size: 13px; margin: 2px 0 12px; }
.cut-rot small { color: var(--ink-3); }
.cut-parts-h { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
.cut-tbl { width: 100%; border-collapse: collapse; }
.cut-tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: left; padding: 4px 4px; }
.cut-tbl td { padding: 4px; vertical-align: middle; }
.cut-tbl td i { display: block; width: 10px; height: 30px; border-radius: 3px; }
.cut-tbl .field-box { height: 40px; min-width: 0; }
.cut-tbl .field-box input { width: 100%; min-width: 0; font-size: 15px; }
.cut-qty { width: 64px; height: 40px; border: 1px solid var(--line-2, #d0d5dd); border-radius: 10px; text-align: center; font: inherit; font-size: 15px; font-weight: 700; }
.cut-del { width: 30px; height: 30px; border: 0; background: transparent; font-size: 20px; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.cut-del:hover { background: #fef3f2; color: #b42318; }
.cut-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cut-stat { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2, #f8fafc); }
.cut-stat span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.cut-stat b { display: block; font-family: var(--display); font-size: 21px; margin-top: 3px; }
.cut-stat small { font-size: 12.5px; color: var(--ink-3); }
.cut-stat.cut-hero { background: #0b1220; border-color: #0b1220; } .cut-stat.cut-hero span, .cut-stat.cut-hero small { color: rgb(255 255 255 / 65%); } .cut-stat.cut-hero b { color: #fdb022; }
.cut-stat.ok b { color: #067647; } .cut-stat.bad b { color: #b42318; }
.cut-sum { margin: 12px 0 6px; font-size: 14px; color: var(--ink-2); }
.cut-warn { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fff6e0; border: 1px solid #fedf89; color: #7a4d00; font-size: 13.5px; }
.cut-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin: 12px 0 8px; }
.cut-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }
.cut-legend .kerf, .cut-bar .seg.kerf { background: #0b1220; }
.cut-legend .rem, .cut-bar .seg.rem { background: repeating-linear-gradient(45deg, #d0d5dd 0 4px, #eef1f5 4px 8px); }
.cut-legend .trim, .cut-bar .seg.trim { background: repeating-linear-gradient(45deg, #fda29b 0 4px, #fef3f2 4px 8px); }
.cut-pats { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.cut-pat-h { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 5px; flex-wrap: wrap; }
.cut-pat-h span { color: var(--ink-2); flex: 1; min-width: 0; }
.cut-pat-h em { font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.cut-bar { position: relative; height: 34px; border-radius: 8px; background: #eef1f5; overflow: hidden; border: 1px solid var(--line); }
.cut-bar .seg { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; border-right: 1px solid rgb(255 255 255 / 35%); }
.cut-bar .seg.rem { color: #475467; }
.cut-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; max-height: 640px; overflow: auto; }
.cut-svg { width: auto; max-width: 100%; max-height: 460px; height: auto; display: block; margin: 0 auto; background: #fff; border-radius: 8px; }
.cut-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cut-empty { color: var(--ink-3); margin: 20px 0; }
@media (max-width: 900px) { .cut-grid { grid-template-columns: 1fr; } .cut-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cut-card { padding: 16px; border-radius: 18px; } }
@media (max-width: 420px) { .cut-row3 { grid-template-columns: 1fr 1fr; } .cut-row3 .cut-f:first-child { grid-column: 1 / -1; } }

.ld-pager { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgb(255 255 255 / 94%); box-shadow: 0 2px 8px rgb(16 24 40 / 12%); }
.ld-pager > button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.ld-pager > button:disabled { background: #e4e7ec; color: #98a2b3; cursor: default; }
.ld-pick { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.ld-pick select { height: 34px; border: 1px solid var(--line-2, #d0d5dd); border-radius: 9px; padding: 0 8px; font: inherit; font-weight: 800; font-size: 13.5px; background: #fff; cursor: pointer; }
.ld-pick span { font-size: 12.5px; color: var(--ink-3); font-weight: 700; white-space: nowrap; }

/* reklam alanı ve reklam sayfası */
.sponsor-slot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px dashed rgba(255,255,255,.22); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.sponsor-slot:hover { border-color: var(--accent, #ffb020); background: rgba(255,255,255,.04); }
.sponsor-slot .sp-tag { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255,176,32,.16); color: #ffb020; }
.sponsor-slot .sp-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sponsor-slot .sp-txt b { font-size: 14px; }
.sponsor-slot .sp-txt small { font-size: 12.5px; opacity: .7; }
.sponsor-slot .sp-go { flex: none; font-size: 13px; font-weight: 800; color: #ffb020; }
@media (max-width: 560px) { .sponsor-slot { flex-wrap: wrap; } .sponsor-slot .sp-go { width: 100%; } }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ad-card h3 { margin: 0 0 6px; font-size: 18px; }
.ad-card p { margin: 0; color: var(--ink-3); line-height: 1.6; }
.ad-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); margin-bottom: 12px; }
.ad-card .ic svg { width: 22px; height: 22px; }
.ad-cta h2 { margin-top: 0; }
@media (max-width: 720px) { .ad-grid { grid-template-columns: 1fr; } }

/* çerez tercihi düğmeleri */
.cookie-btns { display: flex; gap: 8px; flex: none; }
.cookie .btn-ghost { background: transparent; border: 1px solid currentColor; opacity: .85; }
@media (max-width: 520px) { .cookie { flex-wrap: wrap; } .cookie-btns { width: 100%; } .cookie-btns .btn { flex: 1; } }

/* canlı sayaçlar */
.live-stats { margin-top: 18px; display: flex; align-items: center; gap: 22px; padding: 16px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.ls-head { display: flex; align-items: center; gap: 8px; flex: none; font-size: 14px; color: var(--ink-3, #667085); }
.ls-head b { color: var(--ink); font-size: 14px; }
.ls-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: lsPulse 2s infinite; }
@keyframes lsPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.ls-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ls-item { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; }
.ls-item b { font-family: var(--display); font-size: 22px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: color .3s; }
.ls-item span { font-size: 12.5px; color: var(--ink-3, #667085); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-on b { color: #16a34a; }
.ls-item b.ls-bump { animation: lsBump .6s ease; }
@keyframes lsBump { 0% { color: var(--brand); transform: translateY(0); } 30% { transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }
.ls-on b.ls-bump { animation: none; }
.live-stats:not(.ls-ready) .ls-item b { color: var(--line); }
@media (max-width: 900px) {
  .live-stats { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ls-item:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ls-dot { animation: none; } }

/* canlı sayaçlar: 6 kutu */
.live-stats { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 22px; }
.ls-head span:last-child { margin-left: 4px; }
.ls-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ls-item:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 1080px) { .ls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } .ls-item:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
@media (max-width: 900px) { .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ls-item:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 16px; } .ls-item:nth-child(odd) { border-left: 0; padding-left: 0; } }

/* ---------- tema düğmesi + karanlık mod (2026-11) ---------- */
.theme-btn { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, transform .3s var(--ease); }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ic-sun { display: none; }
[data-theme="dark"] .theme-btn .ic-sun { display: block; }
[data-theme="dark"] .theme-btn .ic-moon { display: none; }
.home .hdr:not(.is-scrolled) .theme-btn { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 18%); color: #fff; }
@media (max-width: 960px) { .theme-btn { margin-left: auto; } .theme-btn + .btn + .nav-toggle, .theme-btn ~ .nav-toggle { margin-left: 8px; } }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1a; --surface: #121a29; --surface-2: #0f1624;
  --ink: #e8edf5; --ink-2: #c3ccda; --ink-3: #8a96a8;
  --line: #222d40; --line-2: #2e3a50;
  --brand: #2bb3bf; --brand-2: #4fd0db; --brand-soft: rgb(43 179 191 / 14%);
  --dark: #060a12; --dark-2: #0d1420;
  --sh-1: 0 1px 2px rgb(0 0 0 / 30%); --sh-2: 0 1px 3px rgb(0 0 0 / 35%), 0 8px 24px rgb(0 0 0 / 30%); --sh-3: 0 2px 6px rgb(0 0 0 / 40%), 0 24px 64px rgb(0 0 0 / 50%);
}
[data-theme="dark"] .hdr { background: rgb(10 15 26 / 82%); }
[data-theme="dark"] .btn { --b: #e8edf5; --c: #0b1220; }
[data-theme="dark"] .btn-accent { --b: var(--accent); --c: var(--accent-ink); }
[data-theme="dark"] .btn-ghost { --b: transparent; --c: var(--ink); }
[data-theme="dark"] .btn-light { --b: rgb(255 255 255 / 10%); --c: #fff; }
[data-theme="dark"] .btn-wa { --b: #25d366; --c: #fff; }
[data-theme="dark"] .skip, [data-theme="dark"] .toast, [data-theme="dark"] .rail button.is-active svg,
[data-theme="dark"] .tq-card h2 span, [data-theme="dark"] .ct-topics input:checked + span, [data-theme="dark"] .tq-views button.is-on { color: #0b1220; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--ink); }
[data-theme="dark"] .tq-logo-prev img, [data-theme="dark"] .tq-pricebox select, [data-theme="dark"] .tq-del, [data-theme="dark"] .tq-views,
[data-theme="dark"] .hub-search input, [data-theme="dark"] .hub-chips a, [data-theme="dark"] .promo-box, [data-theme="dark"] .ld-kinds button,
[data-theme="dark"] .ld-f select, [data-theme="dark"] .ld-box, [data-theme="dark"] .ld-qty button, [data-theme="dark"] .ld-stat,
[data-theme="dark"] .cut-card, [data-theme="dark"] .ld-pick select, [data-theme="dark"] .tq-card input, [data-theme="dark"] .tq-card textarea { background: var(--surface); }
[data-theme="dark"] .ld-pos button[aria-pressed="true"] { background: var(--surface-2); color: var(--brand-2); }
[data-theme="dark"] .note, [data-theme="dark"] .ld-warn, [data-theme="dark"] .cut-warn { background: rgb(255 176 32 / 10%); border-color: rgb(255 176 32 / 30%); color: #ffd58a; }
[data-theme="dark"] .tq-paper-wrap { background: #070b13; }
/* A4 kâğıt ve kesim çizimi her zaman açık kalsın */
[data-theme="dark"] .tq-paper { --ink: #0b1220; --ink-2: #344054; --ink-3: #667085; --line: #e4e7ec; --line-2: #d0d5dd; --surface: #fff; --surface-2: #f9fafb; --brand: #0e7c86; --brand-2: #0a5f67; color: #0b1220; }
[data-theme="dark"] .tq-paper .pp-mono, [data-theme="dark"] .tq-paper .pp-grand { color: #fff; }
html[data-theme="dark"] img[src$="brand-icon.svg"] { filter: none; }

/* ---------- Yenilikler kutusu ---------- */
.news-box { margin-top: 18px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.news-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.news-head b { font-family: var(--display); font-size: 16px; color: var(--ink); }
.news-head .nb-tag { padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-head small { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.news-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.news-list li > span:first-child { flex: none; font-size: 18px; line-height: 1.2; }
.news-list li b { display: block; color: var(--ink); font-size: 14.5px; }
.news-list li a { color: inherit; text-decoration: none; }
.news-list li a:hover b { color: var(--brand); }
.news-list time { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--brand); }
@media (max-width: 960px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-list { grid-template-columns: 1fr; } .news-head small { margin-left: 0; width: 100%; } }
[data-theme="dark"] .cut-open { background: linear-gradient(135deg, rgb(43 179 191 / 12%), var(--surface)); color: var(--ink); }
[data-theme="dark"] .qty input { background: transparent; color: var(--ink); }
[data-theme="dark"] .viewer { background: radial-gradient(90% 70% at 50% 20%, #2a3446 0%, #1a2232 60%, #121a29 100%); }
[data-theme="dark"] .v3d-label, [data-theme="dark"] .v3d-info, [data-theme="dark"] .v3d-tools .icon-btn { background: rgb(18 26 41 / 92%); }
[data-theme="dark"] .v3d-label.lbl-a { color: #ff8a80; }
[data-theme="dark"] .v3d-label.lbl-c { color: #b9a3ff; }

/* ---------- Araç sayfaları: birim çevirici, boya alanı ---------- */
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.tl-paint { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-card { padding: 22px; }
.tl-card h2 { font-size: 19px; margin: 0 0 14px; }
.tl-fields { display: grid; gap: 12px; }
.tl-fields > div { display: grid; gap: 12px; }
.tl-fields > div[hidden] { display: none; }
.tl-note { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.tl-out { padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); }
.tl-out span { font-size: 13px; font-weight: 700; color: var(--ink-3); display: block; }
.tl-out b { font-family: var(--display); font-size: 30px; color: var(--ink); display: block; }
.tl-out small { color: var(--ink-2); font-size: 13px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tl-chips button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tl-chips button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tl-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.tl-result { background: var(--dark); color: #fff; border: 0; position: sticky; top: 90px; }
.tl-r-lbl { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 60%); }
.tl-big { display: block; font-family: var(--display); font-size: clamp(38px, 4.5vw, 52px); line-height: 1.1; margin: 6px 0 16px; color: #fff; }
.tl-big small { font-size: 20px; color: var(--accent); }
.tl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-stats div { padding: 12px; border-radius: 12px; border: 1px solid var(--dark-line); background: rgb(255 255 255 / 4%); }
.tl-stats b { display: block; font-family: var(--display); font-size: 19px; color: #fff; }
.tl-stats span { font-size: 12.5px; color: rgb(255 255 255 / 60%); }
.tl-result .tl-note { color: rgb(255 255 255 / 55%); }
@media (max-width: 960px) { .tl-paint { grid-template-columns: 1fr 1fr; } .tl-result { grid-column: 1 / -1; position: static; } }
@media (max-width: 680px) { .tl-grid, .tl-paint { grid-template-columns: 1fr; } }

/* ---------- Sektör haberleri (/haberler/) ---------- */
.hb-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hb-home-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 0; }
.hb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hb-card { padding: 0; display: flex; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.hb-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.hb-card-link { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 20px 22px; color: inherit; text-decoration: none; }
.hb-card-link:hover { color: inherit; }
.hb-card h2, .hb-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.hb-card:hover h2, .hb-card:hover h3 { color: var(--brand); }
.hb-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.hb-meta time { font-weight: 600; }
.hb-tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-size: 12px; font-weight: 800; text-decoration: none; }
a.hb-tag:hover { background: var(--brand); color: #fff; }
.hb-src { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hb-chips a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.hb-chips a:hover { border-color: var(--ink-3); color: var(--ink); }
.hb-chips a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.hb-list-wrap { padding-bottom: clamp(48px, 7vw, 88px); }
.hb-empty { text-align: center; padding: 40px 24px; }
.hb-empty p { color: var(--ink-3); max-width: 52ch; margin: 0 auto 18px; }
.hb-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.hb-hero h1 { max-width: 30ch; font-size: clamp(28px, 3.8vw, 44px); }
.hb-hero .hb-meta { margin-top: 4px; }
.hb-hero .meta-row svg { width: 16px; height: 16px; }
.hb-source { margin: 0 0 26px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.hb-source b { color: var(--ink); }
.hb-source a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.hb-source a svg { width: 14px; height: 14px; }
.hb-source small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.hb-body h2 { margin-top: 30px; }
.hb-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.hb-body th, .hb-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.hb-body th { color: var(--ink); background: var(--surface-2); }
.hb-cta { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 22px; background: var(--brand-soft); border-color: transparent; }
.hb-cta h2 { font-size: 20px; margin: 4px 0 6px !important; }
.hb-cta p { margin: 0; font-size: 15px; line-height: 1.55; }
.hb-cta .btn { flex: none; margin-left: auto; }
.hb-cta-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); color: var(--brand); }
.hb-cta-ic svg { width: 24px; height: 24px; }
.hb-aside { display: grid; gap: 16px; }
.hb-side h4 { margin: 0 0 10px; font-size: 15px; }
.hb-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hb-side li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.hb-side li:first-child { border-top: 0; padding-top: 0; }
.hb-side li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.hb-side li a:hover { color: var(--brand); }
.hb-side time { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.hb-all { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 960px) { .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hb-aside { order: 1; } }
@media (max-width: 620px) { .hb-grid { grid-template-columns: 1fr; } .hb-cta { flex-direction: column; align-items: flex-start; } .hb-cta .btn { margin-left: 0; } }
[data-theme="dark"] .hb-tag { color: var(--brand-2); }
[data-theme="dark"] a.hb-tag:hover, [data-theme="dark"] .hb-chips a[aria-current] { color: #0b1220; }
[data-theme="dark"] .hb-cta { background: linear-gradient(135deg, rgb(43 179 191 / 14%), var(--surface)); border-color: var(--line); }

/* ---------- Geniş ekran yan haber şeritleri (yalnız ≥1720px) ---------- */
.hb-rail { display: none; }
@media (min-width: 1720px) {
  .hb-rail { display: flex; flex-direction: column; gap: 8px; position: fixed; top: 110px; z-index: 20;
    width: calc((100vw - var(--wrap)) / 2 - 56px); max-width: 260px; max-height: calc(100vh - 140px); overflow: auto;
    padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(15 23 42 / 8%); }
  .hb-rail-l { left: 24px; } .hb-rail-r { right: 24px; }
}
.hb-rail-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; border-bottom: 2px solid #dc2626;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #dc2626; }
.hb-dot { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 0 rgb(220 38 38 / 60%); animation: hbPulse 1.8s infinite; }
@keyframes hbPulse { 70% { box-shadow: 0 0 0 9px rgb(220 38 38 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(220 38 38 / 0%); } }
.hb-rail-item { display: grid; gap: 4px; padding: 10px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; transition: background .15s, border-color .15s; }
.hb-rail-item:hover { background: rgb(220 38 38 / 6%); border-left-color: #dc2626; }
.hb-rail-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.hb-new { padding: 1px 6px; border-radius: 4px; background: #dc2626; color: #fff; font-size: 10.5px; letter-spacing: .06em; }
.hb-rail-t { font-size: 14px; font-weight: 700; line-height: 1.35; }
.hb-rail-src { font-size: 11.5px; color: var(--ink-3); }
.hb-rail-all { padding: 6px 8px 2px; font-size: 13px; font-weight: 800; color: #dc2626; text-decoration: none; }
html[data-theme="dark"] .hb-rail { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .hb-dot { animation: none; } }

/* ---------- fiyat şeridi (kayan bant) ----------
   JS yokken / veri gelmezse hiç yer kaplamaz. html.tk-on yalnızca satır içi betik ile eklenir;
   yükseklik baştan sabittir (CLS yok). */
.tk {
  --tk-h: 38px;
  --tk-bg: #060b16;
  --tk-bg-2: #0c1424;
  --tk-ink: #e9eef6;
  --tk-ink-2: #8f9bb0;
  --tk-line: rgb(255 255 255 / 8%);
  --tk-up: #2fd27c;
  --tk-down: #ff5d62;
  --tk-live: #ef2b3a;
  display: none;
  position: relative; z-index: 61;
  height: var(--tk-h);
  align-items: stretch;
  background:
    radial-gradient(120% 220% at 0% 0%, rgb(43 179 191 / 12%), transparent 46%),
    linear-gradient(180deg, var(--tk-bg-2), var(--tk-bg));
  color: var(--tk-ink);
  font: 600 13px/1 var(--font);
  letter-spacing: .005em;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 40%);
  overflow: hidden;
  contain: layout paint;
}
.tk::after { /* ince parlak alt çizgi */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(43 179 191 / 55%) 20%, rgb(255 176 32 / 45%) 50%, rgb(43 179 191 / 55%) 80%, transparent);
  opacity: .55;
}
html.tk-on .tk { display: flex; }

/* sol: CANLI rozeti */
.tk-badge {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 0 14px 0 max(14px, env(safe-area-inset-left));
  font: 800 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; position: relative; z-index: 2;
  background: linear-gradient(180deg, #f0323f, #c81d2b);
  box-shadow: 6px 0 18px rgb(0 0 0 / 35%);
}
.tk-badge::after { /* sağ kenarda eğik kesim */
  content: ""; position: absolute; top: 0; right: -10px; bottom: 0; width: 10px;
  background: linear-gradient(180deg, #f0323f, #c81d2b); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.tk-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgb(255 255 255 / 70%); animation: tk-pulse 1.6s ease-out infinite; }
.tk-badge.is-stale { background: linear-gradient(180deg, #2a3650, #1b2438); }
.tk-badge.is-stale::after { background: linear-gradient(180deg, #2a3650, #1b2438); }
.tk-badge.is-stale i { animation: none; background: #8f9bb0; box-shadow: none; }
@keyframes tk-pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 70%); opacity: 1; }
  70% { box-shadow: 0 0 0 7px rgb(255 255 255 / 0%); opacity: .55; }
  100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0%); opacity: 1; }
}

/* orta: kayan alan */
.tk-vp {
  flex: 1; min-width: 0; position: relative; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 44px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 44px), transparent 100%);
}
.tk-track { display: flex; align-items: center; width: max-content; will-change: transform; padding-left: 14px; }
.tk-track.is-run { animation: tk-run var(--tk-dur, 60s) linear infinite; }
.tk-track.is-paused { animation-play-state: paused; }
@media (hover: hover) { .tk-vp:hover .tk-track { animation-play-state: paused; } }
@keyframes tk-run { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--tk-shift, -50%), 0, 0); } }
.tk-grp { display: flex; align-items: center; flex: none; }

.tk-i {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 0 18px; height: var(--tk-h); position: relative;
}
.tk-i::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--tk-line); }
.tk-ic {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px;
  font: 800 9.5px/1 var(--font); letter-spacing: .02em; color: #1a1300;
  background: linear-gradient(145deg, #ffe08a, #e0a526 55%, #b37a10);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), 0 1px 2px rgb(0 0 0 / 40%);
}
.tk-ic-ag { color: #1c2230; background: linear-gradient(145deg, #f4f6fa, #b9c1cf 55%, #8a93a4); }
.tk-ic-pt { color: #1c2230; background: linear-gradient(145deg, #e8eef5, #a9b7c8 55%, #7d8ca2); }
.tk-ic-pd { color: #1c2230; background: linear-gradient(145deg, #eceae6, #bdb6ab 55%, #8f877a); }
.tk-ic-cu { color: #2a0f00; background: linear-gradient(145deg, #ffc49a, #d0743a 55%, #9a4a1c); }
.tk-ic-fx { color: #e9fbfd; background: linear-gradient(145deg, #3fc6d1, #0e7c86 60%, #0a5f67); font-size: 11px; }
.tk-n { color: var(--tk-ink-2); font-weight: 600; }
.tk-v { color: var(--tk-ink); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.tk-v small { font-size: 10.5px; font-weight: 700; color: var(--tk-ink-2); margin-left: 3px; }
.tk-c { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 3px 6px; border-radius: 5px; color: var(--tk-ink-2); background: rgb(255 255 255 / 5%); }
.tk-c.up { color: var(--tk-up); background: rgb(47 210 124 / 11%); }
.tk-c.down { color: var(--tk-down); background: rgb(255 93 98 / 11%); }
.tk-c b { font-size: 8.5px; line-height: 1; }
.tk-t { font-size: 11px; font-weight: 700; color: #ffcf6b; }
.tk-i.is-flash .tk-v { animation: tk-flash 1.2s ease-out; }
@keyframes tk-flash { 0% { color: #ffcf6b; } 100% { color: var(--tk-ink); } }

/* iskelet (veri gelene kadar) */
.tk-skel { display: inline-block; flex: none; width: 150px; height: 10px; margin: 0 22px; border-radius: 6px;
  background: linear-gradient(90deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 13%), rgb(255 255 255 / 6%)); background-size: 200% 100%;
  animation: tk-shim 1.4s linear infinite; }
@keyframes tk-shim { to { background-position: -200% 0; } }

/* sağ: kaynaklar */
.tk-src {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 0 max(14px, env(safe-area-inset-right)) 0 10px;
  color: var(--tk-ink-2); text-decoration: none; font-size: 11.5px; font-weight: 700; position: relative; z-index: 2;
  border-left: 1px solid var(--tk-line);
}
.tk-src svg { width: 14px; height: 14px; }
.tk-src:hover, .tk-src:focus-visible { color: #fff; }

html[data-theme="dark"] .tk { --tk-bg: #03060c; --tk-bg-2: #080e1a; border-bottom-color: rgb(255 255 255 / 7%); }

@media (max-width: 640px) {
  .tk { --tk-h: 32px; font-size: 12px; }
  .tk-badge { padding: 0 10px 0 max(10px, env(safe-area-inset-left)); font-size: 10px; letter-spacing: .1em; gap: 6px; }
  .tk-i { padding: 0 13px; gap: 6px; }
  .tk-ic { min-width: 19px; height: 19px; font-size: 8.5px; border-radius: 5px; }
  .tk-c { font-size: 11px; padding: 2px 5px; }
  .tk-c b { font-size: 9.5px; }
  .tk-vp { margin-left: 10px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 28px), transparent); }
  .tk-src span { display: none; }
  .tk-src { padding: 0 max(10px, env(safe-area-inset-right)) 0 8px; }
  .tk-src svg { width: 15px; height: 15px; }
}

/* hareket azaltma: kaymaz, yatay kaydırılır */
@media (prefers-reduced-motion: reduce) {
  .tk-track.is-run { animation: none; }
  .tk-vp { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tk-vp::-webkit-scrollbar { display: none; }
  .tk-badge i, .tk-skel { animation: none; }
}
@media print { .tk { display: none !important; } }
@media (max-width: 900px) { html.tk-on .nav { top: calc(68px + var(--tk-off, 0px)); } }

@media (max-width: 360px) { .tk-badge span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* genişleme bölümleri: araç motoru, ilgili sayfalar, sözlük */
.ax-outs { display: grid; gap: 10px; }
.ax-o { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ax-o:last-child { border-bottom: 0; }
.ax-o span { font-size: 14px; color: var(--ink-2); flex: 1; }
.ax-o b { font-family: var(--display); font-size: 20px; color: var(--ink); }
.ax-o small { font-size: 13px; color: var(--ink-3); min-width: 3ch; }
.ax-o.ax-main { padding: 14px 16px; border: 0; border-radius: 10px; background: var(--brand-soft); }
.ax-o.ax-main b { font-size: 28px; }
.ax-rel { list-style: none; padding: 0; display: grid; gap: 10px; }
.ax-rel a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.ax-rel a:hover { border-color: var(--brand); }
.ax-rel span { font-size: 14px; color: var(--ink-3); }
.gl-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; position: sticky; top: 70px; background: var(--bg); padding: 10px 0; z-index: 2; }
.gl-nav a { min-width: 34px; text-align: center; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.gl-nav a:hover { border-color: var(--brand); color: var(--brand); }
.gl { max-width: 860px; padding-bottom: 64px; }
.gl-dl dt { font-weight: 800; color: var(--ink); margin-top: 16px; scroll-margin-top: 130px; }
.gl-dl dd { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 680px) { .ax-res { order: 2; } }

/* Araçlar açılır menüsü (masaüstü: üzerine gelince; mobil: gizli, bağlantı hub'a gider) */
.nav-dd { position: relative; display: flex; }
.mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); width: min(680px, 92vw); padding: 18px 20px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd:hover .mega, .nav-dd:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mega h5 { margin: 0 0 6px; padding: 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nav .mega a, .home .hdr:not(.is-scrolled) .nav .mega a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: none; box-shadow: none; }
.nav .mega a:hover, .home .hdr:not(.is-scrolled) .nav .mega a:hover { background: var(--surface-2); color: var(--ink); }
.nav .mega .mega-all { display: inline-block; margin-top: 10px; color: var(--brand); }
@media (max-width: 900px) { .mega { display: none; } .nav-dd { display: block; } .nav-dd > a { display: block; } }

/* ---------- fiyat şeridi: premium görünüm (2026-11-30) ----------
   Siyah zemin + ince altın detay; kırmızı rozet ve kutucuklar yerine sakin tipografi. */
.tk {
  --tk-h: 40px;
  --tk-ink: #f3efe6;
  --tk-ink-2: #9a958a;
  --tk-gold: #d6b46a;
  --tk-line: rgb(214 180 106 / 18%);
  --tk-up: #5ad19a;
  --tk-down: #ef7a7a;
  background: linear-gradient(180deg, #0d0d0f 0%, #050506 100%);
  border-bottom: 0;
  box-shadow: none;
  font: 500 13px/1 var(--font);
  letter-spacing: .01em;
}
.tk::after { height: 1px; opacity: 1; background: linear-gradient(90deg, transparent, rgb(214 180 106 / 0%) 4%, rgb(214 180 106 / 55%) 50%, rgb(214 180 106 / 0%) 96%, transparent); }
.tk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgb(255 255 255 / 4%); pointer-events: none; }

.tk-badge, .tk-badge.is-stale {
  background: none; box-shadow: none; color: var(--tk-gold);
  font: 700 10.5px/1 var(--font); letter-spacing: .22em; gap: 9px;
  padding: 0 18px 0 max(20px, env(safe-area-inset-left));
}
.tk-badge::after, .tk-badge.is-stale::after { clip-path: none; right: 0; top: 11px; bottom: 11px; width: 1px; background: var(--tk-line); }
.tk-badge i { width: 6px; height: 6px; background: var(--tk-up); box-shadow: 0 0 0 0 rgb(90 209 154 / 60%); animation: tk-pulse-g 2.4s ease-out infinite; }
.tk-badge.is-stale i { background: var(--tk-ink-2); }
@keyframes tk-pulse-g { 0% { box-shadow: 0 0 0 0 rgb(90 209 154 / 55%); } 70% { box-shadow: 0 0 0 6px rgb(90 209 154 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(90 209 154 / 0%); } }

.tk-i { gap: 9px; padding: 0 22px; }
.tk-i::after { width: 3px; height: 3px; margin-top: -1.5px; right: -1.5px; border-radius: 50%; background: var(--tk-gold); opacity: .55; }
.tk-ic, .tk-ic-ag, .tk-ic-pt, .tk-ic-pd, .tk-ic-cu, .tk-ic-fx {
  min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none;
  font: 700 10px/1 var(--font); letter-spacing: .12em; color: var(--tk-gold);
}
.tk-n { color: var(--tk-ink-2); font-weight: 500; }
.tk-v { color: var(--tk-ink); font-weight: 700; letter-spacing: .01em; }
.tk-v small { font-weight: 500; color: var(--tk-ink-2); font-size: 10.5px; margin-left: 4px; }
.tk-c, .tk-c.up, .tk-c.down { padding: 0; background: none; font-size: 11.5px; font-weight: 700; gap: 3px; }
.tk-c.up { color: var(--tk-up); }
.tk-c.down { color: var(--tk-down); }
.tk-c b { font-size: 7.5px; }
.tk-c.is-flat { display: none; }
.tk-t { color: var(--tk-ink-2); font-weight: 500; font-style: italic; }
@keyframes tk-flash { 0% { color: var(--tk-gold); } 100% { color: var(--tk-ink); } }
.tk-src { border-left: 1px solid var(--tk-line); color: var(--tk-ink-2); font-weight: 600; letter-spacing: .04em; padding-left: 16px; }
.tk-src:hover, .tk-src:focus-visible { color: var(--tk-gold); }
.tk-skel { background: linear-gradient(90deg, rgb(214 180 106 / 6%), rgb(214 180 106 / 14%), rgb(214 180 106 / 6%)); background-size: 200% 100%; }
html[data-theme="dark"] .tk { background: linear-gradient(180deg, #0b0b0d, #040405); }
@media (max-width: 640px) {
  .tk { --tk-h: 34px; }
  .tk-badge, .tk-badge.is-stale { padding: 0 12px 0 max(12px, env(safe-area-inset-left)); letter-spacing: .16em; font-size: 9.5px; }
  .tk-i { padding: 0 15px; gap: 7px; }
}
