/* =========================================================
   Peevly tasarım sistemi
   Tüm renkler buradaki değişkenlerden gelir. Bileşenlerde sabit renk yazma.
   ========================================================= */
:root {
  /* Marka — Peevly'nin tek ana rengi */
  --color-primary: #3F5BE6;          /* birincil buton, aktif menü, seçili sekme, rozet vurguları */
  --color-primary-hover: #3149CC;    /* birincil buton üzerine gelince */
  --color-primary-active: #283DB0;   /* birincil buton basılıyken */
  --color-primary-light: #EFEEFF;    /* aktif menü zemini, seçili durumlar, bilgi şeritleri */
  --color-primary-text: #3F5BE6;     /* bağlantılar, #etiket, @bahsetme (koyu temada açılır) */
  --color-focus-ring: rgba(99, 91, 246, .3);
  --brand-gradient: linear-gradient(135deg, #4A6CF7 0%, #9B5CF6 55%, #E879B9 100%); /* Lavanta: yalnızca logo, halka ve vurgular */
  --brand-ring: conic-gradient(from 210deg, #4A6CF7, #9B5CF6, #E879B9, #9B5CF6, #4A6CF7);

  /* Nötr yüzeyler ve metin */
  --color-background: #F5F7FB;       /* sayfa zemini */
  --color-surface: #FFFFFF;          /* kart, menü, modal, navigasyon */
  --color-surface-muted: #F2F4F7;    /* ikincil buton, yer tutucu, etiketler */
  --color-surface-hover: #EAECF0;    /* nötr öğelerin hover durumu */
  --color-text-primary: #101828;     /* başlık ve gövde metni */
  --color-text-secondary: #667085;   /* yardımcı metin, zaman, sayaç */
  --color-border: #E4E7EC;           /* kart ve ayırıcı çizgileri */
  --color-border-strong: #D0D5DD;    /* input kenarı (hover) */

  /* Durum renkleri: her biri yalnızca kendi anlamında kullanılır */
  --color-success: #12B76A;          /* çevrimiçi, yakın arkadaş, onay */
  --color-success-light: #ECFDF3;
  --color-success-text: #027A48;     /* açık zeminde okunabilir yeşil (5.1:1) */
  --color-danger: #F04438;           /* hata, silme, engelleme */
  --color-danger-light: #FEF3F2;
  --color-danger-text: #D92D20;      /* metin, sayaç rozeti ve dolu buton (4.8:1) */
  --color-warning: #F79009;          /* dikkat gerektiren bilgi */
  --color-warning-light: #FFFAEB;
  --color-warning-text: #B54708;

  /* Etkileşim */
  --color-like: #F04438;             /* yalnızca beğeni kalbi */

  /* Medya üzeri (temadan bağımsız) */
  --color-on-media: #FFFFFF;
  --color-media-bg: #000000;
  --color-overlay: rgba(16, 24, 40, .6);
  --color-toast: #101828;

  --ring-gap: var(--color-background);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --side-w: 244px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --color-primary-light: #231F4D;
  --color-primary-text: #A9A3FF;
  --color-focus-ring: rgba(169, 163, 255, .35);
  --color-background: #0C111D;
  --color-surface: #161B26;
  --color-surface-muted: #1F242F;
  --color-surface-hover: #2A303C;
  --color-text-primary: #F5F5F6;
  --color-text-secondary: #98A2B3;
  --color-border: #2A303C;
  --color-border-strong: #3B414D;
  --color-success-light: #053321;
  --color-success-text: #47CD89;
  --color-danger-light: #3E1411;
  --color-danger-text: #F97066;
  --color-warning-light: #3A2408;
  --color-warning-text: #FDB022;
  --color-toast: #2A303C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--color-text-primary); background: var(--color-background); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select {
  font: inherit; color: var(--color-text-primary); width: 100%;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--color-text-secondary); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--color-border-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-focus-ring); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--color-primary); }
textarea { resize: vertical; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 6px 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
[hidden] { display: none !important; }

.muted { color: var(--color-text-secondary); }
.muted-light { color: rgba(255,255,255,.75); font-size: 13px; }
.tiny { font-size: 12px; }
.d-block { display: block; }
.pad { padding: 12px 16px; }
.mt { margin-top: 16px; }
.center { text-align: center; }
.danger { color: var(--color-danger-text) !important; }
.push-right { margin-left: auto; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: inline-flex; margin: 0; }
.uname { font-weight: 600; }
.uname:hover { opacity: .7; }
.verified { color: var(--color-primary-text); display: inline-flex; vertical-align: -2px; }
.ic { flex-shrink: 0; }
.mobile-only { display: none; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, transform .05s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }
.btn-ghost { background: var(--color-surface-muted); color: var(--color-text-primary); }
.btn-ghost:hover { background: var(--color-surface-hover); }
.btn-outline { background: var(--color-surface); color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-outline:hover { background: var(--color-surface-muted); }
[data-follow-btn].btn-ghost:hover { background: var(--color-danger-light); color: var(--color-danger-text); }
.btn-danger { background: var(--color-danger-text); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-green { background: var(--color-success-light); color: var(--color-success-text); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px; border-radius: 50%; transition: opacity .15s, transform .1s; }
.icon-btn:hover { opacity: .6; }
.icon-btn:active { transform: scale(.9); }
.link-btn { color: var(--color-primary-text); font-weight: 600; font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--color-primary-light); color: var(--color-primary-text); }
.pill-green { background: var(--color-success-light); color: var(--color-success-text) !important; }
.pill-success { background: var(--color-success-light); color: var(--color-success-text); }
.pill-warning { background: var(--color-warning-light); color: var(--color-warning-text); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-danger-text); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); box-shadow: 0 0 0 2px var(--color-surface); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-word { font-weight: 800; font-size: 21px; letter-spacing: .6px; color: var(--color-primary); background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-mark { border-radius: 9px; background: var(--brand-gradient); }
.logo-mark rect { fill: transparent; }
[data-theme="dark"] .logo-word { color: var(--color-text-primary); }

/* ---------- Uygulama kabuğu ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); padding: 22px 12px 18px;
  border-right: 1px solid var(--color-border); background: var(--color-surface); display: flex; flex-direction: column; gap: 2px; z-index: 40;
}
.sidebar-logo { padding: 6px 12px 26px; }
.side-link {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px;
  font-size: 15px; width: 100%; text-align: left; position: relative; list-style: none; cursor: pointer;
}
.side-link::-webkit-details-marker { display: none; }
.side-link:hover { background: var(--color-surface-muted); }
.side-link:hover .ic, .side-link:hover .avatar { transform: scale(1.06); }
.side-link .ic, .side-link .avatar { transition: transform .15s; }
.side-link.is-active, .side-link[aria-current="page"] { font-weight: 700; color: var(--color-primary-text); background: var(--color-primary-light); }
.side-link.is-active .ic { stroke-width: 2.5; }
.side-menu { position: relative; }
.side-more { margin-top: auto; }
.pop {
  position: absolute; left: 8px; top: 100%; min-width: 230px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; z-index: 60; display: flex; flex-direction: column;
}
.pop-up { top: auto; bottom: 100%; }
.pop-right { left: auto; right: 0; }
.pop a, .pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; width: 100%; text-align: left; }
.pop a:hover, .pop button:hover { background: var(--color-surface-muted); }
.pop form { margin: 0; }
.main { margin-left: var(--side-w); min-height: 100vh; padding: 28px 24px 40px; }
.main-guest { margin-left: 0; }
.guest-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: var(--color-surface); z-index: 30; }
.topbar, .bottombar { display: none; }

.search-panel {
  position: fixed; left: 76px; top: 0; bottom: 0; width: 380px; background: var(--color-surface); z-index: 39;
  border-right: 1px solid var(--color-border); box-shadow: var(--shadow-md); border-radius: 0 18px 18px 0; display: flex; flex-direction: column;
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } }
.search-head { padding: 24px 18px 18px; border-bottom: 1px solid var(--color-border); }
.search-head h2 { margin-bottom: 18px; font-size: 22px; }
.search-results { overflow-y: auto; padding: 8px 0; }
body.search-open .sidebar { width: 76px; }
body.search-open .sidebar .side-link span, body.search-open .logo-word { display: none; }

.usage-banner { background: var(--color-primary-light); color: var(--color-primary-text); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 auto 16px; max-width: 630px; display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* ---------- Avatar ---------- */
.avatar { width: var(--s); height: var(--s); border-radius: 50%; display: inline-flex; flex-shrink: 0; position: relative; }
.avatar img, .avatar-fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--color-primary-light); color: var(--color-primary-text); font-weight: 700; font-size: calc(var(--s) * .42); }
.avatar.has-ring { padding: 2.5px; background: var(--brand-ring); }
.avatar.has-ring img, .avatar.has-ring .avatar-fallback { border: 2.5px solid var(--ring-gap); }
.avatar.has-ring.is-seen { background: var(--color-border-strong); }
.avatar.has-ring.is-close { background: var(--color-success); }
.av-wrap { position: relative; display: inline-flex; }
.online { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--color-success); border: 2px solid var(--color-surface); }

/* ---------- Kartlar & sayfalar ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-narrow { max-width: 600px; margin: 0 auto; }
.page-wide { max-width: 940px; margin: 0 auto; }
.page-head { margin-bottom: 18px; }
.section-title { margin: 28px 0 12px; font-size: 15px; color: var(--color-text-secondary); }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-sm { display: flex; flex-direction: column; align-items: center; padding: 40px 0; gap: 4px; }
.alert { background: var(--color-danger-light); color: var(--color-danger-text); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-weight: 600; font-size: 13px; }
.field-check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.err { color: var(--color-danger-text); font-size: 12px; }
.has-error input, .has-error textarea { border-color: var(--color-danger); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.switch-row input[type=checkbox] {
  appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--color-border-strong); position: relative; flex-shrink: 0; border: 0; padding: 0; cursor: pointer; transition: background .2s;
}
.switch-row input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch-row input[type=checkbox]:checked { background: var(--color-primary); }
.switch-row input[type=checkbox]:checked::after { transform: translateX(18px); }

.tabs { display: flex; justify-content: center; gap: 48px; border-top: 1px solid var(--color-border); margin-bottom: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 16px 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-secondary); border-top: 1px solid transparent; margin-top: -1px; }
.tabs a.is-active { color: var(--color-text-primary); border-top-color: var(--color-primary); }
.tabs-inline { border-top: 0; border-bottom: 1px solid var(--color-border); gap: 0; }
.tabs-inline a { flex: 1; justify-content: center; text-transform: none; letter-spacing: 0; font-size: 14px; border-top: 0; border-bottom: 2px solid transparent; margin: 0; }
.tabs-inline a.is-active { border-bottom-color: var(--color-primary); color: var(--color-text-primary); }

/* ---------- Kullanıcı satırı ---------- */
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.card .user-row { padding: 8px 0; }
.user-row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.user-row-text { display: flex; flex-direction: column; min-width: 0; }
.user-row-text b, .user-row-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selectable-row { cursor: pointer; }
.selectable-row input { width: 22px; height: 22px; }

/* ---------- Akış ---------- */
.feed-layout { display: flex; gap: 64px; justify-content: center; }
.feed-col { width: 100%; max-width: 470px; }
.feed-side { width: 320px; padding-top: 12px; position: sticky; top: 28px; align-self: flex-start; }
.me-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.side-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.side-head a { font-size: 12px; }
.feed-side .user-row { padding: 6px 0; }
.side-foot { margin-top: 28px; }

.stories-tray { display: flex; gap: 14px; overflow-x: auto; padding: 14px 14px 12px; margin-bottom: 16px; scrollbar-width: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); --ring-gap: var(--color-surface); }
.stories-tray::-webkit-scrollbar { display: none; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; flex-shrink: 0; }
.story-bubble small { font-size: 12px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-add { position: relative; padding: 3px; }
.story-plus b { position: absolute; right: 0; bottom: 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-surface); font-size: 16px; }
.story-bubble { position: relative; }
.story-add { padding: 0; }
.story-add b { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ring-gap); font-size: 16px; }

.feed-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.feed-tabs a { padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-secondary); display: inline-flex; gap: 5px; align-items: center; }
.feed-tabs a:hover { color: var(--color-text-primary); }
.feed-tabs a.is-active { background: var(--brand-gradient); border-color: transparent; color: #fff; }
.feed-note { margin-left: auto; }

.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card .post-head { padding: 10px 12px; }
.post-card .post-body { padding: 6px 14px 14px; }
.post-card .carousel { border-radius: 0; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.post-head-text { flex: 1; min-width: 0; line-height: 1.3; }
.post-body { padding-top: 4px; }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 0 -6px; }
.like-btn.is-on { color: var(--color-like); }
.like-btn.pop-anim { animation: heartPop .25s ease; }
@keyframes heartPop { 50% { transform: scale(1.15); } }
.save-btn.is-on { color: var(--color-text-primary); }
.post-likes { margin: 4px 0 6px; font-size: 14px; }
.caption { word-wrap: break-word; }
.caption.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { color: var(--color-text-secondary); font-size: 14px; }
.tag-link, .mention-link { color: var(--color-primary-text); }
.view-comments { display: block; margin: 6px 0 4px; font-size: 14px; }
.inline-comments .comment { padding: 2px 0; }
.inline-comments .comment .avatar { display: none; }
.quick-comment { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.quick-comment input[name=text] { border: 0; background: none; padding: 6px 0; box-shadow: none; }
.caught-up { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 0 48px; color: var(--color-success); }
.caught-up b { color: var(--color-text-primary); }

/* ---------- Medya karuseli ---------- */
.carousel { position: relative; background: var(--color-media-bg); border-radius: 8px; overflow: hidden; user-select: none; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: center; max-height: 585px; aspect-ratio: 4/5; background: var(--color-media-bg); }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.carousel-contain .slide { aspect-ratio: auto; height: min(78vh, 720px); max-height: none; }
.carousel-contain .slide img, .carousel-contain .slide video { object-fit: contain; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); color: #101828; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.car-prev { left: 10px; } .car-next { right: 10px; }
.car-btn[disabled] { display: none; }
.car-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.car-dots i.on { background: #fff; }
.sound-btn { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.burst { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--color-on-media); pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.burst.go { animation: burst .6s ease forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: .95; transform: scale(1); } 75% { opacity: .95; } 100% { opacity: 0; transform: scale(1); } }

/* ---------- Izgara ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid-explore > a:nth-child(10n+3), .grid-explore > a:nth-child(10n+6) { grid-row: span 2; }
.grid-item { position: relative; aspect-ratio: 4/5; background: var(--color-surface-muted); overflow: hidden; }
.grid-explore .grid-item { aspect-ratio: auto; min-height: 100%; }
.grid-item img, .grid-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-badge { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); display: flex; gap: 4px; }
.grid-hover { position: absolute; inset: 0; background: rgba(16, 24, 40, .4); color: var(--color-on-media); display: flex; align-items: center; justify-content: center; gap: 22px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.grid-hover span { display: inline-flex; gap: 6px; align-items: center; }
.grid-item:hover .grid-hover { opacity: 1; }
.infinite { height: 40px; grid-column: 1 / -1; }
.infinite.loading::after { content: ""; display: block; width: 24px; height: 24px; margin: 8px auto; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Gönderi detayı ---------- */
.post-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.pd-media .carousel { border-radius: 0; height: 100%; }
.pd-side { display: flex; flex-direction: column; min-height: 0; max-height: min(78vh, 720px); }
.pd-side > .post-head { padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.pd-comments { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.pd-foot { border-top: 1px solid var(--color-border); padding: 8px 16px 6px; }
.pd-foot .quick-comment { border-top: 1px solid var(--color-border); margin: 8px -16px 0; padding: 6px 12px; }
.emoji-bar { display: flex; gap: 6px; padding: 6px 0; font-size: 20px; }
.tagged { margin-top: 6px; font-size: 13px; }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment-body { flex: 1; min-width: 0; word-wrap: break-word; }
.comment-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; margin-top: 4px; flex-wrap: wrap; }
.comment-meta .link-btn { color: var(--color-text-secondary); font-size: 12px; }
.replies-toggle { color: var(--color-text-secondary) !important; font-size: 12px; margin-top: 8px; }
.replies { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.tiny-heart { padding: 4px; }
.tiny-heart.is-on { color: var(--color-like); }
.comment.flash { animation: flash 1.5s ease; }
@keyframes flash { from { background: var(--color-primary-light); } to { background: transparent; } }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: 80px; align-items: flex-start; padding: 8px 40px 32px; }
.profile-avatar { flex-shrink: 0; }
.profile-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.profile-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-username { font-size: 20px; font-weight: 500; margin-right: 10px; display: inline-flex; align-items: center; gap: 6px; }
.profile-stats { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font-size: 16px; }
.profile-bio p { margin: 4px 0; white-space: pre-line; }
.profile-link { color: var(--color-primary-text); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.mutuals { margin: 6px 0 0; }
.highlights { display: flex; gap: 32px; padding: 0 40px 36px; overflow-x: auto; }
.highlight { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.highlight small { font-weight: 600; font-size: 12px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-cover { width: 80px; height: 80px; border-radius: 50%; padding: 3px; border: 1px solid var(--color-border); background: var(--color-surface); overflow: hidden; display: flex; }
.hl-cover img, .hl-cover video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hl-new { align-items: center; justify-content: center; font-size: 40px; font-weight: 200; color: var(--color-text-secondary); }
.private-box { border-top: 1px solid var(--color-border); text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- Ayarlar ---------- */
.settings-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; max-width: 940px; margin: 0 auto; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; position: sticky; top: 28px; }
.settings-nav h3 { padding: 8px 12px 12px; font-size: 20px; }
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; }
.settings-nav a:hover { background: var(--color-surface-muted); }
.settings-nav a.is-active { background: var(--color-primary-light); color: var(--color-primary-text); font-weight: 700; }
.settings-main h2 { margin-bottom: 14px; }
.avatar-edit .link-btn { display: block; }
.usage-bars { display: flex; gap: 10px; height: 120px; align-items: flex-end; margin-top: 12px; }
.ub { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.ub span { width: 100%; height: max(4px, var(--h)); background: var(--color-primary); border-radius: 6px 6px 2px 2px; }

/* ---------- Oluştur ---------- */
.seg { display: inline-flex; background: var(--color-surface-muted); padding: 3px; border-radius: 10px; }
.seg label { cursor: pointer; }
.seg input { display: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--color-text-secondary); }
.seg input:checked + span { background: var(--color-surface); color: var(--color-primary-text); box-shadow: var(--shadow-sm); }
.dropzone { display: flex; align-items: center; justify-content: center; min-height: 260px; border: 2px dashed var(--color-border); border-radius: var(--radius); cursor: pointer; margin-bottom: 16px; transition: border-color .15s, background .15s; text-align: center; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--color-primary); background: var(--color-primary-light); }
.dropzone-tall { min-height: 340px; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--color-text-secondary); padding: 20px; }
.dz-empty b { color: var(--color-text-primary); font-size: 17px; font-weight: 500; }
.dropzone.has-files { min-height: 0; padding: 12px; }
.dropzone.has-files .dz-empty .ic, .dropzone.has-files .dz-empty b, .dropzone.has-files [data-dz-hint] { display: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.preview { display: flex; flex-direction: column; gap: 6px; }
.preview-media { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: #000; }
.preview-media img, .preview-media video { width: 100%; height: 100%; object-fit: cover; }
.preview-media b { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 99px; }
.preview input { font-size: 12px; padding: 6px 8px; }
.advanced { margin: 6px 0 18px; }
.advanced summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.edit-media { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 16px; }
.edit-media-item { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.edit-media-item img, .edit-media-item video { aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; width: 100%; }
.story-preview { margin-bottom: 16px; }
.story-preview .preview-media { aspect-ratio: 9/16; max-width: 260px; margin: 0 auto; }
.swatches { display: flex; gap: 10px; }
.swatches input { display: none; }
.swatches i { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--color-border); cursor: pointer; }
.swatches input:checked + i { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* ---------- Filtreler ---------- */
.f-parlak { filter: contrast(1.18) saturate(1.3); }
.f-sicak { filter: sepia(.22) saturate(1.3) hue-rotate(-8deg); }
.f-soguk { filter: brightness(1.04) saturate(.9) hue-rotate(12deg); }
.f-canli { filter: saturate(1.55) contrast(1.05); }
.f-vintage { filter: sepia(.5) contrast(.92) brightness(1.05); }
.f-sb { filter: grayscale(1) contrast(1.12); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filter-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--color-text-secondary); padding: 4px; border-radius: 10px; flex-shrink: 0; }
.filter-chip.is-on { color: var(--color-primary-text); background: var(--color-primary-light); }
.fsw { width: 52px; height: 52px; border-radius: 8px; display: block; background: linear-gradient(90deg, #F79009 0 33%, #12B76A 33% 66%, #0A47B8 66% 100%); }
.preview select { font-size: 12px; padding: 5px 8px; }
.sticker-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--color-surface-muted); border-radius: var(--radius-sm); margin-bottom: 10px; }
.story-stats { display: flex; gap: 20px; padding: 6px 0 12px; }
.story-stats span { display: inline-flex; gap: 6px; align-items: center; }
.poll-result { background: var(--color-surface-muted); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pr-row { display: grid; grid-template-columns: 90px 1fr 90px; gap: 10px; align-items: center; }
.pr-row i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--color-primary) var(--p), var(--color-border) var(--p)); }
/* Hikaye çıkartmaları */
.story-stickers { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 4; pointer-events: none; }
.story-stickers > * { pointer-events: auto; }
.st-poll, .st-question { width: 78%; background: #fff; color: #101828; border-radius: 16px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; }
.st-poll b, .st-question b { display: block; margin-bottom: 10px; font-size: 16px; }
.st-poll-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-poll-opts button { position: relative; overflow: hidden; padding: 12px 8px; border-radius: 10px; background: #F2F4F7; font-weight: 700; color: #101828; }
.st-poll-opts button i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0); background: rgba(10,71,184,.18); transition: width .4s; }
.st-poll-opts button span { position: relative; }
.st-poll-opts button.mine { outline: 2px solid var(--color-primary); }
.st-question { background: var(--color-primary); color: #fff; }
.st-question input { background: rgba(255,255,255,.95); color: #101828; border: 0; text-align: center; }
.st-link { background: #fff; color: var(--color-primary); font-weight: 800; padding: 10px 18px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Keşfet / etiket ---------- */
.tag-head { display: flex; align-items: center; gap: 28px; padding: 12px 0 8px; }
.tag-icon { width: 120px; height: 120px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-text); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 300; }
.tag-av .avatar-fallback { font-size: 20px; }
.explore-search { margin-bottom: 12px; }

/* ---------- Reels ---------- */
.main-reels { padding: 0; }
.reels { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 0; }
.reel-stage { height: 100%; aspect-ratio: 9/16; max-width: calc(100vw - 32px); border-radius: 10px; }
.reel-stage video { width: 100%; height: 100%; object-fit: cover; }
.reel-sound { top: 14px; bottom: auto; right: 14px; width: 34px; height: 34px; }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.reel-author { display: flex; align-items: center; gap: 8px; }
.reel-author .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.reel-author .btn-primary { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.reel-caption { margin: 8px 0 0; font-size: 14px; }
.reel-caption a { color: #fff; font-weight: 600; }
.reel-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; align-self: flex-end; padding-bottom: 12px; }
.reel-actions small { font-size: 12px; font-weight: 600; margin-bottom: 10px; min-height: 1em; }

/* ---------- Hikaye görüntüleyici ---------- */
body.story-mode { background: #0C111D; }
body.story-mode .sidebar, body.story-mode .bottombar, body.story-mode .topbar { display: none !important; }
body.story-mode .main { margin: 0; padding: 0; }
.story-viewer { position: fixed; inset: 0; background: #0C111D; display: flex; align-items: center; justify-content: center; z-index: 80; }
.story-close { position: absolute; top: 16px; right: 16px; color: #fff; z-index: 5; }
.story-frame { position: relative; height: min(100vh, 880px); aspect-ratio: 9/16; max-width: 100vw; background: #000; border-radius: 10px; overflow: hidden; color: #fff; }
.story-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.story-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-head { position: absolute; top: 18px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.story-head .icon-btn { color: #fff; font-size: 12px; }
.story-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; }
.story-caption { position: absolute; left: 16px; right: 16px; bottom: 90px; text-align: center; font-size: 22px; font-weight: 700; z-index: 3; text-shadow: 0 2px 8px rgba(0,0,0,.45); margin: 0; }
.story-post-link { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); background: #fff; color: #101828; padding: 8px 16px; border-radius: 99px; font-weight: 700; z-index: 4; }
.story-tap { position: absolute; top: 70px; bottom: 80px; width: 35%; z-index: 2; }
.story-tap-left { left: 0; } .story-tap-right { right: 0; width: 65%; }
.story-foot { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.story-foot .icon-btn { color: #fff; }
.story-foot .icon-btn.is-on { color: var(--color-like); }
.story-reply { flex: 1; }
.story-reply input { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 99px; padding: 10px 16px; }
.story-reply input::placeholder { color: rgba(255,255,255,.8); }
.story-views { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; flex: 1; }
.story-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin-bottom: 16px; }
.sa-item { position: relative; aspect-ratio: 9/16; border-radius: 8px; overflow: hidden; background: #000; display: block; }
.sa-item img, .sa-item video { width: 100%; height: 100%; object-fit: cover; }
.sa-date { position: absolute; top: 6px; left: 6px; background: var(--color-surface); color: var(--color-text-primary); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.sa-views { position: absolute; bottom: 6px; left: 6px; color: #fff; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; text-shadow: 0 1px 2px #000; }
.selectable .sa-item input { position: absolute; opacity: 0; }
.sa-check { position: absolute; bottom: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; color: transparent; display: flex; align-items: center; justify-content: center; }
.selectable .sa-item input:checked ~ .sa-check { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.selectable .sa-item input:checked ~ img, .selectable .sa-item input:checked ~ video { opacity: .7; }
.like-red { color: var(--color-like); }

/* ---------- Mesajlar ---------- */
.main-dm { padding: 0; }
.dm-layout { display: grid; grid-template-columns: 360px 1fr; height: 100vh; background: var(--color-surface); }
.dm-list { border-right: 1px solid var(--color-border); overflow-y: auto; display: flex; flex-direction: column; }
.dm-list-head { display: flex; justify-content: space-between; align-items: center; padding: 30px 20px 14px; }
.dm-list-head h2 { font-size: 20px; }
.dm-item { display: flex; align-items: center; gap: 12px; padding: 9px 20px; }
.dm-item:hover { background: var(--color-surface-muted); }
.dm-item.is-active { background: var(--color-primary-light); }
.dm-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dm-item-text b { font-weight: 500; }
.dm-item-text small { color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item.is-unread b, .dm-item.is-unread small { font-weight: 700; color: var(--color-text-primary); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; margin-left: auto; }
.group-av .avatar-fallback { background: var(--color-surface-muted); color: var(--color-text-secondary); }
.dm-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.dm-empty-icon { width: 96px; height: 96px; border: 2px solid var(--color-primary); color: var(--color-primary-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dm-thread { display: flex; flex-direction: column; min-height: 0; height: 100vh; }
.dm-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--color-border); }
.dm-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.dm-intro { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 0 30px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; position: relative; }
.msg.is-mine { flex-direction: row-reverse; }
.msg-av { flex-shrink: 0; }
.msg-col { display: flex; flex-direction: column; max-width: 68%; gap: 3px; position: relative; }
.msg.is-mine .msg-col { align-items: flex-end; }
.bubble { padding: 9px 14px; border-radius: 20px; background: var(--color-surface-muted); word-wrap: break-word; white-space: pre-wrap; }
.msg.is-mine .bubble { background: var(--color-primary); color: #fff; }
.msg.is-mine .bubble a { color: #fff; text-decoration: underline; }
.bubble-unsent { background: transparent !important; border: 1px solid var(--color-border); color: var(--color-text-secondary) !important; font-style: italic; }
.msg-img img { border-radius: 16px; max-width: 260px; max-height: 340px; object-fit: cover; }
.msg-post { display: flex; flex-direction: column; width: 240px; border-radius: 16px; overflow: hidden; background: var(--color-surface-muted); }
.msg-post-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13px; }
.msg-post img, .msg-post video { aspect-ratio: 1; object-fit: cover; width: 100%; }
.msg-post small { padding: 8px 10px; }
.msg-story img, .msg-story video { width: 110px; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; }
.msg-story-note, .msg-name { font-size: 11px; padding: 0 6px; }
.msg-quote { font-size: 12px; color: var(--color-text-secondary); border-left: 3px solid var(--color-border); padding: 2px 8px; }
.msg-reacts { font-size: 13px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 99px; padding: 0 6px; margin-top: -8px; align-self: flex-start; }
.msg.is-mine .msg-reacts { align-self: flex-end; }
.msg-tools { display: flex; opacity: 0; transition: opacity .15s; color: var(--color-text-secondary); }
.msg:hover .msg-tools { opacity: 1; }
.msg-tools form { margin: 0; }
.msg-time { font-size: 10px; opacity: 0; align-self: center; }
.msg:hover .msg-time { opacity: 1; }
.seen-note { text-align: right; padding: 0 22px 4px; font-size: 12px; }
.dm-compose { display: flex; align-items: center; gap: 8px; margin: 10px 16px 16px; padding: 4px 8px 4px 12px; border: 1px solid var(--color-border); border-radius: 99px; }
.dm-compose input[name=text] { border: 0; background: none; box-shadow: none; padding: 9px 4px; }
.reply-preview { display: flex; align-items: center; justify-content: space-between; padding: 6px 22px; background: var(--color-surface-muted); font-size: 12px; }
.dm-request { border-top: 1px solid var(--color-border); padding: 16px; text-align: center; }

/* ---------- Bildirimler ---------- */
.notif-group { margin: 18px 0 6px; font-size: 15px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.notif p { flex: 1; margin: 0; word-wrap: break-word; }
.notif.is-new { background: var(--color-primary-light); margin: 0 -18px; padding: 8px 18px; }
.req-actions { display: inline-flex; gap: 6px; flex-shrink: 0; }
.req-actions form { margin: 0; }
.notif-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--color-surface-muted); }
.notif-thumb img, .notif-thumb video { width: 100%; height: 100%; object-fit: cover; }
.notif-requests { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.activity-row { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--color-border); }

/* ---------- Kaydedilenler ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.collection-card { display: flex; flex-direction: column; gap: 8px; }
.cc-grid { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--color-surface-muted); }
.cc-grid img, .cc-grid video { width: 100%; height: 100%; object-fit: cover; }
.inline-new { display: flex; gap: 8px; }
.inline-new input { width: 200px; padding: 6px 10px; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 16px; background: var(--color-surface); color: var(--color-text-primary); width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-md); }
.modal::backdrop { background: var(--color-overlay); }
.modal[open] { animation: pop .18s ease; }
@keyframes pop { from { transform: scale(1.02); opacity: 0; } }
.modal-head { display: flex; justify-content: center; align-items: center; padding: 12px; border-bottom: 1px solid var(--color-border); position: relative; margin: 0; }
.modal-head .icon-btn { position: absolute; right: 8px; }
.modal-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.modal-foot { padding: 12px 16px 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.modal-foot .btn-primary { margin-left: auto; }
.share-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 280px; overflow-y: auto; padding: 4px 0; }
.share-person { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; text-align: center; position: relative; cursor: pointer; padding: 4px; border-radius: 10px; }
.share-person.is-on .avatar::after { content: "✓"; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-surface); }
.share-person small { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-menu { width: min(400px, calc(100vw - 32px)); }
.menu-list { display: flex; flex-direction: column; }
.menu-list > a, .menu-list > form > button, .menu-list > button, .menu-sub > summary {
  display: block; width: 100%; text-align: center; padding: 14px; border-bottom: 1px solid var(--color-border); font-size: 14px; cursor: pointer; list-style: none;
}
.menu-list > form { margin: 0; }
.menu-list > *:last-child, .menu-list > form:last-child > button { border-bottom: 0; }
.menu-list .danger { font-weight: 700; }
.menu-sub > summary::-webkit-details-marker { display: none; }
.menu-sub form { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--color-border); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: var(--color-toast); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-md); font-weight: 500; animation: toastIn .25s ease; max-width: calc(100vw - 32px); }
.toast-error { background: var(--color-danger-text); }
.toast.out { opacity: 0; transform: translateY(10px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Giriş / kayıt ---------- */
.auth-body { background: var(--color-background); }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 40px 20px; }
.auth-hero { width: 500px; display: flex; flex-direction: column; gap: 28px; }
.collage { position: relative; height: 470px; }
.ph { position: absolute; margin: 0; background: var(--color-surface); padding: 6px; border-radius: 20px; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.ph-main { width: 296px; height: 370px; left: 0; top: 46px; transform: rotate(-3deg); z-index: 2; }
.ph-side { width: 218px; height: 272px; right: 6px; top: 0; transform: rotate(3.5deg); z-index: 1; }
.ph-square { width: 176px; height: 176px; right: 0; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: var(--color-surface); color: var(--color-text-primary); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 99px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); white-space: nowrap; }
.chip-like { left: 16px; bottom: 16px; }
.chip-like .ic { color: var(--color-like); }
.chip-user { left: 14px; top: 14px; }
.chip-loc { left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 11px; }
.chip-loc .ic { color: var(--color-primary-text); }
.chip-av { width: 22px; height: 22px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-text); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3.5px #9B5CF6; flex-shrink: 0; }
.bubble-comment { position: absolute; left: 168px; bottom: 104px; z-index: 4; display: flex; align-items: center; gap: 8px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 12px; box-shadow: var(--shadow-md); }
.bubble-comment b { margin-right: 4px; }
.hero-copy h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.6px; margin: 0 0 14px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--color-text-secondary); }
.hero-points li { display: flex; gap: 8px; align-items: center; }
.hero-points .ic { color: var(--color-success); }
.auth-col { width: 380px; display: flex; flex-direction: column; gap: 12px; }
.auth-strip { display: none; }
.auth-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 34px 36px 28px; box-shadow: var(--shadow-sm); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-logo .logo-word { font-size: 28px; }
.auth-logo .logo-mark { width: 38px; height: 38px; }
.auth-sub { color: var(--color-text-secondary); text-align: center; margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .btn { margin-top: 8px; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.auth-form .hint { color: var(--color-text-secondary); font-size: 12px; margin: -4px 2px 2px; }
.auth-form .err { margin: -4px 2px 2px; }
.terms { margin: 4px 0 0; line-height: 1.5; }
/* Kayan etiketli alanlar */
.ff { position: relative; }
.ff input { height: 52px; padding: 20px 14px 6px; font-size: 15px; background: var(--color-surface); }
.ff label { position: absolute; left: 15px; top: 16px; font-size: 15px; color: var(--color-text-secondary); pointer-events: none; transition: transform .15s, font-size .15s, color .15s; transform-origin: left top; }
.ff input:focus + label, .ff input:not(:placeholder-shown) + label { transform: translateY(-9px); font-size: 11.5px; }
.ff input:focus + label { color: var(--color-primary-text); }
.ff.has-error input { border-color: var(--color-danger); }
.ff-pass input { padding-right: 70px; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--color-text-primary); padding: 6px 8px; border-radius: 8px; }
.pass-toggle:hover { background: var(--color-surface-muted); }
.pass-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -2px 2px 0; }
.pass-meter i { height: 4px; border-radius: 2px; background: var(--color-border); transition: background .2s; }
.pass-meter[data-level="1"] i:nth-child(-n+1) { background: var(--color-danger); }
.pass-meter[data-level="2"] i:nth-child(-n+2) { background: var(--color-warning); }
.pass-meter[data-level="3"] i:nth-child(-n+3) { background: var(--color-success); }
.pass-meter[data-level="4"] i { background: var(--color-success); }
.auth-alt { text-align: center; padding: 20px; }
.auth-alt a { color: var(--color-primary-text); }
.auth-foot { text-align: center; color: var(--color-text-secondary); font-size: 12px; margin: 6px 0 0; }
.or { display: flex; align-items: center; gap: 14px; color: var(--color-text-secondary); font-size: 12px; font-weight: 600; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.link-center { display: block; text-align: center; font-size: 13px; color: var(--color-primary-text); margin-top: 16px; }

/* =========================================================
   Duyarlı yerleşim
   ========================================================= */
@media (max-width: 1260px) {
  :root { --side-w: 76px; }
  .sidebar .side-link span, .sidebar .logo-word { display: none; }
  .sidebar .badge { position: absolute; top: 4px; left: 30px; }
  .sidebar-logo { padding: 6px 10px 26px; }
  .search-panel { left: 76px; }
}
@media (max-width: 1100px) {
  .feed-side { display: none; }
}
@media (max-width: 860px) {
  .post-detail { grid-template-columns: 1fr; }
  .pd-side { max-height: none; }
  .carousel-contain .slide { height: auto; aspect-ratio: 4/5; }
  .profile-head { gap: 28px; padding: 8px 0 24px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; }
  .auth-hero { display: none; }
  .auth-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; height: 120px; margin-bottom: 6px; }
  .auth-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
  .auth-wrap { align-items: flex-start; padding-top: 24px; }
  .dm-layout { grid-template-columns: 300px 1fr; }
}
@media (max-width: 767px) {
  .sidebar { display: none; }
  .mobile-only { display: block; }
  .main { margin-left: 0; padding: 60px 0 70px; }
  .main-reels { padding: 52px 0 52px; }
  .main-dm { padding-top: 52px; padding-bottom: 52px; }
  .topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 52px; align-items: center; justify-content: space-between; padding: 0 14px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); z-index: 40; }
  .topbar-actions { display: flex; gap: 14px; }
  .topbar-actions a { position: relative; display: inline-flex; }
  .bottombar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: calc(52px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); justify-content: space-around; align-items: center; background: var(--color-surface); border-top: 1px solid var(--color-border); z-index: 40; }
  .bottombar a { padding: 8px 14px; display: inline-flex; color: var(--color-text-primary); }
  .bottombar a.is-active { color: var(--color-primary-text); }
  .bottombar a.is-active .avatar { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3.5px var(--color-primary); }
  .topbar .logo-word { font-size: 19px; }
  .search-panel { left: 0; right: 0; width: auto; border-radius: 0; top: 52px; bottom: 52px; }
  .page-wide, .page-narrow { padding: 0 12px; }
  .page-narrow .card { border-left: 0; border-right: 0; border-radius: 0; margin: 0 -12px; }
  .feed-col { max-width: none; }
  .stories-tray { padding: 10px 12px 12px; border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; }
  .post-card { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; box-shadow: none; }
  .feed-tabs { padding: 0 12px; }
  .feed-note { display: none; }
  .post-head, .post-body { padding-left: 12px; padding-right: 12px; }
  .carousel { border-radius: 0; }
  .post-detail { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -12px; }
  .grid { gap: 2px; }
  .page-wide > .grid, .profile .grid { margin: 0 -12px; }
  .profile-head { flex-direction: row; align-items: center; gap: 20px; padding: 12px 4px; }
  .profile-avatar .avatar { --s: 86px !important; }
  .profile-stats { gap: 18px; font-size: 14px; }
  .profile-info { gap: 10px; }
  .highlights { padding: 0 4px 20px; gap: 16px; }
  .hl-cover { width: 64px; height: 64px; }
  .tabs { gap: 0; justify-content: space-around; }
  .tabs a { font-size: 0; letter-spacing: 0; }
  .tabs a .ic { width: 22px; height: 22px; }
  .tabs-inline a { font-size: 14px; }
  .reels, .reel { height: calc(100vh - 104px); }
  .reel { padding: 0; position: relative; }
  .reel-stage { border-radius: 0; height: 100%; width: 100%; max-width: none; aspect-ratio: auto; }
  .reel-actions { position: absolute; right: 8px; bottom: 90px; color: #fff; z-index: 3; }
  .reel-info { padding-right: 70px; }
  .dm-layout { grid-template-columns: 1fr; height: calc(100vh - 104px); }
  .dm-layout.has-thread .dm-list { display: none; }
  .dm-layout:not(.has-thread) .dm-empty { display: none; }
  .dm-thread { height: calc(100vh - 104px); }
  .story-frame { border-radius: 0; height: 100vh; width: 100vw; aspect-ratio: auto; }
  .row-2 { grid-template-columns: 1fr; }
  .tag-head { padding: 12px 0; gap: 16px; }
  .tag-icon { width: 76px; height: 76px; font-size: 36px; }
  .inline-new input { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Bahsetme kutusu, sesli mesaj, notlar ---------- */
.mention-box { position: absolute; z-index: 120; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; }
.mention-box button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 12px; text-align: left; }
.mention-box button:hover { background: var(--color-surface-muted); }
.mention-box small { color: var(--color-text-secondary); }
[data-record].is-rec { color: var(--color-danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.msg-audio audio { width: 240px; height: 40px; }
.notes-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 14px; }
.note { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; flex-shrink: 0; position: relative; padding-top: 30px; font-size: 12px; text-align: center; }
.note-bubble { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 2px 8px rgba(0,0,0,.08); border-radius: 14px; padding: 4px 8px; font-size: 11px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 1; }
.note-bubble.empty { color: var(--color-text-secondary); }
.note small { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-form { display: flex; gap: 8px; padding: 0 20px 12px; }
.insights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--color-surface-muted); border-radius: 12px; padding: 10px; margin: 8px 0; text-align: center; font-size: 12px; }
.insights b { display: block; font-size: 16px; }
.verify-banner { background: var(--color-warning-light); color: var(--color-warning-text); border: 1px solid color-mix(in srgb, var(--color-warning) 35%, transparent); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 auto 16px; max-width: 630px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.verify-banner form { margin: 0; }
.sw-white { background: #FFFFFF; } .sw-ink { background: #101828; } .sw-primary { background: var(--color-primary); }
.sw-warning { background: var(--color-warning); } .sw-danger { background: var(--color-danger); } .sw-success { background: var(--color-success); }

/* Profil fotoğrafı değiştirme */
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.avatar-actions .btn { cursor: pointer; }
.avatar-change { position: relative; display: inline-flex; cursor: pointer; border-radius: 50%; }
.avatar-change-hint { position: absolute; inset: 0; border-radius: 50%; background: var(--color-overlay); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.avatar-change:hover .avatar-change-hint, .avatar-change:focus-within .avatar-change-hint { opacity: 1; }
[data-avatar-box].is-uploading .avatar { opacity: .45; }
[data-avatar-box].is-uploading .avatar::after { content: ""; position: absolute; inset: 35%; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .7s linear infinite; }
@media (max-width: 420px) {
  .auth-col { width: 100%; }
  .auth-card { padding: 26px 20px 22px; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .auth-wrap { gap: 36px; }
  .auth-hero { width: 420px; }
  .collage { transform: scale(.85); transform-origin: left top; height: 400px; }
}
.info-row { cursor: default; }
.info-row .pill { white-space: nowrap; flex-shrink: 0; }

/* Dokunmatik ekranlar: üzerine gelme yok, araçlar hep görünür */
@media (hover: none) {
  .msg-tools { opacity: .75; }
  .msg-time { opacity: .8; }
  .avatar-change-hint { opacity: 1; background: transparent; align-items: flex-end; justify-content: flex-end; }
  .avatar-change-hint .ic { background: var(--color-primary); color: #fff; border-radius: 50%; padding: 6px; width: 34px; height: 34px; border: 3px solid var(--color-background); }
  .grid-hover { display: none; }
}

/* ---------- Alt sayfa (sheet) menüleri ---------- */
.sheet { padding: 10px 12px 14px; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--color-border-strong); margin: 2px auto 10px; }
.sheet-title { text-align: center; font-size: 16px; margin-bottom: 8px; }
.sheet-list { display: flex; flex-direction: column; margin-bottom: 10px; }
.sheet-list > a, .sheet-list > button { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; text-align: left; width: 100%; }
.sheet-list > a:hover, .sheet-list > button:hover { background: var(--color-surface-muted); }
.sheet-list span { display: flex; flex-direction: column; }
.sheet-list small { color: var(--color-text-secondary); font-size: 12px; }
.sheet-list .badge { margin-left: auto; }
.sheet .ic { color: var(--color-text-primary); }
.desktop-only { display: inline-flex; }
.bottombar button { padding: 8px 14px; display: inline-flex; color: var(--color-text-primary); }
/* Mobil öneri şeridi */
.suggest-strip { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 12px 0; margin-bottom: 8px; }
.suggest-strip .side-head { padding: 0 12px; }
.suggest-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-card { flex: 0 0 148px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 10px 12px; background: var(--color-surface); }
.suggest-card .btn { width: 100%; margin-top: 6px; }
.suggest-card small { font-size: 12px; }
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .mobile-only.icon-btn { display: inline-flex; }
  .sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .sheet[open] { animation: sheetUp .2s ease; }
  @keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } }
  .profile-top { gap: 8px; }
}
@media (min-width: 768px) { .suggest-strip { display: none !important; } }

/* ---------- Anketli gönderi (Peevly'ye özel) ---------- */
.post-poll { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 6px 0 8px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.poll-q { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.poll-q .ic { color: var(--color-primary-text); }
.post-poll form { margin: 0; }
.poll-opt { width: 100%; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--color-border); font-weight: 600; transition: border-color .15s, background .15s; }
.poll-opt:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.poll-res { position: relative; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; overflow: hidden; background: var(--color-surface-muted); }
.poll-res::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--color-primary-light); transition: width .4s; }
.poll-res > * { position: relative; }
.poll-res.is-mine { outline: 1.5px solid var(--color-primary); }
.poll-res.is-mine span { color: var(--color-primary-text); font-weight: 700; }
.pd-poll { padding: 12px 16px 0; }
.pd-poll .post-poll { margin: 0; }
.poll-builder summary .pill { margin-left: 6px; }
/* Anılar */
.memory-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.memory-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.memory-head span { display: inline-flex; gap: 6px; align-items: center; }
.memory-head .ic { color: var(--color-warning); }
.memory-head form { margin: 0; }
.memory-row { display: flex; gap: 8px; overflow-x: auto; }
.memory-item { position: relative; flex: 0 0 96px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--color-surface-muted); }
.memory-item img { width: 100%; height: 100%; object-fit: cover; }
.memory-item small { position: absolute; left: 6px; bottom: 6px; background: var(--color-surface); color: var(--color-text-primary); font-weight: 700; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
/* Sessiz mod */
.quiet-options { display: flex; gap: 8px; flex-wrap: wrap; }
.quiet-banner { justify-content: space-between; }
.quiet-banner form { margin: 0 0 0 auto; }
@media (max-width: 767px) { .memory-card { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; } }
.collab-ask { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--color-primary-light); font-size: 13px; }
.collab-ask form { margin: 0; }

/* Mesaj sayfası: grid sütunları içerikten geniş olmasın (mobil/tablet yatay taşma) */
.dm-layout > *, .dm-thread, .dm-messages, .dm-head > div { min-width: 0; }
.dm-head > div { overflow: hidden; }
.dm-head .uname, .dm-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-col { min-width: 0; }
.bubble { overflow-wrap: anywhere; }
.msg-post { max-width: 100%; }
.msg-img img { max-width: min(260px, 100%); }
@media (max-width: 767px) { .msg-col { max-width: 78%; } .msg-tools .icon-btn { padding: 4px; } }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--color-primary); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Yasal sayfalar */
.legal-draft { background: var(--color-warning-light); color: var(--color-warning-text); border: 1px solid color-mix(in srgb, var(--color-warning) 35%, transparent); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.legal-nav a { padding: 6px 12px; border-radius: 99px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-secondary); }
.legal-nav a.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.legal-body { line-height: 1.65; font-size: 15px; }
.legal-body h1 { font-size: 24px; margin-bottom: 4px; }
.legal-body h2 { font-size: 17px; margin: 24px 0 8px; }
.legal-body a { color: var(--color-primary-text); text-decoration: underline; }
.legal-body ul, .legal-body ol { padding-left: 20px; }
.legal-body li { margin: 4px 0; }
.table-wrap { overflow-x: auto; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-body th, .legal-body td { border: 1px solid var(--color-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--color-surface-muted); }
.auth-foot a, .side-foot a { color: inherit; }
.auth-foot a:hover, .side-foot a:hover { text-decoration: underline; }
.terms a { color: var(--color-primary-text); text-decoration: underline; }
