/* ZurgiChat — sohbet uygulaması görünümü. Renkler değişkenlerde. Satır içi stil yok (CSP).
   Tema öznitelikleri <html>'de (js/tema.js): data-tema=kurbaga|zurgi|mercan · data-koyu (gece modu etkin). Sohbet zemini öğe başına data-zemin. */
:root {
  --zemin: #eef2f1; --yuzey: #ffffff; --yuzey2: #f6f8f8; --cizgi: #e2e8e7; --yazi: #142321; --soluk: #61716f;
  --vurgu: #0f766e; --vurgu-koyu: #0b5d57; --vurgu-acik: #d7efec; --vurgu-yazi: #ffffff;
  --balon-ben: #d8f3ee; --balon-o: #ffffff; --akis-zemin: #e9efee; --nokta: rgba(15, 60, 55, .13);
  --yan-zemin: var(--yuzey); --yan-ust: var(--yuzey2); --dugme-ana: var(--vurgu); --dugme-ana-yazi: var(--vurgu-yazi); --dugme-ana-ust: var(--vurgu-koyu);
  --tehlike: #c0392b; --tehlike-acik: #fdecea; --uyari: #b7791f; --uyari-acik: #fff6e0; --basari: #1e8449;
  --mavi-tik: #2b7de9; --golge: 0 1px 2px rgba(10, 30, 28, .08), 0 4px 16px rgba(10, 30, 28, .06);
  --r: 12px; --yan: 360px;
  --g-mavi: #e6effb; --g-mavi-y: #1d4f91; --g-yesil: #e3f4ea; --g-yesil-y: #1e6b3c; --g-turuncu: #fdf0e1; --g-turuncu-y: #8a4b0f;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
  color-scheme: light;
}
/* Gece modu (ZurgiChat) */
:root[data-koyu] {
  --zemin: #0c1413; --yuzey: #131d1c; --yuzey2: #182423; --cizgi: #24322f; --yazi: #e3ecea; --soluk: #8fa19e;
  --vurgu: #2bb3a3; --vurgu-koyu: #3cc9b8; --vurgu-acik: #17312e; --vurgu-yazi: #04201d;
  --balon-ben: #134a43; --balon-o: #1b2826; --akis-zemin: #0f1918; --nokta: rgba(160, 220, 210, .07);
  --tehlike: #ef6b5b; --tehlike-acik: #3a1d1a; --uyari: #e2b155; --uyari-acik: #33291a; --basari: #57c785; --mavi-tik: #5aa9ff;
  --golge: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  --g-mavi: #172638; --g-mavi-y: #9cc3f5; --g-yesil: #15291d; --g-yesil-y: #8fd6a9; --g-turuncu: #2e2216; --g-turuncu-y: #f0b979;
  color-scheme: dark;
}
/* Mercan (Nekna_KYS panel teması): sıcak gri zemin, koyu kenar menü, mercan vurgu, siyah ana düğme */
:root[data-tema="mercan"] {
  --zemin: #eeebe8; --yuzey: #f8f6f4; --yuzey2: #f1eeea; --cizgi: #e3ded8; --yazi: #16161d; --soluk: #6d6873;
  --vurgu: #e2475c; --vurgu-koyu: #c93a4e; --vurgu-acik: #fde6e8; --vurgu-yazi: #ffffff;
  --balon-ben: #fde3e6; --balon-o: #ffffff; --akis-zemin: #eeebe8; --nokta: rgba(22, 22, 29, .12);
  --yan-zemin: #13131c; --yan-ust: #13131c; --dugme-ana: #16161d; --dugme-ana-yazi: #ffffff; --dugme-ana-ust: #2c2c38;
  --g-mavi: #ecebf3; --g-mavi-y: #34324f; --g-yesil: #e7f1ea; --g-yesil-y: #2f5a3d; --g-turuncu: #fde6e8; --g-turuncu-y: #a32c3d;
}
:root[data-tema="mercan"][data-koyu] {
  --zemin: #0d0d12; --yuzey: #16161d; --yuzey2: #1d1d26; --cizgi: #2a2a35; --yazi: #f4f4f6; --soluk: #9a96a2;
  --vurgu: #f0606f; --vurgu-koyu: #ff7a87; --vurgu-acik: #3a1d24; --vurgu-yazi: #1a0a0d;
  --balon-ben: #4a1f28; --balon-o: #22222c; --akis-zemin: #101016; --nokta: rgba(255, 200, 205, .07);
  --yan-zemin: #0b0b10; --yan-ust: #0b0b10; --dugme-ana: #f0606f; --dugme-ana-yazi: #1a0a0d; --dugme-ana-ust: #ff7a87;
  --g-mavi: #1f1f2c; --g-mavi-y: #c7c4e6; --g-yesil: #18261d; --g-yesil-y: #9fd3ad; --g-turuncu: #3a1d24; --g-turuncu-y: #ffb3bb;
}
/* Mercan kenar menü: koyu yüzey üzerinde açık yazı (KYS 'menu' değişkenleri) */
:root[data-tema="mercan"] .yan {
  --yuzey: #13131c; --yuzey2: #24242f; --cizgi: #26262f; --yazi: #f4f4f6; --soluk: #9d9da9; --vurgu-acik: #3a3a46; --vurgu: #ff8b98;
  color: var(--yazi);
}
:root[data-tema="mercan"][data-koyu] .yan { --yuzey: #0b0b10; --yuzey2: #1d1d26; --cizgi: #1f1f28; }
:root[data-tema="mercan"] .yan .sekme.secili { background: #3a3a46; color: #ffffff; }
:root[data-tema="mercan"] .yan .rozet { background: #e2475c; color: #fff; }
:root[data-tema="mercan"] .yan .avatar .nokta { border-color: var(--yan-zemin); }
:root[data-tema="mercan"] .yan .satir.vurgu { border-color: #3a3a46; }
* { box-sizing: border-box; }
/* Kaydırma çubukları temaya uyar (ince, tema renginde) */
* { scrollbar-width: thin; scrollbar-color: var(--cizgi) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cizgi); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--soluk); background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
html, body { height: 100%; margin: 0; }
body { background: var(--zemin); color: var(--yazi); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--vurgu); }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.soluk { color: var(--soluk); }
.kucuk { font-size: 13px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }

/* ---------- açılış */
#uygulama { height: 100%; }

.acilis { height: 100%; display: grid; place-items: center; }
.logo-isaret { display: inline-block; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; user-select: none; }
.acilis .logo-isaret { width: 96px; height: 96px; animation: nabiz 1.2s ease-in-out infinite; }
@keyframes nabiz { 50% { transform: scale(.92); opacity: .7; } }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo-yazi { display: block; height: 1.5em; width: auto; user-select: none; transform: translateY(8.5%); }   /* harf gövdesi kurbağanın ortasına gelsin (g'nin kuyruğu kutuyu aşağı uzatıyor) */
.logo.buyuk { font-size: 28px; } .logo.buyuk .logo-isaret { width: 64px; height: 64px; }

/* ---------- düğmeler, alanlar */
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--dugme-ana); color: var(--dugme-ana-yazi); font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; }
.dugme:hover:not(:disabled) { background: var(--dugme-ana-ust); }
.dugme:disabled { opacity: .5; cursor: not-allowed; }
.dugme.ikincil { background: var(--yuzey2); color: var(--yazi); border: 1px solid var(--cizgi); }
.dugme.ikincil:hover:not(:disabled) { background: var(--cizgi); }
.dugme.tehlike { background: var(--tehlike); color: #fff; }
.dugme.tehlike:hover:not(:disabled) { background: var(--tehlike); opacity: .9; }
.dugme.kucuk { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.dugme.genis { width: 100%; padding: 12px; }
.ikon-dugme { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; color: var(--soluk); flex-shrink: 0; }
.ikon-dugme:hover:not(:disabled) { background: var(--yuzey2); color: var(--yazi); }
.ikon-dugme:disabled { opacity: .4; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.alan { display: flex; flex-direction: column; gap: 5px; }
.alan-ad { font-size: 13px; font-weight: 600; color: var(--soluk); }
.alan-ipucu { font-size: 12px; color: var(--soluk); }
.alan input, .kisi-ara input, .suzgec input, .satir-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); outline: none; transition: border-color .15s;
}
.alan input:focus, .kisi-ara input:focus, .suzgec input:focus { border-color: var(--vurgu); }
.kod-girdi { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .04em; }
.parola { position: relative; }
.parola input { padding-right: 44px; }
.parola .goster { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; padding: 6px 8px; opacity: .6; }
.guc { height: 4px; border-radius: 4px; background: var(--cizgi); overflow: hidden; }
.guc span { display: block; height: 100%; width: 0; background: var(--tehlike); transition: width .2s, background .2s; }
.guc[data-g="1"] span { width: 25%; } .guc[data-g="2"] span { width: 50%; background: var(--uyari); }
.guc[data-g="3"] span { width: 75%; background: var(--basari); } .guc[data-g="4"] span { width: 100%; background: var(--basari); }
.secim { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.secim input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--vurgu); flex-shrink: 0; }
.secim.pasif { opacity: .5; }
.etiket { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 20px; background: var(--yuzey2); border: 1px solid var(--cizgi); font-size: 11px; color: var(--soluk); font-weight: 500; vertical-align: 1px; }
.dugme-sira { display: flex; gap: 8px; flex-wrap: wrap; }
.dugme-sutun { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* ---------- karşılama (giriş / kayıt) */
.karsilama { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.karsilama-yan { background: linear-gradient(160deg, var(--vurgu) 0%, #0b4f4a 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.karsilama-yan .logo-isaret { width: 89px; height: 89px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.karsilama-yan .logo-yazi { height: 44px; filter: drop-shadow(0 3px 6px rgba(4, 16, 42, .35)); }
.slogan { font-size: 28px; font-weight: 700; line-height: 1.2; max-width: 480px; margin: 0; letter-spacing: -.02em; }
.ozellikler { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 480px; opacity: .95; }
.ozellikler li { padding-left: 26px; position: relative; }
.ozellikler li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.karsilama-form { background: var(--yuzey); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow-y: auto; }
.karsilama-form h1 { font-size: 26px; letter-spacing: -.02em; }
.kart-form { display: flex; flex-direction: column; gap: 14px; }
.form-baglar { display: flex; justify-content: space-between; font-size: 14px; }
.onaylar { border: 1px solid var(--cizgi); border-radius: var(--r); padding: 12px 14px 14px; display: grid; gap: 10px; margin: 0; }
.onaylar legend { font-size: 13px; font-weight: 700; padding: 0 6px; color: var(--soluk); }
.secim.zorunlu span::after { content: ' *'; color: var(--tehlike); }
.secim.zorunlu span span::after, .secim.zorunlu a::after { content: none; }

/* ---------- ana düzen */
.ana { display: grid; grid-template-columns: var(--yan) minmax(0, 1fr); height: 100%; max-width: 1600px; margin: 0 auto; background: var(--yuzey); box-shadow: var(--golge); }
@media (min-width: 1640px) { body { padding: 18px 0; } .ana { height: calc(100% - 36px); border-radius: 14px; overflow: hidden; } }
.yan { display: flex; flex-direction: column; border-right: 1px solid var(--cizgi); min-height: 0; background: var(--yan-zemin); }
.yan-ust { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; background: var(--yan-ust); border-bottom: 1px solid var(--cizgi); min-height: 60px; }
.ben-dugme { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 10px; min-width: 0; }
.ben-dugme:hover { background: var(--cizgi); }
.ben-ad { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yan-dugmeler { display: flex; gap: 2px; }
.baglanti-durum { background: var(--uyari-acik); color: var(--uyari); font-size: 13px; padding: 6px 14px; }
.sekmeler { display: flex; gap: 4px; padding: 10px 12px 0; }
.sekme { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font-weight: 600; color: var(--soluk); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sekme:hover { background: var(--yuzey2); }
.sekme.secili { background: var(--vurgu-acik); color: var(--vurgu); }
.suzgec { padding: 10px 12px; }
.suzgec input { background: var(--yuzey2); border-color: transparent; padding: 8px 12px; }
.liste { flex: 1; overflow-y: auto; padding: 0 6px 12px; }
.liste-bos { text-align: center; padding: 40px 20px; color: var(--soluk); display: grid; gap: 8px; justify-items: center; }
.liste-baslik { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--soluk); padding: 14px 10px 6px; }
.liste-baslik .sayi { font-weight: 500; }
.liste-baslik .dugme { margin-left: auto; text-transform: none; letter-spacing: 0; }
.rozet { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vurgu); color: var(--vurgu-yazi); font-size: 12px; font-weight: 700; }

/* satır (sohbet / kişi) */
.satir { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: default; }
button.satir, .satir.tiklanir { cursor: pointer; }
button.satir:hover, .satir.tiklanir:hover { background: var(--yuzey2); }
.satir.secili { background: var(--vurgu-acik); }
.satir.vurgu { background: var(--yuzey2); border: 1px dashed var(--cizgi); }
.satir-orta { flex: 1; min-width: 0; }
.satir-ust { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.satir-ad { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir-zaman { font-size: 12px; color: var(--soluk); flex-shrink: 0; }
.satir.okunmamis .satir-zaman { color: var(--vurgu); font-weight: 600; }
.satir-alt { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.onizleme { flex: 1; font-size: 13.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir.okunmamis .onizleme { color: var(--yazi); }
.satir-dugmeler { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.uyari-isaret { color: var(--uyari); }
.kisi-ara { display: flex; gap: 6px; padding: 6px 4px 4px; }
.ara-sonuc { padding: 0 0 4px; }
.ara-sonuc p { padding: 4px 10px; margin: 0; }

/* avatar */
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex-shrink: 0; color: #fff; user-select: none; }
.avatar.buyuk { width: 88px; height: 88px; font-size: 32px; }
.avatar .nokta { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--yuzey); }
.renk0 { background: #0f766e; } .renk1 { background: #7c3aed; } .renk2 { background: #db2777; } .renk3 { background: #ea580c; }
.renk4 { background: #2563eb; } .renk5 { background: #65a30d; } .renk6 { background: #0891b2; } .renk7 { background: #9333ea; }
.renk-yazi0 { color: #0f766e; } .renk-yazi1 { color: #7c3aed; } .renk-yazi2 { color: #db2777; } .renk-yazi3 { color: #ea580c; }
.renk-yazi4 { color: #2563eb; } .renk-yazi5 { color: #4d7c0f; } .renk-yazi6 { color: #0891b2; } .renk-yazi7 { color: #9333ea; }
:root[data-koyu] .renk-yazi0, .renk-yazi1, .renk-yazi2, .renk-yazi3, .renk-yazi4, .renk-yazi5, .renk-yazi6, .renk-yazi7 { filter: brightness(1.5); }

/* ---------- sohbet alanı */
.sohbet { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--akis-zemin); }
.logo-yazili { display: block; width: min(320px, 72vw); height: auto; user-select: none; margin-bottom: 6px; }
.bos-sohbet { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--soluk); }
.sohbet-ust { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--yuzey2); border-bottom: 1px solid var(--cizgi); min-height: 60px; }
.sohbet-ust .geri { display: none; }
.bas-bilgi { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; cursor: pointer; text-align: left; min-width: 0; padding: 2px; border-radius: 10px; }
.bas-bilgi .avatar { width: 40px; height: 40px; font-size: 15px; }
.bas-bilgi > div { min-width: 0; }
.bas-ad { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bas-alt { font-size: 12.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bas-dugmeler { display: flex; gap: 2px; }
.sohbet-uyari .uyari { margin: 8px 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--uyari-acik); color: var(--yazi); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.akis { flex: 1; overflow-y: auto; padding: 12px 6% 16px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain;
  --desen: var(--nokta); background-color: var(--zemin-renk, var(--akis-zemin)); background-attachment: local; }
.akis-bos { margin: auto; max-width: 380px; text-align: center; color: var(--soluk); background: var(--uyari-acik); padding: 14px 16px; border-radius: 12px; font-size: 13.5px; }
.akis-bos .kilit { font-size: 26px; }
.daha { text-align: center; padding: 6px; }
.gun-ayrac { text-align: center; margin: 12px 0 8px; }
.gun-ayrac span, .sistem span { display: inline-block; background: var(--yuzey); color: var(--soluk); font-size: 12px; padding: 4px 12px; border-radius: 8px; box-shadow: var(--golge); }
.sistem { text-align: center; margin: 6px 0; }
.balon-sira { display: flex; }
.balon-sira.benim { justify-content: flex-end; }
.balon { position: relative; max-width: min(560px, 78%); padding: 6px 9px 4px; border-radius: 10px; background: var(--balon-o); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); word-wrap: break-word; overflow-wrap: anywhere; outline: none; }
.balon.ilk { margin-top: 6px; border-top-left-radius: 3px; }
.balon.benim { background: var(--balon-ben); }
.balon.benim.ilk { border-top-left-radius: 10px; border-top-right-radius: 3px; }
.balon.vurgula { animation: vurgula 1.4s ease; }
@keyframes vurgula { 30% { box-shadow: 0 0 0 3px var(--vurgu); } }
.balon-gonderen { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.balon-metin { white-space: pre-wrap; padding-right: 64px; min-height: 20px; }
.balon-metin.silindi, .balon-metin.cozulemedi { font-style: italic; color: var(--soluk); }
.balon-alt { float: right; display: flex; align-items: center; gap: 4px; margin: -14px 0 0 8px; position: relative; top: 4px; font-size: 11px; color: var(--soluk); }
.balon.resimli .balon-alt { position: absolute; right: 8px; bottom: 6px; top: auto; margin: 0; background: rgba(0, 0, 0, .45); color: #fff; padding: 1px 6px; border-radius: 8px; }
.tik { font-size: 12px; letter-spacing: -3px; padding-right: 3px; color: var(--soluk); }
.tik.okundu { color: var(--mavi-tik); }
.tik.bekliyor { letter-spacing: 0; font-size: 10px; }
.tik.hata { color: var(--tehlike); font-weight: 800; letter-spacing: 0; }
.balon-menu { position: absolute; top: 2px; right: 2px; border: 0; background: inherit; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; color: var(--soluk); opacity: 0; transition: opacity .1s; }
.balon:hover .balon-menu, .balon:focus-within .balon-menu, .balon:focus .balon-menu { opacity: 1; }
@media (pointer: coarse) { .balon-menu { opacity: .55; } }
.alinti { display: flex; flex-direction: column; text-align: left; width: 100%; border: 0; border-left: 3px solid var(--vurgu); background: rgba(0, 0, 0, .05); border-radius: 6px; padding: 5px 8px; margin: 2px 0 4px; cursor: pointer; font-size: 13px; }
.alinti b { color: var(--vurgu); font-size: 12.5px; }
.alinti span { color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-resim { display: block; border: 0; padding: 0; margin: 0 -5px 2px; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.ek-resim img { display: block; max-width: 280px; width: 100%; height: auto; border-radius: 8px; }
.ek-dosya { display: flex; align-items: center; gap: 10px; border: 0; background: rgba(0, 0, 0, .05); border-radius: 8px; padding: 8px 10px; margin: 2px 0 4px; cursor: pointer; text-align: left; min-width: 220px; }
.ek-ikon { font-size: 24px; }
.ek-bilgi { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ek-bilgi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.ek-bilgi span { font-size: 12px; color: var(--soluk); }
.ek-indir { color: var(--soluk); }

/* yazma alanı */
.yanit-cubuk { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; background: var(--yuzey2); }
.yanit-icerik { flex: 1; min-width: 0; border-left: 3px solid var(--vurgu); background: var(--yuzey); border-radius: 6px; padding: 6px 10px; display: flex; flex-direction: column; font-size: 13px; }
.yanit-icerik b { color: var(--vurgu); }
.yanit-icerik span { color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yazma { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--yuzey2); border-top: 1px solid var(--cizgi); }
.yazma textarea { flex: 1; resize: none; border: 1px solid var(--cizgi); border-radius: 20px; padding: 9px 14px; background: var(--yuzey); color: var(--yazi); outline: none; max-height: 160px; line-height: 1.4; min-height: 40px; height: 40px; overflow-y: hidden; }
.yazma textarea::placeholder { color: var(--soluk); }
.yazma textarea:focus { border-color: var(--vurgu); }
.yazma.kapali textarea { background: var(--yuzey2); }
.gonder { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--vurgu); color: var(--vurgu-yazi); font-size: 17px; cursor: pointer; flex-shrink: 0; }
.gonder:hover:not(:disabled) { background: var(--vurgu-koyu); }
.gonder:disabled { opacity: .4; }
.dikte.dinliyor { background: var(--tehlike); color: #fff; animation: dinle 1.2s ease-in-out infinite; }
@keyframes dinle { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--tehlike) 25%, transparent); } }

/* menü */
.menu { position: fixed; z-index: 60; min-width: 180px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 10px; box-shadow: var(--golge); padding: 4px; display: flex; flex-direction: column; }
.menu-madde { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.menu-madde:hover { background: var(--yuzey2); }
.menu-madde.tehlike { color: var(--tehlike); }

/* ---------- pencere (modal) */
.pencere-arka { position: fixed; inset: 0; background: rgba(5, 15, 14, .5); display: grid; place-items: center; z-index: 50; padding: 16px; animation: belir .15s ease; }
@keyframes belir { from { opacity: 0; } }
.pencere { background: var(--yuzey); border-radius: 14px; box-shadow: var(--golge); width: min(480px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.pencere.genis { width: min(720px, 100%); }
.pencere.tam { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.pencere-baslik { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--cizgi); }
.pencere-baslik h2 { font-size: 17px; }
.pencere-sag { display: flex; align-items: center; gap: 2px; }
.pencere-ara { display: flex; gap: 2px; margin-right: 14px; }   /* ek düğmeler ⛶ ve ×'in SOLUNDA, arada ~14 px */
.pencere-govde { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pencere-alt { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--cizgi); }
.pencere-govde p { margin: 0; }
.resim-pencere .pencere-govde { padding: 0; background: #000; align-items: center; justify-content: center; }
.tam-resim { max-width: 100%; max-height: 75vh; object-fit: contain; display: block; }
.pencere.tam .tam-resim { max-height: calc(100vh - 60px); }
.kvkk-metin { font-size: 14px; }
.kvkk-metin h3 { font-size: 15px; margin: 14px 0 4px; }
.kvkk-metin ul { padding-left: 20px; margin: 6px 0; }
.kvkk-metin p { margin: 6px 0; }
.onay-metni { font-weight: 600; padding: 10px 12px; background: var(--vurgu-acik); border-radius: 8px; }
.kurtarma-anahtari { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 17px; letter-spacing: .06em; line-height: 1.8; padding: 14px 16px; border: 2px dashed var(--vurgu); border-radius: 10px; background: var(--vurgu-acik); word-spacing: 6px; user-select: all; text-align: center; }
.guvenlik-kodu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 18px; text-align: center; padding: 12px; background: var(--yuzey2); border-radius: 10px; }
.profil { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 4px 0 8px; }

/* ince çizgili ad … değer satırları (rapor / ayar düzeni) */
.satirlar { display: flex; flex-direction: column; }
.ad-deger { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--cizgi); font-size: 14px; }
.ad-deger:last-child { border-bottom: 0; }
.ad-deger > span:last-child { text-align: right; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.grup-baslik { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: 6px; margin-top: 6px; }
.grup-baslik.mavi { background: var(--g-mavi); color: var(--g-mavi-y); }
.grup-baslik.yesil { background: var(--g-yesil); color: var(--g-yesil-y); }
.grup-baslik.turuncu { background: var(--g-turuncu); color: var(--g-turuncu-y); }
.gecmis summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--soluk); padding: 6px 0; }
.ayar-sekmeler { display: flex; gap: 4px; border-bottom: 1px solid var(--cizgi); margin: -4px 0 4px; padding-bottom: 8px; }
.ayar-sekmeler .sekme { flex: 0 0 auto; }
.ayar-govde { display: flex; flex-direction: column; gap: 12px; }
.ayar-form { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ayar-form > .dugme { align-self: flex-start; }
.ayar-baslik { font-size: 15px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--cizgi); }
.ayar-govde > .ayar-baslik:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.satir-form { display: flex; gap: 8px; align-items: flex-end; }
.satir-form .alan { flex: 1; }
.kisi-secici, .uye-listesi { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; border: 1px solid var(--cizgi); border-radius: 10px; padding: 4px; }
.secim-satir { cursor: pointer; }
.secim-satir input { width: 18px; height: 18px; accent-color: var(--vurgu); }
.secim-satir:hover { background: var(--yuzey2); }

/* ---------- bildirim */
.toastlar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { background: #1f2d2b; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--golge); font-size: 14px; animation: belir .2s ease; transition: opacity .3s, transform .3s; pointer-events: auto; }
.toast.hata { background: var(--tehlike); } .toast.basari { background: var(--basari); } .toast.uyari { background: #8a5a12; }
.toast.gidiyor { opacity: 0; transform: translateY(8px); }

/* ---------- arama katmanı */
.arama-katman { position: fixed; inset: 0; z-index: 70; background: radial-gradient(circle at 50% 30%, #145a54 0%, #071d1b 75%); color: #fff; display: grid; place-items: center; animation: belir .2s ease; }
.arama-ic { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.arama-sifre { font-size: 13px; opacity: .75; margin-bottom: 18px; }
.arama-ic .avatar.buyuk { width: 120px; height: 120px; font-size: 44px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 22px rgba(255, 255, 255, .03); }
.arama-ad { font-size: 26px; font-weight: 700; margin-top: 10px; }
.arama-durum { font-size: 15px; opacity: .85; min-height: 22px; font-variant-numeric: tabular-nums; }
.arama-dugmeler { display: flex; gap: 36px; margin-top: 48px; }
.arama-dugme { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 26px; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; }
.arama-dugme.secili { background: #fff; color: #071d1b; }
.arama-dugme.kirmizi { background: #e5483b; transform: rotate(135deg); }
.arama-dugme.yesil { background: #22b45a; animation: zil 1s ease-in-out infinite; }
@keyframes zil { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } }

/* ---------- mobil */
@media (max-width: 640px) {
  :root { --yan: 100%; }
  .ana { grid-template-columns: 1fr; }
  .ana .sohbet { display: none; }
  .ana.sohbet-acik .yan { display: none; }
  .ana.sohbet-acik .sohbet { display: flex; height: 100%; }
  .sohbet-ust .geri { display: inline-grid; }
  .akis { padding: 10px 10px 14px; }
  .balon { max-width: 86%; }
  .karsilama-yan { padding: calc(24px + env(safe-area-inset-top)) 20px 22px; gap: 12px; }
  .slogan { font-size: 21px; }
  .ozellikler { font-size: 14px; gap: 8px; }
  .karsilama-form { padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); }
  .pencere-arka { padding: 0; place-items: end center; }
  .pencere { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .pencere.genis { width: 100%; }
  .guvenlik-kodu { grid-template-columns: repeat(3, 1fr); font-size: 16px; }
  .ad-deger { flex-wrap: wrap; }
}

/* ---------- emoji seçici (paketler: kategoriler + arama + son kullanılanlar) */
.yazma { position: relative; }
.emoji-secici { position: absolute; left: 8px; bottom: calc(100% + 6px); z-index: 40; width: min(372px, calc(100vw - 16px)); height: 380px; display: flex; flex-direction: column;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge); overflow: hidden; animation: belir .12s ease; }
.emoji-ara { padding: 10px 10px 6px; }
.emoji-ara input { width: 100%; padding: 8px 12px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey2); outline: none; }
.emoji-ara input:focus { border-color: var(--vurgu); }
.emoji-sekmeler { display: flex; gap: 2px; padding: 0 6px 4px; border-bottom: 1px solid var(--cizgi); overflow-x: auto; scrollbar-width: none; }
.emoji-sekme { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 19px; cursor: pointer; opacity: .6; border-bottom: 2px solid transparent; }
.emoji-sekme:hover { background: var(--yuzey2); opacity: 1; }
.emoji-sekme.secili { opacity: 1; border-bottom-color: var(--vurgu); border-radius: 8px 8px 0 0; }
.emoji-baslik { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--soluk); padding: 8px 12px 2px; }
.emoji-izgara { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); padding: 4px 8px 10px; align-content: start; }
.emoji { width: 100%; aspect-ratio: 1; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; transition: transform .08s; }
.emoji:hover, .emoji:focus-visible { background: var(--yuzey2); transform: scale(1.15); }
@media (max-width: 640px) { .emoji-secici { left: 0; right: 0; width: auto; height: 320px; border-radius: 14px 14px 0 0; bottom: 100%; } }
.emoji-izgara { overflow-x: hidden; }
.emoji { min-width: 0; overflow: hidden; }

/* ---------- Mercan karşılama ekranı */
:root[data-tema="mercan"] .karsilama-yan { background: linear-gradient(160deg, #13131c 0%, #2a1a22 100%); }

/* ---------- avatar resmi */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--yuzey2); }
.avatar.resimli { background: var(--yuzey2); }

/* ---------- hızlı yanıt */
.balon-sira { align-items: center; gap: 4px; }
.balon { transition: transform .15s ease; }
.hizli-yanit { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--yuzey); color: var(--soluk); cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: var(--golge); flex-shrink: 0; font-size: 15px; }
.balon-sira:hover .hizli-yanit, .hizli-yanit:focus-visible { opacity: 1; }
.hizli-yanit:hover { color: var(--vurgu); }
@media (pointer: coarse) { .hizli-yanit { display: none; } }
.yanit-simge { font-size: 20px; color: var(--vurgu); padding-left: 4px; }

/* ---------- ayarlar: profil resmi, hazır avatar, görünüm */
.profil-ust { display: flex; gap: 18px; align-items: center; }
.profil-ust-sag { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.profil-ust-sag p { margin: 0; }
.avatar-kutu { border: 1px solid var(--cizgi); border-radius: 12px; padding: 4px 12px; }
.avatar-kutu[open] { padding-bottom: 12px; }
.avatar-kutu summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.avatar-kutu > .dugme { margin-top: 10px; }
.renk-sira { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.renk-sec { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cizgi); cursor: pointer; }
.renk-sec.secili { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.avatar-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.avatar-sec { aspect-ratio: 1; border-radius: 50%; border: 0; font-size: 24px; cursor: pointer; transition: transform .1s; }
.avatar-sec:hover { transform: scale(1.08); }
.avatar-sec.secili { outline: 3px solid var(--vurgu); outline-offset: 2px; }
.ayar-secim { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--cizgi); }
.secenek-sira { display: flex; flex-wrap: wrap; gap: 8px; }
.secenek { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--yuzey); cursor: pointer; font-weight: 500; }
.secenek:hover { background: var(--yuzey2); }
.secenek.secili { border-color: var(--vurgu); background: var(--vurgu-acik); color: var(--yazi); box-shadow: inset 0 0 0 1px var(--vurgu); }
.ornek { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--cizgi); }
.ornek-zurgi { background: linear-gradient(135deg, #0f766e 50%, #eef2f1 50%); }
.ornek-mercan { background: linear-gradient(135deg, #13131c 50%, #e2475c 50%); }
@media (max-width: 640px) { .profil-ust { flex-direction: column; text-align: center; } }

/* ---------- emoji tepkileri */
.hizli { display: flex; gap: 2px; flex-shrink: 0; }
.balon-sira:hover .hizli .hizli-yanit, .hizli .hizli-yanit:focus-visible { opacity: 1; }
.tepkiler { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; clear: both; }
.tepki { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--cizgi); background: var(--yuzey); border-radius: 12px; padding: 1px 7px; font-size: 15px; cursor: pointer; line-height: 1.5; }
.tepki span { font-size: 12px; color: var(--soluk); font-weight: 600; }
.tepki.benim { border-color: var(--vurgu); background: var(--vurgu-acik); }
.tepki:hover { transform: scale(1.06); }
.tepki-secici { position: fixed; z-index: 60; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 26px; box-shadow: var(--golge); padding: 5px 6px; animation: belir .12s ease; }
.tepki-sira { display: flex; gap: 2px; }
.tepki-hizli { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 24px; cursor: pointer; transition: transform .1s; }
.tepki-hizli:hover { transform: scale(1.25); background: var(--yuzey2); }
.tepki-hizli.secili { background: var(--vurgu-acik); }
.tepki-hizli.arti { font-size: 20px; color: var(--soluk); }
.emoji-secici.sabit { position: fixed; bottom: auto; }

/* ---------- hareketli emoji, büyük emoji, GIF */
.hareketli-emoji { font-size: 64px; line-height: 1.1; text-align: center; padding: 4px 8px 14px; }
.hareketli-emoji span, .hareketli-onizleme span { display: inline-block; }
.balon.seffaf { background: transparent; box-shadow: none; }
.balon.seffaf .balon-alt { background: var(--yuzey); padding: 1px 6px; border-radius: 8px; box-shadow: var(--golge); }
.balon-metin.buyuk-emoji { font-size: 40px; line-height: 1.2; padding-right: 40px; }
.hareketli-onizleme { font-size: 26px; }
.ek-resim.gif { position: relative; }
.gif-etiket { position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; letter-spacing: .05em; }
.anim-kalp { animation: a-kalp 1.1s ease-in-out infinite; }
.anim-zipla { animation: a-zipla .9s cubic-bezier(.3, 0, .4, 1) infinite; }
.anim-salla { animation: a-salla 1.2s ease-in-out infinite; transform-origin: 70% 80%; }
.anim-don { animation: a-don 2.4s linear infinite; }
.anim-titre { animation: a-titre .5s linear infinite; }
.anim-parla { animation: a-parla 1.4s ease-in-out infinite; }
.anim-yuksel { animation: a-yuksel 2s ease-in-out infinite; }
.anim-buyu { animation: a-buyu 1.6s ease-in-out infinite; }
.anim-sallan { animation: a-sallan 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.anim-cak { animation: a-cak 1.2s cubic-bezier(.2, .8, .3, 1.4) infinite; }
@keyframes a-kalp { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1.08); } }
@keyframes a-zipla { 0%, 100% { transform: translateY(0) scale(1, 1); } 10% { transform: translateY(0) scale(1.1, .9); } 50% { transform: translateY(-28%) scale(.95, 1.05); } 90% { transform: translateY(0) scale(1.05, .95); } }
@keyframes a-salla { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-10deg); } }
@keyframes a-don { to { transform: rotate(360deg); } }
@keyframes a-titre { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3%, 1%) rotate(-4deg); } 75% { transform: translate(3%, -1%) rotate(4deg); } }
@keyframes a-parla { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 200, 60, 0)); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(255, 200, 60, .9)); } }
@keyframes a-yuksel { 0%, 100% { transform: translateY(6%); } 50% { transform: translateY(-14%); } }
@keyframes a-buyu { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.15); } }
@keyframes a-sallan { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes a-cak { 0%, 50%, 100% { transform: scale(1) rotate(0); } 20% { transform: scale(1.3) rotate(-12deg); } 35% { transform: scale(.95) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { [class*="anim-"] { animation-duration: 0s !important; animation-iteration-count: 1 !important; } }

/* ---------- sohbet zemini: desenler (öğe başına data-zemin; renk / yoğunluk / resim değişkenleri js/tema.js zeminUygula'dan) */
.akis[data-zemin="noktali"] { background-image: radial-gradient(var(--desen) 1.1px, transparent 1.4px); background-size: 16px 16px; }
.akis[data-zemin="kareli"] { background-image: linear-gradient(var(--desen) 1px, transparent 1px), linear-gradient(90deg, var(--desen) 1px, transparent 1px); background-size: 22px 22px; }
.akis[data-zemin="cizgili"] { background-image: repeating-linear-gradient(45deg, var(--desen) 0 1px, transparent 1px 12px); }
.akis[data-zemin="baloncuk"] { background-image: radial-gradient(circle at 25% 30%, var(--desen) 3px, transparent 3.6px), radial-gradient(circle at 72% 70%, var(--desen) 6px, transparent 6.6px), radial-gradient(circle at 80% 15%, var(--desen) 1.6px, transparent 2px); background-size: 48px 48px; }
.akis[data-zemin="duz"] { background-image: none; }
.akis[data-zemin="resim"] { background-image: linear-gradient(rgba(0, 0, 0, var(--karartma, .25)), rgba(0, 0, 0, var(--karartma, .25))), var(--zemin-resim, none); background-size: cover; background-position: center; background-attachment: scroll; }
.zemin-duzenleyici { display: flex; flex-direction: column; gap: 10px; }
.zemin-onizleme { flex: none; height: 150px; border-radius: 12px; border: 1px solid var(--cizgi); padding: 14px; gap: 8px; overflow: hidden; justify-content: center; }
.zemin-onizleme .balon { max-width: 70%; }
.desen-sira { display: flex; flex-wrap: wrap; gap: 8px; }
.desen { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); padding: 6px; cursor: pointer; font-size: 12.5px; min-width: 74px; }
.desen.secili { border-color: var(--vurgu); box-shadow: inset 0 0 0 1px var(--vurgu); background: var(--vurgu-acik); }
.desen-ornek { width: 58px; height: 38px; border-radius: 6px; padding: 0; flex: none; border: 1px solid var(--cizgi); overflow: hidden; }
.renk-sec.tema-rengi { display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--soluk); background: linear-gradient(135deg, var(--akis-zemin) 50%, var(--yuzey2) 50%); }
.renk-girdi { width: 34px; height: 30px; border: 1px solid var(--cizgi); border-radius: 8px; padding: 2px; background: var(--yuzey); cursor: pointer; }
.kaydirac { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.kaydirac span { min-width: 120px; color: var(--soluk); font-weight: 600; font-size: 13px; }
.kaydirac input { flex: 1; accent-color: var(--vurgu); }
.resim-satir { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.resim-satir .kaydirac { align-self: stretch; }

/* ---------- yazıya göre emoji önerisi */
.emoji-oneri { position: absolute; left: 56px; bottom: calc(100% + 4px); z-index: 30; display: flex; align-items: center; gap: 2px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 22px; box-shadow: var(--golge); padding: 3px 6px; animation: belir .1s ease; max-width: calc(100% - 64px); overflow-x: auto; scrollbar-width: none; }
.oneri-ipucu { font-size: 12px; color: var(--soluk); padding: 0 6px 0 4px; white-space: nowrap; }
.oneri { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 21px; cursor: pointer; flex-shrink: 0; transition: transform .08s; }
.oneri:hover, .oneri.ilk { background: var(--yuzey2); }
.oneri:hover { transform: scale(1.15); }
@media (max-width: 640px) { .emoji-oneri { left: 8px; max-width: calc(100% - 16px); } }

/* ---------- sürüklenebilir pencere: başlıktan tutulup taşınır (tam ekran ve dar ekranda kapalı) */
@media (min-width: 641px) {
  .pencere-baslik { cursor: move; user-select: none; touch-action: none; }
  .pencere-baslik button { cursor: pointer; }
  .pencere.tam .pencere-baslik { cursor: default; }
}
.pencere { will-change: transform; }
.pencere.suruklen { box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.pencere.suruklen * { user-select: none; }

/* ---------- boyutlandırılabilir pencere: kenar ve köşe tutamakları (görünmez, imleç değişir) */
.pencere { position: relative; }
.pencere-govde { flex: 1 1 auto; min-height: 0; }
.kenar { position: absolute; z-index: 3; touch-action: none; }
.kenar-n { top: 0; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.kenar-s { bottom: 0; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.kenar-e { right: 0; top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.kenar-w { left: 0; top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.kenar-ne { top: 0; right: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.kenar-sw { bottom: 0; left: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.kenar-nw { top: 0; left: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.kenar-se { bottom: 0; right: 0; width: 14px; height: 14px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 0 55%, var(--cizgi) 55% 62%, transparent 62% 72%, var(--cizgi) 72% 79%, transparent 79%); }
.pencere.tam .kenar { display: none; }
.pencere.tam { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
@media (max-width: 640px) { .kenar { display: none; } }

/* ---------- Kurbağa Mavisi: uygulama simgesindeki (zurgi.png) kurbağanın mavisi; kenar menü başlığı mavi degrade,
   gece modunda kurbağa gözbebeği laciverti */
:root[data-tema="kurbaga"] {
  --zemin: #e9f1fb; --yuzey: #ffffff; --yuzey2: #f3f7fc; --cizgi: #dbe6f3; --yazi: #0f2240; --soluk: #5a6b83;
  --vurgu: #1f7de6; --vurgu-koyu: #1767c4; --vurgu-acik: #e0edfc; --vurgu-yazi: #ffffff;
  --balon-ben: #d5e8fd; --balon-o: #ffffff; --akis-zemin: #e7effa; --nokta: rgba(20, 70, 140, .13);
  --mavi-tik: #1f7de6;
  --yan-ust: linear-gradient(100deg, #3a9af5 0%, #1f7de6 100%);
  --g-mavi: #e0edfc; --g-mavi-y: #164f94; --g-yesil: #e2f4ea; --g-yesil-y: #1e6b3c; --g-turuncu: #fdf0e1; --g-turuncu-y: #8a4b0f;
}
:root[data-tema="kurbaga"][data-koyu] {
  --zemin: #0a1220; --yuzey: #101b2d; --yuzey2: #15223a; --cizgi: #22324d; --yazi: #e6eef9; --soluk: #8da0bb;
  --vurgu: #4aa3ff; --vurgu-koyu: #6db4ff; --vurgu-acik: #16304f; --vurgu-yazi: #04152b;
  --balon-ben: #173c66; --balon-o: #17243a; --akis-zemin: #0c1626; --nokta: rgba(150, 190, 255, .08);
  --mavi-tik: #7cc0ff;
  --yan-ust: linear-gradient(100deg, #17407a 0%, #12305c 100%);
  --g-mavi: #16304f; --g-mavi-y: #a9cdfb; --g-yesil: #15291d; --g-yesil-y: #8fd6a9; --g-turuncu: #2e2216; --g-turuncu-y: #f0b979;
}
/* Mavi başlık şeridinde yazı ve simgeler beyaz */
:root[data-tema="kurbaga"] .yan-ust { color: #fff; border-bottom-color: transparent; }
:root[data-tema="kurbaga"] .yan-ust .ikon-dugme { color: rgba(255, 255, 255, .85); }
:root[data-tema="kurbaga"] .yan-ust .ikon-dugme:hover, :root[data-tema="kurbaga"] .ben-dugme:hover { background: rgba(255, 255, 255, .16); color: #fff; }
:root[data-tema="kurbaga"] .yan-ust .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
:root[data-tema="kurbaga"] .karsilama-yan { background: linear-gradient(160deg, #3a9af5 0%, #1f7de6 45%, #12305c 100%); }
:root[data-tema="kurbaga"] .sohbet-ust { border-bottom-color: var(--cizgi); }
:root[data-tema="kurbaga"] .arama-katman { background: radial-gradient(circle at 50% 30%, #1f6fd0 0%, #0a1a33 75%); }
.ornek-kurbaga { background: linear-gradient(135deg, #2b8ef0 50%, #e9f1fb 50%); }

/* ---------- görüntülü arama */
.arama-katman.goruntulu { display: block; background: #05080f; }
.arama-sahne { position: absolute; inset: 0; display: grid; place-items: center; }
.arama-sahne video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.arama-avatar { display: grid; justify-items: center; gap: 12px; color: rgba(255, 255, 255, .75); }
.arama-avatar .avatar.buyuk { width: 140px; height: 140px; font-size: 52px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 22px rgba(255, 255, 255, .03); }
.goruntulu .arama-bilgi { position: absolute; top: 0; left: 0; right: 0; padding: 18px 24px 40px; text-align: center; background: linear-gradient(rgba(0, 0, 0, .55), transparent); color: #fff; pointer-events: none; }
.goruntulu .arama-bilgi .arama-sifre { margin-bottom: 4px; }
.goruntulu .arama-bilgi .arama-ad { font-size: 22px; margin-top: 0; }
.arama-dugmeler.alt { position: absolute; left: 0; right: 0; bottom: 0; justify-content: center; margin: 0; padding: 40px 16px calc(28px + env(safe-area-inset-bottom)); gap: 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); flex-wrap: wrap; }
.arama-dugme.ikincil { background: rgba(255, 255, 255, .18); animation: none; }
.arama-dugme.yesil.caliyor { animation: zil 1s ease-in-out infinite; }
.yerel-kutu { position: absolute; right: 18px; bottom: 120px; width: min(26vw, 240px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .25); background: #111; z-index: 2; }
.yerel-kutu.ekran { aspect-ratio: 16 / 10; width: min(32vw, 300px); }
.yerel-kutu video { width: 100%; height: 100%; object-fit: cover; }
.yerel-kutu.ekran video { object-fit: contain; }
video.ayna { transform: scaleX(-1); }
video.gizli-ses { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .yerel-kutu { width: 30vw; bottom: 130px; right: 12px; } .arama-dugmeler.alt { gap: 12px; } .arama-dugme { width: 56px; height: 56px; font-size: 22px; } }
.arama-sahne video.ekran { object-fit: contain; }

/* ---------- simgeler (js/ikon.js): tek renkli çizgi; renk = --ikon (temanın vurgusu → varsayılan temada Zurgi mavisi) */
:root { --ikon: var(--vurgu); }
.ikon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.ikon-dugme { color: var(--ikon); }
.ikon-dugme:hover:not(:disabled) { color: var(--vurgu-koyu); background: var(--vurgu-acik); }
.ikon-dugme:disabled { color: var(--soluk); }
.pencere-sag .ikon-dugme .ikon { width: 18px; height: 18px; }
.gonder { display: grid; place-items: center; }
.gonder .ikon { width: 19px; height: 19px; margin: 1px 2px 0 0; }
.dugme .ikon { width: 17px; height: 17px; }
.dugme.ikincil .ikon { color: var(--ikon); }
.menu-madde { display: flex; align-items: center; gap: 10px; }
.menu-madde .ikon { width: 17px; height: 17px; color: var(--ikon); }
.menu-madde.tehlike .ikon { color: var(--tehlike); }
.hizli-yanit { display: grid; place-items: center; color: var(--ikon); }
.hizli-yanit .ikon { width: 16px; height: 16px; }
.balon-menu { display: grid; place-items: center; }
.balon-menu .ikon { width: 16px; height: 16px; }
.arama-dugme { display: grid; place-items: center; }
.arama-dugme .ikon { width: 26px; height: 26px; }
.ek-ikon { color: var(--ikon); }
.ek-ikon .ikon { width: 26px; height: 26px; }
.ek-indir .ikon { width: 18px; height: 18px; color: var(--ikon); }
.yanit-simge { color: var(--ikon); }
.yanit-simge .ikon { width: 22px; height: 22px; }
.avatar .ikon { width: 56%; height: 56%; color: #fff; }
.tepki-hizli.arti { display: inline-grid; place-items: center; color: var(--ikon); }
.tepki-hizli.arti .ikon { width: 20px; height: 20px; }
.dikte.dinliyor { color: #fff; }
.secenek .ikon, .resim-satir .ikon { width: 16px; height: 16px; }
:root[data-tema="kurbaga"] .yan-ust .ikon-dugme { color: #fff; }
:root[data-tema="kurbaga"] .yan-ust .ikon-dugme:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- simge kalitesi: başlık eylemleri yumuşak mavi yuvarlak zeminde, ince çizgi */
.ikon { stroke-width: 1.85; }
.sohbet-ust .bas-dugmeler { gap: 8px; }
.sohbet-ust .bas-dugmeler .ikon-dugme { width: 40px; height: 40px; background: var(--vurgu-acik); color: var(--ikon); transition: background .15s, transform .1s, color .15s; }
.sohbet-ust .bas-dugmeler .ikon-dugme:hover { background: var(--ikon); color: #fff; }
.sohbet-ust .bas-dugmeler .ikon-dugme:active { transform: scale(.94); }
.sohbet-ust .bas-dugmeler .ikon { width: 20px; height: 20px; }
.sohbet-ust .geri .ikon { width: 22px; height: 22px; }
.yazma > .ikon-dugme .ikon { width: 22px; height: 22px; }
.yan-dugmeler { gap: 4px; }
.yan-ust .ikon-dugme .ikon { width: 21px; height: 21px; }
.kisi .satir-dugmeler .ikon-dugme { width: 34px; height: 34px; background: var(--vurgu-acik); }
.kisi .satir-dugmeler .ikon-dugme .ikon { width: 17px; height: 17px; }
.kisi .satir-dugmeler .ikon-dugme:hover { background: var(--ikon); color: #fff; }
:root[data-tema="mercan"] .yan .kisi .satir-dugmeler .ikon-dugme { background: #2c2c38; }

/* ---------- dosya ekleme düğmesi ve menüsü */
.yazma .ek-dugme { width: 40px; height: 40px; background: var(--vurgu-acik); color: var(--ikon); transition: background .15s, color .15s, transform .2s; }
.yazma .ek-dugme .ikon { width: 21px; height: 21px; transition: transform .2s; }
.yazma .ek-dugme:hover:not(:disabled), .yazma .ek-dugme.acik { background: var(--ikon); color: #fff; }
.yazma .ek-dugme.acik .ikon { transform: rotate(-45deg); }
.ek-menu { position: absolute; left: 8px; bottom: calc(100% + 6px); z-index: 35; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge); padding: 6px; display: flex; flex-direction: column; min-width: 190px; animation: belir .12s ease; }
.ek-secenek { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 500; text-align: left; }
.ek-secenek:hover { background: var(--yuzey2); }
.daire { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.daire .ikon { width: 19px; height: 19px; }
.daire.mor { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.daire.mavi { background: linear-gradient(135deg, #3a9af5, #1f7de6); }
.daire.pembe { background: linear-gradient(135deg, #f472b6, #db2777); }
/* Çok küçük resim / GIF'ler balonu sıkıştırmasın */
.ek-resim img { min-width: 140px; min-height: 80px; object-fit: cover; }

/* ---------- toplu seçme / silme */
.sohbet-ust.secim-cubugu { background: var(--vurgu-acik); gap: 10px; }
.secim-sayi { flex: 1; font-weight: 700; color: var(--yazi); }
.secim-eylem { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.secim-eylem .dugme { gap: 6px; }
.akis.secim-kipi .balon-sira[data-id] { cursor: pointer; border-radius: 10px; padding: 2px 6px; margin: 0 -6px; transition: background .12s; }
.akis.secim-kipi .balon-sira[data-id]:hover { background: color-mix(in srgb, var(--vurgu) 8%, transparent); }
.akis.secim-kipi .balon-sira.secili { background: color-mix(in srgb, var(--vurgu) 16%, transparent); }
.akis.secim-kipi .balon { pointer-events: none; }
.akis.secim-kipi .balon-menu { display: none; }
.secim-kutu { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--soluk); display: grid; place-items: center; flex-shrink: 0; margin-right: 8px; color: transparent; background: var(--yuzey); transition: all .12s; }
.balon-sira.benim .secim-kutu { margin-right: auto; }
.secim-kutu .ikon { width: 15px; height: 15px; stroke-width: 3; }
.balon-sira.secili .secim-kutu { background: var(--vurgu); border-color: var(--vurgu); color: #fff; }
@media (max-width: 640px) { .secim-eylem .yazi { display: none; } .secim-eylem .dugme { padding: 7px 9px; } }

/* =====================================================================================================
   MOBİL ve TABLET
   • Telefon (≤ 640 px): tek panel — liste ya da sohbet; geri tuşu / ← sohbeti kapatır; pencereler alttan açılır.
   • Tablet (641–1024 px): iki panel, daha dar liste (300 px); pencereler ortada, sürüklenebilir.
   • Dokunmatik (pointer: coarse): en az 44 px dokunma alanı, 16 px yazı (iOS yakınlaştırmasın), çift dokunma yakınlaştırması yok.
   • Ekran yüksekliği: 100dvh (adres çubuğu / klavye açılınca taşmaz), çentik ve alt çubuk payları (safe-area).
   ===================================================================================================== */
#uygulama { height: 100vh; height: 100dvh; }
.ana { height: 100%; }
button, a, input, textarea, select, label { touch-action: manipulation; }
.yan-ust, .sohbet-ust { padding-top: max(8px, env(safe-area-inset-top)); }
.yan-ust { padding-left: max(14px, env(safe-area-inset-left)); }
.liste { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.pencere-alt { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

@media (max-width: 1024px) { .karsilama { grid-template-columns: 1fr; } .karsilama-form { justify-content: flex-start; } .karsilama-yan { padding: 36px 32px 28px; } }

/* Tablet: iki panel */
@media (min-width: 641px) and (max-width: 1024px) {
  :root { --yan: 300px; }
  .akis { padding: 12px 3% 16px; }
  .balon { max-width: 85%; }
  .ben-ad { max-width: 120px; }
}

/* Telefon */
@media (max-width: 640px) {
  .karsilama-yan { padding: calc(24px + env(safe-area-inset-top)) 20px 22px; }
  .sohbet-ust { gap: 4px; padding-left: 4px; padding-right: 8px; }
  .sohbet-ust .bas-dugmeler { gap: 6px; }
  .bas-bilgi { gap: 10px; }
  .yazma { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .yazma .ek-dugme { width: 38px; height: 38px; }
  .pencere-govde { padding: 14px 16px; }
  .ayar-sekmeler { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-left: -4px; margin-right: -4px; }
  .ayar-sekmeler .sekme { white-space: nowrap; }
  .menu { min-width: 210px; }
  .ek-menu { left: 4px; }
  .liste-baslik .dugme { padding: 6px 10px; }
  .kisi .satir-dugmeler { gap: 6px; }
}

/* Dokunmatik ekranlar (telefon + tablet) */
@media (pointer: coarse) {
  input, textarea, select { font-size: 16px; }
  .ikon-dugme { width: 44px; height: 44px; }
  .sohbet-ust .bas-dugmeler .ikon-dugme { width: 42px; height: 42px; }
  .satir { padding: 11px 10px; }
  .menu-madde { padding: 13px 14px; font-size: 15.5px; }
  .ek-secenek { padding: 11px 12px; }
  .dugme.kucuk { padding: 8px 12px; }
  .balon-menu { opacity: .55; width: 30px; height: 30px; }
  .tepki-hizli { width: 46px; height: 46px; }
  .emoji { font-size: 27px; }
  .oneri { width: 42px; height: 42px; }
  .secim-kutu { width: 26px; height: 26px; }
  .pencere-baslik { min-height: 56px; }
  .ayar-sekmeler .sekme { padding: 10px 14px; }
  .sekme { padding: 10px; }
}

/* ---------- İzinler ve yedek */
.izin-durum { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--yuzey2); color: var(--soluk); }
.izin-durum.izinli { background: var(--g-yesil); color: var(--g-yesil-y); }
.izin-durum.engelli { background: var(--tehlike-acik); color: var(--tehlike); }
.izin-durum.sorulacak { background: var(--g-mavi); color: var(--g-mavi-y); }
.izin-yardim { background: var(--uyari-acik); padding: 8px 10px; border-radius: 8px; margin: 2px 0 6px; }
.anahtar { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; cursor: pointer; }
.anahtar input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.anahtar .kaydirici { position: absolute; inset: 0; background: var(--cizgi); border-radius: 26px; transition: background .15s; }
.anahtar .kaydirici::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.anahtar input:checked + .kaydirici { background: var(--vurgu); }
.anahtar input:checked + .kaydirici::after { transform: translateX(18px); }
.anahtar input:focus-visible + .kaydirici { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.anahtar input:disabled + .kaydirici { opacity: .45; }
.secim-grup { display: flex; flex-direction: column; gap: 8px; }
.yedek-parola { display: flex; flex-direction: column; gap: 8px; padding-left: 27px; }
.yedek-parola input { padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); }
.yedek-ilerleme { display: flex; flex-direction: column; gap: 6px; }
.yedek-ilerleme progress { width: 100%; height: 8px; accent-color: var(--vurgu); }
.uyari-not { display: flex; gap: 8px; align-items: flex-start; background: var(--uyari-acik); padding: 10px 12px; border-radius: 10px; }
.uyari-not .ikon { width: 17px; height: 17px; color: var(--uyari); margin-top: 1px; }
.dugme-sutun .dugme, .ad-deger .dugme { gap: 7px; }

/* ---------- daraltılmış kişi / sohbet menüsü: yalnız profil resimleri (telefonda yok) */
.dar-rozet { display: none; }
.yan-ust .daralt { flex-shrink: 0; }
@media (max-width: 640px) { .yan-ust .daralt { display: none; } }
@media (min-width: 641px) {
  .ana { transition: grid-template-columns .2s ease; }
  .ana.yan-dar { grid-template-columns: 76px minmax(0, 1fr); }
  .yan-dar .yan-ust { flex-direction: column; justify-content: flex-start; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 6px 10px; }
  .yan-dar .ben-dugme { padding: 2px; }
  .yan-dar .ben-ad, .yan-dar .yan-dugmeler, .yan-dar .sekmeler, .yan-dar .suzgec, .yan-dar .satir-orta, .yan-dar .satir-dugmeler,
  .yan-dar .kisi-ara, .yan-dar .ara-sonuc, .yan-dar .liste-baslik, .yan-dar .liste-bos, .yan-dar .baglanti-durum { display: none; }
  .yan-dar .liste { padding: 6px 4px; scrollbar-width: none; }
  .yan-dar .satir { justify-content: center; padding: 7px 0; position: relative; }
  .yan-dar .satir.secili { background: var(--vurgu-acik); }
  .yan-dar .dar-rozet { display: grid; place-items: center; position: absolute; top: 3px; right: 7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--vurgu); color: var(--vurgu-yazi); font-size: 11px; font-weight: 800; border: 2px solid var(--yan-zemin); }
}

/* ---------- uygulama olarak yükle kartı */
.yukle-karti { display: flex; align-items: center; gap: 10px; margin: 6px 4px 8px; padding: 10px 8px 10px 12px; border-radius: 12px; background: var(--vurgu-acik); }
.yukle-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.yukle-metin b { font-size: 13.5px; }
.yukle-metin span { color: var(--soluk); }
.yukle-karti .ikon-dugme { width: 32px; height: 32px; }
.izin-yardim .ikon { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; }
.yan-dar .yukle-karti { display: none; }
@media (display-mode: standalone) { .yukle-karti { display: none; } }

/* ---------- arşiv ve geri yüklenen yazışmalar */
.arsiv-avatar { background: var(--vurgu-acik); color: var(--ikon); }
.arsiv-avatar .ikon { width: 22px; height: 22px; color: var(--ikon); }
.arsiv-satiri .satir-ad { font-weight: 700; }
.soluk-rozet { background: var(--soluk); }
.klasor-baslik { gap: 10px; color: var(--ikon); font-size: 16px; padding: 10px; }
.klasor-baslik b { color: var(--yazi); }
.liste-not { font-size: 13px; color: var(--soluk); padding: 2px 10px 8px; margin: 0; }
.salt-okunur { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--uyari-acik); font-size: 13px; color: var(--yazi); }
.salt-okunur .ikon { width: 16px; height: 16px; color: var(--uyari); }
.akis.geri-yuklenen + .yazma { display: none; }
.yan-dar .arsiv-satiri, .yan-dar .klasor-baslik, .yan-dar .liste-not { display: none; }

/* ---------- kullanıcı kodu, QR, davet */
.kodum-karti { display: flex; align-items: center; gap: 10px; margin: 8px 4px 6px; padding: 8px 8px 8px 8px; border-radius: 12px; background: var(--vurgu-acik); }
.kodum-qr-kucuk { border: 0; padding: 3px; background: #fff; border-radius: 8px; cursor: pointer; line-height: 0; box-shadow: var(--golge); }
.kodum-qr-kucuk .qr { width: 52px; height: 52px; }
.kodum-metin { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kodum-kod-satir { font-size: 17px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--yazi); }
.kodum { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.kodum-qr { background: #fff; padding: 10px; border-radius: 16px; box-shadow: var(--golge); line-height: 0; }
.kodum-qr .qr { width: min(232px, 62vw); height: auto; }
.kodum-ad { font-weight: 700; font-size: 18px; }
.kodum-kod { font-size: 28px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ikon); }
.kodum-kod.kucuk-kod { font-size: 20px; }
.dugme-sira.ortali { justify-content: center; }
.davet-yenile { margin-top: 4px; }
.kisi-ara { align-items: center; }
.kisi-ara .qr-okut { flex-shrink: 0; background: var(--vurgu-acik); }
.hata-not { color: var(--tehlike); padding: 4px 10px; margin: 0; }
.qr-okuyucu { position: relative; width: 100%; aspect-ratio: 1; background: #000; border-radius: 12px; overflow: hidden; }
.qr-video { width: 100%; height: 100%; object-fit: cover; }
.qr-cerceve { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.yeni-kod { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; background: var(--vurgu-acik); }
.yeni-kod b { font-size: 24px; letter-spacing: .08em; color: var(--ikon); font-variant-numeric: tabular-nums; }
.davet-not { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--vurgu-acik); font-size: 14px; }
.davet-not .ikon { color: var(--ikon); flex-shrink: 0; margin-top: 2px; }
.yan-dar .kodum-karti { display: none; }

.eposta-dogrulama { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eposta-dogrulama .satir-form { width: 100%; align-items: center; }
.eposta-dogrulama input { padding: 8px 10px; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); width: 120px; letter-spacing: .2em; }
.alinti.dogrulanamadi { border-left-color: var(--soluk); opacity: .8; }

/* ---------- denetim sonrası: Mercan kenar menüde simge rengi menünün vurgusu, yeni simgeler, uyarılar */
.yan { --ikon: var(--vurgu); }
.tik.bekliyor .ikon { width: 12px; height: 12px; display: inline-block; vertical-align: -2px; }
.uyari-isaret .ikon { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; color: var(--uyari); }
.uyari .ikon { width: 16px; height: 16px; color: var(--uyari); }
.uyari.tehlike-uyari { background: var(--tehlike-acik); }
.uyari.tehlike-uyari .ikon { color: var(--tehlike); }
.balon-metin.silindi .ikon, .balon-metin.cozulemedi .ikon { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.ikonlu { display: inline-flex; align-items: center; gap: 6px; }
.ikonlu .ikon { width: 15px; height: 15px; }
.secenek .ikon { width: 17px; height: 17px; color: var(--ikon); }
.avatar-kutu summary { display: flex; align-items: center; gap: 8px; }
.avatar-kutu summary .ikon { width: 18px; height: 18px; color: var(--ikon); }
.parola .goster { color: var(--soluk); display: grid; place-items: center; }
.parola .goster[aria-pressed="true"] { color: var(--ikon); }

/* ---- rahatsız etme */
.ikon-dugme.re-dugme.etkin { background: var(--vurgu-acik); color: var(--vurgu); }
:root[data-tema="kurbaga"] .yan-ust .ikon-dugme.re-dugme.etkin { background: rgba(255, 255, 255, .22); color: #fff; }
.re-durum { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; background: var(--g-yesil); color: var(--g-yesil-y); }
.re-durum .ikon { width: 15px; height: 15px; flex-shrink: 0; }
.re-durum span { flex: 1; min-width: 0; }
.re-durum .bag-dugme, .menu .bag-dugme { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.ben-dugme { position: relative; }
.re-isaret { position: absolute; left: 26px; top: 24px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--yuzey); color: var(--vurgu); box-shadow: 0 0 0 1.5px var(--cizgi); }
.re-isaret[hidden] { display: none; }
.re-isaret .ikon { width: 11px; height: 11px; }
.menu-baslik { padding: 8px 12px 6px; font-size: 12.5px; color: var(--soluk); border-bottom: 1px solid var(--cizgi); margin-bottom: 4px; }
.sag-sira { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kucuk-secim { font: inherit; font-size: 13.5px; padding: 5px 8px; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); color: var(--yazi); }
.kucuk-secim:disabled { opacity: .55; }
.yan-dar .re-durum { display: none; }

/* ---- sesli mesaj */
.gonder[hidden] { display: none; }
.ses-dugme .ikon { margin: 0; }
.daire.turuncu { background: linear-gradient(135deg, #fb923c, #ea580c); }
.kayit-cubuk { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--yuzey2); }
.kayit-iptal { color: var(--tehlike) !important; }
.kayit-nokta { width: 10px; height: 10px; border-radius: 50%; background: var(--tehlike); flex-shrink: 0; animation: kayit-yanip 1s ease-in-out infinite; }
@keyframes kayit-yanip { 50% { opacity: .25; } }
.kayit-sure { font-variant-numeric: tabular-nums; min-width: 38px; font-size: 14px; }
.kayit-dalga { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden; }
.kayit-dalga span { width: 3px; height: 3px; border-radius: 2px; background: var(--vurgu); flex-shrink: 0; transition: height .1s; }
.bir-kez { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--soluk); background: none; color: var(--soluk); font-weight: 700; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.bir-kez.etkin { border-style: solid; border-color: var(--vurgu); background: var(--vurgu); color: var(--vurgu-yazi); }
.ses-oynatici { display: flex; align-items: center; gap: 8px; min-width: 220px; max-width: 300px; padding: 4px 2px 2px; }
.ses-oynat { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--vurgu); color: var(--vurgu-yazi); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.ses-oynat .ikon { width: 16px; height: 16px; fill: currentColor; }
.ses-oynatici.yukleniyor .ses-oynat { opacity: .5; cursor: progress; }
.ses-dalga { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 2px; cursor: pointer; outline-offset: 2px; }
.ses-dalga span { flex: 1; max-width: 3px; min-width: 2px; border-radius: 2px; background: var(--soluk); opacity: .45; }
.ses-dalga span.gecti { background: var(--vurgu); opacity: 1; }
.ses-sure { font-size: 12px; color: var(--soluk); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.ses-hiz { border: 0; border-radius: 10px; padding: 2px 7px; font-size: 11.5px; font-weight: 600; background: rgba(0, 0, 0, .07); color: var(--yazi); cursor: pointer; }
.balon.benim .ses-oynat { background: var(--yuzey); color: var(--vurgu); }
.bir-kez-oynatici { max-width: none; padding: 10px 4px; }
/* ---- süreli medya */
.sureli-ek { display: flex; align-items: center; gap: 10px; border: 0; background: rgba(0, 0, 0, .05); border-radius: 10px; padding: 9px 12px 9px 10px; margin: 2px 0 4px; text-align: left; color: inherit; font: inherit; min-width: 210px; }
button.sureli-ek { cursor: pointer; }
button.sureli-ek:hover { background: rgba(0, 0, 0, .09); }
.sureli-simge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; flex-shrink: 0; }
.sureli-simge .ikon { width: 18px; height: 18px; }
.sureli-ek.acildi .sureli-simge, .sureli-ek.benim .sureli-simge { background: var(--soluk); }
.sureli-ek.acildi { opacity: .75; }
.sureli-sayac { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #ea580c; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 14px; }
.sureli-pencere img { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sureli-secim { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sureli-secenek { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); color: var(--yazi); padding: 10px 12px; cursor: pointer; font: inherit; }
.sureli-secenek > span { display: flex; flex-direction: column; }
.sureli-secenek .ikon { color: var(--ikon); }
.sureli-secenek.secili { border-color: var(--vurgu); background: var(--vurgu-acik); }
.sureli-icerik { display: grid; place-items: center; min-height: 120px; }
.sureli-sayac[hidden] { display: none; }
/* Izgara öğeleri içerik genişliğine göre büyümesin (telefonda kenar menü ekrandan taşıyordu) */
.ana > .yan, .ana > .sohbet { min-width: 0; }

/* Yüklü uygulamanın başlık çubuğu: manifest display_override = window-controls-overlay. Küçült / büyüt / kapat düğmelerini
   tarayıcı sağda üstüne çizer (titlebar-area-* o düğmelerin dışındaki alan). Şerit sürüklenince pencere taşınır. */
#baslik-cubugu { display: none; }
@media (display-mode: window-controls-overlay) {
  #baslik-cubugu { display: flex; align-items: center; gap: 6px; position: fixed; top: 0; left: 0; right: 0; z-index: 90; box-sizing: border-box;
    height: env(titlebar-area-height, 33px); padding: 0 12px 0 calc(env(titlebar-area-x, 0px) + 12px); background: var(--baslik-renk, #1f7de6);
    -webkit-app-region: drag; app-region: drag; user-select: none; }
  #baslik-cubugu img { display: block; pointer-events: none; }
  #baslik-cubugu .simge { width: 22px; height: 22px; }
  #baslik-cubugu .yazi { height: 20px; width: auto; transform: translateY(8.5%); filter: drop-shadow(0 1px 2px rgba(4, 16, 42, .45)); }
  #uygulama { margin-top: env(titlebar-area-height, 33px); height: calc(100vh - env(titlebar-area-height, 33px)); height: calc(100dvh - env(titlebar-area-height, 33px)); }
  .pencere-arka, .arama-katman { top: env(titlebar-area-height, 33px); }
}
/* ---- Ayarlar: liste → alt sayfa (telefon ayarları gibi); sayfa değişince pencere boyu oynamasın diye sabit yükseklik */
.pencere.ayar-pencere { width: min(440px, 100%); height: min(700px, 88vh); }
.ayar-pencere .pencere-baslik { padding-left: 12px; }
.ayar-pencere .pencere-baslik h2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; }
.ayar-geri { margin-right: -6px; }
.ayar-geri[hidden] { display: none; }
.ayar-pencere .pencere-govde { padding: 12px 14px 18px; background: var(--yuzey2); }
.ayar-govde, .ayar-sayfa { display: flex; flex-direction: column; gap: 12px; }
.ayar-sayfa > .satirlar, .ayar-sayfa > .ayar-form, .ayar-sayfa > .ayar-secim { background: var(--yuzey); border-radius: 12px; padding: 4px 14px; }
.ayar-sayfa > .ayar-form { padding: 14px; }
.ayar-sayfa > .ayar-secim { padding: 12px 14px; border-bottom: 0; }
.ayar-sayfa > .grup-baslik { margin: 4px 0 -4px; background: none; padding: 0 4px; }
.ayar-sayfa > p.kucuk { padding: 0 4px; }
/* ana sayfa */
.ayar-profil, .ayar-satir { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: var(--yuzey); color: var(--yazi); font: inherit; text-align: left; cursor: pointer; }
.ayar-profil { padding: 12px 14px; border-radius: 12px; }
.ayar-profil .avatar { width: 52px; height: 52px; font-size: 19px; }
.ayar-liste { display: flex; flex-direction: column; background: var(--yuzey); border-radius: 12px; overflow: hidden; }
.ayar-satir { padding: 10px 14px; position: relative; }
.ayar-satir + .ayar-satir::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--cizgi); }
.ayar-profil:hover, .ayar-satir:hover { background: var(--vurgu-acik); }
.ayar-satir .daire { width: 34px; height: 34px; box-shadow: none; }
.ayar-satir .daire .ikon { width: 18px; height: 18px; }
.ayar-satir-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ayar-satir-metin b { font-weight: 600; font-size: 15px; }
.ayar-satir-metin span { font-size: 12.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ayar-profil > .ikon, .ayar-satir > .ikon { width: 18px; height: 18px; color: var(--soluk); flex-shrink: 0; }
.ayar-satir.tehlike b { color: var(--tehlike); }
.daire.kirmizi { background: linear-gradient(135deg, #f87171, #dc2626); }
.daire.yesil { background: linear-gradient(135deg, #34d399, #059669); }
.daire.gri { background: linear-gradient(135deg, #94a3b8, #64748b); }
/* açılır satır (parola, kurtarma, zemin, geçmiş) */
.ayar-acilir { background: var(--yuzey); border-radius: 12px; }
.ayar-acilir > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-size: 14.5px; }
.ayar-acilir > summary::-webkit-details-marker { display: none; }
.ayar-acilir > summary > span { flex: 1; display: flex; flex-direction: column; }
.ayar-acilir > summary > .ikon { width: 18px; height: 18px; color: var(--soluk); transition: transform .15s; }
.ayar-acilir[open] > summary > .ikon { transform: rotate(90deg); }
.ayar-acilir > :not(summary) { padding: 0 14px 14px; }
.ayar-acilir > .ayar-form > .dugme { align-self: stretch; }
/* profil */
.ayar-sayfa .profil-ust { flex-direction: column; text-align: center; gap: 10px; background: var(--yuzey); border-radius: 12px; padding: 16px 14px; }
.ayar-sayfa .avatar-kutu { background: var(--yuzey); border: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ayar-sayfa .avatar-kutu[hidden] { display: none; }
.ayar-sayfa .avatar-kutu > .dugme { align-self: center; margin: 0; }
.ayar-sayfa .ad-deger { padding: 11px 0; }
@media (max-width: 640px) {
  .pencere.ayar-pencere { width: 100%; height: 94dvh; max-height: 94dvh; }
  .ayar-pencere .pencere-govde { padding: 10px 10px calc(18px + env(safe-area-inset-bottom)); }
  .ayar-sayfa .ad-deger { flex-wrap: nowrap; }
  .ayar-sayfa .ad-deger > span:first-child { min-width: 0; }
}
/* ---- kişi / grup bilgisi: Ayarlar'la aynı düzen */
.pencere.bilgi-pencere { width: min(440px, 100%); }
.bilgi-pencere .pencere-govde { padding: 12px 14px 18px; background: var(--yuzey2); }
.bilgi-kart { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--yuzey); border-radius: 12px; padding: 18px 14px 14px; }
.bilgi-kart h3 { margin: 6px 0 0; font-size: 18px; }
.bilgi-kart p { margin: 0; }
.bilgi-sifre { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--soluk); }
.bilgi-sifre .ikon { width: 13px; height: 13px; color: var(--ikon); }
.uye-satir { cursor: default; padding: 8px 8px 8px 14px; }
.uye-satir:hover { background: var(--yuzey); }
.uye-satir .avatar { width: 34px; height: 34px; font-size: 13px; }
.uye-satir .etiket { margin-left: 6px; }
.grup-ad-form .satir-form { display: flex; gap: 8px; }
.grup-ad-form input { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .pencere.bilgi-pencere { width: 100%; }
  .bilgi-pencere .pencere-govde { padding: 10px 10px calc(18px + env(safe-area-inset-bottom)); }
}
