/* Mesajlar ekranı: modern sohbet (liste, başlık, balonlar, tarih ayraçları, okundu, öneriler, emoji). style.css'teki .chat kurallarının üzerine yazar. */
.chat{height:calc(100vh - 150px);height:calc(100dvh - 150px);min-height:520px;grid-template-columns:340px 1fr;grid-template-rows:minmax(0,1fr);border-radius:26px}
/* shop.css'teki genel .thread{display:grid} kuralı sohbet sütununu bozuyordu: sohbet için flex sütun */
.chat .thread{display:flex;flex-direction:column;gap:0;margin:0;min-height:0}
.chat .convs{min-height:0}
@media (max-width:820px){.chat .thread{display:none}.chat.open .thread{display:flex}}
.chat .msgs{min-height:0}
.convs{display:flex;flex-direction:column;gap:2px;padding:16px 10px;background:#fff}
.convs h3{padding:0 10px 10px;font-size:1.25rem}
.convsearch{margin:0 6px 10px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;font:inherit;background:#faf6fc;width:calc(100% - 12px)}
.convsearch:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px rgba(224,53,122,.14)}
.convnone{padding:10px 14px}
.conv{padding:10px 12px;border-radius:16px;transition:background .15s}
.cav{position:relative;flex:0 0 auto}
.cav .mav{width:50px;height:50px}
.cdot{position:absolute;right:0;bottom:1px;width:13px;height:13px;border-radius:50%;background:#2fcf7a;border:2px solid #fff}
.crow{display:flex;justify-content:space-between;align-items:center;gap:8px}
.conv .ci .crow strong{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
/* style.css'teki ".conv .ci span{display:block}" rozetleri alta atıp kaydırıyordu: rozetler adın yanında, net ve büyük */
.conv .ci .bdgs{display:inline-flex;align-items:center;gap:4px;margin:0;flex:0 0 auto;overflow:visible}
.conv .ci .bdgs span{display:inline-grid;place-items:center;overflow:visible;text-overflow:clip;margin:0}
.conv .ci .bdgs .pbadge{width:22px;height:22px;font-size:.85rem;color:#5a3a00;box-shadow:0 1px 5px rgba(224,161,0,.55)}
.conv .ci .bdgs .vbadge{width:20px;height:20px;font-size:.72rem;color:#fff}
.crow time{font-size:.72rem;color:var(--muted);flex:0 0 auto}
.conv .ci .clast{display:block;font-size:.85rem;color:var(--muted);min-width:0}
.conv.unread .clast{color:var(--ink);font-weight:700}
.conv.unread time{color:var(--brand);font-weight:800}
.conv .badge{flex:0 0 auto}

.thead{gap:10px;padding:10px 14px;min-height:66px;background:#fff;align-items:center}
.thead.hidden{display:none}
.thead #thinfo{flex:1;min-width:0;gap:12px}
.thav{border:0;background:none;padding:0;cursor:pointer;flex:0 0 auto}
.thav .mav{width:44px;height:44px}
.thtxt{display:grid;gap:1px;min-width:0}
.thtxt strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thtxt .sub{font-size:.78rem;color:var(--muted)}
.onl2{color:#1f9e5f;font-weight:700}
.chatmore{position:relative;right:auto;top:auto;margin-left:auto}
.chatmore summary{box-shadow:none;background:#f6f0f9;width:38px;height:38px;font-size:1.1rem}
.chatmore .menu{z-index:30}
.chatmore .menu .dng{color:#d11f3f}

.msgs{padding:16px 18px;gap:3px;background:linear-gradient(180deg,#fdf8fb,#f8f1fa);scroll-behavior:smooth}
.bub{display:flex;flex-wrap:wrap;gap:0 10px;align-items:flex-end;max-width:min(78%,520px);padding:8px 12px 6px;margin-top:8px;border-radius:18px;box-shadow:0 1px 2px rgba(58,18,69,.08)}
.bub.cont{margin-top:0}
.bub.mine.cont{border-top-right-radius:6px}
.bub.theirs.cont{border-top-left-radius:6px}
.bub p{line-height:1.45}
.bmeta{margin-left:auto;display:inline-flex;gap:4px;align-items:center;font-size:.68rem;opacity:.9;padding-top:2px}
.bmeta time{display:inline;margin:0;opacity:.8}
.bub.theirs .bmeta{color:var(--muted)}
.tick{font-style:normal;letter-spacing:-.15em}
.tick.read{color:#a8ecff}
.dsep{align-self:center;margin:14px 0 6px}
.dsep span{display:inline-block;padding:3px 13px;border-radius:999px;background:rgba(60,30,80,.08);font-size:.72rem;font-weight:700;color:#6b5a7a}

.chatintro{margin:auto;max-width:440px;text-align:center;display:grid;gap:10px;justify-items:center;padding:24px 16px}
.ciav .mav{width:92px;height:92px;font-size:2rem}
.chatintro strong{font-size:1.15rem;color:var(--plum)}
.icechips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.icechip{border:1px solid #f0c5d9;background:#fff;color:var(--brand-d,#c2255f);padding:9px 14px;border-radius:999px;font:inherit;font-size:.86rem;cursor:pointer;text-align:left;transition:transform .12s,background .12s}
.icechip:hover{background:#fff1f7;transform:translateY(-2px)}

.composer{gap:8px;padding:10px 12px;background:#fff}
.composer.hidden{display:none}
.emobtn{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:50%;background:#f6f0f9;font-size:1.25rem;cursor:pointer}
.emobtn:hover{background:#efe3f6}
.composer textarea{padding:11px 16px;border-radius:22px;background:#faf6fc;line-height:1.4}
.sendbtn{width:46px;height:46px;padding:0;border-radius:50%;display:grid;place-items:center;flex:0 0 46px}
.sendbtn:disabled{opacity:.45;cursor:default;box-shadow:none}
.emotray{display:flex;flex-wrap:wrap;gap:2px;padding:6px 12px;border-top:1px solid var(--line);background:#fff}
.emotray.hidden{display:none}
.emotray button{border:0;background:none;font-size:1.45rem;width:40px;height:40px;border-radius:10px;cursor:pointer}
.emotray button:hover{background:#f6f0f9}

.chatprof{display:grid;gap:10px}
.cpgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.cpimg{aspect-ratio:3/4;border:0;border-radius:12px;background-size:cover;background-position:center;cursor:zoom-in}
.cpmeta{margin:0;color:var(--muted);font-weight:700}

@media (max-width:820px){
  .chat{height:calc(100dvh - 192px);min-height:0;grid-template-rows:minmax(0,1fr);border-radius:0;border-left:0;border-right:0;grid-template-columns:1fr}
  .bub{max-width:86%}
  .emotray button{width:36px;height:36px}
}
.convs{overflow-x:hidden}
.conv .ci span.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:.7rem;font-weight:800;white-space:nowrap;overflow:visible}
.conv .ci span.clast{display:block}
@media (max-width:820px){#view-messages .wrap{padding-left:0;padding-right:0}}

/* ---------- profil sayfası (alt panel) ---------- */
.psheetwrap{position:fixed;inset:0;z-index:9990;display:flex;align-items:flex-end;justify-content:center;background:rgba(18,8,28,.62);backdrop-filter:blur(4px);animation:lbfade .18s}
.psheet{width:min(480px,100%);max-height:94vh;overflow-y:auto;background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.4);display:flex;flex-direction:column;animation:psup .25s cubic-bezier(.2,.8,.3,1)}
@keyframes psup{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media (min-width:600px){.psheetwrap{align-items:center}.psheet{border-radius:26px;max-height:90vh}}
.phero{position:relative;flex:0 0 auto;aspect-ratio:4/5;max-height:56vh;width:100%;background-size:cover;background-position:center top;background-color:#e9dff0;cursor:zoom-in;color:#fff}
.phero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.28) 0,transparent 24%,transparent 52%,rgba(0,0,0,.72) 100%);pointer-events:none}
.phero.nophoto{cursor:default;background:linear-gradient(135deg,#d6317a,#7a1c60)}
.phinit{position:absolute;inset:0;display:grid;place-items:center;font-size:5rem;font-weight:800;opacity:.9;z-index:1}
.phlock{position:absolute;left:0;right:0;top:62%;text-align:center;z-index:2;font-weight:700}
.phclose{position:absolute;top:12px;right:12px;z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;font-size:1rem;cursor:pointer}
.phnav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.38);color:#fff;font-size:1.7rem;line-height:1;cursor:pointer}
.phnav.prev{left:10px}.phnav.next{right:10px}
.phdots{position:absolute;left:0;right:0;top:12px;z-index:3;display:flex;gap:4px;justify-content:center;padding:0 60px}
.phdots i{flex:1;max-width:46px;height:4px;border-radius:2px;background:rgba(255,255,255,.45)}
.phdots i.on{background:#fff}
.phinfo{position:absolute;left:18px;right:18px;bottom:16px;z-index:2}
.phinfo h2{margin:0;font-size:1.7rem;line-height:1.15;text-shadow:0 2px 10px rgba(0,0,0,.5)}
.phinfo h2 span{font-weight:600;opacity:.95}
.phsub{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px;font-size:.9rem;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.phon{color:#7dffb4;font-weight:700}
.phbody{padding:16px 20px 8px;display:grid;gap:16px}
.phbody section{padding:0}
.phbody h4{margin:0 0 6px;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.phbio{margin:0;line-height:1.55;white-space:pre-wrap}
.phbadges{display:flex;gap:8px;flex-wrap:wrap}
.phbadge{padding:5px 12px;border-radius:999px;font-size:.78rem;font-weight:800}
.phbadge.ver{background:#e6f3ff;color:#1478c9}
.phbadge.prem{background:#fff2cf;color:#9a6a00}
.phbadge.boost{background:#ffe9dc;color:#c2531a}
.phthumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.phthumb{flex:0 0 74px;height:96px;border:0;border-radius:12px;background-size:cover;background-position:center;cursor:zoom-in}
.phfoot{position:sticky;bottom:0;display:grid;gap:8px;padding:12px 20px 18px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 28%)}
.phfoot .btn{width:100%}
.phlinks{display:flex;justify-content:center;gap:22px}
.phlinks .plink.dng{color:#d11f3f}

.clickname{cursor:pointer}
.clickname:hover{color:var(--brand)}

/* Mesajda fotoğraf / ses, yazıyor…, ses kaydı çubuğu, bildirim kartı */
.emobtn:disabled{opacity:.5;cursor:default}
.bub.media.image{padding:4px 4px 6px}
.cimg{display:block;border:0;padding:0;background:none;border-radius:14px;overflow:hidden;cursor:zoom-in;max-width:260px}
.cimg img{display:block;width:100%;max-height:320px;object-fit:cover;border-radius:14px;background:#f1e8f6;min-height:90px}
.bub.media.image .bmeta{padding:0 8px}
.caud{display:flex;align-items:center;gap:8px;min-width:0}
.caud .cicon{font-size:1.2rem}
.caud audio{height:38px;width:min(230px,56vw)}
.caud small{font-weight:700;opacity:.8}
.typingrow{display:flex;align-items:center;gap:8px;width:max-content;padding:8px 14px}
.tdots{display:inline-flex;gap:4px}
.tdots i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:tdot 1.1s infinite ease-in-out}
.tdots i:nth-child(2){animation-delay:.18s}.tdots i:nth-child(3){animation-delay:.36s}
@keyframes tdot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.composer.recording textarea,.composer.recording .emobtn,.composer.recording .sendbtn{display:none}
.recbar{display:flex;align-items:center;gap:10px;flex:1;min-width:0;flex-wrap:wrap}
.recbar .sm{flex:1;color:var(--muted)}
.recdot{width:12px;height:12px;border-radius:50%;background:#e5174a;animation:recblink 1s infinite}
@keyframes recblink{50%{opacity:.25}}
.rectime{font-variant-numeric:tabular-nums;font-weight:800}
.callbtns{display:flex;gap:6px;margin-left:auto}
.callbtns + .chatmore{margin-left:6px}
.callbtn{width:38px;height:38px;border:0;border-radius:50%;background:#f6f0f9;font-size:1.05rem;cursor:pointer}
.callbtn:hover{background:#efe3f6}
.pushcard{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff8fc}
.pushcard .pico{font-size:1.5rem}
.pushcard > div{flex:1 1 180px;min-width:0}
.pushcard p{margin:2px 0 0}
.pushcard .btn{padding:8px 16px}

/* Görüşme ekranı */
.callwrap{position:fixed;inset:0;z-index:300;background:#14101a;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.callwrap .cremote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#14101a}
.callwrap.audio .cremote{position:static;width:0;height:0}
.callwrap .clocal{position:absolute;right:14px;top:14px;width:min(30vw,150px);aspect-ratio:3/4;object-fit:cover;border-radius:14px;border:2px solid rgba(255,255,255,.7);background:#000;transform:scaleX(-1);z-index:2}
.callwrap .caudio{display:grid;place-items:center;margin-bottom:18px}
.callwrap .caudio .mav{width:120px;height:120px;font-size:3rem}
.cinfo{position:relative;z-index:2;text-align:center;display:grid;gap:6px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.cinfo strong{font-size:1.4rem}
.cstatus,.cclock{font-weight:700;opacity:.92}
.callwrap.video .cinfo{position:absolute;top:22px;left:16px;text-align:left}
.cctrl{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));left:0;right:0;display:flex;gap:18px;justify-content:center;z-index:2}
.cbtn{width:64px;height:64px;border-radius:50%;border:0;background:rgba(255,255,255,.2);color:#fff;font-size:1.5rem;cursor:pointer;backdrop-filter:blur(6px)}
.cbtn.red{background:#e5174a}.cbtn.green{background:#17a34a}
.cbtn.off{background:rgba(255,255,255,.55);color:#14101a;text-decoration:line-through}
body.incall{overflow:hidden}
html[data-theme=dark] .callwrap{filter:invert(1) hue-rotate(180deg) brightness(1.0638)}
html[data-theme=dark] .callwrap video{filter:none}
@media (max-width:820px){.cimg{max-width:70vw}}

.callwrap .clocal:not([data-on]){display:none}
.callwrap .cring{position:absolute;inset:0;display:grid;place-items:center;margin:0}
.callwrap .cring .mav{margin-top:-60px}

.recbar .btn{padding:8px 16px;white-space:nowrap}
@media (max-width:820px){.recbar{flex-wrap:nowrap;gap:8px}.recbar .sm{display:none}.recbar .rectime{margin-right:auto}}

@media (max-width:820px){
.composer{gap:6px;padding:8px 8px}
.composer .emobtn{width:36px;height:36px;flex:0 0 36px;font-size:1.05rem}
.composer .sendbtn{width:40px;height:40px;flex:0 0 40px}
.composer textarea{min-width:0;flex:1 1 0;padding:9px 12px;font-size:16px;line-height:1.3;height:40px;max-height:120px}
.composer textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:360px){.composer .emobtn{width:32px;height:32px;flex-basis:32px}.composer{gap:4px}}

@media (min-width:821px) and (max-width:1000px){.chat{grid-template-columns:260px 1fr}}

/* Mesaj silme */
.bub{position:relative}
.bmore{position:absolute;top:2px;right:4px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(0,0,0,.12);color:inherit;font-size:1rem;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s}
.bub:hover .bmore,.bmore:focus-visible{opacity:1}
@media (hover:none){.bmore{opacity:.55}}
.bub.theirs .bmore{background:rgba(0,0,0,.08)}
.bub.gone{opacity:.75}
.gonetxt{font-style:italic;opacity:.85}
.csheetwrap{position:fixed;inset:0;z-index:400;background:rgba(20,8,30,.45);display:flex;align-items:flex-end;justify-content:center}
.csheet{width:min(440px,100%);display:grid;gap:8px;padding:16px 16px max(16px,env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -12px 40px rgba(0,0,0,.25)}
.csheet strong{color:var(--plum);text-align:center;margin-bottom:4px}
.csheet .btn{width:100%}
.csheet .btn.dng{color:#d11f3f}
@media (min-width:821px){.csheetwrap{align-items:center}.csheet{border-radius:22px}}
.tlbox{display:grid;gap:4px}.tlbox p{margin:0}.tltoggle{justify-self:start;border:0;background:none;padding:2px 0;font:inherit;font-size:.74rem;font-weight:700;color:inherit;opacity:.75;cursor:pointer;text-decoration:underline}.tlorig{opacity:.8;padding-top:4px;border-top:1px dashed rgba(0,0,0,.2);font-size:.9em}.bub.mine .tlorig{border-top-color:rgba(255,255,255,.4)}

/* Mesaj tepkileri */
.rxbar{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 -2px}
.rxchip{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);background:var(--card);border-radius:99px;padding:1px 7px;font-size:.9rem;line-height:1.4;cursor:pointer}
.rxchip.mine{border-color:#f3a6c8;background:#fff0f6}
.rxchip small{font-size:.72rem;color:var(--muted)}
.rxpick{display:flex;justify-content:space-between;gap:4px;padding:6px 2px}
.rxpick button{flex:1;border:0;background:transparent;font-size:1.6rem;line-height:1;padding:8px 0;border-radius:12px;cursor:pointer}
.rxpick button:hover,.rxpick button:focus-visible{background:#fff0f6}

/* Mesaj kutusu: boyutlandırma tutamacı ve kaydırma okları görünmesin; ikonlar tek renk */
.page .composer textarea{resize:none;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.composer textarea::-webkit-scrollbar{display:none}
.composer .emobtn svg{display:block;margin:auto}
#attachbtn,#micbtn{color:#8a3a6e;background:#f6f0f9}
#attachbtn:hover,#micbtn:hover{background:#efe3f6;color:var(--brand)}
