/* ============================================================
   V8 COMPONENTS — gravür çerçeveler, mavi mühürler, değerli
   kağıt kartları, koyu kod plakası
   ============================================================ */

/* --- Üst şerit --- */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  height: 21px;
  width: auto;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
}

.section__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand-fill);
  color: #FFFFFF;
  border: 1px solid var(--brand-fill);
}

.btn--primary:hover {
  background: var(--brand-fill-hover);
}

.btn--ghost {
  color: var(--ink-900);
  border: 1px solid var(--line-soft);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* --- Gravür çerçeveli panel (banknot çift çizgisi) --- */
.plate {
  position: relative;
  background: linear-gradient(165deg, var(--paper), var(--paper-soft));
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  padding: var(--space-10);
}

.plate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* Köşe süsleri */
.plate__tip {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--brand);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.plate__tip--tl { top: 3px; left: 3px; border-top-width: 1.5px; border-left-width: 1.5px; }
.plate__tip--tr { top: 3px; right: 3px; border-top-width: 1.5px; border-right-width: 1.5px; }
.plate__tip--bl { bottom: 3px; left: 3px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.plate__tip--br { bottom: 3px; right: 3px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: var(--space-10);
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.hero h1 {
  margin-bottom: var(--space-5);
}

/* Dar ekranda panel boşluğu daralır, uzun başlık kelimesi ekrana sığar */
@media (max-width: 767px) {
  .plate {
    padding: var(--space-6);
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8vw, var(--text-2xl));
    overflow-wrap: break-word;
  }
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero__lead {
  font-size: var(--text-md);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__note {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero__art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(15, 30, 77, 0.12));
}

.hero__art .cardface {
  fill: #FFFFFF;
}

/* --- Altın ayraç başlık --- */
.rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright));
}

.rule::after {
  background: linear-gradient(90deg, var(--line-bright), transparent);
}

.rule--pager {
  gap: 0;
  margin-top: var(--space-16);
  margin-bottom: 0;
}

.rule--pager + .pager {
  margin-top: var(--space-8);
}

.rule__badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand);
}

.section h2 {
  text-align: center;
  margin-bottom: var(--space-3);
}

.section__sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto var(--space-8);
}

/* --- Yolculuk: altın mühür durakları --- */
.mints {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  counter-reset: seal;
}

@media (max-width: 1200px) {
  .mints {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mints {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mints li {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.mints__seal {
  counter-increment: seal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  outline: 1px solid var(--line-bright);
  outline-offset: 3px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
}

.mints__seal::before {
  content: counter(seal, upper-roman);
}

.mints__title {
  display: block;
  font-weight: 650;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.mints__desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Erişim uçları: değerli kağıt satırları --- */
.ledger {
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}

.ledger__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px dashed var(--line-soft);
}

.ledger__row:last-child {
  border-bottom: none;
}

.ledger__tag {
  flex-shrink: 0;
  width: 60px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.ledger__tag--live {
  color: var(--live);
}

.ledger__row code {
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copybtn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 650;
  color: var(--brand);
  background: transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.copybtn:hover,
.copybtn.is-done {
  background: rgba(12, 52, 231, 0.08);
  border-color: var(--brand);
  color: var(--ink-900);
}

/* --- Parametre tablosu --- */
.table-wrap {
  margin: var(--space-4) 0;
  overflow-x: auto;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.dtable {
  width: 100%;
  font-size: var(--text-sm);
}

.dtable th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-bright);
  white-space: nowrap;
}

.dtable td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px dashed var(--line-soft);
  vertical-align: top;
  color: var(--text-body);
}

.dtable tr:last-child td {
  border-bottom: none;
}

.dtable td:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.req {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.req--opt {
  color: var(--text-muted);
}

/* --- Kod plakası (koyu lacivert kalır) --- */
.codeplate {
  margin-top: var(--space-5);
  background: linear-gradient(165deg, var(--plate-bg-1), var(--plate-bg-2));
  border: 1px solid var(--plate-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.codeplate__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--plate-line);
  background: rgba(143, 164, 255, 0.09);
}

.codeplate__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #F4F6FF;
}

/* Koyu plaka üzerindeki kopyalama hapı */
.codeplate .copybtn {
  border-color: rgba(143, 164, 255, 0.5);
  color: var(--code-key);
}

.codeplate .copybtn:hover,
.codeplate .copybtn.is-done {
  background: rgba(143, 164, 255, 0.16);
  border-color: var(--code-key);
  color: #FFFFFF;
}

.codeplate__code {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--code-text);
  scrollbar-width: thin;
  scrollbar-color: var(--plate-line) transparent;
}

.codeplate__code::-webkit-scrollbar {
  height: 6px;
}

.codeplate__code::-webkit-scrollbar-thumb {
  background: var(--plate-line);
  border-radius: var(--radius-pill);
}

.k-k { color: var(--code-key); }
.k-s { color: var(--code-string); }
.k-n { color: var(--code-number); }
.k-c { color: var(--code-comment); }

/* --- Bölüm kartları: köşe süslü değerli kağıt --- */
.folios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .folios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .folios {
    grid-template-columns: minmax(0, 1fr);
  }
}

.folio {
  position: relative;
  display: block;
  padding: var(--space-6) var(--space-5);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.folio::before,
.folio::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--line-bright);
  border-style: solid;
  border-width: 0;
  transition: border-color var(--dur) var(--ease);
}

.folio::before {
  top: 6px;
  left: 6px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.folio::after {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.folio:hover {
  text-decoration: none;
  border-color: var(--line-bright);
  background: var(--paper-soft);
  transform: translateY(-2px);
}

.folio:hover::before,
.folio:hover::after {
  border-color: var(--brand);
}

.folio__no {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.folio__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.folio__desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- SSS --- */
.faq {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.faq + .faq {
  margin-top: var(--space-2);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: 650;
  color: var(--text-heading);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .chevron {
  flex-shrink: 0;
  color: var(--brand);
  transition: transform var(--dur) var(--ease);
}

.faq[open] summary .chevron {
  transform: rotate(180deg);
}

.faq__body {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-body);
}

/* --- Destek bandı --- */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-8);
}

.band h2 {
  text-align: left;
  margin-bottom: var(--space-1);
}

.band p {
  color: var(--text-muted);
}

/* Dar ekranda uzun e-posta düğmesi satır kırar */
@media (max-width: 480px) {
  .band .btn {
    max-width: 100%;
    height: auto;
    min-height: 36px;
    padding-block: var(--space-2);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* --- Versiyon rozeti --- */
.version-pill {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 30;
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
  background: var(--paper-soft);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-pill);
}

.version-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

@media (max-width: 767px) {
  .version-pill {
    display: none;
  }
}

/* --- Açılır menü --- */
.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: var(--space-2);
  background: var(--paper);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.dropdown.is-open > .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown > [data-dropdown] .chevron {
  transition: transform var(--dur) var(--ease);
}

.dropdown.is-open > [data-dropdown] .chevron {
  transform: rotate(180deg);
}

/* ============================================================
   İÇERİK GÖÇÜ — v1 yapısındaki içerik bileşenlerinin
   Gravür diline uyarlanmış katmanı (yapı v1, görünüm v8)
   ============================================================ */

/* --- Üst barda arama --- */
.search {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-3);
  color: var(--ink-500);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease);
}

.search:hover {
  border-color: var(--brand);
  color: var(--ink-700);
}

.search__label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search kbd {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-500);
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
}

@media (max-width: 767px) {
  .search {
    display: none;
  }
}

/* --- Makale öğeleri --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.article h1 {
  margin-bottom: var(--space-4);
}

.article h2 {
  margin: var(--space-10) 0 var(--space-5);
}

.article > p {
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-md);
}

/* --- Callout --- */
.callout {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brand);
  border-radius: var(--radius-sm);
}

.callout__icon {
  color: var(--brand);
  flex-shrink: 0;
  transform: translateY(3px);
}

.callout > p,
.callout > div {
  min-width: 0;
  flex: 1;
}

.callout--warn {
  background: #FFF9EC;
  border-color: #F0E2BC;
  border-left-color: #B98900;
}

.callout--warn .callout__icon {
  color: #B98900;
}

/* --- Rehber (dikey numaralı adımlar) --- */
.guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}

.guide li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.guide__dot {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  transform: translateY(2px);
}

.guide li > span:not(.guide__dot) {
  flex: 1;
  min-width: 0;
}

.guide .shot {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.guide__title {
  display: block;
  font-weight: 650;
  color: var(--ink-900);
}

.guide__desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-500);
}

/* --- Erişim adresleri kartı --- */
.access {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--paper);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
}

.access__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.access__label {
  flex-shrink: 0;
  min-width: 96px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.access__row code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-900);
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  word-break: break-all;
}

/* --- Test bilgileri satırları --- */
.tokens {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tokenrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px dashed var(--line-soft);
}

.tokenrow:last-child {
  border-bottom: none;
}

.tokenrow__label {
  flex-shrink: 0;
  width: 168px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-900);
}

.tokenrow__value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Panel yolu mock kartı --- */
.mock {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  max-width: 320px;
}

.mock__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--brand-fill);
  color: #ffffff;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.mock__list {
  list-style: none;
  padding: var(--space-2) 0 0 var(--space-3);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock__list .is-on {
  color: var(--brand);
  font-weight: 650;
}

/* --- Karar kartı etiketi --- */
.card__tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 3px 12px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
}

/* --- Kontrol listesi --- */
.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.checklist svg {
  color: var(--brand);
  flex-shrink: 0;
  transform: translateY(3px);
}

/* --- Ortam karşılaştırma kartları --- */
.envgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 767px) {
  .envgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.env {
  padding: var(--space-5) var(--space-6);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.env__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink-900);
  margin-bottom: var(--space-2);
}

.env ul {
  margin: 0;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-700);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* --- Özellik rozetleri (chip) --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-900);
}

.chip svg {
  color: var(--brand);
  flex-shrink: 0;
}

a.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* --- Belge kontrol listesi (işaretlenebilir) --- */
.doclist {
  list-style: none;
  padding: 0;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.doclist li {
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.doclist label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
}

.doclist input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.doclist li.is-done {
  background: var(--paper);
  border-color: var(--line-bright);
}

.doclist li.is-done label {
  color: var(--ink-500);
  text-decoration: line-through;
  text-decoration-color: var(--line-bright);
}

.doclist__progress {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

/* --- Avantaj ikonları --- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  text-align: center;
}

@media (max-width: 767px) {
  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  outline: 1px solid var(--line-bright);
  outline-offset: 3px;
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.benefit__title {
  display: block;
  font-weight: 650;
  color: var(--ink-900);
  margin-bottom: var(--space-1);
}

.benefit__desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-500);
}

/* --- Akış illüstrasyon kartları --- */
.flowgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 700px) {
  .flowgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.flowcard {
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
}

.flowcard svg {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-3);
}

.flowcard__cap {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-700);
}

.flowcard__no {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 700;
  transform: translateY(3px);
}

/* --- Akış diyagramı (swimlane SVG) --- */
.seqdiag {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
}

.seqdiag svg {
  display: block;
  min-width: 680px;
  width: 100%;
  height: auto;
}

/* --- Araç formu (Hash Aracı) --- */
.tool {
  background: var(--paper);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.tool__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .tool__grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
}

.field label small {
  font-weight: 400;
  color: var(--ink-500);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px var(--space-3);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  color: var(--ink-700);
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 74px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.tool__out {
  margin-top: var(--space-5);
}

.tool__out[hidden] {
  display: none;
}

/* --- Arama paneli (Ctrl/Cmd K) --- */
.searchbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh var(--space-4) var(--space-4);
  background: rgba(15, 30, 77, 0.5);
}

.searchbox[hidden] {
  display: none;
}

.searchbox__panel {
  width: min(640px, 100%);
  background: var(--paper);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.searchbox__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-500);
}

.searchbox__head input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--ink-900);
}

.searchbox__head input::placeholder {
  color: var(--ink-500);
}

.searchbox__head kbd {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-500);
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
}

.searchbox__list {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: var(--space-2);
}

.searchbox__item {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.searchbox__item:hover,
.searchbox__item.is-sel {
  background: var(--paper-soft);
  text-decoration: none;
}

.searchbox__crumb {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-500);
}

.searchbox__title {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
}

.searchbox__title mark {
  background: rgba(12, 52, 231, 0.14);
  color: var(--brand);
  border-radius: 2px;
  padding: 0 1px;
}

.searchbox__empty {
  padding: var(--space-5);
  color: var(--ink-500);
  text-align: center;
}

/* --- Sayfa geri bildirimi --- */
.feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--text-sm);
  color: var(--ink-500);
}

.feedback__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.feedback__btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.feedback[data-done] .feedback__btn {
  display: none;
}

/* --- Parametre tablosu ekleri (göçen hücre türleri) --- */
.dtable .mono {
  font-family: var(--font-mono);
  color: var(--ink-900);
  white-space: nowrap;
}

.dtable .cell-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  white-space: nowrap;
}

.scheme {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-bright);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

/* --- Hub sayfası: sade başlık kartları --- */
.simplegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .simplegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .simplegrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.simplecard {
  display: block;
  padding: var(--space-5) var(--space-6);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  font-weight: 650;
  color: var(--brand);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.simplecard:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* --- Hub kartları (gravür köşeli) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 639px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--line-bright);
  border-style: solid;
  border-width: 0;
  transition: border-color var(--dur) var(--ease);
}

.card::before {
  top: 6px;
  left: 6px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.card::after {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.card:hover {
  text-decoration: none;
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

.card:hover::before,
.card:hover::after {
  border-color: var(--brand);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--paper-soft);
  color: var(--brand);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.card:hover .card__icon {
  background: var(--brand-fill);
  color: #ffffff;
}

.card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--ink-900);
}

.card__title .arrow {
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.card:hover .card__title .arrow {
  transform: translateX(3px);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--ink-500);
}

/* --- Kod bloğu (kod plakasıyla aynı dil) --- */
.codeblock {
  margin: var(--space-4) 0;
  background: linear-gradient(165deg, var(--plate-bg-1), var(--plate-bg-2));
  border: 1px solid var(--plate-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.codeblock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(143, 164, 255, 0.09);
  border-bottom: 1px solid var(--plate-line);
}

.codeblock__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F4F6FF;
}

.copybtn--dark {
  border-color: rgba(143, 164, 255, 0.5);
  color: var(--code-key);
}

.copybtn--dark:hover,
.copybtn--dark.is-done {
  background: rgba(143, 164, 255, 0.16);
  border-color: var(--code-key);
  color: #FFFFFF;
}

.codeblock__code {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--code-text);
  scrollbar-width: thin;
  scrollbar-color: var(--plate-line) transparent;
}

.codeblock__code::-webkit-scrollbar {
  height: 6px;
}

.codeblock__code::-webkit-scrollbar-thumb {
  background: var(--plate-line);
  border-radius: var(--radius-pill);
}

.tk-k { color: var(--code-key); }
.tk-s { color: var(--code-string); }
.tk-n { color: var(--code-number); }
.tk-c { color: var(--code-comment); }

/* Kod bloğu dil sekmeleri */
.codetabs__bar {
  gap: var(--space-3);
}

.codetabs__tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.codetabs__tab {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--code-comment);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.codetabs__tab:hover {
  color: #ffffff;
}

.codetabs__tab.is-active {
  background: rgba(143, 164, 255, 0.18);
  color: #ffffff;
}

.codetabs__panel {
  display: none;
}

.codetabs__panel.is-active {
  display: block;
}

/* --- Sayfa altı gezinme (Önceki / Sonraki) --- */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-16);
}

@media (max-width: 639px) {
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pager__card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.pager__card:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.pager__card .chevron {
  color: var(--ink-500);
  flex-shrink: 0;
}

.pager__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pager__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

.pager__title {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink-900);
}

.pager__card--next {
  grid-column: 2;
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 639px) {
  .pager__card--next {
    grid-column: auto;
  }
}

.updated {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

/* --- Sağ "Bu Sayfada" kolonu --- */
.toc__caption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-3);
}

.toc__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-soft);
}

.toc__list a {
  display: block;
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: var(--text-sm);
  color: var(--ink-500);
}

.toc__list a:hover {
  color: var(--ink-900);
  text-decoration: none;
}

.toc__list a.is-active {
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

/* --- Bölüm haritası: kart içi görünür alt başlıklar --- */
.folio__links {
  list-style: none;
  padding: var(--space-2) 0 0;
  margin-top: var(--space-1);
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
}

.folio__links a {
  font-size: var(--text-sm);
  color: var(--ink-700);
}

.folio__links a:hover {
  color: var(--brand);
}

.folios--map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .folios--map {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Yolculuk durakları tıklanabilir --- */
.mints a {
  display: block;
  color: inherit;
}

.mints a:hover {
  text-decoration: none;
}

.mints li {
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.mints li:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

/* --- Ürün hero'su (3B cihaz sahnesi) --- */
.prodhero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  align-items: start;
  gap: var(--space-4) var(--space-8);
  margin: var(--space-6) 0 var(--space-10);
}

.prodhero__intro {
  order: 1;
}

.prodhero__info {
  order: 2;
}

.prodhero__visual {
  order: 3;
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  min-width: 0;
}

.prodhero__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
}

.prodhero__tagline {
  margin-top: var(--space-3);
  font-size: var(--text-xl);
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink-500);
}

.prodhero__info p {
  color: var(--ink-700);
}

.prodhero__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--brand);
}

.prodhero__link svg {
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.prodhero__link:hover svg {
  transform: translateX(3px);
}

.prodhero__scene {
  position: relative;
  aspect-ratio: 21 / 10;
  perspective: 1100px;
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
}

.prodhero__panel {
  position: absolute;
  inset: 11% 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: linear-gradient(135deg, #E8EDFF 0%, #F3F6FF 55%, #FCFDFF 100%);
  transform: rotateY(var(--rx)) rotateX(var(--ry));
  transition: transform 200ms ease-out;
}

.prodhero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.65), transparent 70%);
}

.prodhero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  animation: prodhero-drift 11s ease-in-out infinite alternate;
}

.prodhero__blob--1 {
  width: 46%;
  height: 70%;
  left: -8%;
  top: -18%;
  background: rgba(12, 52, 231, 0.14);
}

.prodhero__blob--2 {
  width: 52%;
  height: 80%;
  right: -12%;
  top: 10%;
  background: rgba(143, 164, 255, 0.32);
  animation-duration: 14s;
  animation-delay: -4s;
}

.prodhero__blob--3 {
  width: 34%;
  height: 55%;
  left: 30%;
  bottom: -22%;
  background: rgba(1, 18, 197, 0.1);
  animation-duration: 9s;
  animation-delay: -7s;
}

@keyframes prodhero-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(9%, 14%) scale(1.18);
  }
}

.prodhero__dots {
  position: absolute;
  left: 9%;
  top: 24%;
  width: 72px;
  height: 48px;
  background-image: radial-gradient(circle, rgba(12, 52, 231, 0.25) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
}

.prodhero__device {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  transform: translate(-50%, -50%) rotateY(calc(var(--rx) * 1.6)) rotateX(calc(var(--ry) * 1.6)) translateZ(60px);
  transition: transform 200ms ease-out;
  will-change: transform;
  filter: drop-shadow(0 24px 22px rgba(15, 30, 77, 0.16));
}

@media (prefers-reduced-motion: reduce) {
  .prodhero__blob {
    animation: none;
  }

  .prodhero__panel,
  .prodhero__device {
    transition: none;
  }
}

@media (max-width: 900px) {
  .prodhero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .prodhero__scene {
    aspect-ratio: 7 / 4;
  }

  .prodhero__tagline br {
    display: none;
  }
}

/* Bölüm kartı başlığı: karta değil başlığa tıklanır */
.folio__hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: inherit;
}

.folio__hub .arrow {
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.folio__hub:hover {
  text-decoration: none;
}

.folio__hub:hover .folio__title {
  color: var(--brand);
}

.folio__hub:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   TEMA — üst bar anahtarı + koyu tema bileşen ince ayarları
   ============================================================ */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--paper);
}

.theme-switch__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  color: var(--ink-500);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.theme-switch__btn:hover {
  color: var(--ink-900);
}

.theme-switch__btn.is-active {
  background: var(--paper-soft);
  color: var(--brand);
  outline: 1px solid var(--line-bright);
}

/* Dar ekranda üst bar sığsın: tema anahtarı sağ altta yüzer,
   en dar ekranda Panel Giriş gizlenir */
@media (max-width: 767px) {
  .theme-switch {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 30;
    box-shadow: var(--shadow-panel);
  }
}

@media (max-width: 480px) {
  .topbar .btn--ghost {
    display: none;
  }
}

/* --- Koyu tema ince ayarları (sabit renkli öğeler) --- */
:root[data-theme="dark"] .brand__logo {
  filter: brightness(0) invert(1); /* mavi logo koyu zeminde kaybolmasın */
}

:root[data-theme="dark"] ::selection {
  background: rgba(143, 164, 255, 0.3);
}

:root[data-theme="dark"] .callout--warn {
  background: #261F0E;
  border-color: #4E4120;
  border-left-color: #E3B341;
}

:root[data-theme="dark"] .callout--warn .callout__icon {
  color: #E3B341;
}

:root[data-theme="dark"] .searchbox__title mark {
  background: rgba(143, 164, 255, 0.25);
}

/* Kart illüstrasyonu: gravür çizgileri koyuda parlak periwinkle + ışıma */
:root[data-theme="dark"] .hero__art {
  filter: drop-shadow(0 0 30px rgba(143, 164, 255, 0.25));
}

:root[data-theme="dark"] .hero__art .cardface {
  fill: rgba(143, 164, 255, 0.12);
}

:root[data-theme="dark"] .hero__art [stroke="#0C34E7"] { stroke: #AEBFFF; }
:root[data-theme="dark"] .hero__art [fill="#0C34E7"] { fill: #AEBFFF; }
:root[data-theme="dark"] .hero__art [fill="#0F1E4D"] { fill: #FFFFFF; }
:root[data-theme="dark"] .hero__art [fill="#5A6784"] { fill: #B3C0EC; }
:root[data-theme="dark"] .hero__art [stroke="rgba(12,52,231,0.3)"] { stroke: rgba(174, 191, 255, 0.5); }
:root[data-theme="dark"] .hero__art [stroke="rgba(12,52,231,0.24)"] { stroke: rgba(174, 191, 255, 0.4); }
:root[data-theme="dark"] .hero__art [stroke="rgba(12,52,231,0.6)"] { stroke: rgba(174, 191, 255, 0.8); }
:root[data-theme="dark"] .hero__art [stroke="rgba(15,30,77,0.25)"] { stroke: rgba(244, 246, 255, 0.4); }

/* 3B ürün sahnesi koyu zemine uyarlanır */
:root[data-theme="dark"] .prodhero__panel {
  background: linear-gradient(135deg, #17224E 0%, #121B3D 55%, #0E1530 100%);
  border-color: var(--line-soft);
}

:root[data-theme="dark"] .prodhero__panel::after {
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(143, 164, 255, 0.28), transparent 70%);
}

:root[data-theme="dark"] .prodhero__blob--1 {
  background: rgba(92, 119, 255, 0.28);
}

:root[data-theme="dark"] .prodhero__blob--2 {
  background: rgba(143, 164, 255, 0.18);
}

:root[data-theme="dark"] .prodhero__blob--3 {
  background: rgba(12, 52, 231, 0.4);
}

:root[data-theme="dark"] .prodhero__dots {
  background-image: radial-gradient(circle, rgba(143, 164, 255, 0.4) 1.5px, transparent 1.6px);
}

:root[data-theme="dark"] .prodhero__device {
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.55));
}

/* ============================================================
   SOL MENÜ — masaüstünde kalıcı ray, dar ekranda çekmece
   (yerleşim layout.css'te)
   ============================================================ */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--brand);
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease);
}

.menu-toggle:hover {
  border-color: var(--brand);
}

/* --- Dil kutusu (menü tepesi) --- */
.dropdown--lang {
  margin-bottom: var(--space-5);
}

.dropdown--lang .dropdown__menu {
  width: 100%;
  min-width: 0;
}

.lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lang:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lang .chevron {
  color: var(--ink-500);
}

.dropdown__item {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.dropdown__item:hover {
  background: var(--paper-soft);
  color: var(--brand);
  text-decoration: none;
}

.dropdown__item.is-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--brand);
  font-weight: 600;
}

.dropdown__item.is-selected::after {
  content: "✓";
  font-weight: 700;
}

/* --- Postman koleksiyonu indirme (menü altı) --- */
.sidebar-postman {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.sidebar-postman:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.sidebar-postman svg {
  flex-shrink: 0;
}

/* Başka bölümde açılan kısayol (↗) */
.nav__link--ref .refarrow {
  flex-shrink: 0;
  color: var(--ink-500);
}

/* Ray içinde odak halkası içe oturur (kaydırma kutusunda kırpılmasın) */
.sidebar :focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--focus-ring);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 31, 0.5);
  z-index: 65;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.overlay.is-visible {
  opacity: 1;
}

body.drawer-locked {
  overflow: hidden;
}

/* --- Menü ağacı (akordeon) --- */
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__link,
.nav__group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: var(--text-sm);
  text-align: left;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav__link:hover,
.nav__group-link:hover {
  background: var(--paper-soft);
  color: var(--ink-900);
  text-decoration: none;
}

.nav__link--top,
.nav__group-link {
  font-weight: 600;
  color: var(--ink-900);
}

.nav__link.is-active {
  position: relative;
  background: var(--paper-soft);
  color: var(--brand);
  font-weight: 600;
}

.nav__link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: var(--brand);
}

.nav .chevron {
  color: var(--ink-500);
  flex-shrink: 0;
}

.nav__group-head {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__group-head .nav__group-link {
  flex: 1;
  min-width: 0;
  width: auto;
}

.nav__group-toggle {
  flex-shrink: 0;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav__group-toggle:hover {
  background: var(--paper-soft);
  color: var(--ink-900);
}

.nav__group-toggle .chevron {
  transition: transform var(--dur) var(--ease);
}

.nav__group.is-open > .nav__group-head > .nav__group-toggle .chevron {
  transform: rotate(90deg);
}

.nav__group.is-current > .nav__group-head > .nav__group-link {
  color: var(--brand);
}

.nav__sublist {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.nav__group.is-open > .nav__sublist {
  grid-template-rows: 1fr;
}

.nav__sublist-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__sublist-inner > :first-child {
  margin-top: 2px;
}

.nav__sublist-inner > :last-child {
  margin-bottom: var(--space-2);
}

.nav__sublist .nav__link {
  padding-left: var(--space-6);
  font-weight: 400;
  color: var(--ink-700);
}

.nav__sublist .nav__group-head .nav__group-link {
  padding-left: var(--space-6);
  font-weight: 500;
  color: var(--ink-700);
}

.nav__sublist .nav__sublist {
  margin-left: var(--space-5);
  border-left: 1px solid var(--line-soft);
}

.nav__group:not(.is-open) > .nav__sublist {
  border-left-color: transparent;
}

.nav__sublist .nav__sublist .nav__link {
  padding-left: var(--space-4);
}

.nav__sublist .nav__sublist .nav__group-head .nav__group-link {
  padding-left: var(--space-4);
}

.nav__link--dl {
  justify-content: flex-start;
  gap: var(--space-2);
}

.nav__link--dl svg {
  flex-shrink: 0;
}

/* Koyu temada karartma biraz daha derin */
:root[data-theme="dark"] .overlay {
  background: rgba(0, 0, 0, 0.6);
}
