/* Hesap alanı: profil, favoriler, hesap silme, mesajlar */

.acc { display: grid; gap: 16px; margin-top: 16px; }
.acc__main { min-width: 0; }
.acc__main .ptitle { margin-top: 0; }
.acc__sub { font-size: 17px; margin: 24px 0 10px; }

.accnav { padding: 14px; align-self: start; }
.accnav__user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.accnav__user div { display: grid; min-width: 0; }
.accnav__user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accnav__user .muted { font-size: 12px; }
.accnav__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; }
.accnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.accnav ul::-webkit-scrollbar { display: none; }
.accnav li { flex: none; }
.accnav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.accnav a .icon { width: 19px; height: 19px; color: var(--muted); }
.accnav a:hover { background: var(--page); }
.accnav a.is-on { background: var(--red-soft); color: var(--red); }
.accnav a.is-on .icon { color: var(--red); }
.accnav a b { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; text-align: center; }
.accnav form { display: none; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.accnav__out { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; font-weight: 600; color: var(--muted); cursor: pointer; }
.accnav__out .icon { width: 19px; height: 19px; }
.accnav__out:hover { background: var(--page); color: var(--red); }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.is-on { color: var(--red); border-bottom-color: var(--red); }

.panelbox { padding: 20px; margin-bottom: 16px; }
.panelbox h2 { font-size: 18px; margin-bottom: 16px; }
.formgrid { display: grid; gap: 0 16px; }
.formgrid__full { grid-column: 1 / -1; }
.danger { border-color: #F3C1C7; }
.danger__head { display: flex; gap: 14px; margin-bottom: 16px; padding: 14px; border-radius: var(--r-sm); background: var(--red-soft); }
.danger__head > .icon { width: 26px; height: 26px; color: var(--red); }
.danger__head h2 { margin-bottom: 4px; font-size: 16px; }
.danger__head p { margin: 0; font-size: 14px; }

.pgrid--acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gone { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gone li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.gone li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gone form { margin: 0; }
.favm { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.favm li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; }
.favm__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.favm__info { display: grid; flex: 1; min-width: 160px; }
.favm__info .muted { font-size: 13px; }
.favm form { margin: 0; }

/* Mesajlar */
.inbox { display: grid; margin-top: 16px; overflow: hidden; min-height: 70vh; }
.inbox__list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.inbox__head { padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.inbox__head h1 { font-size: 20px; margin-bottom: 12px; }
.inbox__search { position: relative; }
.inbox__search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.inbox__search input { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); }
.inbox__search input:focus { outline: 0; border-color: var(--red); background: #fff; }
.inbox__note { padding: 16px; color: var(--muted); }
.inbox__empty, .inbox__placeholder { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 40px 20px; text-align: center; flex: 1; }
.inbox__empty h2 { font-size: 17px; }
.inbox__empty p { margin: 0 0 8px; max-width: 280px; }
.threads { margin: 0; padding: 0; list-style: none; overflow-y: auto; flex: 1; }
.thread { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.thread:hover { background: var(--page); }
.thread.is-on { background: var(--red-soft); }
.thread__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #E3E5EA; color: var(--ink); font-weight: 800; }
.thread__avatar.is-seller { background: var(--ink); color: #fff; }
.thread__main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.thread__top { display: flex; justify-content: space-between; gap: 8px; }
.thread__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.thread__top time { flex: none; font-size: 11.5px; color: var(--muted); }
.thread__last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.is-unread .thread__last { color: var(--ink); font-weight: 700; }
.thread__badge { flex: none; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }

.inbox__thread { display: none; flex-direction: column; min-width: 0; min-height: 70vh; background: #FAFAFB; }
.inbox.has-thread .inbox__list { display: none; }
.inbox.has-thread .inbox__thread { display: flex; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat__back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--field); }
.chat__who { display: grid; flex: 1; min-width: 0; }
.chat__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__who .muted { font-size: 12px; }
.chat__body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 62vh; }
.chat__hint { margin: auto; max-width: 360px; text-align: center; color: var(--muted); }
.chat__day { text-align: center; margin: 8px 0; }
.chat__day span { padding: 3px 12px; border-radius: 999px; background: #E9EBEF; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.chat__ref { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 80%; padding: 6px 10px; border-radius: var(--r-sm); background: var(--card); border: 1px dashed var(--line-2); font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted); }
.chat__ref.is-mine { align-self: flex-end; }
.chat__ref .icon { width: 14px; height: 14px; color: var(--red); }
.bubble { align-self: flex-start; max-width: 80%; padding: 10px 12px 6px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--line); }
.bubble.is-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--ink); border-color: var(--ink); color: #fff; }
.bubble p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; opacity: .7; }
.bubble__read { display: inline-flex; }
.bubble__read .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.bubble__read .icon + .icon { margin-left: -8px; }
.bubble__read.is-read { color: #FF8F9B; opacity: 1; }
.chat__form { padding: 12px 16px 16px; background: var(--card); border-top: 1px solid var(--line); }
.chat__ctx { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--page); }
.chat__ctx img, .chat__ctxph { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: #fff; display: grid; place-items: center; color: #b4b8bf; }
.chat__ctx div { display: grid; flex: 1; min-width: 0; font-size: 13px; }
.chat__ctx strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__ctx .muted { font-size: 11.5px; }
.chat__ctxprice { font-weight: 800; }
.chat__compose { display: flex; align-items: flex-end; gap: 8px; }
.chat__compose textarea { min-height: 46px; max-height: 180px; resize: none; border-radius: 22px; padding: 12px 16px; }
.chat__compose .btn { flex: none; min-height: 46px; border-radius: 999px; padding: 0 16px; }
.chat__compose .btn span { display: none; }

@media (min-width: 640px) {
  .formgrid { grid-template-columns: 1fr 1fr; }
  .pgrid--acc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat__compose .btn span { display: inline; }
}
@media (min-width: 960px) {
  .acc { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 20px; }
  .accnav { position: sticky; top: 16px; }
  .accnav ul { display: grid; overflow: visible; }
  .accnav form { display: block; }
  .panelbox { padding: 26px; }
  .inbox { grid-template-columns: 340px minmax(0, 1fr); min-height: 640px; }
  .inbox .inbox__list, .inbox.has-thread .inbox__list { display: flex; max-height: 720px; }
  .inbox .inbox__thread { display: flex; max-height: 720px; }
  .chat__back { display: none; }
  .chat__body { max-height: none; }
}

/* Profil fotoğrafı ve kapak görseli */
.accnav__avatar,.appacc__avatar{overflow:hidden}
.accnav__avatar img,.appacc__avatar img,.pfoto__img img{display:block;width:100%;height:100%;object-fit:cover}
.pfoto{display:flex;align-items:center;gap:16px}
.pfoto__img{display:grid;place-items:center;width:84px;height:84px;flex:none;border-radius:50%;background:var(--ink);color:#fff;font-size:30px;font-weight:800;overflow:hidden}
.pfoto__acts{min-width:0}
.pfoto__btns{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.pfoto__btns form{margin:0}
.pfoto__pick{position:relative;overflow:hidden;cursor:pointer}
.pfoto__pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.pfoto__pick.is-busy{opacity:.7;pointer-events:none}
.pbanner__title{margin:22px 0 10px;font-size:16px}
.pbanner{aspect-ratio:16/5;margin-bottom:10px;border:1px solid var(--line);border-radius:var(--r);background:var(--page) center/cover no-repeat}
.pbanner--empty{display:grid;place-items:center;color:var(--muted);font-size:13px;font-weight:600}
