/* ==========================================================================
   Yordam özel stilleri
   - Tema (style.css / Bootstrap 5) üzerine yazılır; yalnızca Bootstrap'in
     yetmediği yerlerde kullanın. Tüm sınıflar "yd-" önekiyle başlar.
   - Yüklenme sırası: plugins.css > style.css > colors > fonts > style-yordam.css
   - Bölümler:  1) Değişkenler  2) Genel  3) Hero  4) Bildiri  5) Hikaye/sahneler
                6) Karşılaştırma  7) Rakamlar  8) Final  9) Menü rozeti
                10) Animasyonlar  11) Hareketi azalt  12) Mobil
   ========================================================================== */

/* ---------- 1) Değişkenler ---------- */
:root {
  --yd-bg: #000;
  --yd-fg: #f5f5f7;
  --yd-mute: #a1a1a6;
  --yd-line: rgba(255, 255, 255, .12);
  --yd-blue: #2997ff;
  --yd-violet: #a56bff;
  --yd-pink: #ff6b9d;
  --yd-gold: #ffb340;
  --yd-cyan: #38d6ff;
  --yd-grad: linear-gradient(90deg, #2997ff 0%, #a56bff 38%, #ff6b9d 70%, #ffb340 100%);
  --yd-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Ana sayfa slider: etkinlik bilgileri + geri sayım ---------- */
.yd-slide-info { display: flex; flex-wrap: wrap; gap: .5rem .6rem; justify-content: center; }
.yd-slide-info li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; font-size: .8rem; font-weight: 600; color: #343f52; background: #fff; border-radius: 2rem; box-shadow: 0 .25rem 1rem rgba(52, 63, 82, .08); }
.yd-slide-info i { font-size: 1rem; color: #747ed1; }
.yd-countdown { display: flex; gap: .6rem; justify-content: center; }
.yd-countdown[hidden] { display: none; }
.yd-countdown__box { min-width: 4.4rem; padding: .55rem .5rem .45rem; text-align: center; background: #fff; border-radius: .9rem; box-shadow: 0 .4rem 1.2rem rgba(52, 63, 82, .1); }
.yd-countdown__box b { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #3f78e0, #747ed1 60%, #d16b86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.yd-countdown__box small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a92a3; }
@media (min-width: 992px) { .yd-slide-info, .yd-countdown { justify-content: flex-start; } }
html[data-theme="dark"] .yd-slide-info li { color: #e6e9f1; background: #20222b; box-shadow: none; }
html[data-theme="dark"] .yd-slide-info i { color: #9dbcff; }
html[data-theme="dark"] .yd-countdown__box { background: #20222b; box-shadow: none; }
html[data-theme="dark"] .yd-countdown__box small { color: #9aa1af; }

/* ---------- Menü rozeti (tüm sayfalarda) ---------- */
.yd-nav-ai {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: super;
  padding: .15rem .4rem;
  color: #fff;
  background: linear-gradient(90deg, #2997ff, #a56bff);
  border-radius: .5rem;
  margin-left: .25rem;
}

/* ---------- 2) Genel (AI sayfası) ---------- */
.yd-ai { background: var(--yd-bg); color: var(--yd-fg); }
.yd-ai h1, .yd-ai h2, .yd-ai h3, .yd-ai h4 { color: inherit; }
.yd-ai section { position: relative; }
.yd-ai a:not(.btn) { color: inherit; }
.yd-ai .btn-light { color: #1d1d1f; background: #fff; border-color: #fff; font-weight: 600; }
.yd-ai .btn-light:hover { color: #000; background: #e8e8ed; border-color: #e8e8ed; }
.yd-ai em { font-family: inherit; }

.yd-kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--yd-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: .75rem;
}
.yd-kicker--brand { text-transform: none; letter-spacing: .04em; font-size: 1rem; }
.yd-h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 1rem; }
.yd-h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-bottom: .9rem; }
.yd-h4 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.yd-lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--yd-mute); max-width: 42rem; margin: 0 auto; }
.yd-section-head { text-align: center; margin-bottom: 4rem; }
/* Başlıklar dengeli satırlara bölünsün (tek kelimelik "yetim" satır kalmasın) */
.yd-h2, .yd-h3, .yd-h4, .yd-hero__title, .yd-words, .yd-lead { text-wrap: balance; }

/* Kaydırınca beliren öğeler (individual transform özellikleri: tilt ile çakışmaz) */
.yd-js [data-yd-reveal] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity .9s var(--yd-ease) var(--d, 0s), translate .9s var(--yd-ease) var(--d, 0s), scale .9s var(--yd-ease) var(--d, 0s);
}
.yd-js [data-yd-reveal="scale"] { scale: .93; }
.yd-js [data-yd-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Üstte ince okuma ilerleme çubuğu */
.yd-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; pointer-events: none; }
.yd-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: var(--yd-grad); }

/* ---------- Zebra: siyah / hafif gri bölümler ----------
   Bölüm sırası: siyah, gri, siyah, gri ... Açık (gri) bölümlerde yazı ve kartlar koyu tona döner;
   cihaz ekranı (.yd-device) her zaman koyu kalır. */
.yd-ai .yd-dark  { background: #000; }
.yd-ai .yd-light {
  --yd-fg: #1d1d1f; --yd-mute: #6e6e73; --yd-line: rgba(0, 0, 0, .1);
  background: #f5f5f7; color: #1d1d1f;
}
.yd-chap.yd-light { --a: .16; background: radial-gradient(70rem 32rem at 50% 105%, rgba(var(--c), var(--a)), transparent 70%), #f5f5f7; }
.yd-chap.yd-dark  { --a: .34; background: radial-gradient(70rem 32rem at 50% 105%, rgba(var(--c), var(--a)), transparent 70%), #000; }
.yd-light .yd-chap__title, .yd-light .yd-h2 { color: #1d1d1f; }
.yd-light .yd-device { box-shadow: 0 40px 80px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05); }
.yd-device { --yd-fg: #f5f5f7; --yd-mute: #a1a1a6; --yd-line: rgba(255, 255, 255, .12); color: #f5f5f7; }
.yd-light .yd-cap { background: #fff; border-color: rgba(0, 0, 0, .07); box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .05); }
.yd-light .yd-cap::after { background: radial-gradient(16rem circle at var(--gx, 50%) var(--gy, 50%), rgba(41, 151, 255, .12), transparent 60%); }
.yd-light .yd-cap:hover { border-color: rgba(165, 107, 255, .5); }
.yd-light .yd-cap--hl { background: radial-gradient(30rem 16rem at 100% 0%, rgba(165, 107, 255, .22), transparent 70%), #fff; border-color: rgba(165, 107, 255, .4); }
.yd-light .yd-number + p, .yd-light.yd-numbers p { color: #6e6e73; }
.yd-numbers.yd-light { border-top: 0; }
.yd-light .yd-pipe__step { background: #fff; border-color: rgba(0, 0, 0, .07); box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .05); }
.yd-light .yd-pipe__step:hover { border-color: rgba(165, 107, 255, .5); }
.yd-light .yd-pipe__no { color: rgba(0, 0, 0, .06); }
.yd-light .yd-pipe::before { background: linear-gradient(90deg, transparent, rgba(41, 151, 255, .45), rgba(165, 107, 255, .45), transparent); }

/* ---------- 3) Hero: sade başlık + canlı ürün ekranı ---------- */
.yd-hero { position: relative; overflow: hidden; text-align: center; background: #000; padding: clamp(2.75rem, 5vw, 4.25rem) 0 0; }
.yd-hero__glow { position: absolute; left: 50%; bottom: -6rem; width: min(90rem, 140%); height: 34rem; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(41, 151, 255, .30), rgba(165, 107, 255, .16) 45%, transparent 70%); filter: blur(30px); }
.yd-hero__inner { position: relative; transform: translateY(calc(var(--p, 0) * 60px)); opacity: calc(1 - var(--p, 0) * 1.4); will-change: transform, opacity; }
.yd-eyebrow-unused { display: inline-block; margin-bottom: 1.1rem; font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: var(--yd-cyan); }
.yd-hero__title { margin: 0 0 1rem; font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.yd-hero__pre { display: block; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; color: var(--yd-mute); margin-bottom: .3rem; }
.yd-grad { display: block; font-size: clamp(2.4rem, 5.6vw, 4.8rem); padding-bottom: .08em; text-wrap: balance;
  background: linear-gradient(180deg, #fff 35%, #aeb6c8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.yd-hero__sub { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--yd-mute); margin: 0; }

.yd-hero__stage { position: relative; width: min(100%, 62rem); margin: clamp(2rem, 3.5vw, 2.75rem) auto 0; padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.yd-hero__device { width: 100%; height: 28rem; margin: 0; }
.yd-hero__body { padding: 1.1rem 1.5rem; }
.yd-chat--hero { width: min(100%, 40rem); max-width: none; margin: 0 auto; }
.yd-chat--hero .yd-chip.is-active { background: rgba(41, 151, 255, .28); border-color: var(--yd-blue); }
/* ---------- 4) Bildiri: kelime kelime belirir ---------- */
.yd-statement { background: #f5f5f7; padding: clamp(5rem, 14vw, 11rem) 0; }
.yd-words {
  max-width: 62rem; margin: 0 auto;
  font-size: clamp(1.8rem, 4.8vw, 3.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.14;
  color: #1d1d1f;
}
.yd-js .yd-w { color: #d2d2d7; transition: color .35s ease; }
.yd-js .yd-w.is-on { color: #1d1d1f; }

/* ---------- 5) Hikaye: tam ekran bölümler (chapter) ---------- */
.yd-story { background: #000; padding: 0; }
.yd-story .yd-section-head { margin-bottom: 2rem; }

.yd-chap {
  --c: 41, 151, 255; --a: .34;
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 7rem 1.25rem 6rem; text-align: center;
  border-top: 1px solid var(--yd-line);
  background: radial-gradient(70rem 32rem at 50% 105%, rgba(var(--c), var(--a)), transparent 70%), #000;
}
.yd-chap--0 { --c: 41, 151, 255; }
.yd-chap--1 { --c: 165, 107, 255; }
.yd-chap--2 { --c: 56, 214, 255; }
.yd-chap--3 { --c: 255, 107, 157; }
.yd-chap--4 { --c: 255, 179, 64; }
.yd-chap--5 { --c: 40, 200, 120; }

.yd-chap__text { max-width: 52rem; margin: 0 auto; }
.yd-chap__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem; font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, #2997ff, #a56bff);
  border-radius: 1.1rem; margin-bottom: 1.1rem;
  box-shadow: 0 .75rem 2rem rgba(41, 151, 255, .3);
}
.yd-step__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, #2997ff, #a56bff);
  border-radius: 1rem; margin-bottom: 1.25rem;
  box-shadow: 0 .75rem 2rem rgba(41, 151, 255, .3);
}
.yd-chap__title {
  font-size: clamp(2.4rem, 6.6vw, 5.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04;
  margin: .1rem 0 1.1rem; color: var(--yd-fg);
}
.yd-chap__text p { font-size: clamp(1.1rem, 1.9vw, 1.6rem); line-height: 1.35; color: var(--yd-mute); margin: 0 auto; max-width: 38rem; }
.yd-device {
  position: relative; width: min(100%, 56rem); height: 27rem; margin: 3.25rem auto 0; text-align: left;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #1a1a21, #0b0b0f);
  border: 1px solid var(--yd-line);
  border-radius: 1.6rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 120px rgba(41, 151, 255, .12);
  transform: perspective(1100px) rotateX(calc(var(--rx, 0deg) + (1 - var(--k, 1)) * 12deg)) rotateY(var(--ry, 0deg)) scale(calc(.9 + var(--k, 1) * .1));
  transition: transform .25s ease-out;
  overflow: hidden;
}
.yd-device::before { /* imleci izleyen ışık */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(22rem circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .06), transparent 60%);
}
.yd-device__bar { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--yd-line); flex: 0 0 auto; }
.yd-dots { display: inline-flex; gap: .4rem; }
.yd-dots i { width: .65rem; height: .65rem; border-radius: 50%; background: #3a3a42; }
.yd-dots i:nth-child(1) { background: #ff5f57; } .yd-dots i:nth-child(2) { background: #febc2e; } .yd-dots i:nth-child(3) { background: #28c840; }
.yd-device__title { flex: 1; text-align: center; font-size: .8rem; font-weight: 600; color: var(--yd-mute); transition: opacity .3s; }
.yd-device__demo { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yd-cyan); opacity: .8; }
.yd-device__body { position: relative; flex: 1 1 auto; min-height: 0; }

.yd-scene {
  position: absolute; inset: 0; padding: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: scale(.96) translateY(14px);
  transition: opacity .5s ease, transform .6s var(--yd-ease), visibility .5s;
}
.yd-scene.is-active { opacity: 1; visibility: visible; transform: none; }
html:not(.yd-js) .yd-scene:first-child { opacity: 1; visibility: visible; transform: none; }

.yd-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: .2rem .6rem; border-radius: .4rem; color: #001a33; background: var(--yd-cyan); margin-bottom: .75rem; }
.yd-tag--gold { background: linear-gradient(90deg, #ffc531, #ffe08a); color: #1b1300; }

/* -- Sahne 1: MARC 21 -> BIBFRAME -- */
.yd-sc-marc { gap: .5rem; }
.yd-pane { flex: 1; min-width: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--yd-line); border-radius: 1rem; padding: 1rem; }
.yd-pane--bf { border-color: rgba(255, 197, 49, .35); box-shadow: 0 0 2rem rgba(255, 197, 49, .08); }
.yd-code, .yd-bf { list-style: none; margin: 0; padding: 0; }
.yd-code li, .yd-bf li { opacity: 0; margin: .55rem 0; }
.yd-code code { display: block; font: .76rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; color: #7ee787; background: none; word-break: break-word; }
.yd-bf li { display: flex; flex-direction: column; padding: .35rem .6rem; border-left: 2px solid #ffc531; }
.yd-bf b { font-size: .68rem; letter-spacing: .06em; color: #ffc531; }
.yd-bf span { font-size: .9rem; font-weight: 600; }
.yd-sc-marc.is-active .yd-code li, .yd-sc-marc.is-active .yd-bf li { animation: yd-in .6s var(--yd-ease) both; animation-delay: calc(var(--i) * .28s + .25s); }
.yd-flow { position: relative; flex: 0 0 3rem; height: 2rem; display: flex; align-items: center; justify-content: center; color: var(--yd-gold); font-size: 1.6rem; }
.yd-flow__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, rgba(0, 255, 160, .5), rgba(255, 197, 49, .8)); }
.yd-flow__dot { position: absolute; top: calc(50% - 4px); left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 .8rem #fff; opacity: 0; }
.yd-flow i { position: relative; right: -.9rem; top: 0; line-height: 1; background: transparent; }
.yd-sc-marc.is-active .yd-flow__dot { animation: yd-travel 1.8s ease-in-out .9s infinite; }

/* -- Sahne 2: Fotoğraftan kataloglama -- */
.yd-sc-katalog { align-items: stretch; }
.yd-photo { width: 100%; height: 100%; display: flex; flex-direction: column; gap: .8rem; }
.yd-tabs { display: flex; flex-wrap: wrap; gap: .4rem; flex: 0 0 auto; }
.yd-tab { font-size: .68rem; font-weight: 600; padding: .3rem .7rem; border-radius: .6rem; color: var(--yd-mute); background: rgba(255, 255, 255, .06); border: 1px solid var(--yd-line); }
.yd-tab.is-on { color: #fff; background: #0a74d8; border-color: #0a74d8; }
.yd-tab--ai { margin-left: auto; color: var(--yd-cyan); border-color: rgba(56, 214, 255, .5); background: rgba(56, 214, 255, .1); }
.yd-photo__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.yd-photo__left { min-width: 0; }
.yd-slots { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.yd-slot { position: relative; overflow: hidden; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .2rem; border: 1px dashed rgba(255, 255, 255, .28); border-radius: .6rem; background: rgba(255, 255, 255, .03); transition: border-color .4s, background .4s; }
.yd-slot b { font-size: 1.1rem; line-height: 1; color: var(--yd-mute); }
.yd-slot small { margin-top: .25rem; font-size: .52rem; line-height: 1.15; color: var(--yd-mute); }
.yd-slot__page { position: absolute; inset: .3rem; border-radius: .3rem; opacity: 0; transform: translateY(-14px) scale(.9); transition: opacity .45s, transform .55s var(--yd-ease);
  background: repeating-linear-gradient(180deg, transparent 0 .32rem, rgba(0, 0, 0, .16) .32rem .4rem), #f1f1f4; background-size: 100% 100%; }
.yd-slot.is-filled { border-style: solid; border-color: rgba(56, 214, 255, .55); }
.yd-slot.is-filled .yd-slot__page { opacity: 1; transform: none; }
.yd-slot.is-filled b, .yd-slot.is-filled small { opacity: 0; }
.yd-slots__beam { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(transparent, var(--yd-cyan), transparent); box-shadow: 0 0 1rem 3px rgba(56, 214, 255, .6); opacity: 0; pointer-events: none; }
.yd-slots.is-scan .yd-slots__beam { animation: yd-scan 1.4s ease-in-out both; }
.yd-read { margin-top: .6rem; width: 100%; border: 0; font-weight: 700; font-size: .82rem; color: #fff; padding: .55rem 1rem; border-radius: .7rem; background: #0a74d8; opacity: .4; transition: opacity .4s, box-shadow .4s; }
.yd-read.is-ready { opacity: 1; box-shadow: 0 0 1.4rem rgba(10, 116, 216, .55); }
.yd-read.is-reading i { animation: yd-bounce .6s infinite; display: inline-block; }
.yd-photo__opts { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .5rem; font-size: .66rem; color: var(--yd-mute); }
.yd-photo__opts span::before { content: "✓"; display: inline-block; width: .85rem; height: .85rem; margin-right: .3rem; line-height: .85rem; text-align: center; font-size: .6rem; color: #fff; background: var(--yd-blue); border-radius: .2rem; }
.yd-sc-katalog .yd-form { max-width: none; }
.yd-sc-katalog .yd-input { min-height: 2.1rem; padding: .25rem .7rem; font-size: .85rem; }
.yd-sc-katalog .yd-field { margin-bottom: .4rem; }
.yd-sc-katalog .yd-form__head { margin-bottom: .6rem; }
.yd-sc-katalog .yd-approve { margin-top: .2rem; }

/* -- Sahne 2: Otomatik kataloglama -- */
.yd-form { width: 100%; max-width: 26rem; }
.yd-form__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.yd-ai-pill { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 2rem; background: linear-gradient(90deg, #2997ff, #a56bff); color: #fff; }
.yd-field { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.yd-field label { flex: 0 0 4.2rem; margin: 0; font-size: .75rem; color: var(--yd-mute); }
.yd-input { flex: 1; min-height: 2.5rem; display: flex; align-items: center; padding: .4rem .8rem; font-size: .92rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--yd-line); border-radius: .65rem; transition: border-color .3s, box-shadow .3s; }
.yd-input.is-typing { border-color: var(--yd-blue); box-shadow: 0 0 0 3px rgba(41, 151, 255, .2); }
.yd-input.is-done { border-color: rgba(165, 107, 255, .6); }
.yd-caret { display: none; width: 2px; height: 1.1em; margin-left: 2px; background: var(--yd-blue); animation: yd-blink 1s steps(1) infinite; }
.yd-input.is-typing .yd-caret { display: inline-block; }
.yd-approve { margin-top: .5rem; float: right; border: 0; color: #fff; font-weight: 700; font-size: .85rem; padding: .55rem 1.2rem; border-radius: 2rem; background: linear-gradient(90deg, #2997ff, #a56bff); opacity: 0; translate: 0 8px; transition: opacity .5s, translate .5s var(--yd-ease); pointer-events: none; }
.yd-form.is-ready .yd-approve { opacity: 1; translate: 0 0; }

/* -- Sahne 3: Bağlantılı veri grafı -- */
.yd-sc-graf svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.yd-edge { stroke: rgba(255, 255, 255, .28); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.yd-sc-graf.is-active .yd-edge { animation: yd-draw 1s var(--yd-ease) forwards; animation-delay: calc(var(--i) * .12s + .2s); }
.yd-node { opacity: 0; transform-box: fill-box; transform-origin: center; cursor: pointer; }
.yd-node circle { fill: var(--yd-blue); transition: fill .25s, r .25s; }
.yd-node text { fill: #e5e5ea; font-size: 11px; font-weight: 600; pointer-events: none; paint-order: stroke; stroke: #101015; stroke-width: 4px; stroke-linejoin: round; }
.yd-node:hover circle { fill: var(--yd-gold); r: 12; }
.yd-node--core circle { fill: var(--yd-violet); }
.yd-node--core text { font-size: 12.5px; font-weight: 700; fill: #fff; }
.yd-node__halo { fill: rgba(165, 107, 255, .25) !important; animation: yd-halo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.yd-sc-graf.is-active .yd-node { animation: yd-pop .6s var(--yd-ease) both; animation-delay: calc(var(--i) * .12s + .45s); }
.yd-sc-graf.is-active .yd-node--core { animation: yd-pop .6s var(--yd-ease) both; animation-delay: 0s; }

/* -- Sahne 4: Asistan sohbeti -- */
.yd-sc-asistan { align-items: stretch; }
.yd-chat { width: 100%; max-width: 38rem; height: 100%; display: flex; flex-direction: column; }
.yd-chat__head { display: flex; align-items: center; gap: .6rem; padding-bottom: .75rem; border-bottom: 1px solid var(--yd-line); }
.yd-chat__head small { margin-left: auto; font-size: .72rem; color: var(--yd-mute); }
.yd-chat__empty { margin: auto; text-align: center; font-size: .95rem; color: var(--yd-mute); opacity: .75; }
.yd-chat__label { flex: 0 0 100%; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yd-cyan); }
.yd-chat__input { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; padding: .55rem .9rem; font-size: .85rem; color: var(--yd-mute); background: rgba(255, 255, 255, .05); border: 1px solid var(--yd-line); border-radius: .75rem; }
.yd-chat__opts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; font-size: .7rem; color: var(--yd-mute); }
.yd-chat__opts .is-select { padding: .1rem .6rem; border: 1px solid var(--yd-line); border-radius: .4rem; }
.yd-chat__opts .is-check::before { content: "✓"; display: inline-block; width: .9rem; height: .9rem; margin-right: .3rem; line-height: .9rem; text-align: center; font-size: .65rem; color: #fff; background: var(--yd-blue); border-radius: .2rem; }
.yd-chat__avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2997ff, #a56bff); }
.yd-chat__log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .9rem 0; display: flex; flex-direction: column; gap: .55rem; scrollbar-width: thin; }
.yd-msg { max-width: 86%; padding: .6rem .9rem; border-radius: 1.1rem; font-size: .9rem; line-height: 1.4; animation: yd-in .4s var(--yd-ease) both; }
.yd-msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .09); border-bottom-left-radius: .3rem; }
.yd-msg--me { align-self: flex-end; background: linear-gradient(135deg, #2997ff, #5b7cff); border-bottom-right-radius: .3rem; }
.yd-typing { display: inline-flex; gap: .25rem; padding: .25rem 0; }
.yd-typing i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--yd-mute); animation: yd-bounce 1s infinite; }
.yd-typing i:nth-child(2) { animation-delay: .15s; } .yd-typing i:nth-child(3) { animation-delay: .3s; }
.yd-chat__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .6rem; border-top: 1px solid var(--yd-line); }
.yd-chip { font: inherit; font-size: .78rem; color: var(--yd-fg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: 2rem; padding: .4rem .85rem; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.yd-chip:hover { background: rgba(41, 151, 255, .25); border-color: var(--yd-blue); transform: translateY(-1px); }
.yd-chip.is-used { opacity: .4; pointer-events: none; }
.yd-chat__note { display: block; margin-top: .5rem; font-size: .68rem; color: var(--yd-mute); opacity: .8; }

/* -- Sahne 5: Kayıt doluluğu + eksik alanlar (gerçek arayüze benzer, açık kartlar) -- */
.yd-occ { position: relative; width: 100%; max-width: 44rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.yd-occ__bar { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; color: #1d1d1f; background: #fff; border-radius: 1rem; box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .35); }
.yd-occ__bar strong { font-size: .85rem; white-space: nowrap; }
.yd-occ__segs { flex: 1; display: flex; gap: .25rem; min-width: 0; }
.yd-occ__segs i { flex: 1; height: .45rem; border-radius: 1rem; background: #e4e5ea; transition: background .4s; }
.yd-occ__segs i.is-on { background: #e0343f; }
.yd-occ.is-mid .yd-occ__segs i.is-on { background: #f0a020; }
.yd-occ.is-high .yd-occ__segs i.is-on { background: #28a745; }
.yd-occ__pct { font-size: .8rem; font-weight: 800; color: #e0343f; font-variant-numeric: tabular-nums; transition: color .4s; }
.yd-occ.is-mid .yd-occ__pct { color: #d98a00; }
.yd-occ.is-high .yd-occ__pct { color: #1f8a3a; }
.yd-occ__badge { font-size: .75rem; font-weight: 800; color: #fff; background: #0a74d8; padding: .2rem .55rem; border-radius: 2rem; }
.yd-occ.is-complete .yd-occ__badge, .yd-occ.is-complete .yd-occ__count { background: #28a745; }
.yd-occ__panel { color: #1d1d1f; background: #fff; border-radius: 1rem; padding: .85rem .9rem .7rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .4); }
.yd-occ__head { display: flex; align-items: center; gap: .5rem; padding: 0 .2rem .5rem; margin-bottom: .3rem; border-bottom: 1px solid #ececf0; font-size: .82rem; font-weight: 700; }
.yd-occ__count { font-size: .7rem; font-weight: 800; color: #fff; background: #e0343f; padding: .05rem .5rem; border-radius: 2rem; }
.yd-occ ul { list-style: none; margin: 0; padding: 0; }
.yd-occ li { overflow: hidden; max-height: 2.3rem; transition: max-height .45s var(--yd-ease), opacity .35s; }
.yd-occ li.is-done { max-height: 0; opacity: 0; }
.yd-occ__item { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; font: inherit; font-size: .8rem; color: #1d1d1f; text-align: left; background: transparent; border: 0; border-radius: .5rem; cursor: pointer; transition: background .2s; }
.yd-occ__item:hover { background: #e9eaee; }
.yd-occ__item span { flex: 1; }
.yd-occ__item em { font-style: normal; color: #0a74d8; }
.yd-occ__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #e0343f; flex: 0 0 auto; }
.yd-occ__hint { margin: .45rem .2rem 0; padding-top: .45rem; border-top: 1px solid #ececf0; font-size: .68rem; color: #6e6e73; }
.yd-occ__toast { position: absolute; left: 0; top: calc(50% + 2.8rem); padding: .4rem .8rem; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(10, 116, 216, .95); border-radius: .6rem; opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s var(--yd-ease); pointer-events: none; }
.yd-occ__toast.is-show { opacity: 1; translate: 0 0; }
.yd-sc-oneri.is-active .yd-occ__bar { animation: yd-in .5s var(--yd-ease) both; }
.yd-sc-oneri.is-active .yd-occ__panel { animation: yd-in .6s var(--yd-ease) .25s both; }
/* -- Sahne 6: RFID -- */
.yd-rfid { width: 100%; max-width: 30rem; text-align: center; }
.yd-shelf { position: relative; display: flex; align-items: flex-end; gap: .3rem; height: 10.5rem; padding: 0 1rem; border-bottom: 4px solid #3a3a42; margin-bottom: 1.25rem; }
.yd-shelf i { flex: 1; height: var(--h); background: hsl(var(--c) 55% 38%); border-radius: .2rem .2rem 0 0; transition: box-shadow .3s; }
.yd-sc-rfid.is-active .yd-shelf i { animation: yd-read .7s ease both; animation-delay: calc(var(--i) * .14s + .35s); }
.yd-beam { position: absolute; top: -.5rem; bottom: 0; left: 0; width: 3px; background: linear-gradient(transparent, var(--yd-cyan), transparent); box-shadow: 0 0 1.2rem 4px rgba(56, 214, 255, .6); opacity: 0; }
.yd-sc-rfid.is-active .yd-beam { animation: yd-scan 2.6s ease-in-out .3s both; }
.yd-rfid__count b { display: block; font-size: 3.4rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(90deg, #38d6ff, #a56bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums; }
.yd-rfid__count span { color: var(--yd-mute); font-size: .9rem; }

/* ---------- 5a) zek.ai yetenekleri (bento ızgara) ---------- */
.yd-caps { background: #000; padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--yd-line); }
.yd-caps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.yd-cap {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 13rem; padding: 1.5rem;
  background: linear-gradient(160deg, #17171d, #0c0c10);
  border: 1px solid var(--yd-line); border-radius: 1.5rem;
  transition: translate .3s var(--yd-ease), border-color .3s;
}
.yd-cap::after { /* imleci izleyen ışık */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(16rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .08), transparent 60%);
}
.yd-cap:hover { border-color: rgba(165, 107, 255, .5); }
.yd-cap:hover::after { opacity: 1; }
.yd-cap--wide { grid-column: span 2; }
.yd-cap__icon {
  position: absolute; top: 1.4rem; left: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, #2997ff, #a56bff); border-radius: 1rem;
  box-shadow: 0 .6rem 1.6rem rgba(41, 151, 255, .28);
}
.yd-cap h3 { font-size: clamp(1.2rem, 1.9vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .4rem; color: var(--yd-fg); }
.yd-cap p { margin: 0; font-size: .98rem; line-height: 1.35; color: var(--yd-mute); }
.yd-cap--wide h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.yd-cap--hl { background: radial-gradient(30rem 16rem at 100% 0%, rgba(165, 107, 255, .35), transparent 70%), linear-gradient(160deg, #1b1830, #0c0c10); border-color: rgba(165, 107, 255, .4); }

/* ---------- 5b) Kendi yapay zekâ sunucumuz ---------- */
.yd-inhouse { background: #000; padding: clamp(5rem, 10vw, 8rem) 0; }
.yd-pipe { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.yd-pipe::before { /* adımları bağlayan çizgi */
  content: ""; position: absolute; top: 3.9rem; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, .6), rgba(165, 107, 255, .6), transparent);
}
.yd-pipe__step { position: relative; padding: 1.75rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--yd-line); border-radius: 1.5rem; transition: transform .3s var(--yd-ease), border-color .3s; }
.yd-pipe__step:hover { translate: 0 -.4rem; border-color: rgba(165, 107, 255, .5); }
.yd-pipe__step .yd-step__icon { position: relative; z-index: 1; }
.yd-pipe__step p { margin: 0; color: var(--yd-mute); }
.yd-inhouse__note { margin-top: 2.5rem; text-align: center; }
.yd-pipe__no { position: absolute; top: .9rem; right: 1.25rem; font-size: 3.5rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .06); }

/* ---------- 7b) SSS (accordion, JS gerektirmez) ---------- */
.yd-faq { background: #000; padding: clamp(5rem, 10vw, 8rem) 0; }
.yd-faq .yd-section-head { margin-bottom: 2.5rem; }
.yd-faq__list { max-width: 50rem; margin: 0 auto; border-top: 1px solid var(--yd-line); }
.yd-faq__item { border-bottom: 1px solid var(--yd-line); }
.yd-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.3rem .25rem; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; color: var(--yd-fg); }
.yd-faq__item summary::-webkit-details-marker { display: none; }
.yd-faq__item summary i { position: relative; flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: transform .3s var(--yd-ease), background .3s; }
.yd-faq__item summary i::before, .yd-faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: 2px; background: var(--yd-fg); translate: -50% -50%; }
.yd-faq__item summary i::after { rotate: 90deg; transition: rotate .3s var(--yd-ease); }
.yd-faq__item[open] summary i { background: linear-gradient(135deg, #2997ff, #a56bff); }
.yd-faq__item[open] summary i::after { rotate: 0deg; }
.yd-faq__item summary:hover { color: #fff; }
.yd-faq__item summary:focus-visible { outline: 2px solid var(--yd-blue); outline-offset: 2px; border-radius: .5rem; }
.yd-faq__item p { margin: 0; padding: 0 .25rem 1.5rem; max-width: 42rem; font-size: 1.05rem; line-height: 1.5; color: var(--yd-mute); }
/* ---------- 7) Rakamlar ---------- */
.yd-numbers { background: #000; padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--yd-line); }
.yd-number { font-size: clamp(3.6rem, 8vw, 6.4rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; background: var(--yd-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums; }
.yd-number em { font-style: normal; }
.yd-numbers p { margin: .75rem auto 0; max-width: 17rem; color: var(--yd-mute); }

/* ---------- 8) Final: davet + CTA ---------- */

/* ==========================================================================
   Koyu tema (dark mode)
   - <html data-theme="dark"> iken devreye girer (ust.php erken betik + script-yordam.js düğmesi).
   - Tema Bootstrap değişkenleriyle çalıştığı için önce değişkenler, sonra sabit renkli sınıflar ezilir.
   ========================================================================== */
.yd-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; font-size: 1.25rem; line-height: 1; color: #343f52; background: transparent; border: 1px solid rgba(164, 174, 198, .35); border-radius: 50%; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.yd-theme-toggle { border: 0; }
.yd-theme-toggle:hover { background: rgba(164, 174, 198, .18); }
/* Düğme dil seçiciye yaklaşsın: sağ boşluğu kaldır, dil seçicinin sol boşluğunu azalt */
.navbar-other .nav-item:has(> .yd-theme-toggle) { margin-right: 0 !important; }
.navbar-other .nav-item.language-select { margin-left: .2rem !important; }
/* Menü öğeleri arası biraz daha dar (20px -> 15px yan boşluk) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav:not(.flex-row) > .nav-item > .nav-link { padding-left: .75rem; padding-right: .75rem; }
}
.yd-theme-toggle:focus-visible { outline: 2px solid #3f78e0; outline-offset: 2px; }
.yd-theme-toggle__sun { display: none; }
html[data-theme="dark"] .yd-theme-toggle { color: #f1f3f8; }
html[data-theme="dark"] .yd-theme-toggle__moon { display: none; }
html[data-theme="dark"] .yd-theme-toggle__sun { display: inline; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #0d0d11; --bs-body-bg-rgb: 13, 13, 17;
  --bs-body-color: #aab0bd; --bs-body-color-rgb: 170, 176, 189;
  --bs-heading-color: #f1f3f8;
  --bs-border-color: #2a2d38;
  --bs-light: #121217; --bs-light-rgb: 18, 18, 23;
  --bs-primary: #6f9bff; --bs-primary-rgb: 111, 155, 255;
  --bs-link-color: #7aa6ff; --bs-link-color-rgb: 122, 166, 255;
  --bs-link-hover-color-rgb: 160, 190, 255;
  --bs-soft-primary: #171b26; --bs-soft-blue: #151c2c; --bs-soft-sky: #122030; --bs-soft-purple: #1a1c30; --bs-soft-grape: #1b1b2e;
  --bs-soft-violet: #1c172b; --bs-soft-pink: #2a1620; --bs-soft-fuchsia: #2a1427; --bs-soft-red: #2b1517; --bs-soft-orange: #2b1b14;
  --bs-soft-yellow: #2a2312; --bs-soft-green: #12281f; --bs-soft-leaf: #15251c; --bs-soft-aqua: #112429; --bs-soft-navy: #181b24; --bs-soft-ash: #17171c;
  --bs-pale-primary: #1d2538; --bs-pale-blue: #1d2538; --bs-pale-sky: #17293c; --bs-pale-purple: #232540; --bs-pale-violet: #261f3a; --bs-pale-pink: #3a1e2b;
  --bs-pale-red: #3b1d20; --bs-pale-orange: #3a251b; --bs-pale-yellow: #392f18; --bs-pale-green: #17372a; --bs-pale-aqua: #16333a; --bs-pale-navy: #20242f; --bs-pale-ash: #1f2029;
  --bs-gray-100: #0d0d11; --bs-gray-200: #14141a;
}
html[data-theme="dark"] body, html[data-theme="dark"] .content-wrapper { background: #0d0d11; color: #aab0bd; }
html[data-theme="dark"] .page-loader { background: #0d0d11; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6,
html[data-theme="dark"] .h1, html[data-theme="dark"] .h2, html[data-theme="dark"] .h3, html[data-theme="dark"] .h4, html[data-theme="dark"] .h5, html[data-theme="dark"] .h6,
html[data-theme="dark"] .text-dark, html[data-theme="dark"] .link-dark, html[data-theme="dark"] .post-title a { color: #f1f3f8 !important; }
html[data-theme="dark"] .text-muted, html[data-theme="dark"] .text-body { color: #9aa1af !important; }
html[data-theme="dark"] .bg-white, html[data-theme="dark"] .bg-soft-white { background-color: #0d0d11 !important; }
html[data-theme="dark"] .bg-light { background-color: #0d0d11 !important; }
html[data-theme="dark"] .bg-gray { background-color: #17171c !important; }
html[data-theme="dark"] .border, html[data-theme="dark"] .border-top, html[data-theme="dark"] .border-bottom, html[data-theme="dark"] .wrapper-border { border-color: #2a2d38 !important; }
html[data-theme="dark"] .shadow-lg, html[data-theme="dark"] .shadow { box-shadow: 0 .4rem 1.75rem rgba(0, 0, 0, .45) !important; }

/* Üst menü */
html[data-theme="dark"] header.wrapper, html[data-theme="dark"] .navbar.fixed, html[data-theme="dark"] .navbar-clone { background: #0d0d11 !important; }
html[data-theme="dark"] .navbar { --bs-navbar-color: #d7dbe5; --bs-navbar-hover-color: #7aa6ff; --bs-navbar-active-color: #7aa6ff; --bs-navbar-brand-color: #fff; }
html[data-theme="dark"] .navbar .nav-link { color: #d7dbe5; }
html[data-theme="dark"] .navbar .nav-link:hover, html[data-theme="dark"] .navbar .nav-item.active > .nav-link { color: #7aa6ff; }
html[data-theme="dark"] .navbar-brand img { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .navbar-light .navbar-toggler-icon, html[data-theme="dark"] .hamburger span, html[data-theme="dark"] .hamburger span::before, html[data-theme="dark"] .hamburger span::after { background-color: #f1f3f8; }
html[data-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #17171c; --bs-dropdown-color: #d7dbe5; --bs-dropdown-link-color: #d7dbe5; --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-hover-bg: #20222b; --bs-dropdown-border-color: #2a2d38; background: #17171c; }
html[data-theme="dark"] .dropdown-item { color: #d7dbe5; }
html[data-theme="dark"] .dropdown-item:hover, html[data-theme="dark"] .dropdown-item.active { color: #fff; background: #20222b; }
html[data-theme="dark"] .navbar .btn-primary { color: #fff; }

/* Kartlar, butonlar, formlar */
html[data-theme="dark"] .card { --bs-card-bg: #17171c; --bs-card-title-color: #f1f3f8; --bs-card-border-color: #2a2d38; --bs-card-color: #aab0bd; background-color: #17171c; color: #aab0bd; }
html[data-theme="dark"] .card[class*="bg-soft-"], html[data-theme="dark"] .card.bg-soft-primary { border-color: #2a2d38; }
html[data-theme="dark"] .card-footer { background: transparent; border-color: #2a2d38; }
html[data-theme="dark"] .btn-outline-primary, html[data-theme="dark"] .btn-outline-secondary { --bs-btn-color: #7aa6ff; --bs-btn-border-color: #6f9bff; --bs-btn-hover-bg: #6f9bff; --bs-btn-hover-border-color: #6f9bff; --bs-btn-hover-color: #0d0d11; color: #7aa6ff; border-color: #6f9bff; }
html[data-theme="dark"] .btn-outline-primary:hover, html[data-theme="dark"] .btn-outline-secondary:hover { color: #0d0d11; background: #6f9bff; }
html[data-theme="dark"] .btn-primary { --bs-btn-bg: #5b8def; --bs-btn-border-color: #5b8def; --bs-btn-hover-bg: #7aa6ff; --bs-btn-hover-border-color: #7aa6ff; background-color: #5b8def; border-color: #5b8def; color: #fff; }
html[data-theme="dark"] .btn-outline-secondary { --bs-btn-color: #c5cad6; --bs-btn-border-color: #4a4f5e; color: #c5cad6; border-color: #4a4f5e; }
html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-select { color: #d7dbe5; background-color: #17171c; border-color: #2a2d38; }
html[data-theme="dark"] .badge.bg-soft-primary, html[data-theme="dark"] .badge[class*="bg-soft-"] { color: #9dbcff !important; }
html[data-theme="dark"] .text-primary, html[data-theme="dark"] .text-info { color: #7aa6ff !important; }
html[data-theme="dark"] .more.hover, html[data-theme="dark"] a.more { color: #7aa6ff; }

/* Slider / galeri / görseller */
html[data-theme="dark"] .swiper-container .swiper-button { background: rgba(23, 23, 28, .92); color: #f1f3f8; }
html[data-theme="dark"] .swiper-container .swiper-button:hover { background: #20222b; }
html[data-theme="dark"] .swiper-pagination-bullet { background: #f1f3f8; }
html[data-theme="dark"] .swiper-thumbs .swiper-slide, html[data-theme="dark"] figure.rounded { background: #17171c; }
/* Açık zeminli müşteri/ürün görsellerinin koyu zeminde okunur kalması için beyaz zemin */
html[data-theme="dark"] #ref-grid img, html[data-theme="dark"] .ref-kart img, html[data-theme="dark"] section figure.px-3 img, html[data-theme="dark"] .urun-kart figure img { background: #fff; border-radius: .5rem; }
html[data-theme="dark"] section figure.px-3 img, html[data-theme="dark"] .ref-kart img { padding: .5rem; }
html[data-theme="dark"] iframe { filter: invert(.92) hue-rotate(180deg); }

/* ---- /ai sayfası: gri bölümler koyu griye döner (zebra düzeni korunur) ---- */
html[data-theme="dark"] .yd-statement { background: #15151b; }
html[data-theme="dark"] .yd-words { color: #f1f3f8; }
/* .yd-js sınıfı <html> elementinin kendisinde: bu yüzden bitişik (sonek) seçici kullanılır */
html[data-theme="dark"].yd-js .yd-w { color: #3a3d49; }
html[data-theme="dark"].yd-js .yd-w.is-on { color: #f1f3f8; }
html[data-theme="dark"] .navbar-light .hamburger span, html[data-theme="dark"] .navbar-light .hamburger span::before, html[data-theme="dark"] .navbar-light .hamburger span::after, html[data-theme="dark"] .hamburger span { background: #f1f3f8 !important; }
html[data-theme="dark"] .table { --bs-table-color: #aab0bd; --bs-table-bg: transparent; --bs-table-border-color: #2a2d38; --bs-table-striped-bg: rgba(255, 255, 255, .03); color: #aab0bd; border-color: #2a2d38; }
html[data-theme="dark"] .table > :not(caption) > * > * { color: #aab0bd; border-color: #2a2d38; background-color: transparent; }
html[data-theme="dark"] .table th, html[data-theme="dark"] .table strong { color: #f1f3f8; }
html[data-theme="dark"] .table, html[data-theme="dark"] .table th, html[data-theme="dark"] .table td, html[data-theme="dark"] .table-bordered, html[data-theme="dark"] .table-bordered > :not(caption) > * > * { border-color: #2a2d38 !important; }
html[data-theme="dark"] .yd-ai .yd-light { --yd-fg: #f5f5f7; --yd-mute: #a1a1a6; --yd-line: rgba(255, 255, 255, .12); background: #15151b; color: #f5f5f7; }
html[data-theme="dark"] .yd-ai .yd-chap.yd-light { background: radial-gradient(70rem 32rem at 50% 105%, rgba(var(--c), .26), transparent 70%), #15151b; }
html[data-theme="dark"] .yd-ai .yd-light .yd-chap__title, html[data-theme="dark"] .yd-ai .yd-light .yd-h2 { color: #f5f5f7; }
html[data-theme="dark"] .yd-ai .yd-light .yd-device { box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
html[data-theme="dark"] .yd-ai .yd-light .yd-cap { background: #1d1d24; border-color: rgba(255, 255, 255, .08); box-shadow: none; }
html[data-theme="dark"] .yd-ai .yd-light .yd-cap--hl { background: radial-gradient(30rem 16rem at 100% 0%, rgba(165, 107, 255, .28), transparent 70%), #1d1d24; }
html[data-theme="dark"] .yd-ai .yd-light .yd-pipe__step { background: #1d1d24; border-color: rgba(255, 255, 255, .08); box-shadow: none; }
html[data-theme="dark"] .yd-ai .yd-light .yd-pipe__no { color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .yd-ai .yd-light .yd-faq__item summary:hover { color: #fff; }
/* ---------- 10) Animasyonlar ---------- */
@keyframes yd-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes yd-travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes yd-blink { 50% { opacity: 0; } }
@keyframes yd-draw { to { stroke-dashoffset: 0; } }
@keyframes yd-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes yd-halo { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.35); opacity: .3; } }
@keyframes yd-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.35rem); } }
@keyframes yd-read { 0% { filter: brightness(1); } 40% { filter: brightness(1.8); box-shadow: 0 0 1.2rem 2px rgba(56, 214, 255, .8); } 100% { filter: brightness(1.15); box-shadow: 0 0 0 2px rgba(56, 214, 255, .75); } }
@keyframes yd-scan { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 3px); opacity: 0; } }

/* ---------- 11) Hareketi azaltmayı tercih edenler ---------- */
@media (prefers-reduced-motion: reduce) {
  .yd-node__halo, .yd-caret { animation: none !important; }
  .yd-js [data-yd-reveal] { transition: none; opacity: 1; translate: 0 0; scale: 1; }
  .yd-hero__inner { transform: none !important; opacity: 1 !important; }
  .yd-device,   .yd-scene { transition: none; }
  .yd-code li, .yd-bf li, .yd-node { opacity: 1 !important; animation: none !important; }
  .yd-edge { stroke-dashoffset: 0 !important; animation: none !important; }
  .yd-shelf i, .yd-beam, .yd-flow__dot { animation: none !important; }
}

/* ---------- 12) Mobil / tablet ---------- */
@media (max-width: 991.98px) {
  .yd-device__demo { display: none; }
  .yd-chap { min-height: auto; padding: 5rem 1rem 4rem; }
  .yd-device { height: 24rem; margin-top: 2.25rem; }
  .yd-scene { padding: .9rem; }
  .yd-shelf { height: 7rem; margin-bottom: .6rem; }
  .yd-rfid__count b { font-size: 2.4rem; }
  .yd-form .yd-field { margin-bottom: .35rem; }
  .yd-code code { font-size: .66rem; }
  .yd-bf span { font-size: .78rem; }
}
@media (max-width: 991.98px) {
  .yd-caps__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .yd-occ { grid-template-columns: 1fr; gap: .5rem; align-items: start; }
  .yd-occ__toast { top: auto; bottom: -.4rem; }
  .yd-occ__bar { padding: .5rem .7rem; }
  .yd-occ__panel { padding: .5rem .6rem; }
  .yd-occ__item { padding: .2rem .4rem; font-size: .72rem; }
  .yd-occ li { max-height: 1.7rem; }
  .yd-occ__hint { display: none; }
  .yd-tabs { display: none; }
  .yd-sc-katalog .yd-form__head { display: none; }
  .yd-sc-katalog .yd-input { min-height: 1.75rem; padding: .1rem .6rem; font-size: .8rem; }
  .yd-sc-katalog .yd-field { margin-bottom: .25rem; }
  .yd-sc-katalog .yd-field label { flex-basis: 3.4rem; }
  .yd-sc-katalog .yd-approve { padding: .4rem 1rem; font-size: .78rem; }
  .yd-photo__grid { grid-template-columns: 1fr; gap: .5rem; align-content: center; }
  .yd-slot small { display: none; }
  .yd-slots { grid-template-columns: repeat(4, 3.2rem); justify-content: start; }
  .yd-photo__opts { display: none; }
  .yd-read { margin-top: .4rem; padding: .4rem; }
  .yd-caps__grid { grid-template-columns: 1fr; }
  .yd-cap, .yd-cap--wide { grid-column: auto; min-height: 11rem; }
}
@media (max-width: 767.98px) {
  .yd-pipe { grid-template-columns: 1fr; }
  .yd-pipe::before { display: none; }
}
@media (max-width: 575.98px) {
  .yd-input { min-height: 2.1rem; padding: .2rem .6rem; font-size: .85rem; }
  .yd-field { margin-bottom: .3rem; }
  .yd-form__head { margin-bottom: .5rem; }
  .yd-chat__head, .yd-chat__note, .yd-chat__opts, .yd-chat__input, .yd-chat__label { display: none; }
  .yd-chat__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.2rem; padding: .6rem .2rem 0; }
  .yd-chip { flex: 0 0 auto; white-space: nowrap; }
  .yd-hero__device { height: 25rem; }
  .yd-flow { flex-basis: 1.5rem; }
}
