/* Kule.net · varsayılan koyu palet + isteğe bağlı klasik gri tema */
:root {
  --bg: #0d0d0d;
  --top: #111111;
  --side: #111111;
  --card: #111111;
  --card-2: #181818;
  --card-3: #202020;
  --field: #0d0d0d;
  --control: #181818;
  --control-hover: #202020;
  --round-hover: #202020;
  --profile-control: #181818;
  --profile-control-hover: #202020;
  --featured: #251818;
  --featured-hover: #2e1c1c;
  --header-glass: rgba(13, 13, 13, 0.86);
  --tab-indicator: #202020;
  --post-hover: #181818;
  --popup: #181818;
  --search-popup: #111111;
  --unread: #211717;
  --conversation-active: #281c1c;
  --account-active: #2d1c1c;
  --chat-bg: #0d0d0d;
  --tabbar-glass: rgba(17, 17, 17, 0.92);
  --media-bg: #0d0d0d;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --text-2: #d0d0d0;
  --muted: #979797;
  --accent: #c94545;
  --accent-hover: #d65252;
  --accent-text: #ef6f6f;
  --accent-soft: rgba(217, 79, 79, 0.16);
  --accent-ink: #ffffff;
  --blue: #4da3ff;
  --repost: #4fd27a;
  --danger: #ff7a7a;
  --warn: #ffb340;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --top-h: 72px;
  --side-w: 236px;
  --main-w: 600px;
  --rail-w: 300px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --scroll-size: 4px;
  --scroll-track: transparent;
  --scroll-thumb: #595151;
  --scroll-thumb-hover: #887272;
  --scroll-thumb-active: #c17b7b;
  --scroll-pill: #f2efef;
  color-scheme: dark;
}

:root[data-theme="classic"] {
  --scroll-pill: #f7f3f3;
  --scroll-thumb: #756a6a;
  --scroll-thumb-hover: #a28b8b;
  --scroll-thumb-active: #d59797;
  --bg: #1c1c1c;
  --top: #262626;
  --side: #212121;
  --card: #262626;
  --card-2: #2e2e2e;
  --card-3: #363636;
  --field: #1c1c1c;
  --control: #353535;
  --control-hover: #404040;
  --round-hover: #333;
  --profile-control: #303030;
  --profile-control-hover: #3a3a3a;
  --featured: #5b2f2f;
  --featured-hover: #683535;
  --header-glass: rgba(28, 28, 28, 0.86);
  --tab-indicator: #383838;
  --post-hover: #2a2a2a;
  --popup: #2f2f2f;
  --search-popup: #2b2b2b;
  --unread: #2f2626;
  --conversation-active: #3a2a2a;
  --account-active: #4a2b2b;
  --chat-bg: #222;
  --tabbar-glass: rgba(38, 38, 38, 0.92);
  --media-bg: #1b1b1b;
}

/* Yalnızca renkler geçiş yapar; ölçüler, kaydırma ve içerik yerinde kalır. */
html.theme-changing :where(body, .topbar, .side, .card, .phead, .tabs, .tabs .ind span, .post, .modal, .modal-head, .chat-body, .bubble, .tabbar, .menu, .emoji-panel, .mention-list, .search-suggest) {
  transition: background-color 380ms ease, border-color 380ms ease, box-shadow 380ms ease;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

/* Ortak yerel scrollbar: ölçü sabit, yalnızca thumb rengi değişir. */
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
:where(.side, .modal-wrap, .conv-list, .chat-body, .acc-list, .emoji-grid, .search-suggest, .mk-filters-body, .mk-mega-body) { scrollbar-gutter: stable; }
/* Standart thin Chromium'da WebKit ölçülerini bastırır; tek render yolu seç. */
@supports selector(::-webkit-scrollbar) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
  *::-webkit-scrollbar { width: var(--scroll-size); height: var(--scroll-size); }
  *::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 999px; }
  *::-webkit-scrollbar-thumb {
    min-width: 22px; min-height: 22px; border: 1px solid transparent; border-radius: 999px;
    background-color: var(--scroll-thumb); background-clip: padding-box;
    transition: background-color 180ms ease, border-width 180ms ease;
  }
  *::-webkit-scrollbar-thumb:active { background-color: var(--scroll-thumb-active); border-width: 0; }
  *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  *::-webkit-scrollbar-corner { background: transparent; }
  @media (hover: hover) {
    *::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); border-width: 0; }
    *::-webkit-scrollbar-thumb:active { background-color: var(--scroll-thumb-active); border-width: 0; }
  }
}
/* Firefox için desteklenen renk ve klavye odağı geri bildirimi. */
@supports not selector(::-webkit-scrollbar) {
  :where(html, .side, .modal-wrap, .conv-list, .chat-body, .acc-list, .emoji-grid, .search-suggest, .mk-filters-body, .mk-mega-body, textarea) { transition: scrollbar-color 200ms ease; }
  :focus-visible { scrollbar-color: var(--scroll-thumb-active) var(--scroll-track); }
}
@media (hover: none) and (pointer: coarse) {
  :root { --scroll-size: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *::-webkit-scrollbar-thumb { transition: none; }
}
@media (forced-colors: active) {
  * { scrollbar-width: auto !important; scrollbar-color: auto !important; }
  *::-webkit-scrollbar { width: revert; height: revert; }
  *::-webkit-scrollbar-thumb { background: ButtonText; border-color: Canvas; }
  *::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:active { background: Highlight; }
  *::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: Canvas; }
}
/* Frame reference: a stationary window of dots. The next dot grows into the
   8 x 24px capsule while the previous capsule shrinks and hops past it. */
@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  [data-dot-scroll] { scrollbar-width: none !important; }
  [data-dot-scroll]::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.dot-scrollbar { position: fixed; width: 24px; height: 24px; pointer-events: none; overflow: hidden; color: var(--scroll-pill); }
.dot-scrollbar[hidden] { display: none; }
[data-dot-drag] { scroll-snap-type: none !important; scroll-behavior: auto !important; }
.dot-scroll-handle { position: absolute; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 24px; min-height: 24px; border-radius: 999px; outline: none; cursor: grab; pointer-events: auto; touch-action: auto; }
.dot-scroll-handle i { position: absolute; display: block; width: 8px; height: 8px; border-radius: 999px; background: currentColor; pointer-events: none; }
.dot-scroll-handle i[hidden] { display: none; }
.dot-scrollbar.dragging .dot-scroll-handle { cursor: grabbing; }
.dot-scroll-handle:focus-visible { outline: 1px solid var(--scroll-pill); outline-offset: -1px; }
@media (forced-colors: active), (any-hover: none) {
  .dot-scrollbar { display: none; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
/* Kaydırılabilir kutuların içinde çerçeve kesilmesin diye içe doğru çiz */
.chips :focus-visible, .tabs :focus-visible, .acc-list :focus-visible, .recent :focus-visible, .opt-row :focus-visible, .seg :focus-visible, .conv-list :focus-visible { outline-offset: -2px; }
::placeholder { color: #8a8a8a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small-txt { font-size: 13px; }
.pad { padding: 16px; }
.pad-x { padding-left: 16px; padding-right: 16px; }
.pad-b { padding-bottom: 12px; }
.center { text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.01em; }

/* ---------- Animasyonlar ---------- */
/* Panel zemini açılış boyunca opak kalır; renk parlaması oluşmaz. */
@keyframes rise { from { transform: translateY(4px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes spinIn { from { transform: rotate(-180deg); } to { transform: none; } }
@keyframes popIn { from { transform: translateY(6px) scale(0.99); } to { transform: none; } }
@keyframes menuIn { from { transform: translateY(-4px) scale(0.99); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes badgeIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes shine { 0%, 60% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(480%) skewX(-20deg); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(192, 132, 252, 0.15); } 50% { box-shadow: 0 0 14px rgba(192, 132, 252, 0.45); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.25s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:hover { text-decoration: none; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn-light, .btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-light:hover:not(:disabled), .btn-accent:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(201, 69, 69, 0.3); }
.btn-ghost { background: var(--control); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--control-hover); }
.btn-danger { background: var(--accent); color: #fff; }
.danger-txt { color: var(--danger) !important; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.outline { width: 42px; height: 42px; background: var(--control); }
.icon-btn.outline:hover { background: var(--control-hover); }
.round-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 999px; background: var(--bg); color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.round-btn:hover { background: var(--round-hover); text-decoration: none; }
.round-btn.on { color: var(--accent-text); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--accent-text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.link-btn:hover:not(:disabled) { background: var(--accent-soft); }
.link-btn:disabled { opacity: 0.4; cursor: default; }
.link-btn.danger { color: var(--danger); }
.link-btn.center { display: flex; margin: 12px auto 0; }

.follow { min-width: 98px; }
.follow.big { min-width: 124px; }
.follow.on { background: var(--control); color: var(--text); }
.follow .unf { display: none; }
.follow.on:hover { background: rgba(217, 79, 79, 0.18); color: var(--accent-text); }
.follow.on:hover .fol { display: none; }
.follow.on:hover .unf { display: inline; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--side);
  animation: badgeIn 0.35s var(--spring) both;
}

/* ---------- Etiketler ---------- */
.chip {
  display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
}
.chip.lg { height: 24px; padding: 0 10px; font-size: 11.5px; }
.chip.ranker { background: rgba(245, 184, 76, 0.14); color: #f5b84c; }
.chip.official { background: rgba(77, 163, 255, 0.15); color: var(--blue); }
.chip.arch { background: rgba(255, 255, 255, 0.08); color: #b0b0b0; text-transform: none; letter-spacing: 0; }
.chip.high {
  position: relative; overflow: hidden; gap: 5px;
  background: rgba(192, 132, 252, 0.16); color: #c99bff;
  animation: glow 3.2s ease-in-out infinite;
}
.chip.high::before {
  content: ''; width: 8px; height: 8px; background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.chip.high::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(235, 215, 255, 0.5), transparent);
  transform: translateX(-140%) skewX(-20deg); animation: shine 3.2s ease-in-out infinite; will-change: transform;
}
.verified { flex: none; color: var(--blue); }

/* ---------- Avatar ---------- */
.avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 999px; background: #4a4a55; color: #fff; font-weight: 700; user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
a.avatar:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- İskelet ---------- */
.app { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  height: var(--top-h); padding: 0 20px; background: var(--top);
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; width: calc(var(--side-w) - 40px); color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; }
.logo-txt { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-text); }
.logo-txt .net { color: var(--text); font-weight: 600; }
.top-search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 280px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--bg); color: #8a8a8a; border: 1px solid transparent; transition: border-color 0.2s ease;
}
.top-search:focus-within { border-color: var(--accent); color: var(--accent-text); }
.top-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-compose { min-height: 40px; }
.top-me {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 6px; border: 0; border-radius: 999px;
  background: var(--profile-control); color: var(--text); cursor: pointer; transition: background-color 0.2s ease;
}
.top-me:hover { background: var(--profile-control-hover); }
.top-me-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; max-width: 150px; }
.top-me-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.top-me-sub { font-size: 12px; color: var(--muted); }

.shell { display: flex; align-items: flex-start; }
.side {
  display: flex; flex-direction: column;
  position: sticky; top: var(--top-h); flex: none; width: var(--side-w); height: calc(100vh - var(--top-h));
  overflow-y: auto; background: var(--side); padding: 18px 16px 24px;
}
.side-sec { display: flex; flex: none; flex-direction: column; gap: 2px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-sec:last-of-type { border-bottom: 0; margin-bottom: 0; }
.side-h { margin: 0 0 8px 12px; font-size: 13px; font-weight: 600; color: #b8b8b8; }
.side-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 4px 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.side-item:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.side-item:active { transform: scale(0.98); }
.side-item.on { background: rgba(255, 255, 255, 0.06); }
.side-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #d6d6d6; }
.side-ico .badge { position: absolute; top: -7px; right: -9px; }
.side-sec.round .side-item { min-height: 50px; }
.side-sec.round .side-ico { width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: #fff; transition: background-color 0.2s ease, transform 0.25s var(--spring); }
.side-sec.round .side-item:hover .side-ico { background: var(--accent-hover); transform: scale(1.06); }
.side-sec.round .side-item.on .side-ico { box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.28); }
.side-sec.round .side-ico .badge { top: -4px; right: -6px; background: #fff; color: var(--accent); }

/* Tema seçimi: Ayarlar > Görünüm. */
.theme-settings { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
.theme-caption { color: var(--muted); font-size: 12px; font-weight: 600; }
.theme-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.theme-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 136px; padding: 12px; border: 2px solid var(--line-2); border-radius: 14px; background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 220ms ease, color 200ms ease, background-color 380ms ease; }
.theme-option:hover { border-color: var(--muted); color: var(--text); }
.theme-option[aria-pressed="true"] { border-color: var(--accent-text); color: var(--text); }
.theme-option:focus-visible { outline-offset: 2px; }
.theme-check { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(0.65); pointer-events: none; transition: opacity 180ms ease, transform 220ms var(--ease); }
.theme-option[aria-pressed="true"] .theme-check { opacity: 1; transform: scale(1); }
.theme-preview { --preview-bg: #0d0d0d; --preview-side: #181818; --preview-card: #202020; --preview-line: #2b2b2b; --preview-selected: var(--accent); display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 6px; width: 100%; height: 78px; padding: 9px; overflow: hidden; border: 1px solid var(--preview-line); border-radius: 7px; background: var(--preview-bg); }
.theme-preview.classic { --preview-bg: #1c1c1c; --preview-side: #262626; --preview-card: #2e2e2e; --preview-line: #363636; --preview-selected: #777777; }
.theme-preview-nav { display: flex; flex-direction: column; gap: 4px; }
.theme-preview-nav > span { flex: none; height: 4px; border-radius: 2px; background: var(--preview-side); }
.theme-preview-nav > span:nth-child(2) { background: var(--preview-selected); }
.theme-preview-posts { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; }
.theme-preview-posts > span { display: block; height: 14px; border-radius: 3px; background: var(--preview-card); }
.theme-preview-posts > span:last-child { width: 76%; }

.content { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: flex-start; gap: 16px; padding: 14px 20px 40px; }
.main { width: var(--main-w); max-width: 100%; flex: 0 1 var(--main-w); min-width: 0; min-height: calc(100vh - var(--top-h) - 54px); }
.main.wide { width: 1000px; flex-basis: 1000px; }
.rail { position: sticky; top: calc(var(--top-h) + 14px); width: var(--rail-w); flex: none; display: flex; flex-direction: column; gap: 14px; }
.foot { margin: 0; padding: 0 8px; font-size: 13px; color: var(--muted); }

.card { background: var(--card); border-radius: var(--r); }
.side-card { padding: 16px 12px 12px; }
.side-card h2 { margin: 0 6px 12px; font-size: 15px; font-weight: 700; }
.card-note { margin: 0 6px 6px; font-size: 14px; line-height: 20px; color: var(--muted); }
.tag-row {
  display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--card-2); color: var(--text); transition: background-color 0.2s ease, transform 0.2s ease;
}
.tag-row:first-of-type { margin-top: 0; }
.tag-row:hover { background: var(--card-3); text-decoration: none; transform: translateX(2px); }
.tag-row.featured { background: var(--featured); }
.tag-row.featured:hover { background: var(--featured-hover); }
.tag-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; }
.tag-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.tag-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-sub { font-size: 11.5px; color: #bdbdbd; }
.mini-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--card-2); }
.mini-row:first-of-type { margin-top: 0; }
.mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; color: var(--text); }
.mini-txt:hover { text-decoration: none; }
.mini-txt:hover .mini-name { text-decoration: underline; }
.mini-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: #bdbdbd; }
.mini-row .follow { min-width: 0; min-height: 32px; padding: 0 12px; font-size: 13px; }

.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid transparent; color: #8a8a8a; transition: border-color 0.25s ease;
}
.conv-list .search-box, .dm-list .search-box, .modal .search-box { background: var(--field); }
.search-box:focus-within { border-color: var(--accent); color: var(--accent-text); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-box input::-webkit-search-cancel-button { filter: invert(0.6); }

.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.person-row.big { margin-bottom: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--card); align-items: flex-start; animation: rise 0.45s var(--ease) both; }
.person-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); }
.person-txt:hover { text-decoration: none; }
.person-txt:hover .nm { text-decoration: underline; }
.person-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; }
.person-txt .muted { font-size: 14px; }
.person-bio { margin-top: 4px; color: var(--text-2); font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-row .follow { min-width: 0; min-height: 34px; padding: 0 16px; font-size: 14px; }
.nameline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.nm { font-weight: 700; color: var(--text); }

/* ---------- Sayfa başlığı ve sekmeler ---------- */
.phead {
  position: sticky; top: var(--top-h); z-index: 20; margin: 0 -6px 12px; padding: 0 6px;
  background: var(--header-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.phead-row { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.phead-row > .icon-btn:first-child { margin-left: -6px; background: var(--card); }
.phead-title { flex: 1; min-width: 0; }
.phead h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phead .sub { margin: 1px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phead-right { display: flex; align-items: center; gap: 6px; flex: none; max-width: 100%; }
.phead > .tabs, .phead > .pad-x, .phead > form { margin-bottom: 10px; }
.phead > .pad-x, .phead > form.pad-x { padding-left: 0; padding-right: 0; }
.tabs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 5px; border-radius: 14px; background: var(--card); }
.tabs button {
  position: relative; z-index: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: color 0.3s ease; white-space: nowrap;
}
.tabs button:hover { color: var(--text-2); }
.tabs button.on { color: var(--text); }
.tabs .ind { position: absolute; left: 5px; top: 5px; bottom: 5px; display: flex; pointer-events: none; transition: transform 0.5s var(--ease); }
.tabs .ind { width: calc((100% - 10px) / var(--n, 2)); }
.tabs .ind span { flex: 1; border-radius: 10px; background: var(--tab-indicator); }
.tabs.big { padding: 0; background: transparent; grid-auto-columns: auto; gap: 4px; }
.tabs.big button { min-height: 44px; padding: 0 14px; font-size: 21px; font-weight: 700; color: #b5b5b5; }
.tabs.big button.on { color: var(--text); background: var(--card); }
.tabs.big .ind { display: none; }
.main > .tabs { margin-bottom: 12px; }

/* ---------- Durumlar ---------- */
.spinner { width: 28px; height: 28px; margin: 28px auto; border-radius: 999px; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--accent-text); animation: spin 0.8s linear infinite; }
.spinner.small { width: 18px; height: 18px; border-width: 2px; margin: 0; }
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100vh; color: var(--muted); }
.empty { padding: 48px 28px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--r); animation: rise 0.5s var(--ease) both; }
.empty h3 { margin: 12px 0 6px; color: var(--text); font-size: 21px; font-weight: 700; }
.empty p { margin: 0 auto 16px; max-width: 360px; line-height: 22px; }
.load-error { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: var(--muted); }
.sentinel { height: 1px; }
.fresh-wrap { position: sticky; top: calc(var(--top-h) + 64px); z-index: 15; height: 0; display: flex; justify-content: center; }
.fresh-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); cursor: pointer;
  animation: dropIn 0.45s var(--spring) both;
}

/* ---------- Gönderi kartı ---------- */
.post {
  position: relative; margin-bottom: 12px; padding: 16px 18px 12px; border-radius: var(--r); background: var(--card);
  cursor: pointer; transition: background-color 0.25s ease; animation: rise 0.5s var(--ease) both;
}
.post:hover { background: var(--post-hover); }
.post.focus { cursor: default; }
.post.focus:hover { background: var(--card); }
.post.has-line { margin-bottom: 6px; }
.post-head { display: flex; align-items: flex-start; gap: 12px; }
.who { flex: 1; min-width: 0; padding-right: 30px; }
.who-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 21px; }
.who-top .name { color: var(--text); font-weight: 700; font-size: 15.5px; }
.handle { color: var(--muted); font-size: 14px; }
.post.focus .who-top .handle { display: none; }
.when { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
a.when:hover { color: var(--text-2); }
.post-menu { position: absolute; top: 12px; right: 12px; }
.ctx { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ctx a { color: var(--muted); }
.ctx.sched { color: var(--accent-text); }
.reply-to { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.text { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 23px; font-size: 15.5px; color: #ededed; }
.text.big { font-size: 18px; line-height: 27px; }
.text.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.reply-ctx-body .text.clamp { -webkit-line-clamp: 5; margin-top: 4px; }
.see-more { margin: 4px 0 0; padding: 2px 0; border: 0; background: transparent; color: var(--accent-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.see-more:hover { text-decoration: underline; }
.hash { color: var(--accent-text); }
.post-deleted { margin-bottom: 12px; padding: 18px; border-radius: var(--r); background: var(--card); color: var(--muted); }

.actions { display: flex; align-items: center; gap: 4px; margin: 12px -8px 0; }
.act-gap { flex: 1; }
.act {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px;
  background: transparent; color: #d4d4d4; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.act b { font-weight: 700; color: var(--text); }
.act:hover { background: rgba(255, 255, 255, 0.05); }
.act-ico { display: inline-flex; align-items: center; justify-content: center; }
.act.lk .act-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); transition: background-color 0.25s ease, color 0.25s ease; }
.act.lk:hover .act-ico { background: rgba(217, 79, 79, 0.28); }
.act.lk.on .act-ico { background: var(--accent); color: #fff; }
.act.lk.on svg { fill: currentColor; }
.act.rep:hover { color: var(--text); }
.act.rp.on, .act.rp:hover { color: var(--repost); }
.act.rp.on b { color: var(--repost); }
.act.bm:hover, .act.bm.on { color: var(--accent-text); }
.act.bm.on svg { fill: currentColor; }
.act.pulse.lk svg, .act.pulse.bm svg { animation: pop 0.45s var(--spring); }
.act.pulse.rp svg { animation: spinIn 0.55s var(--ease); }

.focus-time { margin-top: 14px; padding-bottom: 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; }
.post.focus .actions { margin-top: 8px; }

.media { margin-top: 12px; display: grid; gap: 4px; border-radius: 12px; overflow: hidden; background: var(--media-bg); max-height: 500px; }
.media.n1 { grid-template-columns: 1fr; }
.media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.media.n3 .media-item:first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.media-item { display: block; min-height: 0; padding: 0; border: 0; background: var(--media-bg); cursor: zoom-in; overflow: hidden; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.media.n1 .media-item { height: 100%; }
.media.n1 .media-item img { object-fit: contain; }
.media-item:hover img { transform: scale(1.02); }

.poll { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; cursor: default; }
.poll-opt {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 14px;
  border: 1px solid rgba(239, 111, 111, 0.55); border-radius: 10px; background: transparent;
  color: var(--text); font-weight: 600; text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color 0.35s ease, background-color 0.2s ease;
}
.poll-opt:hover:not(.done) { background: var(--accent-soft); }
.poll-opt.done { border-color: transparent; background: var(--card-2); cursor: default; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); transition: width 0.9s var(--ease); }
.poll-opt.mine .poll-bar { background: rgba(217, 79, 79, 0.4); }
.poll-label, .poll-pct { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.poll-pct { font-variant-numeric: tabular-nums; }
.poll-meta { font-size: 13px; color: var(--muted); }

/* ---------- Açılır menü ---------- */
.menu-anchor { position: relative; display: inline-flex; }
.icon-btn.more { width: 34px; height: 34px; color: var(--muted); }
.icon-btn.more:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.menu {
  position: absolute; z-index: 60; top: calc(100% + 4px); min-width: 220px; padding: 6px; border-radius: 14px;
  background: var(--popup); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: menuIn 0.2s var(--ease) both; cursor: default;
}
.menu.right { right: 0; }
.menu.left { left: 0; }
.menu.up { top: auto; bottom: calc(100% + 6px); right: 0; }
.menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text); font-weight: 600; text-align: left; cursor: pointer;
}
.menu button:hover { background: rgba(255, 255, 255, 0.07); }
.menu button.danger { color: var(--danger); }

/* ---------- Yazma kutusu ---------- */
.composer { margin-bottom: 12px; padding: 16px 18px 12px; border-radius: var(--r); background: var(--card); }
.composer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.ch-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: #f2f2f2; color: var(--accent); }
.composer-row { display: flex; gap: 12px; }
.composer-side { flex: none; padding-top: 2px; }
.composer-main { flex: 1; min-width: 0; }
.composer textarea {
  display: block; width: 100%; min-height: 48px; resize: none; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 17px; line-height: 25px; padding: 8px 0; overflow-y: auto;
}
.composer.in-modal { margin: 0; background: transparent; border-radius: 0; }
.composer.reply textarea, .composer.inline-reply textarea { font-size: 16px; }
.as-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.as-line b { color: var(--text); }
.as-line .link-btn { min-height: 26px; font-size: 13px; }
.thumbs { display: grid; gap: 8px; margin: 8px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thumbs.n1 { grid-template-columns: minmax(0, 1fr); }
.thumb { position: relative; border-radius: 12px; overflow: hidden; background: var(--media-bg); aspect-ratio: 4 / 3; animation: popIn 0.35s var(--ease) both; }
.thumbs.n1 .thumb { aspect-ratio: auto; max-height: 420px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs.n1 .thumb img { object-fit: contain; }
.thumb-x {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer;
}
.thumb-x:hover { background: var(--accent); }
.poll-builder { margin: 8px 0; padding: 12px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 8px; animation: popIn 0.35s var(--ease) both; }
.pb-row { display: flex; align-items: center; gap: 6px; }
.pb-row .input { min-height: 42px; }
.pb-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-dur { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.pb-dur select { min-height: 36px; width: auto; padding: 0 30px 0 10px; }
.sched-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 0; padding: 2px 4px 2px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600;
}
.sched-pill .icon-btn { width: 30px; height: 30px; color: var(--accent-text); }
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.tools { display: flex; align-items: center; margin-left: -8px; }
.tool, .tools .icon-btn.more {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 999px;
  background: transparent; color: var(--accent-text); cursor: pointer; transition: background-color 0.2s ease, opacity 0.2s ease;
}
.tool:hover:not(:disabled), .tools .icon-btn.more:hover { background: var(--accent-soft); color: var(--accent-text); }
.tool:disabled { opacity: 0.35; cursor: default; }
.tool-ico { display: inline-flex; }
.tools-right { display: flex; align-items: center; gap: 12px; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Pencereler ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; overflow-y: auto; background: rgba(0, 0, 0, 0.66);
  overscroll-behavior: contain;
}
.modal-wrap.center { align-items: center; }
.modal { width: 100%; max-width: 600px; background: var(--card); border-radius: 18px; outline: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: popIn 0.32s var(--ease) both; }
.modal.small { max-width: 380px; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px 6px 10px; background: var(--card); border-radius: 18px 18px 0 0; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; }
.modal-head-gap { width: 38px; }
.modal-body { padding: 14px 18px 20px; }
.confirm { padding: 24px; }
.confirm h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.confirm > p { margin: 0 0 8px; color: var(--muted); line-height: 21px; }
.confirm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.reply-ctx { display: flex; gap: 12px; padding: 14px 18px 0; }
.reply-ctx-side { display: flex; flex-direction: column; align-items: center; }
.reply-ctx-side .thread-line { flex: 1; width: 2px; margin-top: 4px; min-height: 20px; background: var(--line-2); border-radius: 2px; }
.reply-ctx-body { flex: 1; min-width: 0; padding-bottom: 8px; }
.reply-to-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.lightbox { background: rgba(0, 0, 0, 0.92); padding: 0; align-items: center; }
.modal.lb { max-width: none; width: 100%; height: 100%; background: transparent; box-shadow: none; border-radius: 0; animation: none; }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 16px; outline: 0; }
.lightbox-inner img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: zoom-out; animation: popIn 0.3s var(--ease) both; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(40, 40, 40, 0.8) !important; color: #fff; width: 44px; height: 44px; }
.lb-close { top: 12px; left: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: 14px; }
.folder-list { padding: 8px 10px 14px; }
.folder-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font-weight: 600; text-align: left; cursor: pointer;
}
.folder-row span:first-of-type { flex: 1; }
.folder-row:hover { background: rgba(255, 255, 255, 0.06); }
.folder-row.on { background: var(--accent-soft); }
.folder-row.add { color: var(--accent-text); }
.ok { color: var(--accent-text); flex: none; }

/* ---------- Bildirim balonları ---------- */
.toasts { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px; pointer-events: auto;
  background: var(--accent); color: #fff; font-weight: 500; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.4s var(--ease) both;
}
.toast.error { background: #3a3a3a; color: #ffb3b3; box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.4), 0 14px 40px rgba(0, 0, 0, 0.55); }
.toast button { min-height: 30px; padding: 0 4px; border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Formlar ---------- */
.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #b8b8b8; }
.input {
  display: block; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
  background: var(--field); color: var(--text); outline: 0; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.2); }
.input.bad { border-color: var(--danger); }
textarea.input { padding: 12px 14px; min-height: 96px; line-height: 21px; resize: vertical; }
select.input { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #979797 50%), linear-gradient(135deg, #979797 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type='datetime-local'].input { color-scheme: dark; }
.hint { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.hint.err { color: var(--danger); }
.hint.ok { color: var(--repost); }
.form-err { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 122, 122, 0.12); color: var(--danger); font-size: 14px; }
.prefix-input { position: relative; display: flex; align-items: center; }
.prefix-input > span { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.prefix-input .input { padding-left: 30px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
  background: var(--field); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.opt:hover { border-color: rgba(255, 255, 255, 0.24); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.swatches { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.swatch { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.swatch span { width: 28px; height: 28px; border-radius: 999px; transition: box-shadow 0.25s ease, transform 0.25s var(--spring); }
.swatch:hover span { transform: scale(1.1); }
.swatch.on span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #f2f2f2; }

/* ---------- Giriş ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; border-radius: 20px; background: var(--card); animation: popIn 0.5s var(--ease) both; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; color: var(--accent-text); }
.auth-logo svg { color: var(--accent-text); }
.auth-logo .net { color: var(--text); font-weight: 600; }
.auth h1 { margin: 24px 0 6px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.auth-sub { margin: 0; color: var(--muted); line-height: 21px; }
.auth-form { margin-top: 8px; }
.auth-form .btn.block { margin-top: 22px; min-height: 48px; font-size: 16px; }

/* ---------- Profil ---------- */
.prof-card { margin-bottom: 12px; border-radius: var(--r); background: var(--card); overflow: hidden; animation: rise 0.45s var(--ease) both; }
.cover { height: 200px; background-color: #3a2424; background-image: linear-gradient(135deg, rgba(201, 69, 69, 0.35), rgba(201, 69, 69, 0) 60%); background-size: cover; background-position: center; }
.cover[style*='background-image'] { background-color: #1b1b1b; }
.prof { padding: 0 18px 18px; }
.prof-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.prof-avatar { width: 128px; height: 128px; margin-top: -64px; border: 5px solid var(--card); font-size: 42px; }
.prof-actions { display: flex; align-items: center; gap: 8px; padding-top: 14px; flex-wrap: wrap; justify-content: flex-end; }
.prof-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.prof-name h2 { margin: 0; font-size: 24px; font-weight: 700; }
.prof-handle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.follows-you, .kind-pill { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text-2); font-size: 12px; font-weight: 600; }
.kind-pill { background: var(--accent-soft); color: var(--accent-text); }
.archived-banner { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); color: var(--text-2); line-height: 20px; }
.prof-bio { margin-top: 12px; }
.prof-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); }
.prof-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prof-counts { display: flex; gap: 20px; margin-top: 12px; }
.prof-counts a { color: var(--muted); }
.prof-counts b { color: var(--text); }
.edit-cover { position: relative; height: 170px; margin: 14px 18px 0; border-radius: 14px; background-color: #3a2424; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 12px; }
.edit-avatar-row { display: flex; align-items: center; gap: 16px; }
.edit-avatar-row .avatar { display: flex; }
.img-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edit-cover .img-pick .btn { background: rgba(0, 0, 0, 0.6); }
.img-pick label.btn { cursor: pointer; }

/* ---------- Bildirimler ---------- */
.nt { position: relative; display: flex; gap: 12px; margin-bottom: 10px; padding: 16px 40px 16px 16px; border-radius: var(--r); background: var(--card); cursor: pointer; transition: background-color 0.4s ease; animation: rise 0.45s var(--ease) both; }
.nt:hover { background: var(--post-hover); }
.nt.unread { background: var(--unread); }
.nt-post.unread .post { background: var(--unread); }
.nt-icon { flex: none; width: 40px; display: flex; justify-content: center; padding-top: 4px; }
.nt-icon.like { color: var(--accent-text); }
.nt-icon.repost { color: var(--repost); }
.nt-icon.follow { color: var(--blue); }
.nt-body { flex: 1; min-width: 0; }
.nt-avatars { display: flex; gap: 4px; flex-wrap: wrap; }
.nt-text { margin: 8px 0 0; line-height: 22px; color: var(--text-2); }
.nt-text b { color: var(--text); }
.nt-recipient { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 13px; color: var(--accent-text); font-weight: 600; }
.nt-recipient.pad-x { margin: 0 0 6px; padding: 0 4px; }
.nt-excerpt { margin: 6px 0 0; color: var(--muted); line-height: 21px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-dot { position: absolute; top: 20px; right: 18px; width: 9px; height: 9px; border-radius: 999px; background: var(--accent-text); transform: scale(0); transition: transform 0.45s var(--spring); }
.nt.unread .nt-dot { transform: scale(1); }

/* ---------- Mesajlar ---------- */
.msg-wrap { display: flex; gap: 14px; height: calc(100vh - var(--top-h) - 28px); height: calc(100dvh - var(--top-h) - 28px); }
.content:has(.msg-wrap) { padding-bottom: 14px; }
.main:has(> .msg-wrap) { min-height: 0; }
.conv-list { flex: 0 0 360px; min-width: 0; overflow-y: auto; border-radius: var(--r); background: var(--card); padding-bottom: 8px; }
.conv-list .phead { position: sticky; top: 0; margin: 0; padding: 4px 14px 0; background: var(--card); border-radius: var(--r) var(--r) 0 0; }
.conv-list .phead .pad-x { padding: 0; }
.conv-row { position: relative; display: flex; align-items: center; gap: 12px; margin: 2px 8px; min-height: 72px; padding: 10px; border-radius: 12px; color: var(--text); transition: background-color 0.2s ease; }
.conv-row:hover { background: var(--card-2); text-decoration: none; }
.conv-row.on { background: var(--conversation-active); }
.conv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-top, .conv-bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
.conv-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { margin-left: auto; flex: none; font-size: 12.5px; }
.conv-prev { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-row.unread .conv-prev { color: var(--text); font-weight: 600; }
.conv-as { font-size: 12px; color: var(--accent-text); font-weight: 600; }
.conv-stack { position: relative; flex: none; display: inline-block; }
.conv-stack .s1 { position: absolute; left: 0; top: 0; }
.conv-stack .s2 { position: absolute; right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--card); }
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); overflow: hidden; }
.empty-chat { justify-content: center; }
.empty-chat .empty { background: transparent; }
.chat-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-back { display: none; margin-left: -6px; }
.chat-title { flex: 1; min-width: 0; }
.chat-title h2 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title p { margin: 1px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title p a { color: var(--muted); }
.chat-body { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; padding: 8px 16px 12px; background: var(--chat-bg); }
.chat-inner { display: flex; flex-direction: column; }
.day-sep { align-self: center; margin: 16px 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; max-width: 80%; animation: popIn 0.32s var(--ease) both; }
.msg.first { margin-top: 10px; }
.msg.out { align-self: flex-end; justify-content: flex-end; transform-origin: bottom right; }
.msg.in { align-self: flex-start; transform-origin: bottom left; }
.msg-av { flex: none; width: 28px; }
.msg-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg.out .msg-col { align-items: flex-end; }
.msg-name { margin: 0 0 2px 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bubble { padding: 9px 14px; border-radius: 18px; font-size: 15px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.in .bubble { background: var(--card-3); color: var(--text); }
.msg.out .bubble { background: var(--accent); color: #fff; }
.msg.in.last .bubble { border-bottom-left-radius: 6px; }
.msg.out.last .bubble { border-bottom-right-radius: 6px; }
.bubble-img { display: block; max-width: 280px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--media-bg); cursor: zoom-in; }
.bubble-img img { width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.msg-time { font-size: 11.5px; color: var(--muted); padding: 0 6px; }
.msg-status { align-self: flex-end; margin: 4px 4px 0; font-size: 12px; font-weight: 600; color: var(--muted); animation: fade 0.35s ease both; }
.chat-attach { position: relative; align-self: flex-start; margin: 8px 16px 0 64px; width: 120px; border-radius: 12px; overflow: hidden; animation: popIn 0.3s var(--ease) both; }
.chat-attach img { width: 100%; height: 90px; object-fit: cover; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.chat-input .tool { margin-bottom: 3px; }
.chat-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 8px; padding: 3px 3px 3px 16px; border-radius: 24px; background: var(--field); border: 1px solid transparent; transition: border-color 0.25s ease; }
.chat-field:focus-within { border-color: var(--accent); }
.chat-field textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; padding: 9px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); font-size: 15px; line-height: 21px; }
.send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; transition: transform 0.2s var(--spring), opacity 0.25s ease; }
.send:hover:not(:disabled) { transform: scale(1.08); }
.send:active:not(:disabled) { transform: scale(0.92); }
.send:disabled { opacity: 0.35; cursor: default; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.picked-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text); font-weight: 600; cursor: pointer; }
.picked-chip:hover { background: var(--accent-soft); }

/* ---------- Hesap listeleri (değiştirici, yeni mesaj) ---------- */
.switcher-body { padding: 10px 16px 8px; }
.sec-label { margin: 16px 4px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.recent { display: flex; gap: 4px; }
.recent-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.recent-item:hover { background: rgba(255, 255, 255, 0.06); }
.recent-item .avatar { transition: transform 0.3s var(--spring); }
.recent-item:hover .avatar { transform: scale(1.06); }
.recent-item span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding-right: 30px; max-height: 52vh; overflow-y: auto; }
.acc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 10px; border: 0; border-radius: 12px; background: var(--card-2); color: var(--text); text-align: left; cursor: pointer; transition: background-color 0.15s ease; }
.acc:hover { background: var(--card-3); }
.acc.on { background: var(--account-active); }
.acc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; }
.acc-text .muted { font-size: 13px; }
.switcher-foot { display: flex; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.switcher-foot .btn { flex: 1; }

/* ---------- Yer işaretleri ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease;
}
.chip-btn:hover { background: var(--card-2); }
.chip-btn .n { font-weight: 600; color: var(--muted); transition: color 0.3s ease; }
.chip-btn.on { background: var(--accent); color: #fff; }
.chip-btn.on .n { color: rgba(255, 255, 255, 0.8); }
.chip-btn.add { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: #c0c0c0; }
.bm-item { position: relative; }
.bm-folder {
  position: absolute; z-index: 2; top: 14px; right: 56px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border: 0; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
}
.bm-folder:hover { color: var(--text); background: var(--card-3); }
.bm-item .post .who { padding-right: 150px; }
.search-home { padding: 0; }

/* ---------- Ayarlar ---------- */
.settings { display: flex; flex-direction: column; gap: 12px; }
.set-card { padding: 18px; border-radius: var(--r); background: var(--card); }
.set-card h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.set-card > p { line-height: 21px; }
.kv { margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- DM sayfaları ---------- */
.dm-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.dm-list { flex: 999 1 520px; min-width: 0; border-radius: var(--r); background: var(--card); padding: 4px 4px 12px; }
.dm-side { flex: 1 1 340px; min-width: 0; max-width: 420px; position: sticky; top: calc(var(--top-h) + 70px); }
.dm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; }
.dm-toolbar .search-box { flex: 1 1 220px; }
.seg { position: relative; flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 240px; padding: 4px; border-radius: 999px; background: var(--field); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 999px; background: var(--accent); transition: transform 0.45s var(--ease); }
.seg button { position: relative; z-index: 1; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.3s ease; }
.seg button.on { color: #fff; }
.npc-row, .player-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 8px; padding: 10px; border-radius: 12px; background: var(--card-2); transition: background-color 0.25s ease, box-shadow 0.3s ease, opacity 0.3s ease; animation: rise 0.45s var(--ease) both; }
.player-row { margin: 0 0 10px; padding: 14px 16px; border-radius: var(--r); background: var(--card); }
.npc-row:hover { background: var(--card-3); }
.npc-row.editing { box-shadow: inset 0 0 0 2px var(--accent); }
.npc-row.arch, .player-row.arch { opacity: 0.7; }
.npc-row.arch:hover, .player-row.arch:hover { opacity: 1; }
.npc-main { flex: 1 1 200px; min-width: 0; }
.npc-main .nm:hover { text-decoration: underline; }
.npc-main .muted { margin-top: 2px; font-size: 13px; }
.cur-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.npc-stats { flex: none; width: 140px; font-size: 13px; line-height: 18px; }
.npc-actions { flex: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.npc-actions .icon-btn { width: 40px; height: 40px; color: #bdbdbd; background: rgba(255, 255, 255, 0.04); }
.npc-actions .icon-btn.go:hover:not(:disabled) { color: #fff; background: var(--accent); }
.npc-actions .icon-btn.warn:hover { color: var(--warn); background: rgba(255, 179, 64, 0.14); }
.npc-form { padding: 18px; border-radius: var(--r); background: var(--card); scroll-margin-top: calc(var(--top-h) + 16px); }
.npc-form h2 { margin: 0; font-size: 19px; font-weight: 700; }
.npc-form > .muted { margin: 4px 0 14px; }
.npc-preview { border-radius: 14px; overflow: hidden; background: var(--field); }
.npc-prev-cover { height: 72px; background-color: #3a2424; background-image: linear-gradient(135deg, rgba(201, 69, 69, 0.35), rgba(201, 69, 69, 0) 60%); background-size: cover; background-position: center; }
.npc-prev-body { padding: 0 14px 14px; }
.npc-prev-body .avatar { display: flex; margin-top: -32px; border: 3px solid var(--field); transition: background-color 0.3s ease; }
.npc-prev-body .nameline { margin-top: 8px; font-size: 17px; }
.npc-prev-bio { margin: 8px 0 0; font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.upload-row { display: flex; gap: 10px; }
.upload {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 12px;
  color: #bdbdbd; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.upload:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.upload-clear { display: flex; gap: 8px; margin-top: 6px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions .btn { flex: 1; }
.cred { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--field); }
.cred div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cred b { font-size: 16px; }
.player-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.st { padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.st.on { background: rgba(79, 210, 122, 0.14); color: var(--repost); }
.st.wait { background: rgba(255, 179, 64, 0.14); color: var(--warn); }
.st.off { background: rgba(255, 122, 122, 0.14); color: var(--danger); }
.sched-item { margin-bottom: 12px; border-radius: var(--r); background: var(--card); }
.sched-item .post { margin-bottom: 0; }
.sched-actions { display: flex; gap: 8px; padding: 0 18px 16px; }

/* ---------- Telefon öğeleri ---------- */
.tabbar, .fab { display: none; }
.drawer-wrap { padding: 0; align-items: stretch; justify-content: flex-start; background: rgba(0, 0, 0, 0.55); }
.modal.drawer-modal { width: min(320px, 86vw); max-width: none; min-height: 100%; border-radius: 0; background: var(--side); animation: slideIn 0.32s var(--ease) both; }
.drawer { display: flex; flex-direction: column; gap: 12px; min-height: 100vh; min-height: 100dvh; padding: 16px 12px calc(16px + var(--safe-b)); }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 4px; }
.drawer-who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.me-name { font-weight: 700; font-size: 16px; }
.drawer-switch { margin: 4px 4px 0; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav button { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; }
.drawer-nav button:hover { background: rgba(255, 255, 255, 0.05); }
.drawer-nav .side-ico { width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #fff; }
.drawer-nav .side-h { margin: 14px 0 4px 12px; }

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width: 1279px) {
  .rail { display: none; }
}
@media (max-width: 1099px) {
  .top-me-txt { display: none; }
  .top-me { padding: 0 8px 0 6px; }
}
@media (max-width: 999px) {
  :root { --side-w: 84px; }
  .logo { width: auto; }
  .side { padding: 16px 10px; }
  .side .side-h, .side .side-txt { display: none; }
  .side-sec { align-items: center; padding-bottom: 12px; margin-bottom: 12px; }
  .side-item { width: auto; justify-content: center; padding: 6px; }
  .side-sec:not(.round) .side-item { width: 44px; height: 44px; }
  .top-compose span { display: none; }
  .top-compose { width: 42px; padding: 0; }
  .conv-list { flex-basis: 300px; }
}
@media (max-width: 899px) {
  .msg-wrap.has-open .conv-list { display: none; }
  .msg-wrap:not(.has-open) .chat { display: none; }
  .conv-list { flex: 1 1 auto; }
  .chat-back { display: inline-flex; }
  .dm-side { max-width: none; position: static; }
  .top-search { max-width: 220px; }
}
@media (max-width: 699px) {
  :root { --top-h: 58px; }
  .topbar { gap: 10px; padding: 0 14px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-txt { font-size: 21px; }
  .top-search, .top-home, .top-compose, .top-me { display: none; }
  .side, .home-composer { display: none; }
  .content { padding: 10px 10px calc(84px + var(--safe-b)); }
  .main.wide { padding-bottom: 0; }
  .phead { margin: 0 -10px 10px; padding: 0 10px; }
  .phead h1 { font-size: 21px; }
  .phead-right { width: 100%; }
  .tabs.big { width: 100%; grid-auto-columns: minmax(0, 1fr); }
  .tabs.big button { font-size: 17px; padding: 0 8px; }
  .post, .composer { padding: 14px 14px 10px; }
  .act .lbl { display: none; }
  .act.bm .lbl { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; align-items: center;
    height: calc(60px + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--tabbar-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .tabbar a, .tab-me { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 52px; border: 0; border-radius: 14px; background: transparent; color: #bdbdbd; cursor: pointer; }
  .tabbar a.on { color: var(--accent-text); }
  .tabbar .badge { position: absolute; top: 6px; left: 30px; box-shadow: 0 0 0 2px var(--top); }
  .fab {
    position: fixed; right: 16px; bottom: calc(76px + var(--safe-b)); z-index: 41; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); cursor: pointer; transition: transform 0.2s var(--spring);
  }
  .fab:active { transform: scale(0.92); }
  .msg-wrap { height: calc(100dvh - var(--top-h) - 80px - var(--safe-b)); }
  .content:has(.msg-wrap) { padding-bottom: calc(70px + var(--safe-b)); }
  .modal-wrap:not(.center):not(.lightbox):not(.drawer-wrap) { padding: 0; align-items: stretch; }
  .modal-wrap:not(.center):not(.lightbox):not(.drawer-wrap) .modal { max-width: none; min-height: 100%; border-radius: 0; }
  .modal-head { border-radius: 0; }
  .toasts { bottom: calc(88px + var(--safe-b)); }
  .cover { height: 130px; }
  .prof { padding: 0 14px 16px; }
  .prof-avatar { width: 88px; height: 88px; margin-top: -44px; font-size: 30px; border-width: 4px; }
  .hide-sm { display: none; }
  .fresh-wrap { top: calc(var(--top-h) + 100px); }
  .npc-stats { width: auto; flex: 1 1 100%; padding-left: 60px; }
  .npc-actions { padding-left: 52px; }
  .seg { width: 100%; }
  .edit-cover { margin: 0; border-radius: 0; }
  .bm-folder { right: 48px; }
  .bm-item .post .who { padding-right: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Pencere açıkken arka plandaki sonsuz animasyonları durdur (tarayıcı kasmasın) */
body.locked .app .chip.high, body.locked .app .chip.high::after { animation-play-state: paused; }
.acc-list { contain: content; }

/* ---------- Özel etiket ---------- */
.chip.custom { text-transform: none; letter-spacing: 0.02em; font-weight: 700; }
.custom-tag { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--card-2); }
.tag-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-color { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.2s var(--spring), box-shadow 0.2s ease; }
.tag-color:hover { transform: scale(1.1); }
.tag-color.on { box-shadow: 0 0 0 2px var(--card-2), 0 0 0 4px #f2f2f2; }
.custom-prev { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Görsel hizalama ---------- */
.crop-body { display: flex; flex-direction: column; gap: 14px; }
.crop-frame {
  position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: #111;
  cursor: grab; touch-action: none; user-select: none;
}
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; }
.crop-frame.round { max-width: 360px; margin: 0 auto; }
.crop-mask { position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55); pointer-events: none; outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: -2px; }
.crop-zoom { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--accent); }

/* ---------- Yanıt zinciri ---------- */
.parent-prev { display: flex; gap: 12px; margin: -4px 0 0; color: var(--text); text-decoration: none; }
.parent-prev:hover { text-decoration: none; }
.parent-prev:hover .pp-text { color: var(--text-2); }
.pp-side { flex: none; width: 42px; display: flex; flex-direction: column; align-items: center; }
.pp-line { flex: 1; width: 2px; min-height: 14px; margin: 4px 0 2px; border-radius: 2px; background: var(--line-2); }
.pp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 3px 0 12px; }
.pp-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; line-height: 18px; }
.pp-top .handle { font-size: 13px; }
.pp-text { font-size: 14px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.replied { color: var(--accent-text); font-weight: 600; }
.post.has-line::after { content: ''; position: absolute; left: 38px; top: 100%; height: 6px; width: 2px; border-radius: 2px; background: var(--line-2); pointer-events: none; }
.thread-replies { position: relative; margin: 4px 0 0 22px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.thread-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post.in-thread { margin-bottom: 8px; padding-top: 14px; }
@media (max-width: 699px) {
  .thread-replies { margin-left: 10px; padding-left: 10px; }
  .pp-side { width: 42px; }
}

/* ---------- DM: yerinde düzenleme ---------- */
.editable { cursor: text; border-radius: 4px; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.editable:hover { background: rgba(239, 111, 111, 0.16); box-shadow: 0 0 0 3px rgba(239, 111, 111, 0.16); }
.editable.is-b { font-weight: 700; color: var(--text); }
.inline-edit {
  display: inline-block; width: auto; min-width: 2ch; max-width: 220px; height: 24px; padding: 0 6px; margin: -2px 0;
  border: 1px solid var(--accent); border-radius: 6px; outline: 0; background: var(--field); color: var(--text);
  font: inherit; font-weight: 700; vertical-align: baseline;
}
div.act { user-select: none; }

/* ---------- İki adımlı silme ---------- */
.arm-btn { min-width: 92px; }
.arm-btn.armed { background: var(--accent); color: #fff; animation: pop 0.3s var(--spring); }
.arm-btn.armed:hover:not(:disabled) { background: var(--accent-hover); }

/* ---------- NPC listesi tek satır ---------- */
@media (min-width: 700px) {
  .npc-row { flex-wrap: nowrap; }
  .npc-main { flex: 1 1 auto; }
  .npc-stats { width: 118px; }
}
.npc-actions .icon-btn.danger-ico:hover { color: #fff; background: var(--accent); }
.arm-btn.compact { min-width: 0; padding: 0 12px; }

/* ---------- Video ---------- */
.media.is-video { position: relative; display: block; width: 100%; max-height: none; margin-right: auto; margin-left: auto; border: 1px solid var(--line-2); border-radius: 14px; background: #000; }
.media.is-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-player { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #000; color: #fff; isolation: isolate; user-select: none; outline: 0; touch-action: manipulation; }
.media.is-video > .video-player { position: absolute; inset: 0; }
.video-player:not(.controls-visible) { cursor: none; }
.video-player > video { cursor: inherit; }
.vp-controls { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; padding: 8px 8px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.controls-visible .vp-controls { opacity: 1; pointer-events: auto; }
.vp-bar { display: flex; align-items: center; gap: 5px; min-height: 30px; }
.vp-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; transition: background-color 160ms ease; }
.vp-button:hover, .vp-button.on { background: rgba(255, 255, 255, 0.15); }
.vp-button:focus-visible, .vp-center:focus-visible, .vp-volume-touch:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.vp-space { flex: 1; min-width: 0; }
.vp-time { flex: none; color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.vp-seek { position: relative; height: 18px; cursor: pointer; }
.vp-seek-track { position: absolute; top: 8px; right: 0; left: 0; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.32); }
.vp-seek-track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.vp-buffered { width: var(--buffered); background: rgba(255, 255, 255, 0.3); }
.vp-played { width: var(--played); background: #fff; }
.vp-seek input { position: absolute; inset: 0; width: 100%; height: 18px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.vp-seek input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.vp-seek input::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.vp-seek input::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -4px; border: 0; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #fff; box-shadow: 0 0 3px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 150ms ease; }
.vp-seek:hover input::-webkit-slider-thumb, .vp-seek input:focus-visible::-webkit-slider-thumb, .vp-seek input:active::-webkit-slider-thumb { opacity: 1; }
.vp-seek input::-moz-range-track, .vp-seek input::-moz-range-progress { height: 2px; background: transparent; }
.vp-seek input::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 150ms ease; }
.vp-seek:hover input::-moz-range-thumb, .vp-seek input:focus-visible::-moz-range-thumb, .vp-seek input:active::-moz-range-thumb { opacity: 1; }
.vp-volume { position: relative; display: flex; flex: none; align-items: center; }
.vp-volume-popup { position: absolute; bottom: calc(100% - 1px); left: 50%; display: flex; justify-content: center; width: 34px; height: 122px; padding: 14px 6px; border-radius: 999px; transform: translateX(-50%); background: rgba(10, 10, 10, 0.94); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.vp-volume-range { width: 22px; height: 94px; margin: 0; padding: 0; writing-mode: vertical-lr; direction: rtl; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.vp-volume-range::-webkit-slider-runnable-track { width: 3px; height: 100%; border-radius: 999px; background: linear-gradient(to top, #fff 0 var(--volume), #555 var(--volume) 100%); }
.vp-volume-range::-webkit-slider-thumb { width: 12px; height: 12px; margin-left: -4.5px; border: 0; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #fff; box-shadow: 0 0 4px rgba(255, 255, 255, 0.3); }
.vp-volume-range::-moz-range-track { width: 3px; height: 100%; border-radius: 999px; background: linear-gradient(to top, #fff 0 var(--volume), #555 var(--volume) 100%); }
.vp-volume-range::-moz-range-progress { background: transparent; }
.vp-volume-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.vp-volume-range:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 999px; }
.vp-volume-touch { display: none; align-items: center; justify-content: center; width: 16px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.vp-center { position: absolute; top: 50%; left: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0 0 0 3px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.5); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.controls-visible .vp-center { opacity: 1; pointer-events: auto; }
.vp-wait { position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; border-radius: 50%; animation: vpSpin 800ms linear infinite; }
@keyframes vpSpin { to { transform: rotate(360deg); } }
.vp-menu { position: absolute; right: 8px; bottom: 54px; z-index: 5; width: min(312px, calc(100% - 16px)); max-height: calc(100% - 72px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; background: #111; color: #f2f2f2; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); font-size: 14px; }
.vp-menu button, .vp-menu a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.vp-menu button:hover, .vp-menu a:hover { background: #232323; text-decoration: none; }
.vp-menu button:focus-visible, .vp-menu a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; background: #232323; }
.vp-menu svg { flex: none; }
.vp-menu b { font-weight: 700; }
.vp-menu small { color: #93989c; font-size: inherit; }
.vp-menu [role='menuitemradio'] { justify-content: space-between; }
.vp-menu .vp-menu-back { margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px 8px 0 0; }
.vp-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 16px 64px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 14px; text-align: center; }
.vp-error a { color: #fff; text-decoration: underline; }
.video-player:fullscreen { position: fixed !important; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; background: #000; }
.video-player:-webkit-full-screen { position: fixed !important; inset: 0; width: 100vw; height: 100vh; max-height: none; border-radius: 0; background: #000; }
@media (hover: none) { .vp-volume-touch { display: inline-flex; } .vp-center { display: flex; } }
@media (max-width: 699px) {
  .vp-bar { gap: 2px; }
  .vp-time { font-size: 12px; }
  .vp-button { width: 28px; height: 28px; }
}
.video-thumb { aspect-ratio: 16 / 9; background: #000; }
.thumbs.n1 .video-thumb { max-height: 420px; }
.video-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; }
.upload-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 26px; border-radius: 999px; overflow: hidden; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; }
.upload-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width 0.2s ease; }
.upload-progress b { position: relative; font-size: 12px; color: #fff; }

/* ---------- Alıntı ---------- */
.quote-card {
  display: flex; flex-direction: column; margin-top: 12px; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
}
.quote-card.is-linked { cursor: pointer; }
.quote-card.gone { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.composer .quote-card { margin: 4px 0 8px; }
.qc-summary { display: block; min-width: 0; padding: 10px 12px; color: inherit; }
a.qc-summary:hover { color: inherit; text-decoration: none; }
.quote-card .qc-summary:focus-visible, .quote-card .media-item:focus-visible { outline-offset: -3px; }
.qc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; line-height: 18px; }
.qc-top .handle { font-size: 13px; }
.qc-top b { overflow-wrap: anywhere; }
.qc-body { display: block; margin-top: 6px; }
.qc-text { min-width: 0; font-size: 14.5px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.quote-card > .media, .quote-card > .yt-embed, .quote-card > .sp-embed { margin-top: 0; border-radius: 0; }
.act.qt:hover { color: var(--blue); }

/* ---------- Mesajlar: kim yazıyor + silme ---------- */
.speak-as { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.speak-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 5px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.speak-opt:hover { background: var(--card-3); }
.speak-opt.on { background: var(--accent); color: #fff; }
.bubble-row { display: flex; align-items: center; gap: 6px; }
.msg.in .bubble-row { flex-direction: row-reverse; }
.msg-del { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.msg-del.solo { width: auto; padding: 0 8px; font-size: 12px; }
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
.msg-del:hover { background: rgba(239, 111, 111, 0.16); color: var(--accent-text); }
@media (hover: none) { .msg-del { opacity: 0.7; } }
.bubble.deleted { display: inline-flex; align-items: center; gap: 6px; font-style: italic; background: transparent !important; color: var(--muted) !important; box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Emoji seçici ---------- */
.emoji-anchor { position: relative; display: inline-flex; }
.tool.emoji-btn.on { background: var(--accent-soft); }
.emoji-panel {
  position: absolute; z-index: 70; left: -8px; top: calc(100% + 8px); width: 332px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; padding: 10px; border-radius: 16px;
  background: var(--popup); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: menuIn 0.18s var(--ease) both; cursor: default;
}
.emoji-panel.up { top: auto; bottom: calc(100% + 8px); }
.chat-input .emoji-panel { left: -40px; }
.emoji-search { min-height: 36px; padding: 0 12px; background: var(--field) !important; }
.emoji-search input { font-size: 14px; }
.emoji-tabs { display: flex; gap: 2px; margin: 8px 0 4px; overflow-x: auto; }
.emoji-tab {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
  filter: grayscale(0.6); opacity: 0.75; transition: background-color 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}
.emoji-tab:hover { background: rgba(255, 255, 255, 0.07); opacity: 1; filter: none; }
.emoji-tab.on { background: var(--accent-soft); color: var(--accent-text); opacity: 1; filter: none; box-shadow: inset 0 -2px 0 var(--accent); }
.emoji-title { margin: 4px 4px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; height: 232px; overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.emoji-cell {
  display: inline-flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px;
  background: transparent; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color 0.12s ease, transform 0.15s var(--spring);
}
.emoji-cell:hover { background: rgba(255, 255, 255, 0.09); transform: scale(1.15); }
.emoji-empty { grid-column: 1 / -1; margin: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 699px) { .emoji-panel { position: fixed; left: 12px !important; right: 12px; width: auto; bottom: calc(80px + var(--safe-b)); top: auto; } }
.composer:has(.emoji-panel), .chat-input:has(.emoji-panel) { position: relative; z-index: 26; }

/* ---------- YouTube ---------- */
.yt-embed { position: relative; margin-top: 12px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-embed.shorts { aspect-ratio: 9 / 16; max-height: 560px; max-width: 320px; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s ease, transform 0.4s var(--ease); }
.yt-cover:hover img { opacity: 1; transform: scale(1.02); }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 48px; border-radius: 14px; background: #ff0033; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--spring);
}
.yt-cover:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- Spotify ---------- */
.sp-embed { margin-top: 12px; border-radius: 12px; overflow: hidden; height: 152px; background: #121212; }
.sp-embed.tall { height: 352px; }
.sp-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- @ önerileri ---------- */
.composer-main { position: relative; }
.mention-list {
  position: absolute; z-index: 60; left: 0; right: 0; max-width: 380px; margin-top: -4px; padding: 6px; border-radius: 14px;
  background: var(--popup); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); animation: menuIn 0.15s var(--ease) both;
}
.mention-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.mention-item:hover, .mention-item.on { background: rgba(255, 255, 255, 0.08); }
.mention-txt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: 14px; }
.composer:has(.mention-list) { position: relative; z-index: 26; }

/* ---------- Tanıyor olabileceklerin ---------- */
.people-search { margin-bottom: 10px; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { border-radius: var(--r); background: var(--card); overflow: hidden; animation: rise 0.45s var(--ease) both; transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.pcard-cover { display: block; height: 78px; background-size: cover; background-position: center; background-color: var(--c, #3a2424); background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.25)); }
.pcard-cover[style*='background-image:url'] { background-color: #1b1b1b; }
.pcard-body { display: flex; flex-direction: column; padding: 0 14px 14px; }
.pcard-avatar { width: 64px; height: 64px; margin-top: -32px; border: 4px solid var(--card); font-size: 22px; }
.pcard-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; color: var(--text); font-size: 16px; }
.pcard-name:hover { text-decoration: none; }
.pcard-name:hover b { text-decoration: underline; }
.pcard-handle { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.pcard-bio { min-height: 40px; margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pcard-stats { font-size: 13px; color: var(--muted); }
.pcard-stats b { color: var(--text); }
.pcard .follow { min-width: 0; min-height: 34px; padding: 0 14px; font-size: 13.5px; }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }

/* ---------- Üst çubuk arama önerileri ---------- */
.top-search-wrap { position: relative; width: 100%; max-width: 300px; }
.top-search-wrap .top-search { max-width: none; }
.top-search.open { border-color: var(--accent); color: var(--accent-text); }
.top-search-clear {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; padding: 0; border: 0;
  border-radius: 999px; background: #f2f2f2; color: #1c1c1c; cursor: pointer;
}
.search-suggest {
  position: absolute; z-index: 80; left: 0; top: calc(100% + 8px); width: max(100%, 360px); max-height: min(560px, calc(100vh - 110px));
  overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px;
  background: var(--search-popup); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: menuIn 0.16s var(--ease) both;
}
.sg-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background-color 0.12s ease;
}
.sg-row.on, .sg-row:hover { background: rgba(255, 255, 255, 0.07); }
.sg-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.sg-label { min-width: 0; font-size: 15px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-label b { color: var(--text); }
.sg-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sg-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 15px; }
.sg-name b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-name .verified { flex: none; }
.sg-handle { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-typed { font-weight: 500; }
.sg-name .sg-typed { font-weight: 500; color: var(--text-2); }
.sg-sep { height: 1px; margin: 6px 8px; background: var(--line-2); }
.sg-goto .sg-ico { background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.sg-loading, .sg-empty { padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 699px) { .top-search-wrap { display: none; } }

/* ================= Kule Market ================= */
/* Sitenin koyu gri + mercan kırmızısı temasıyla; geçişler yumuşak, zıplama yok. */
.top-market:hover { color: var(--accent-text); }
@media (max-width: 699px) { .top-market { margin-left: auto; } }

/* Kule Puanı */
.kp { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kp-coin { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22); }
.kp-u { font-size: 0.8em; font-weight: 800; color: var(--accent-text); }
.kp.pos .kp-n { color: var(--repost); }
.kp.neg .kp-n { color: var(--danger); }

/* Market ve market pencereleri, kategoriler menüsünün koyu paletini paylaşır. */
:root:has(.mk), .mk, body:has(.mk) .modal-wrap {
  --scroll-thumb: #555d61;
  --scroll-thumb-hover: #859095;
  --scroll-thumb-active: #c28585;
  --scroll-pill: #f1f4f5;
}
.mk, body:has(.mk) .modal-wrap {
  --bg: #0d0d0d;
  --top: #111111;
  --side: #111111;
  --card: #111111;
  --card-2: #181818;
  --card-3: #202020;
  --field: #0d0d0d;
}
.mk { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.mk .btn-ghost, .mk .icon-btn.outline,
body:has(.mk) .modal-wrap .btn-ghost, body:has(.mk) .modal-wrap .icon-btn.outline { background: var(--card-2); }
.mk .btn-ghost:hover:not(:disabled), .mk .icon-btn.outline:hover,
body:has(.mk) .modal-wrap .btn-ghost:hover:not(:disabled), body:has(.mk) .modal-wrap .icon-btn.outline:hover { background: var(--card-3); }
.mk-main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 18px 20px 44px; }
.mk-view { animation: none; }
@keyframes mkFade { from { opacity: 0; } to { opacity: 1; } }
.mk-loading { display: flex; justify-content: center; padding: 48px; }
.mk-note { margin-top: 12px; }

/* Başlık */
.mk-top { position: sticky; top: 0; z-index: 30; background: var(--top); }
.mk-top-in { display: flex; align-items: center; gap: 12px; max-width: 1280px; height: var(--top-h); margin: 0 auto; padding: 0 20px; }
.mk-home { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 14px; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.mk-home:hover { background: var(--card-3); color: var(--text); text-decoration: none; }
.mk-logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.mk-logo:hover { text-decoration: none; }
.mk-logo-txt { display: flex; flex-direction: column; line-height: 1; }
.mk-logo-txt b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-text); }
.mk-logo-txt b span { color: var(--text); font-weight: 600; }
.mk-logo-txt small { margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.mk-cats, .mk-filter-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.mk-cats:hover, .mk-filter-btn:hover { background: var(--card-3); }
.mk-filter-btn.on { color: var(--accent-text); }
.mk-filter-btn i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mk-new { padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.mk-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s ease; }
.mk-search:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.mk-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.mk-search input::-webkit-search-cancel-button { filter: invert(0.6); }
.mk-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.mk-who { display: flex; align-items: center; gap: 8px; margin-right: 4px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--bg); }
.mk-who-av { padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.mk-wallet { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; color: var(--text); }
.mk-wallet:hover { text-decoration: none; }
.mk-wallet small { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.mk-act { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 74px; padding: 6px 8px; border-radius: 12px; color: var(--text-2); font-size: 12px; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.mk-act:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.mk-act.on { color: var(--accent-text); }
.mk-act-ico { position: relative; display: inline-flex; }
.mk-act-ico i { position: absolute; top: -6px; right: -11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Kategori düğmeleri */
.mk-pills { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 0 -4px; padding: 4px 4px 18px; }
.mk-pills :focus-visible { outline-offset: -2px; }
.mk-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 14px; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.mk-pill:hover { background: var(--card-2); color: var(--text); text-decoration: none; }
.mk-pill.on { background: var(--accent); color: #fff; }
.mk-pill.static { cursor: default; }
.mk-pill-sep { flex: none; width: 1px; height: 22px; margin: 0 4px; background: var(--line-2); }

/* Büyük vitrin: düz kart, ürünler yumuşakça geçer */
.mk-hero { position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); }
.mk-slides { display: grid; }
.mk-slides > .mk-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.mk-slides > .mk-slide.on { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
.mk-slide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 28px; min-height: 320px; padding: 34px 84px 44px; }
.mk-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mk-slide-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mk-slide-txt h2 { margin: 2px 0 0; font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.mk-slide-txt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 540px; margin: 0; color: var(--text-2); font-size: 15.5px; }
.mk-slide-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.mk-slide-img { position: relative; justify-self: center; width: min(270px, 100%); aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--card-2); }
.mk-slide-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-slide-img.deco { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.mk-dots { position: absolute; bottom: 16px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.mk-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--muted); cursor: pointer; transition: width 0.4s ease, background-color 0.4s ease; }
.mk-dot.on { width: 24px; background: var(--accent); }
.mk-edit-t { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text-2); cursor: pointer; transition: background-color 0.2s ease; }
.mk-edit-t:hover { background: var(--card-3); }

/* Yuvarlak kaydırma okları */
.mk-nav { position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 999px; background: var(--card-3); color: var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, background-color 0.2s ease; }
.mk-nav.show { opacity: 1; pointer-events: auto; }
.mk-nav:hover { background: var(--card-2); }
.mk-hero .mk-nav { box-shadow: none; background: var(--card-2); }
.mk-hero .mk-nav:hover { background: var(--card-3); }
.mk-hero .mk-nav.l { left: 18px; }
.mk-hero .mk-nav.r { right: 18px; }

/* Kategorilerde Fırsatlar */
.mk-deals { margin-top: 22px; padding: 16px 0 14px; border-radius: var(--r); background: var(--card); }
.mk-deals-head { display: flex; align-items: center; gap: 10px; margin: 0 18px 8px; }
.mk-deals-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.mk-deals-title:hover { text-decoration: none; color: var(--accent-text); }
.mk-deals-title h2 { margin: 0; font-size: 20px; font-weight: 700; color: inherit; transition: color 0.2s ease; }
.mk-deals-title svg:last-child { transition: transform 0.25s ease; }
.mk-deals-title:hover svg:last-child { transform: translateX(3px); }
.mk-deals-badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; }
.mk-all.small { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.mk-deals-body { position: relative; }
.mk-deals-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 18px 2px; scroll-snap-type: x proximity; scrollbar-width: none !important; }
.mk-deals-row::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mk-deal { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 124px; padding: 2px 0 4px; color: var(--text-2); scroll-snap-align: start; }
.mk-deal:hover { text-decoration: none; color: var(--text); }
.mk-deal-art { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 112px; height: 112px; }
.mk-deal-disc { position: absolute; right: 6px; bottom: 0; left: 6px; height: 100px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); transition: background-color 200ms ease, border-color 200ms ease; }
.mk-deal:hover .mk-deal-disc { background: var(--card-3); border-color: var(--line-2); }
.mk-deal:focus-visible { outline: none; }
.mk-deal:focus-visible .mk-deal-disc { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.mk-deal-art img { position: relative; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); transition: transform 0.35s ease; }
.mk-deal:hover .mk-deal-art img { transform: translateY(-3px); }
.mk-deal-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; color: var(--accent-text); transition: transform 220ms var(--ease); }
.mk-deal:hover .mk-deal-ico { transform: translateY(-2px); }
.mk-deal.all .mk-deal-disc { background: var(--accent-soft); border-color: var(--accent-soft); }
.mk-deal.all:hover .mk-deal-disc { border-color: var(--accent-text); }
.mk-deal.all .mk-deal-ico { color: var(--accent-text); }
.mk-deal-name { max-width: 118px; font-size: 13.5px; font-weight: 600; line-height: 1.25; text-align: center; transition: color 0.2s ease; }
.mk-deals-nav { position: absolute; top: 62px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(17, 17, 17, 0.56); background: color-mix(in srgb, var(--card) 56%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-2); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); transform: translateY(-50%); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease); }
.mk-deals-nav::before { content: ''; position: absolute; inset: -5px; border-radius: inherit; }
.mk-deals-nav.show { opacity: 1; pointer-events: auto; }
.mk-deals-nav:hover { background: rgba(24, 24, 24, 0.82); background: color-mix(in srgb, var(--card-2) 82%, transparent); border-color: rgba(255, 255, 255, 0.2); color: var(--text); transform: translateY(-50%) scale(1.06); }
.mk-deals-nav:active { transform: translateY(-50%) scale(0.95); }
.mk-deals-nav:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.mk-deals-nav.l { left: 7px; }
.mk-deals-nav.r { right: 7px; }
.mk-cat-thumb { display: flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; padding: 0; overflow: hidden; border: 0; border-radius: 999px; background: var(--card-3); color: var(--accent-text); cursor: pointer; transition: box-shadow 0.2s ease; }
.mk-cat-thumb:hover { box-shadow: 0 0 0 2px var(--accent); }
.mk-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.input.mini { width: auto; min-height: 32px; height: 32px; padding: 0 30px 0 10px; font-size: 13px; }
.mk-gap { margin-top: 16px; }

/* Ürün rafı (Popüler Ürünler gibi) */
.mk-shelf { margin-top: 22px; padding: 18px 18px 20px; border-radius: var(--r); background: var(--card); }
.mk-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mk-shelf-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 700; }
.mk-all { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; color: var(--text); font-size: 15px; font-weight: 600; transition: color 0.2s ease; }
.mk-all:hover { color: var(--accent-text); text-decoration: none; }
.mk-shelf-body { position: relative; }
.mk-shelf-body .mk-nav.l { left: -8px; }
.mk-shelf-body .mk-nav.r { right: -8px; }
.mk-row { display: grid; grid-auto-flow: column; grid-auto-columns: 206px; align-items: stretch; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 1px 1px 8px; scroll-snap-type: x proximity; }
.mk-row > * { scroll-snap-align: start; }
.mk-shelf-empty { margin: 0; padding: 26px 10px; color: var(--muted); text-align: center; }

/* Bölümler */
.mk-section { margin-top: 30px; }
.mk-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mk-sec-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; }
.mk-count { color: var(--muted); font-size: 14px; font-weight: 600; }
.mk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-tabs.big { margin-bottom: 16px; }
.mk-tab { height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease; }
.mk-tab:hover { background: var(--card-2); color: var(--text); }
.mk-tab.on { background: var(--accent); color: #fff; }

/* Ürün kartı */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 14px; }
.mk-grid.is-loading, .mk-list.is-loading { pointer-events: none; }
.mk-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: var(--card); isolation: isolate; transition: border-color 180ms ease; }
.mk-card:hover { border-color: rgba(255, 255, 255, 0.28); }
.mk-card:focus-within { border-color: var(--accent-text); }
.mk-card.over { opacity: 0.7; }
.mk-card-img { position: relative; display: block; flex: none; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.mk-card-img img { width: 100%; height: 100%; object-fit: cover; transition: filter 180ms ease; }
.mk-card:hover .mk-card-img img { filter: brightness(1.025); }
.mk-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #6c6c6c; background: var(--card-3); }
.mk-sticker { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; padding: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1.05; text-align: center; transform: rotate(-12deg); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 4px 12px rgba(0, 0, 0, 0.3); pointer-events: none; word-break: keep-all; }
.mk-sticker.sm { font-size: 9.5px; }
.mk-sticker.xs { font-size: 8.5px; }
.mk-strip { position: absolute; right: 0; bottom: 0; left: 0; padding: 5px 8px; background: rgba(17, 17, 17, 0.88); color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; pointer-events: none; }
.mk-over { position: absolute; top: 50%; left: 50%; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 13px; font-weight: 700; transform: translate(-50%, -50%); pointer-events: none; }
.mk-fav { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text-2); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease; }
.mk-fav:hover { background: var(--card-3); }
.mk-fav.on { color: var(--accent); }
.mk-card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.mk-card-body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 10px; background: var(--card); }
.mk-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; color: var(--text-2); font-size: 13px; font-weight: 500; line-height: 1.35; }
.mk-card-name b { color: var(--text); font-weight: 700; }
.mk-card-name .verified { display: inline; vertical-align: -2px; margin-left: 2px; }
.mk-card-name:hover { text-decoration: none; color: var(--text); }
.mk-views { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.mk-views b { color: var(--accent-text); font-weight: 600; }
.mk-views > svg { flex: none; }
.mk-views-copy { min-width: 0; }
.mk-views.is-compact { gap: 3px; font-size: 11px; line-height: 1.4; letter-spacing: -0.15px; }
.mk-views.is-compact .mk-views-copy { white-space: nowrap; }
.mk-views.is-compact:focus-within .mk-views-copy { white-space: normal; }
.mk-views-eyes { flex: none; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: 13px; line-height: 1; }
.mk-rate { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.mk-rate b { color: var(--text); font-size: 13px; }
.mk-rate b, .mk-rate .is-b { color: var(--text); font-size: 13px; font-weight: 700; }
.mk-rate.big b, .mk-rate.big .is-b { font-size: 16px; }
.mk-rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mk-rate-link { color: var(--muted); font-size: 13.5px; }
.mk-rate-link:hover { color: var(--accent-text); }
.mk-views .editable, .mk-rate .editable { padding: 0 1px; }
.mk-rate.big { align-self: flex-start; gap: 8px; font-size: 14px; }
.mk-rate.big b { font-size: 16px; }
.mk-rate.big:hover { text-decoration: none; color: var(--text-2); }
.mk-card .mk-rate { gap: 4px; font-size: 11.5px; }
.mk-card .mk-rate > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card .mk-stars-fg { color: #e8c55a; }
.mk-promo { display: flex; align-items: center; gap: 5px; color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.mk-promo.muted { color: var(--muted); font-weight: 500; }
.mk-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 2px; }
.mk-card-cart { position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.mk-card-cart:hover { background: var(--accent); color: #fff; }
.mk-card-cart i { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Yıldızlar */
.mk-stars { position: relative; display: inline-flex; flex: none; line-height: 0; }
.mk-stars-bg { display: inline-flex; color: #4a4a4a; }
.mk-stars-fg { position: absolute; top: 0; left: 0; display: inline-flex; overflow: hidden; color: var(--accent-text); white-space: nowrap; }
.mk-stars svg { flex: none; }

/* Fiyat */
.mk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.mk-price small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mk-price .kp { color: var(--accent-text); font-size: 17px; }
.mk-price.big .kp { gap: 8px; font-size: 30px; }
.mk-old { color: var(--muted); font-size: 12.5px; }
.mk-price.big .mk-old { font-size: 16px; }
.mk-card .mk-price { flex-direction: column; align-items: flex-start; gap: 1px; }
.mk-card .mk-price .kp, .mk-card .mk-price .kp-u { color: var(--repost); }
.mk-card .mk-price .kp-coin { display: none; }
.mk-card .mk-old { font-size: 11px; }
.mk-card .mk-promo-discount { color: var(--repost); }
.mk-left { display: inline-flex; align-items: center; gap: 4px; }
.mk-left.soon { color: var(--warn); }
.mk-left.done { color: var(--danger); }

/* Talep çağrısı */
.mk-cta { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 20px 22px; border-radius: var(--r); background: var(--card); }
.mk-cta-txt { flex: 1; }
.mk-cta h2 { margin: 0 0 4px; font-size: 19px; }
.mk-cta p { margin: 0; color: var(--text-2); }
.mk-cta-ico { display: flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: 999px; background: var(--accent); color: #fff; }
.mk-cta-ico.sm { width: 42px; height: 42px; }

/* Etkin filtreler */
.mk-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.mk-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.mk-chip:hover { background: rgba(217, 79, 79, 0.26); }

/* Filtre ekranı */
.mk-filters-body { max-height: min(64vh, 620px); overflow-y: auto; padding: 4px 20px 8px; }
.mk-filters-body section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mk-filters-body section:last-child { border-bottom: 0; }
.mk-filters-body h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.mk-filters-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.mk-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.mk-opt:hover { background: var(--card-3); }
.mk-opt.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.mk-opt.static { padding-right: 5px; cursor: default; }
.mk-opt.static:hover { background: var(--card-2); }
.mk-opt.static button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.mk-opt.static button:hover { background: rgba(255, 255, 255, 0.07); color: var(--danger); }
.mk-range { display: flex; align-items: center; gap: 10px; }
.mk-range label { flex: 1; }
.mk-toggles { display: flex; flex-direction: column; gap: 4px; }
.mk-check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.mk-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Kategoriler: başlığın altına açılan koyu, kompakt menü. */
.mk-top.mk-menu-open { z-index: 60; }
.mk-menu-open .mk-top-in { position: relative; z-index: 2; background: var(--top); }
.mk-cats.on, .mk-cats.on:hover { background: var(--accent-soft); color: var(--accent-text); }
.mk-mega-backdrop { position: fixed; inset: var(--mk-menu-top, var(--top-h)) 0 0; background: rgba(0, 0, 0, 0.58); animation: mkFade 0.18s ease both; }
.mk-mega { --mk-menu-bg: var(--card); position: absolute; top: 100%; left: 50%; z-index: 1; display: flex; flex-direction: column; width: calc(100% - 40px); max-width: 980px; max-height: min(560px, calc(100vh - var(--mk-menu-top, var(--top-h)) - 20px)); max-height: min(560px, calc(100dvh - var(--mk-menu-top, var(--top-h)) - 20px)); transform: translateX(-50%); overflow: hidden; border: 1px solid var(--line-2); border-radius: 0 0 16px 16px; background: var(--mk-menu-bg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); }
.mk-mega-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.mk-mega-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.mk-mega-head h2 svg { color: var(--accent-text); }
.mk-mega-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mk-mega-categories { display: flex; flex-direction: column; align-self: start; gap: 2px; padding: 10px 8px; }
.mk-mega-cat { display: flex; flex: none; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.16s ease, color 0.16s ease; }
.mk-mega-cat span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mk-mega-cat svg { flex: none; color: var(--accent-text); }
.mk-mega-cat > svg:last-child { width: 14px; opacity: 0.45; }
.mk-mega-cat:hover, .mk-mega-cat.on { background: var(--accent-soft); color: var(--accent-text); }
.mk-mega-cat.on > svg:last-child { opacity: 1; }
.mk-mega-content { min-width: 0; padding: 18px 20px 22px; border-left: 1px solid var(--line); }
.mk-mega-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.mk-mega-title h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.mk-mega-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mk-mega-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px 20px; }
.mk-mega-group { min-width: 0; }
.mk-mega-group h4 { margin: 0 0 8px; color: var(--accent-text); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.mk-mega-link { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; padding: 6px 0; color: var(--text-2); font-size: 13px; line-height: 1.4; transition: color 0.16s ease, background-color 0.16s ease; }
.mk-mega-link span { min-width: 0; overflow-wrap: anywhere; }
.mk-mega-link svg { flex: none; color: var(--accent-text); }
.mk-mega-link > svg:last-child { margin-left: auto; opacity: 0; }
.mk-mega-link:hover { color: var(--accent-text); text-decoration: none; }
.mk-mega-link:hover > svg:last-child { opacity: 1; }
.mk-mega-footer { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--mk-menu-bg); }
.mk-mega-footer .mk-mega-link { min-height: 36px; padding: 8px 10px; border-radius: 10px; font-weight: 600; }
.mk-mega-footer .mk-mega-link:hover { background: rgba(255, 255, 255, 0.04); }
.mk-mega-footer .mk-mega-link > svg:last-child { display: none; }
.mk-mega-footer .mk-new { flex: none; }

/* Ürün sayfası */
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.mk-crumbs a { color: var(--text-2); }
.mk-crumbs span { color: var(--text); }
.mk-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.mk-detail-img { position: sticky; top: calc(var(--top-h) + 20px); aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--card); }
.mk-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-detail-img .mk-ph svg { width: 30%; height: 30%; }
.mk-detail-img .mk-sticker { top: 18px; left: 18px; width: 76px; height: 76px; font-size: 13px; }
.mk-detail-img .mk-strip { padding: 9px; font-size: 14px; }
.mk-detail-img .mk-card-fav { top: 16px; right: 16px; width: 42px; height: 42px; }
.mk-detail-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-detail-info h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.mk-type { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.mk-seller { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; color: var(--text-2); }
.mk-save { align-self: flex-start; color: var(--repost); font-size: 13.5px; font-weight: 700; }
.mk-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--card); }
.mk-box-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 14px; }
.mk-box-total { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.mk-box-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-box > .mk-box-acts .btn { flex: 1; min-width: 150px; }
.mk-box .hint { margin-top: -4px; }
.mk-box-over { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--text-2); }
.mk-qty { display: inline-flex; align-items: center; flex: none; border-radius: 999px; background: var(--field); }
.mk-qty button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; transition: background-color 0.2s ease; }
.mk-qty button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.mk-qty button:disabled { opacity: 0.35; cursor: default; }
.mk-qty span { min-width: 30px; font-weight: 700; text-align: center; }
.mk-bid { display: flex; align-items: center; gap: 10px; }
.mk-bid .input { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; }
.mk-chance { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.mk-props { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-prop { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; transition: background-color 0.2s ease; }
.mk-prop:hover { background: var(--card-2); text-decoration: none; }
.mk-prop small { color: var(--muted); font-size: 11px; font-weight: 600; }
.mk-desc h3 { margin: 6px 0; font-size: 16px; }
.mk-desc p { margin: 0; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.mk-dm-tools { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line-2); }

/* Değerlendirmeler */
.mk-rev-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.mk-rev-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--card); }
.mk-rev-sum > b, .mk-rev-sum > .mk-rev-avg { font-size: 44px; line-height: 1; font-weight: 800; color: var(--text); }
.mk-rev-sum > small { color: var(--muted); }
.mk-dist { display: flex; flex-direction: column; gap: 5px; width: 100%; margin-top: 8px; }
.mk-dist > div { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.mk-dist svg { color: var(--accent-text); }
.mk-dist i { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--card-3); }
.mk-dist em { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.5s ease; }
.mk-dist span:last-child { min-width: 18px; text-align: right; }
.mk-rev-form { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--r); background: var(--card); }
.mk-rev-as { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.mk-rev-as b { color: var(--text); }
.mk-review-modes { display: flex; gap: 4px; padding: 4px; align-self: flex-start; border-radius: 12px; background: var(--field); }
.mk-review-modes button { border: 0; border-radius: 9px; padding: 7px 12px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mk-review-modes button.on { background: var(--accent-soft); color: var(--accent-text); }
.mk-review-name { margin: 0; }
.mk-product-field.inline-edit { height: auto; min-height: 1.4em; max-width: 100%; line-height: 1.3; }
.mk-description-field { display: block; }
.inline-edit.inline-edit-area { display: block; width: 100%; max-width: 100%; min-height: 100px; padding: 10px 12px; margin: 0; resize: vertical; font-weight: 400; line-height: 1.6; }
.editable-empty { color: var(--muted); font-weight: 500; }
.mk-detail-img .mk-sticker.is-editable, .mk-strip.is-editable { pointer-events: auto; }
.mk-detail-img .mk-sticker.is-editable:focus-within { width: auto; max-width: calc(100% - 90px); height: auto; min-height: 40px; border-radius: 10px; transform: none; }
.mk-old:focus-within { text-decoration: none; }
button.mk-prop { border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.mk-starpick { display: flex; align-items: center; gap: 12px; }
.mk-starpick [role='radiogroup'] { display: flex; gap: 2px; }
.mk-starpick button { display: inline-flex; padding: 2px; border: 0; border-radius: 8px; background: transparent; color: #5a5a5a; cursor: pointer; transition: color 0.18s ease; }
.mk-starpick button.on { color: var(--accent-text); }
.mk-starpick-l { color: var(--text-2); font-size: 14px; font-weight: 600; }
.mk-revs { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.mk-revs li { padding: 14px 16px; border-radius: var(--r); background: var(--card); }
.mk-revs header { display: flex; align-items: center; gap: 12px; }
.mk-revs p { margin: 10px 0 0; color: var(--text-2); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-rev-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mk-rev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-rev-meta small { color: var(--muted); font-size: 12.5px; }
.mk-bought { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: rgba(79, 210, 122, 0.12); color: var(--repost); font-size: 11.5px; font-weight: 700; }

/* Listeler */
.mk-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; transition: opacity 0.25s ease; }
.mk-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); }
.mk-list li.top { box-shadow: inset 0 0 0 1px var(--accent); }
.mk-list li.off { opacity: 0.6; }
.mk-panel .mk-list li { background: var(--card-2); }
.mk-list-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.mk-list-main b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; }
.mk-list-main small { color: var(--muted); font-size: 13px; }
.mk-list-main a { color: var(--text); }
.mk-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mk-flags em { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-style: normal; font-weight: 700; }
.mk-flags em.cat { background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.mk-flags em.off { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.mk-line-img { display: flex; align-items: center; justify-content: center; flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: var(--card-3); color: var(--muted); }
.mk-line-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-line-img.sm { width: 50px; height: 50px; border-radius: 10px; }
.mk-line-img .mk-ph svg { width: 50%; height: 50%; }
.mk-status { flex: none; padding: 5px 11px; border: 0; border-radius: 999px; background: rgba(255, 179, 64, 0.12); color: var(--warn); font-size: 12.5px; font-weight: 700; }
.mk-status.ok { background: rgba(79, 210, 122, 0.12); color: var(--repost); }
button.mk-status { cursor: pointer; transition: filter 0.2s ease; }
button.mk-status:hover { filter: brightness(1.2); }

/* Sepet */
.mk-cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.mk-lines { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mk-lines li { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--card); }
.mk-lines li.over { opacity: 0.6; }
.mk-line-main { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.mk-line-main .mk-card-name { min-height: 0; }
.mk-line-total { justify-content: flex-end; min-width: 92px; }
.mk-summary { position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--card); }
.mk-summary h3 { margin: 0; font-size: 18px; }
.mk-summary > div { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); }
.mk-summary .mk-sum-left { padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; }
.mk-sum-left.neg .kp-n { color: var(--danger); }

/* Cüzdan */
.mk-balance { position: relative; overflow: hidden; padding: 24px 26px; border-radius: var(--r); background: var(--card); }
.mk-balance-top { display: flex; align-items: center; gap: 12px; }
.mk-balance-top small { display: block; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mk-balance-top b { font-size: 17px; }
.mk-balance-n { display: flex; align-items: center; gap: 14px; margin: 20px 0 10px; font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-balance-n em { color: var(--accent-text); font-size: 26px; font-style: normal; font-weight: 800; }
.mk-balance p { max-width: 580px; margin: 0; color: var(--text-2); }
.mk-balance-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.mk-balance-stats .in { color: var(--repost); }
.mk-balance-stats .out { color: var(--danger); }
.mk-wallet-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 20px; }
.mk-wallet-side { display: flex; flex-direction: column; gap: 20px; }
.mk-panel { padding: 18px 20px 20px; border-radius: var(--r); background: var(--card); }
.mk-panel > h3 { margin: 0 0 4px; font-size: 18px; }
.mk-panel > .btn.block { margin-top: 16px; }
.mk-wallet-page > .mk-panel { margin-top: 20px; }
.mk-tx { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; }
.mk-tx li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mk-tx li:last-child { border-bottom: 0; }
.mk-tx-ico { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 999px; }
.mk-tx-ico.in { background: rgba(79, 210, 122, 0.12); color: var(--repost); }
.mk-tx-ico.out { background: rgba(255, 122, 122, 0.12); color: var(--danger); }
.mk-tx.balances { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.mk-tx.balances li { padding: 0; border: 0; }
.mk-balance-persona { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.mk-tx.balances button { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.mk-balance-persona:hover { background: var(--card-3); }
.mk-wallet-reason { overflow-wrap: anywhere; }
.mk-wallet-reason.inline-edit { width: 100%; max-width: 100%; }
.mk-wallet-date.inline-edit { max-width: 100%; height: 28px; font-weight: 400; }
.mk-wallet-amount.inline-edit { max-width: 150px; }
.mk-wallet-balance.inline-edit { min-width: 3ch; max-width: min(100%, 520px); height: 1.15em; }
.mk-balance-n { flex-wrap: wrap; }
.mk-wallet-delete { flex: none; }
@media (max-width: 699px) {
  .mk-wallet-tx { flex-wrap: wrap; }
  .mk-wallet-tx .mk-list-main { flex-basis: calc(100% - 46px); }
  .mk-wallet-tx > .kp { margin-left: 46px; }
  .mk-wallet-delete { margin-left: auto; }
}

/* Talep panosu */
.mk-req-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r); background: var(--card); }
.mk-req-hero h1 { max-width: 660px; margin: 6px 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.mk-req-hero p { max-width: 660px; margin: 0; color: var(--text-2); }
.mk-req-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 20px; }
.mk-req-form { position: sticky; top: calc(var(--top-h) + 20px); }
.mk-req-form-head { display: flex; align-items: flex-start; gap: 12px; }
.mk-req-form-head h3 { margin: 0 0 2px; font-size: 18px; }
.mk-req-form-head .hint { margin-top: 0; }
.mk-req-form .btn.block { margin-top: 16px; }
.mk-reqs { display: flex; flex-direction: column; gap: 12px; }
.mk-req { padding: 18px; border-radius: var(--r); background: var(--card); }
.mk-req.closed { opacity: 0.72; }
.mk-req header { display: flex; align-items: center; gap: 12px; }
.mk-req h3 { margin: 12px 0 4px; font-size: 18px; }
.mk-req > p { margin: 0 0 8px; color: var(--text-2); white-space: pre-wrap; }
.mk-req-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.mk-req-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mk-offers { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.mk-offers li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.mk-offers li.won { box-shadow: inset 0 0 0 1px var(--repost); }
.mk-offers li.lost { opacity: 0.55; }
.mk-req-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mk-offer-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--card-2); }

/* Ürün düzenleyici */
.mk-ed-top { display: flex; align-items: flex-start; gap: 16px; }
.mk-ed-img { display: flex; align-items: center; justify-content: center; flex: none; width: 140px; height: 140px; padding: 0; overflow: hidden; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--field); color: var(--muted); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.mk-ed-img:hover { border-color: var(--accent); color: var(--accent-text); }
.mk-ed-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-ed-img span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mk-ed-main { flex: 1; min-width: 0; }
.mk-ed-main .field:first-child { margin-top: 0; }
.mk-ed-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.mk-ed-sec { margin-top: 18px; }
.mk-ed-sec h3 { margin: 0 0 8px; color: #b8b8b8; font-size: 14px; }

/* Karakter ilanları ve toplu satış */
.mk-pill.mk-sell { background: var(--accent); color: #fff; border: 0; cursor: pointer; }
.mk-listing-seller { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.mk-listing-seller > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-listing-seller small { color: var(--muted); }
.mk-listing-active { display: flex; align-items: center; gap: 9px; margin-top: 18px; cursor: pointer; }
.mk-listing-active input { accent-color: var(--accent); }
.mk-sale-count { color: var(--muted); font-size: 13px; }
.mk-own-listings li { align-items: flex-start; }
.mk-own-image { display: flex; align-items: center; justify-content: center; flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 10px; background: var(--card-2); color: var(--muted); }
.mk-own-image img { width: 100%; height: 100%; object-fit: cover; }
.mk-own-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mk-sale-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.mk-buyer-fields { min-width: 0; border: 0; padding: 0; margin: 0; }
.mk-buyer-rows { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 12px; }
.mk-buyer-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(75px, 1fr)) 32px; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.mk-buyer-row .field { margin: 0; min-width: 0; }
.mk-buyer-row .field > span { font-size: 12px; }
.mk-buyer-name { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-buyer-row .input { min-width: 0; width: 100%; }
.mk-buyer-row > .icon-btn { margin-bottom: 5px; }
.mk-buyer-bulk { margin-top: 18px; }
.mk-buyer-bulk summary { cursor: pointer; color: var(--accent-text); padding: 8px 0; }
.mk-buyer-bulk > button { margin-top: 8px; }
.mk-sales-history .mk-list-main b { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .mk-buyer-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .mk-buyer-name { grid-column: 1 / -1; }
  .mk-own-image { width: 60px; height: 60px; }
  .mk-own-actions { margin-left: -72px; padding-top: 5px; }
}

/* Yönetim */
.mk-fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mk-fgroup.new { border-bottom: 0; }
.mk-fgroup-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mk-fgroup h3 { flex: 1; margin: 0; font-size: 16px; }
.mk-fgroup.new h3 { margin-bottom: 0; }
.mk-add { display: flex; gap: 8px; margin-top: 12px; }
.mk-add .input { flex: 1; min-width: 0; }
.mk-manage .mk-panel > .hint:first-child { margin: 0 0 12px; }

.mk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 22px 16px calc(22px + var(--safe-b)); color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .mk-view, .mk-slides > .mk-slide, .mk-card-img img, .mk-dot { animation: none; transition: none; }
}
@media (max-width: 1080px) {
  .mk-mega-body { grid-template-columns: 180px minmax(0, 1fr); }
  .mk-mega-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-mega-content { padding: 16px; }
  .mk-cats span, .mk-filter-btn span, .mk-act-l, .mk-cats .mk-new, .mk-home span { display: none; }
  .mk-home { width: 40px; padding: 0; justify-content: center; }
  .mk-act { min-width: 46px; }
  .mk-wallet small { display: none; }
  .mk-cart, .mk-wallet-grid, .mk-req-grid, .mk-rev-top { grid-template-columns: minmax(0, 1fr); }
  .mk-summary, .mk-req-form { position: static; }
  .mk-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mk-detail-img { position: relative; top: 0; width: 100%; max-width: 520px; }
  .mk-slide { padding: 30px 76px 44px; }
}
@media (max-width: 699px) {
  .mk-mega { width: calc(100% - 24px); max-height: min(520px, calc(100vh - var(--mk-menu-top, 124px) - 12px)); max-height: min(520px, calc(100dvh - var(--mk-menu-top, 124px) - 12px)); }
  .mk-mega-head { padding: 6px 12px; }
  .mk-mega-body { grid-template-columns: minmax(0, 1fr); }
  .mk-mega-categories { flex-direction: row; gap: 4px; overflow-x: auto; padding: 8px; }
  .mk-mega-cat { width: auto; min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .mk-mega-cat span { white-space: nowrap; }
  .mk-mega-cat > svg:last-child { display: none; }
  .mk-mega-content { padding: 14px 12px 18px; border-top: 1px solid var(--line); border-left: 0; }
  .mk-mega-title { margin-bottom: 16px; }
  .mk-mega-title h3 { font-size: 18px; }
  .mk-mega-columns { gap: 16px 12px; }
  .mk-mega-group h4, .mk-mega-link { font-size: 13px; }
  .mk-mega-link > svg:last-child { display: none; }
  .mk-mega-footer { gap: 2px; max-height: 28vh; overflow-y: auto; padding: 8px; }
  .mk-mega-footer .mk-mega-link { flex: 1 1 calc(50% - 2px); padding: 8px; font-size: 12px; }
  .mk-top-in { flex-wrap: wrap; height: auto; gap: 8px; padding: 10px 12px; }
  .mk-home { order: 1; width: 36px; height: 36px; }
  .mk-logo { order: 1; }
  .mk-logo .logo-mark { display: none; }
  .mk-logo-txt b { font-size: 19px; }
  .mk-acts { order: 2; gap: 2px; margin-left: auto; }
  .mk-who { gap: 6px; margin-right: 0; padding-right: 10px; }
  .mk-cats { order: 3; }
  .mk-search { order: 4; flex: 1 1 160px; }
  .mk-filter-btn { order: 5; }
  .mk-cats, .mk-filter-btn { width: 42px; padding: 0; justify-content: center; }
  .mk-filter-btn i { position: absolute; top: -4px; right: -4px; }
  .mk-act { min-width: 36px; padding: 6px 4px; }
  .mk-main { padding: 12px 12px 32px; }
  .mk-slide { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding: 20px 18px 46px; }
  .mk-slide-img { order: -1; justify-self: start; width: 140px; }
  .mk-slide-txt h2 { font-size: 25px; }
  .mk-hero .mk-nav { top: auto; bottom: 8px; width: 36px; height: 36px; margin-top: 0; }
  .mk-hero .mk-nav.l { left: 10px; }
  .mk-hero .mk-nav.r { right: 10px; }
  .mk-shelf { padding: 14px 12px 16px; }
  .mk-deals-nav { display: none; }
  .mk-deal { width: 96px; }
  .mk-deal-art { width: 88px; height: 88px; }
  .mk-deal-disc { height: 78px; }
  .mk-deal-art img { width: 88px; height: 88px; }
  .mk-deal-ico { width: 78px; height: 78px; }
  .mk-deal-ico svg { width: 32px; height: 32px; }
  .mk-deals-head { margin: 0 12px 8px; }
  .mk-deals-row { padding: 4px 12px 2px; }
  .mk-deals-title h2 { font-size: 17px; }
  .mk-shelf-head h2 { font-size: 17px; }
  .mk-all { font-size: 14px; }
  .mk-shelf-body .mk-nav { display: none; }
  .mk-row { grid-auto-columns: 180px; gap: 10px; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-card-body { padding: 9px; }
  .mk-views.is-compact { font-size: 10px; letter-spacing: -0.2px; }
  .mk-views-eyes { font-size: 12px; }
  .mk-card .mk-rate { gap: 3px; font-size: 10.5px; }
  .mk-sticker { width: 50px; height: 50px; font-size: 9.5px; }
  .mk-section { margin-top: 24px; }
  .mk-sec-head h2 { font-size: 19px; }
  .mk-cta, .mk-req-hero { flex-direction: column; align-items: flex-start; }
  .mk-lines li { flex-wrap: wrap; }
  .mk-line-total { min-width: 0; }
  .mk-balance-n { font-size: 40px; }
  .mk-req-hero h1 { font-size: 22px; }
  .mk-detail-info h1 { font-size: 25px; }
  .mk-price.big .kp { font-size: 26px; }
  .mk-ed-top { flex-direction: column; }
  .mk-filters-body { max-height: none; }
}
