:root {
  --ivory: #f7f4ef;
  --paper: #f4efe8;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #526072;
  --red: #b01c32;
  --red-dark: #8e0b1f;
  --gold: #8d6430;
  --sand: #e7dccb;
  --sand-soft: #f3ecdf;
  --line: #e6dcd0;
  --olive: #3f6212;
  --shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
  --shadow-soft: 0 1px 2px rgba(30, 41, 59, 0.04);
  --radius: 16px;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --h3: 1.35rem;
  --h2: clamp(1.7rem, 2.4vw, 2.15rem);
  --h1: clamp(2.15rem, 4.2vw, 3.35rem);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  padding-bottom: 72px;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }

svg { max-width: 100%; }

pre, code {
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

table { max-width: 100%; }

a { color: var(--red-dark); }

h1, h2, h3, h4, .serbest {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: var(--h1); margin: 0 0 var(--s1); }

h2 { font-size: var(--h2); margin: 0; }

h3 { font-size: var(--h3); margin: 0; }

h4 { font-size: 1.15rem; margin: var(--s2) 0 0; }

p { margin: 0; }

.cubuk { height: 3px; background: linear-gradient(90deg, var(--red), #c45a4a 55%, var(--gold)); }

.ust {
  position: sticky;
  top: 0;
  z-index: 70;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.ust::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(10px);
}

.ust-ic, .sayfa, .alt-ic {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ust-ic {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s1);
  min-height: 64px;
  padding: var(--s1) 0;
  min-width: 0;
}

.ks-js .ust-ic { flex-wrap: nowrap; }

.marka {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.marka img {
  width: 48px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  flex: none;
}

.cagri img {
  width: 96px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  flex-shrink: 0;
}

.marka span { min-width: 0; }

.marka strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.marka em {
  display: none;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.menu-ac {
  position: relative;
  z-index: 3;
  display: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex: none;
}

.menu-ac > span:first-child,
.menu-ac > span:first-child::before,
.menu-ac > span:first-child::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-ac > span:first-child::before,
.menu-ac > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-ac > span:first-child::before { top: -5px; }
.menu-ac > span:first-child::after { top: 5px; }

body.menu-acik .menu-ac > span:first-child { background: transparent; }

body.menu-acik .menu-ac > span:first-child::before,
body.menu-acik .menu-ac > span:first-child::after { top: 0; }

body.menu-acik .menu-ac > span:first-child::before { transform: rotate(45deg); }
body.menu-acik .menu-ac > span:first-child::after { transform: rotate(-45deg); }

.menu-perde {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(30, 41, 59, 0.28);
  z-index: 45;
}

body.menu-acik .menu-perde { display: block; }

.menu-kabuk { display: contents; }

.menu {
  position: static;
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  height: auto;
  margin: 0;
  padding: 0 0 var(--s1);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.menu-kapat { display: none; }

.ks-js .menu-ac { display: inline-flex; }

.ks-js .menu-kabuk {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ks-js .menu {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(320px, 100%);
  max-width: 100%;
  height: auto;
  flex: none;
  padding: 88px var(--s2) var(--s3);
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  background: white;
  box-shadow: -12px 0 40px rgba(30, 41, 59, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: auto;
  touch-action: pan-y;
  transition: transform 0.22s ease, visibility 0s linear 0.22s;
  overflow: auto;
}

.ks-js .menu.acik {
  transform: none;
  visibility: visible;
  transition: transform 0.22s ease, visibility 0s;
}

.ks-js .menu-kapat {
  display: inline-flex;
  align-self: flex-end;
  min-height: 44px;
  margin-bottom: 4px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

body.menu-acik {
  overflow: hidden;
  touch-action: none;
}

body.menu-acik .ust {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body.menu-acik .ust-ic { background: rgba(255, 252, 248, 0.96); }

html:has(body.menu-acik) { overflow: hidden; }

.kim {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
  padding: var(--s1) 2px var(--s2);
}

.dugme, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s2);
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.menu .dugme { width: 100%; justify-content: flex-start; }

.dugme-dolu, button[type="submit"] {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.dugme-cizgi {
  background: white;
  color: var(--red-dark);
  border-color: var(--line);
}

.dugme-dolu:hover, button[type="submit"]:hover { background: var(--red-dark); color: #fff; }

.dugme-cizgi:hover { background: var(--sand-soft); }

.dugme-buyuk { min-height: 48px; padding: 0 20px; }

button:disabled, .dugme:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sayfa { padding: var(--s3) 0 var(--s6); min-width: 0; max-width: min(1120px, calc(100% - 32px)); }

.kahraman {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: var(--s4);
  min-height: 280px;
  max-width: 100%;
  min-width: 0;
}

.kahraman-zemin {
  position: absolute;
  inset: 0;
}

.kahraman-zemin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.kahraman-zemin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 244, 239, 0.94) 0%, rgba(247, 244, 239, 0.9) 42%, rgba(247, 244, 239, 0.96) 100%);
}

.kahraman-ic {
  position: relative;
  z-index: 1;
  padding: var(--s3) var(--s2) var(--s2);
}

.kicker {
  margin: 0 0 var(--s1);
  max-width: 100%;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lead {
  font-size: var(--text-lg);
  max-width: 38rem;
  color: var(--muted);
}

.cta { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }

.kahraman-cta { margin-top: var(--s3); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.kahraman-cta .dugme-buyuk { min-height: 52px; padding: 0 28px; font-size: 1.05rem; font-weight: 600; border-radius: 14px; box-shadow: 0 8px 20px rgba(160, 20, 40, 0.22); }

.kahraman-yongalar { display: flex; flex-wrap: wrap; gap: 8px; }

.yonga-hero {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.yonga-hero:hover { border-color: var(--red); background: #fff5f6; }

.cerceve, .kart, .giris-kutu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow);
}

.cerceve { overflow: hidden; margin: 0; }

.cerceve img { width: 100%; object-fit: cover; display: block; }

.cerceve figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.bolum { margin: var(--s5) 0; }

.bolum-bas { margin-bottom: var(--s2); }

.adimlar, .plan-kartlar, .guven-kartlar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}

.kart {
  padding: var(--s3);
  min-width: 0;
  max-width: 100%;
}

.adimlar > *, .guven-kartlar > *, .plan-kartlar > *, .iki > * {
  min-width: 0;
  max-width: 100%;
}

.kart + .kart { margin-top: var(--s2); }

.adimlar .kart + .kart,
.plan-kartlar .kart + .kart,
.guven-kartlar .kart + .kart { margin-top: 0; }

.kart-ust, .satir {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  align-items: flex-start;
  flex-direction: column;
}

.ikon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-soft);
  color: var(--red-dark);
  margin-bottom: var(--s2);
}

.ikon svg { width: 22px; height: 22px; }

.numara {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.soluk { color: var(--muted); }

.kucuk { font-size: var(--text-sm); }

.bos {
  margin-top: var(--s2);
  padding: var(--s3) var(--s2);
  text-align: center;
  background: var(--sand-soft);
  border-radius: 12px;
  color: var(--muted);
}

.plan-kart h2 { font-size: 1.85rem; margin-bottom: var(--s1); }

.plan-kart strong {
  display: block;
  margin: var(--s2) 0 var(--s1);
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-kart:nth-child(2) { box-shadow: var(--shadow-soft), 0 12px 32px rgba(176, 28, 50, 0.08); }

.uyari-satir, .bildirim {
  border-left: 3px solid var(--gold);
  padding: var(--s1) 0 var(--s1) 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.bildirim {
  margin: 0 0 var(--s2);
  background: white;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 12px 14px;
}

.bildirim.hata { border-left-color: var(--red); color: var(--red-dark); }

.bildirim.tamam { border-left-color: var(--olive); color: var(--olive); }

.iki { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: start; }

.giris-kutu { padding: var(--s3); }

.giris-kutu h1 { margin-bottom: var(--s1); }

label { display: block; margin: var(--s2) 0 6px; font-size: var(--text-sm); font-weight: 600; }

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9cfc3;
  background: white;
  color: var(--ink);
  font: inherit;
  border-radius: 12px;
}

textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.alan-cift { display: grid; grid-template-columns: 1fr; gap: var(--s2); }

.dosya-kutu {
  margin-top: var(--s1);
  padding: var(--s3);
  border: 1px dashed #c9b8a4;
  border-radius: 12px;
  background: var(--sand-soft);
}

input[type="file"] { font: inherit; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; }

.form-alt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: var(--s2); }

.rozet {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand-soft);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

.kilit { list-style: none; margin: var(--s2) 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.kilit li, .dosyalar li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.kilit li span, .dosyalar a, .dosyalar small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.kilit li:last-child, .dosyalar li:last-child { border-bottom: 0; }

.kilit li span:last-child { color: var(--gold); }

.dosyalar { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.dosyalar a { color: inherit; text-decoration: none; font-weight: 600; }

.dosyalar a:hover { color: var(--red-dark); }

.yorum { font-weight: 400; line-height: 1.65; }

.yorum h2, .yorum h3, .yorum h4 { margin-top: var(--s2); }

.yorum p { margin-top: var(--s1); }

.yorum strong, .madde-metin strong { font-weight: 600; }

.yorum-bulanik {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  margin-top: var(--s1);
}

.dosyalar small { display: block; color: var(--muted); font-weight: 400; }

ul, ol { margin: var(--s1) 0 0; padding-left: 1.2rem; }

li + li { margin-top: 4px; }

blockquote {
  margin: var(--s2) 0 0;
  padding: var(--s1) 0 var(--s1) 12px;
  border-left: 2px solid var(--sand);
}

blockquote footer { margin-top: var(--s1); color: var(--muted); font-size: var(--text-sm); }

.plan-form { margin-bottom: var(--s1); }

.plan-dugmeler { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s1) 0 var(--s2); }

.plan-dugmeler button,
.plan-dugmeler button[type="submit"] {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.plan-dugmeler button.secili,
.plan-dugmeler button.secili[type="submit"] {
  background: var(--red-dark);
  color: white;
  border-color: var(--red-dark);
}

.yigin { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }

.alt {
  border-top: 1px solid var(--line);
  background: white;
  margin-bottom: 8px;
}

.alt-ic { padding: var(--s3) 0 var(--s4); color: var(--muted); font-size: var(--text-sm); }

.sekme {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 64px;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.sekme-oge {
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.sekme-oge svg { width: 22px; height: 22px; }

.sekme-oge.sekme-aktif { color: var(--red-dark); background: var(--sand-soft); }

.madde-metin, .yorum, .ks-icerik {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.madde-metin { font-size: var(--text-md); line-height: 1.7; }

.madde-metin p + p { margin-top: 10px; }

.madde-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--s3);
  flex-wrap: wrap;
}

.madde-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.madde-nav a:last-child { margin-left: auto; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .sekme-oge:focus-visible {
  outline: 2px solid var(--red-dark);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .alan-cift { grid-template-columns: 1fr 1fr; }
  .adimlar, .guven-kartlar { grid-template-columns: repeat(3, 1fr); }
  .plan-kartlar { grid-template-columns: repeat(3, 1fr); }
  .kart-ust, .satir { flex-direction: row; align-items: flex-start; }
  .iki { grid-template-columns: 1.05fr 0.95fr; }
  .kahraman .cerceve img, .iki .cerceve img { min-height: 280px; height: 100%; }
}

@media (min-width: 880px) {
  body { padding-bottom: 0; }
  html { font-size: 17px; }
  .ust-ic { flex-wrap: nowrap; }
  .marka img { width: 64px; }
  .marka em { display: block; }
  .menu-ac, .menu-perde, .sekme, .ks-js .menu-ac { display: none; }
  .menu-kabuk, .ks-js .menu-kabuk {
    display: contents;
    position: static;
    overflow: visible;
    pointer-events: auto;
  }
  .menu, .ks-js .menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    flex: 1 1 auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
  }
  .menu-kapat, .ks-js .menu-kapat { display: none; }
  .menu .dugme { width: auto; justify-content: center; }
  .kim { padding: 0 4px 0 0; font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
  .alt { margin-bottom: 0; }
  .kahraman-ic { padding: var(--s5) var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .ks-js .menu { transition: none; }
}

#ks-chat.ks-acik ~ .alt .sekme { display: none; }

body.menu-acik .sekme { display: none; }

body.menu-acik #ks-chat { visibility: hidden; pointer-events: none; }

.sohbet-kutu.kart {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(68vh, 560px);
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.sohbet-hero { height: min(62vh, 520px); margin-top: 16px; }

.sohbet-sayfa { height: min(78vh, 720px); }

.sohbet-akis {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 8px;
}

.balon { display: flex; gap: 8px; max-width: min(92%, 34rem); align-items: flex-start; }

.balon-bot { align-self: flex-start; }

.balon-kullanici { align-self: flex-end; }

.balon-bayrak {
  width: 36px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  flex: none;
  margin-top: 2px;
  background: white;
}

.balon-icerik { min-width: 0; }

.balon-ad { margin: 0 0 4px; color: var(--muted); font-size: 0.75rem; }

.balon-metin {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px 14px 14px 14px;
  overflow-wrap: anywhere;
}

.balon-kullanici .balon-metin {
  background: var(--red-dark);
  color: white;
  border-color: var(--red-dark);
  border-radius: 14px 14px 4px 14px;
}

.balon-metin p { margin: 0; }

.balon-metin p + p,
.balon-metin .yorum p,
.balon-metin ul,
.balon-metin ol { margin-top: 8px; }

.balon-metin h2,
.balon-metin h3,
.balon-metin h4 { font-size: 1rem; margin: 12px 0 0; }

.balon-metin > :first-child,
.balon-metin .yorum > :first-child { margin-top: 0; }

.yonga-satir { display: flex; flex-wrap: wrap; gap: 8px; }

.yonga, button.yonga {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  text-align: left;
}

.yonga:hover, button.yonga:hover { background: rgba(142, 11, 31, 0.06); }

.sohbet-alt { border-top: 1px solid var(--line); padding: 10px 12px 12px; background: var(--card); }

.sohbet-giris { display: flex; gap: 8px; align-items: flex-end; }

.sohbet-kutu textarea {
  width: auto;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
}

.gonder, button.gonder {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  flex: none;
}

.sohbet-dip { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }

.kota-satir { margin: 0; color: var(--muted); font-size: 0.78rem; }

.gizli-etiket {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yaziyor-yazi { color: var(--muted); }

.noktalar { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }

.noktalar i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: zipla 1.1s infinite ease-in-out;
}

.noktalar i:nth-child(2) { animation-delay: 0.15s; }

.noktalar i:nth-child(3) { animation-delay: 0.3s; }

.belir { animation: belir 0.35s ease; }

@keyframes zipla {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes belir {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .sohbet-kutu.kart, .sohbet-hero, .sohbet-sayfa {
    height: min(70vh, 640px);
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .belir, .noktalar i { animation: none; }
}

.kaynak-maddeler { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }

.kaynak-bas {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kaynak-maddeler ul { margin: 0; padding-left: 1.1rem; }

.madde-metin p + p { margin-top: 10px; }

.madde-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.madde-nav a:last-child { margin-left: auto; }

.sohbet-yuzer { position: fixed; right: 18px; bottom: 18px; z-index: 40; }

.sohbet-ac, button.sohbet-ac {
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red-dark);
  color: white;
  box-shadow: 0 12px 28px rgba(142, 11, 31, 0.35);
}

.sohbet-ac:hover, button.sohbet-ac:hover { background: #6f0918; }

.sohbet-pencere {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100% - 28px));
  max-width: 100%;
  height: min(560px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sohbet-pencere[hidden] { display: none; }

.sohbet-pencere-ust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--red-dark);
  color: white;
}

.sohbet-pencere-ust strong { font-size: 0.98rem; }

.sohbet-pencere-ust a { color: white; margin-left: auto; font-size: 0.85rem; }

.sohbet-kapat, button.sohbet-kapat {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
}

.sohbet-pencere-uyari {
  margin: 0;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
}

.sohbet-pencere .sohbet-kutu.kart {
  height: auto;
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 860px) {
  .sohbet-yuzer.acik { inset: 0; }
  .sohbet-yuzer.acik .sohbet-ac { display: none; }
  .sohbet-yuzer.acik .sohbet-pencere {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}

#ks-chat .ks-statik,
#ks-soru .ks-statik,
#ks-hero .ks-statik {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ks-js #ks-chat .ks-statik,
.ks-js #ks-soru .ks-statik,
.ks-js #ks-hero .ks-statik { display: none; }

#ks-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: #1c1917;
}

#ks-chat .ks-etiket,
#ks-soru .ks-etiket,
#ks-hero .ks-etiket {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#ks-chat button,
#ks-soru button,
#ks-hero button {
  font: inherit;
  cursor: pointer;
  line-height: 1;
  min-height: 0;
  appearance: none;
}

#ks-chat .ks-ac {
  position: relative;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ks-chat .ks-ac:hover { background: var(--red-dark); }

#ks-chat .ks-nokta {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-sizing: border-box;
}

#ks-chat .ks-nokta.ks-yeni {
  min-width: 18px;
  width: auto;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ks-chat .ks-pencere {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: 540px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(28, 25, 23, 0.22);
  transform-origin: bottom right;
  animation: ksAc 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#ks-chat .ks-pencere[hidden] { display: none !important; }

#ks-chat .ks-chat,
#ks-soru,
#ks-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fff;
  color: #1c1917;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

#ks-chat .ks-chat { height: 100%; border: 0; border-radius: 0; box-shadow: none; }

#ks-soru,
#ks-hero {
  border: 1px solid #e7dfd6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
}

#ks-soru { height: min(78vh, 720px); min-height: 460px; }

#ks-hero { height: min(64vh, 540px); min-height: 420px; margin-top: 16px; }

#ks-chat .ks-ust,
#ks-soru .ks-ust,
#ks-hero .ks-ust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: var(--red);
  color: #fff;
  flex: none;
}

#ks-chat .ks-avatar,
#ks-soru .ks-avatar,
#ks-hero .ks-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8e0b1f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

#ks-chat .ks-avatar-buyuk,
#ks-soru .ks-avatar-buyuk,
#ks-hero .ks-avatar-buyuk {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

#ks-chat .ks-kim,
#ks-soru .ks-kim,
#ks-hero .ks-kim { min-width: 0; }

#ks-chat .ks-kim strong,
#ks-soru .ks-kim strong,
#ks-hero .ks-kim strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: var(--sans);
}

#ks-chat .ks-durum,
#ks-soru .ks-durum,
#ks-hero .ks-durum {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

#ks-chat .ks-durum i,
#ks-soru .ks-durum i,
#ks-hero .ks-durum i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  display: block;
  flex: none;
}

#ks-chat .ks-tam {
  margin-left: auto;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.92;
}

#ks-chat .ks-ikon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ks-chat .ks-ikon:hover { background: rgba(255, 255, 255, 0.16); }

#ks-chat .ks-akis,
#ks-soru .ks-akis,
#ks-hero .ks-akis {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 12px 8px;
  background: var(--paper);
  font-weight: 400;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ks-chat .ks-msg,
#ks-soru .ks-msg,
#ks-hero .ks-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 92%;
}

#ks-chat .ks-bot,
#ks-soru .ks-bot,
#ks-hero .ks-bot { align-self: flex-start; }

#ks-chat .ks-ben,
#ks-soru .ks-ben,
#ks-hero .ks-ben { align-self: flex-end; }

#ks-chat .ks-balon,
#ks-soru .ks-balon,
#ks-hero .ks-balon { min-width: 0; }

#ks-chat .ks-icerik,
#ks-soru .ks-icerik,
#ks-hero .ks-icerik,
#ks-chat .ks-ben .ks-balon,
#ks-soru .ks-ben .ks-balon,
#ks-hero .ks-ben .ks-balon {
  padding: 9px 12px;
  border-radius: 16px;
  overflow-wrap: anywhere;
}

#ks-chat .ks-bot .ks-icerik,
#ks-soru .ks-bot .ks-icerik,
#ks-hero .ks-bot .ks-icerik {
  background: transparent;
  padding: 0;
  color: #1c1917;
}

#ks-chat .ks-bot .ks-icerik > p,
#ks-soru .ks-bot .ks-icerik > p,
#ks-hero .ks-bot .ks-icerik > p,
#ks-chat .ks-cevap,
#ks-soru .ks-cevap,
#ks-hero .ks-cevap,
#ks-chat .ks-yaziyor .ks-icerik,
#ks-soru .ks-yaziyor .ks-icerik,
#ks-hero .ks-yaziyor .ks-icerik {
  background: #efe8e1;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 16px 16px 16px 4px;
  font-weight: 400;
  line-height: 1.65;
}

#ks-chat .ks-icerik strong,
#ks-soru .ks-icerik strong,
#ks-hero .ks-icerik strong,
#ks-chat .ks-cevap strong,
#ks-soru .ks-cevap strong,
#ks-hero .ks-cevap strong {
  font-weight: 500;
}

#ks-chat .ks-ben .ks-balon,
#ks-soru .ks-ben .ks-balon,
#ks-hero .ks-ben .ks-balon {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
}

#ks-chat .ks-icerik p,
#ks-soru .ks-icerik p,
#ks-hero .ks-icerik p,
#ks-chat .ks-ben p,
#ks-soru .ks-ben p,
#ks-hero .ks-ben p { margin: 0; }

#ks-chat .ks-icerik p + p,
#ks-soru .ks-icerik p + p,
#ks-hero .ks-icerik p + p,
#ks-chat .ks-icerik ul,
#ks-soru .ks-icerik ul,
#ks-hero .ks-icerik ul,
#ks-chat .ks-icerik ol,
#ks-soru .ks-icerik ol,
#ks-hero .ks-icerik ol { margin: 8px 0 0; }

#ks-chat .ks-icerik h2,
#ks-chat .ks-icerik h3,
#ks-chat .ks-icerik h4,
#ks-soru .ks-icerik h2,
#ks-soru .ks-icerik h3,
#ks-soru .ks-icerik h4,
#ks-hero .ks-icerik h2,
#ks-hero .ks-icerik h3,
#ks-hero .ks-icerik h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 10px 0 0;
}

#ks-chat .ks-icerik > :first-child,
#ks-soru .ks-icerik > :first-child,
#ks-hero .ks-icerik > :first-child,
#ks-chat .ks-cevap > :first-child,
#ks-soru .ks-cevap > :first-child,
#ks-hero .ks-cevap > :first-child { margin-top: 0; }

#ks-chat .ks-icerik a,
#ks-soru .ks-icerik a,
#ks-hero .ks-icerik a { color: #8e0b1f; }

#ks-chat .ks-zaman,
#ks-soru .ks-zaman,
#ks-hero .ks-zaman {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8a847c;
}

#ks-chat .ks-ben .ks-zaman,
#ks-soru .ks-ben .ks-zaman,
#ks-hero .ks-ben .ks-zaman { color: rgba(255, 255, 255, 0.78); text-align: right; }

#ks-chat .ks-yongalar,
#ks-soru .ks-yongalar,
#ks-hero .ks-yongalar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  margin-top: -4px;
}

#ks-chat .ks-yonga,
#ks-soru .ks-yonga,
#ks-hero .ks-yonga {
  min-height: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #e0d8ce;
  background: #fff;
  color: #1c1917;
  font-size: 12.5px;
  text-align: left;
}

#ks-chat .ks-yonga:hover,
#ks-soru .ks-yonga:hover,
#ks-hero .ks-yonga:hover { background: #fff5f6; border-color: var(--red); }

#ks-chat .ks-maddeler,
#ks-soru .ks-maddeler,
#ks-hero .ks-maddeler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

#ks-chat .ks-madde,
#ks-soru .ks-madde,
#ks-hero .ks-madde {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0d8ce;
  color: #8e0b1f;
  font-size: 11.5px;
  line-height: 1.3;
  text-decoration: none;
}

#ks-chat .ks-uyari,
#ks-soru .ks-uyari,
#ks-hero .ks-uyari {
  margin: 8px 0 0;
  color: #8a847c;
  font-size: 11px;
  line-height: 1.35;
}

#ks-chat .ks-form,
#ks-soru .ks-form,
#ks-hero .ks-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #efe8df;
  flex: none;
}

#ks-chat textarea,
#ks-soru textarea,
#ks-hero textarea {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
  max-height: 96px;
  height: 44px;
  margin: 0;
  padding: 11px 14px;
  resize: none;
  border: 1px solid #e0d8ce;
  border-radius: 22px;
  background: #f7f4ef;
  color: #1c1917;
  font: inherit;
  line-height: 1.35;
  box-shadow: none;
}

#ks-chat .ks-gonder,
#ks-soru .ks-gonder,
#ks-hero .ks-gonder {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

#ks-chat .ks-gonder:hover,
#ks-soru .ks-gonder:hover,
#ks-hero .ks-gonder:hover { background: var(--red-dark); }

#ks-chat .ks-dip,
#ks-soru .ks-dip,
#ks-hero .ks-dip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 12px 10px;
  background: #fff;
  flex: none;
}

#ks-chat .ks-kota,
#ks-soru .ks-kota,
#ks-hero .ks-kota,
#ks-chat .ks-dosya,
#ks-soru .ks-dosya,
#ks-hero .ks-dosya {
  margin: 0;
  color: #8a847c;
  font-size: 11px;
}

#ks-chat .ks-dip-uyari,
#ks-soru .ks-dip-uyari,
#ks-hero .ks-dip-uyari {
  margin: 0;
  flex: 1 0 100%;
  color: #8a847c;
  font-size: 11px;
  line-height: 1.35;
}

#ks-chat .ks-yaziyor-yazi,
#ks-soru .ks-yaziyor-yazi,
#ks-hero .ks-yaziyor-yazi { color: #6f685f; font-size: 13px; }

#ks-chat .ks-noktalar,
#ks-soru .ks-noktalar,
#ks-hero .ks-noktalar {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

#ks-chat .ks-noktalar i,
#ks-soru .ks-noktalar i,
#ks-hero .ks-noktalar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f685f;
  display: block;
  animation: ksZipla 1.1s infinite ease-in-out;
}

#ks-chat .ks-noktalar i:nth-child(2),
#ks-soru .ks-noktalar i:nth-child(2),
#ks-hero .ks-noktalar i:nth-child(2) { animation-delay: 0.15s; }

#ks-chat .ks-noktalar i:nth-child(3),
#ks-soru .ks-noktalar i:nth-child(3),
#ks-hero .ks-noktalar i:nth-child(3) { animation-delay: 0.3s; }

@keyframes ksAc {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes ksZipla {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 879px) {
  #ks-chat { bottom: 76px; right: 12px; }
}

@media (max-width: 640px) {
  #ks-chat.ks-acik {
    inset: 0;
    right: 0;
    bottom: 0;
  }
  #ks-chat.ks-acik .ks-ac { display: none; }
  #ks-chat.ks-acik .ks-pencere {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
    animation: none;
  }
  #ks-soru,
  #ks-hero { height: min(78vh, 720px); min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  #ks-chat .ks-pencere,
  #ks-chat .ks-noktalar i,
  #ks-soru .ks-noktalar i,
  #ks-hero .ks-noktalar i { animation: none; }
}
