:root {
  --accent: #7c5cff;
  --accent-hover: #6a48f5;
  --accent-soft: rgba(124, 92, 255, .14);
  --like: #f0436b;
  --like-soft: rgba(240, 67, 107, .12);
  --repost: #12b886;
  --repost-soft: rgba(18, 184, 134, .12);
  --danger: #e5484d;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f5f6f8; --bg-3: #eceef2; --hover: rgba(15, 17, 21, .045);
  --text: #0f1115; --muted: #5f6672; --border: #e4e6eb; --overlay: rgba(15, 17, 21, .4);
  --bubble-other: #eceef2;
}
[data-theme="dark"] {
  --bg: #0f1115; --bg-2: #171a20; --bg-3: #20242c; --hover: rgba(255, 255, 255, .045);
  --text: #eceef2; --muted: #8b93a1; --border: #262a33; --overlay: rgba(70, 80, 100, .35);
  --bubble-other: #20242c;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
svg.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.ic.fill { fill: currentColor; }

/* ---------- Layout ---------- */
.layout { display: flex; justify-content: center; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 8px 12px 16px; }
.main { width: 600px; max-width: 100%; border-left: 1px solid var(--border); border-right: 1px solid var(--border); min-height: 100vh; }
.aside { width: 350px; flex-shrink: 0; padding: 8px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }

.logo { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 4px; }
.logo:hover { background: var(--hover); }
.logo span { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.logo span::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #fff; }

.nav a { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border-radius: 999px; font-size: 19px; width: fit-content; position: relative; }
.nav a:hover { background: var(--hover); }
.nav a.active { font-weight: 700; }
.nav a svg.ic { width: 25px; height: 25px; }
.nav .badge { position: absolute; top: 6px; left: 28px; }
.badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; border: 2px solid var(--bg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; border-radius: 999px; padding: 8px 16px; transition: background .15s, opacity .15s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--accent-hover); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:not(:disabled):hover { opacity: .88; }
.btn-outline { border: 1px solid var(--border); }
.btn-outline:hover { background: var(--hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 17px; width: 100%; }
.btn.following:hover { border-color: var(--danger); color: var(--danger); background: rgba(229, 72, 77, .08); }
.btn.following:hover .lbl { display: none; }
.btn.following:hover::after { content: "Deixar de seguir"; }

.compose-btn { margin-top: 12px; width: 90%; }
.me-card { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 999px; cursor: pointer; }
.me-card:hover { background: var(--hover); }
.me-card .who { min-width: 0; flex: 1; }

.header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; padding: 0 16px; min-height: 53px; }
.header-row h1 { font-size: 20px; margin: 0; }
.header-row .sub { font-size: 13px; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.icon-btn:hover { background: var(--hover); }
.tabs { display: flex; }
.tabs a, .tabs button { flex: 1; text-align: center; padding: 16px 8px; color: var(--muted); font-weight: 500; position: relative; }
.tabs a:hover, .tabs button:hover { background: var(--hover); }
.tabs .active { color: var(--text); font-weight: 700; }
.tabs .active::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 2px; background: var(--accent); }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-3); display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; }
.av-40 { width: 40px; height: 40px; font-size: 16px; }
.av-48 { width: 48px; height: 48px; font-size: 18px; }
.av-32 { width: 32px; height: 32px; font-size: 13px; }
.av-24 { width: 24px; height: 24px; font-size: 10px; }
.av-134 { width: 134px; height: 134px; font-size: 48px; border: 4px solid var(--bg); }
.verified { color: var(--accent); display: inline-flex; vertical-align: -3px; }
.verified svg { width: 18px; height: 18px; }
.verified + .verified { margin-left: 2px; }
.role-admin { color: #e5484d; }
.role-mod { color: #12b886; }
.role-vip { color: #f5a524; }
.role-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 3px 10px 3px 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.role-pill svg { width: 16px; height: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 16px 16px 4px; }
.stat { background: var(--bg-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Compose ---------- */
.composer { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.composer .body { flex: 1; min-width: 0; }
.composer textarea { width: 100%; border: 0; background: transparent; resize: none; font-size: 20px; outline: none; padding: 8px 0; min-height: 56px; }
.composer.in-modal textarea { min-height: 110px; }
.composer .toolbar { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.composer .toolbar .icon-btn { color: var(--accent); }
.composer .toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.counter { font-size: 13px; color: var(--muted); }
.counter.warn { color: #f59f00; }
.counter.over { color: var(--danger); }
.ring { width: 24px; height: 24px; transform: rotate(-90deg); }
.previews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
.previews .pv { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-3); }
.previews .pv img { width: 100%; height: 100%; object-fit: cover; }
.previews .pv button { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .7); color: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.previews.one { grid-template-columns: 1fr; }

.new-posts { position: sticky; top: 110px; z-index: 9; display: flex; justify-content: center; height: 0; }
.new-posts button { margin-top: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }

/* ---------- Posts ---------- */
.post > .row { display: flex; gap: 12px; }
.post { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; position: relative; }
.post:hover { background: var(--hover); }
.post .left { display: flex; flex-direction: column; align-items: center; }
.post .body { flex: 1; min-width: 0; }
.post .meta { display: flex; align-items: center; gap: 4px; min-width: 0; }
.post .meta .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .meta .name:hover { text-decoration: underline; }
.post .meta .handle, .post .meta .dot, .post .meta .time { color: var(--muted); white-space: nowrap; }
.post .meta .handle { overflow: hidden; text-overflow: ellipsis; }
.post .meta .time:hover { text-decoration: underline; }
.post .meta .more { margin-left: auto; color: var(--muted); margin-top: -6px; margin-bottom: -6px; }
.post .meta .more:hover { color: var(--accent); background: var(--accent-soft); }
.post .text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; margin-top: 2px; }
.post .context { font-size: 13px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; margin: -4px 0 4px 28px; }
.post .context a:hover { text-decoration: underline; }
.post .context svg { width: 16px; height: 16px; }
.post .replying { color: var(--muted); font-size: 14px; margin-top: 2px; }
.thread-line { width: 2px; flex: 1; background: var(--border); margin-top: 4px; margin-bottom: -14px; }
.post.has-line { border-bottom: 0; }

.actions { display: flex; justify-content: space-between; max-width: 425px; margin-top: 8px; margin-left: -8px; color: var(--muted); }
.act { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.act .icon-btn { width: 34px; height: 34px; }
.act.reply:hover, .act.views:hover, .act.share:hover, .act.bookmark:hover { color: var(--accent); }
.act.reply:hover .icon-btn, .act.views:hover .icon-btn, .act.share:hover .icon-btn, .act.bookmark:hover .icon-btn { background: var(--accent-soft); }
.act.repost:hover, .act.repost.on { color: var(--repost); }
.act.repost:hover .icon-btn { background: var(--repost-soft); }
.act.like:hover, .act.like.on { color: var(--like); }
.act.like:hover .icon-btn { background: var(--like-soft); }
.act.bookmark.on { color: var(--accent); }
.act.like.on svg { fill: currentColor; }
.act.bookmark.on svg { fill: currentColor; }
.act .pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

.media { margin-top: 10px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: grid; gap: 2px; }
.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 img:first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/9; }
.media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.media.n1 img { max-height: 510px; height: auto; }

.quote { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; overflow: hidden; }
.quote:hover { background: var(--hover); }
.quote .meta { font-size: 14px; }
.quote .text { font-size: 15px; }
.quote .media { margin: 8px -12px -10px; border-radius: 0; border: 0; border-top: 1px solid var(--border); }
.quote.gone { color: var(--muted); background: var(--bg-2); }

/* Post em destaque */
.post.focus { cursor: default; }
.post.focus:hover { background: transparent; }
.post.focus .head { display: flex; gap: 12px; align-items: center; }
.post.focus .text { font-size: 17px; margin-top: 12px; }
.post.focus .stamp { color: var(--muted); padding: 16px 0; border-bottom: 1px solid var(--border); }
.post.focus .stats { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.post.focus .stats a:hover { text-decoration: underline; }
.post.focus .stats b { color: var(--text); }
.post.focus .actions { max-width: none; justify-content: space-around; margin: 4px 0; }
.post.focus .actions .icon-btn { width: 40px; height: 40px; }
.post.focus .actions svg.ic { width: 22px; height: 22px; }

/* ---------- Menus ---------- */
.menu { position: fixed; z-index: 100; background: var(--bg); border-radius: 12px; box-shadow: 0 0 0 1px var(--border), 0 8px 28px rgba(0, 0, 0, .25); min-width: 220px; overflow: hidden; animation: fade .12s ease; }
.menu button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: left; font-weight: 700; }
.menu button:hover { background: var(--hover); }
.menu button.danger { color: var(--danger); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Modais ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow-y: auto; }
.modal { background: var(--bg); border-radius: var(--radius); width: 600px; max-width: 100%; box-shadow: 0 8px 40px rgba(0, 0, 0, .3); animation: fade .15s ease; }
.modal .mhead { display: flex; align-items: center; gap: 16px; padding: 8px 12px; min-height: 53px; }
.modal .mhead h2 { font-size: 20px; margin: 0; flex: 1; }
.modal .mbody { padding: 0 16px 16px; }
.modal.small { width: 380px; padding: 28px; }
.modal.small h2 { margin: 0 0 8px; font-size: 20px; }
.modal.small .btn { width: 100%; margin-top: 10px; padding: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 80; display: grid; place-items: center; }
.lightbox img { max-width: 95vw; max-height: 92vh; }
.lightbox button { position: absolute; top: 14px; left: 14px; color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Formulários ---------- */
.field { position: relative; border: 1px solid var(--border); border-radius: 6px; margin: 14px 0; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field label { position: absolute; top: 7px; left: 10px; font-size: 13px; color: var(--muted); pointer-events: none; }
.field:focus-within label { color: var(--accent); }
.field input, .field textarea, .field select { width: 100%; border: 0; outline: none; background: transparent; padding: 28px 10px 8px; font-size: 17px; resize: vertical; }
.field .count { position: absolute; top: 7px; right: 10px; font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; margin: 8px 0; }
.search-box { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid transparent; border-radius: 999px; padding: 0 16px; color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); background: var(--bg); color: var(--accent); }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; padding: 12px 0; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; }
.switch:hover { background: var(--hover); }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Cards laterais ---------- */
.card { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.card h2 { font-size: 20px; margin: 0; padding: 12px 16px; }
.card .row { padding: 12px 16px; display: block; }
.card .row:hover { background: var(--hover); }
.card .more { padding: 16px; display: block; color: var(--accent); }
.card .more:hover { background: var(--hover); }
.trend .small { font-size: 13px; color: var(--muted); }
.trend .tag { font-weight: 700; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.user-row:hover { background: var(--hover); }
.user-row .who { flex: 1; min-width: 0; }
.user-row .bio { margin-top: 4px; font-size: 15px; }
.who .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 2px; }
.who .h { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { background: var(--bg-3); color: var(--muted); font-size: 12px; border-radius: 4px; padding: 1px 4px; margin-left: 4px; font-weight: 400; }
.footer-links { font-size: 13px; color: var(--muted); padding: 0 16px; }

/* ---------- Perfil ---------- */
.banner { aspect-ratio: 3/1; background: linear-gradient(135deg, var(--accent), #3ec7c2); position: relative; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-top { padding: 12px 16px; position: relative; }
.profile-top .av-wrap { margin-top: -78px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; }
.profile-top .buttons { display: flex; gap: 8px; align-items: center; }
.profile-top h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 4px; }
.profile-top .bio { margin: 12px 0; white-space: pre-wrap; }
.profile-top .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.profile-top .facts span, .profile-top .facts a { display: inline-flex; align-items: center; gap: 4px; }
.profile-top .facts svg { width: 18px; height: 18px; }
.profile-top .counts { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); }
.profile-top .counts a:hover { text-decoration: underline; }
.profile-top .counts b { color: var(--text); }
.pinned { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 0 0 4px 28px; }
.pinned svg { width: 16px; height: 16px; }
.edit-images { position: relative; }
.edit-images .banner .icon-btn, .edit-images .av-edit .icon-btn { position: absolute; background: rgba(0, 0, 0, .55); color: #fff; width: 44px; height: 44px; }
.edit-images .banner .ep-btns { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 14px; }
.edit-images .banner .ep-btns .icon-btn { position: static; }
.edit-images .av-edit { position: relative; width: 112px; margin: -48px 0 0 16px; }
.edit-images .av-edit .avatar { width: 112px; height: 112px; border: 4px solid var(--bg); font-size: 40px; }
.edit-images .av-edit .icon-btn { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ---------- Notificações ---------- */
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif:hover { background: var(--hover); }
.notif.unread { background: var(--accent-soft); }
.notif .kind { width: 40px; display: flex; justify-content: flex-end; }
.notif .kind svg { width: 28px; height: 28px; }
.notif .kind.like { color: var(--like); }
.notif .kind.like svg { fill: currentColor; }
.notif .kind.repost { color: var(--repost); }
.notif .kind.follow, .notif .kind.mention, .notif .kind.reply, .notif .kind.quote { color: var(--accent); }
.notif .body { flex: 1; min-width: 0; }
.notif .snippet { color: var(--muted); margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Mensagens ---------- */
.dm-layout { display: flex; height: 100vh; }
.dm-list { width: 100%; overflow-y: auto; }
.conv { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; align-items: center; }
.conv:hover { background: var(--hover); }
.conv.active { background: var(--bg-2); box-shadow: inset -2px 0 0 var(--accent); }
.conv .who { flex: 1; min-width: 0; }
.conv .last { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .last { color: var(--text); font-weight: 700; }
.conv .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.group-av { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.group-av .avatar { position: absolute; width: 28px; height: 28px; font-size: 11px; border: 2px solid var(--bg); }
.group-av .avatar:first-child { top: 0; left: 0; }
.group-av .avatar:last-child { bottom: 0; right: 0; }

.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.chat .stream { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.chat .intro { text-align: center; padding: 24px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.chat .intro .avatar { margin: 0 auto 8px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; margin-top: 6px; position: relative; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { background: var(--bubble-other); padding: 10px 14px; border-radius: 22px 22px 22px 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent); color: #fff; border-radius: 22px 22px 6px 22px; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.msg .bubble img { border-radius: 14px; max-height: 300px; cursor: zoom-in; }
.msg .bubble.img-only { padding: 0; background: none; }
.msg .time { font-size: 12px; color: var(--muted); margin-top: 3px; }
.msg .sender { font-size: 12px; color: var(--muted); margin: 0 0 2px 6px; }
.msg .del { position: absolute; top: 50%; left: -40px; transform: translateY(-50%); opacity: 0; color: var(--muted); }
.msg:hover .del { opacity: 1; }
.msg .shared { width: 300px; max-width: 100%; background: var(--bg); color: var(--text); border-radius: 14px; }
.msg .shared .quote { margin: 0; }
.typing { color: var(--muted); font-size: 13px; padding: 4px 16px; min-height: 22px; }
.chat .composer-bar { display: flex; align-items: flex-end; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--border); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.chat .composer-bar .box { flex: 1; background: var(--bg-2); border-radius: 18px; display: flex; flex-direction: column; }
.chat .composer-bar textarea { border: 0; background: transparent; outline: none; resize: none; padding: 10px 14px; max-height: 140px; }
.chat .composer-bar .icon-btn { color: var(--accent); }
.chat .preview-img { padding: 8px; position: relative; width: fit-content; }
.chat .preview-img img { max-height: 120px; border-radius: 12px; }
.chat .preview-img button { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .7); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.picked .chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 3px; font-weight: 700; font-size: 14px; }
.picked .chip:hover { background: var(--hover); }
.user-row .check { color: var(--accent); }

/* ---------- Diversos ---------- */
.empty { padding: 40px 32px; max-width: 400px; margin: 0 auto; }
.empty h2 { font-size: 30px; margin: 0 0 8px; line-height: 1.1; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 500; animation: fade .2s ease; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.toast.err { background: var(--danger); }
.section-title { font-size: 20px; font-weight: 800; padding: 12px 16px; margin: 0; }
.settings-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; }
.settings-item:hover { background: var(--hover); }
.theme-pick { display: flex; gap: 12px; padding: 12px 16px; }
.theme-pick button { flex: 1; padding: 18px; border-radius: 8px; border: 2px solid var(--border); font-weight: 700; }
.theme-pick button.on { border-color: var(--accent); }
.theme-pick .light { background: #fff; color: #0f1115; }
.theme-pick .dark { background: #0f1115; color: #eceef2; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px;
  background: radial-gradient(120% 120% at 0% 0%, #2a1f5c 0%, #15122b 45%, #0b0d12 100%); color: #eceef2; }
.auth .glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.auth .g1 { width: 380px; height: 380px; background: var(--accent); top: -80px; left: -60px; }
.auth .g2 { width: 320px; height: 320px; background: #12b886; bottom: -90px; right: -40px; opacity: .3; }
.art-inner { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 28px; }
.showcase { position: relative; height: 430px; }
.sc-card { position: absolute; width: 330px; background: rgba(23, 26, 32, .82); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); animation: float 7s ease-in-out infinite; }
.sc-card p { margin: 10px 0 12px; line-height: 1.4; }
.sc-head { display: flex; gap: 10px; align-items: center; }
.sc-head span { display: block; color: #8b93a1; font-size: 13px; }
.sc-acts { display: flex; gap: 22px; color: #8b93a1; font-size: 13px; }
.sc-acts span { display: inline-flex; align-items: center; gap: 5px; }
.sc-acts svg.ic { width: 16px; height: 16px; }
.sc-like { color: var(--like); }
.sc-like svg { fill: currentColor; }
.sc-0 { top: 0; left: 0; transform: rotate(-2deg); }
.sc-1 { top: 145px; left: 80px; z-index: 2; animation-delay: -2.3s; }
.sc-2 { top: 292px; left: 16px; transform: rotate(1.5deg); animation-delay: -4.6s; }
@keyframes float { 50% { translate: 0 -10px; } }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; color: #c9ced8; }
.perks li svg.ic { width: 22px; height: 22px; color: #b9a8ff; margin-top: 1px; }
.perks b { color: #fff; }
.auth .panel { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.auth h1 { font-size: 56px; line-height: 1.05; margin: 0 0 36px; letter-spacing: -1.5px;
  background: linear-gradient(90deg, var(--text), #b9a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth h2 { font-size: 26px; margin: 0 0 20px; }
.auth form, .auth .social { max-width: 360px; }
.auth .switch-link { margin-top: 20px; color: var(--muted); }
.legal { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.auth-footer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 36px; font-size: 13px; color: var(--muted); }
.auth-footer a:hover, .footer-links a:hover { text-decoration: underline; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Páginas públicas ---------- */
.public-page { max-width: 720px; margin: 0 auto; padding: 16px 20px 40px; }
.public-page header { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 24px; }
.doc h1 { font-size: 36px; letter-spacing: -.5px; margin: 0 0 16px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); line-height: 1.6; }
.doc b { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc .lead { font-size: 19px; color: var(--text); }
.doc .note { background: var(--accent-soft); color: var(--text); padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Esqueleto de carregamento ---------- */
.skel { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sk-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.sk-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.sk-line { height: 11px; border-radius: 6px; }
.sk-av, .sk-line { background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-2) 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.w40 { width: 40%; } .w70 { width: 70%; } .w90 { width: 90%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Toques finais ---------- */
.post, .user-row, .notif, .conv, .nav a, .btn, .icon-btn { transition: background-color .15s, color .15s, opacity .15s, transform .1s; }
.btn:not(:disabled):active, .fab:active { transform: scale(.97); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Login social ---------- */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.social-btn { border: 1px solid var(--border); font-size: 15px; padding: 12px; }
.social-btn:hover { opacity: .9; }
.sb-google { background: #fff; color: #1f1f1f; }
.sb-logo { width: 20px; height: 20px; object-fit: contain; margin-right: 4px; }

/* ---------- Mobile ---------- */
.bottom-nav, .fab, .mobile-top-av { display: none; }
@media (max-width: 1260px) { .sidebar { width: 88px; align-items: center; } .nav a .lbl, .compose-btn .lbl, .me-card .who, .me-card .dots { display: none; } .compose-btn { width: 52px; height: 52px; padding: 0; } .compose-btn .ic-only { display: block !important; } }
@media (max-width: 1000px) { .aside { display: none; } }
@media (max-width: 1100px) { .auth { grid-template-columns: 1fr 1fr; } .sc-card { width: 290px; } .sc-1 { left: 50px; } }
@media (max-width: 700px) {
  .sidebar { display: none; }
  .main { border: 0; padding-bottom: 64px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border); z-index: 40; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { padding: 14px; position: relative; }
  .bottom-nav a svg.ic { width: 26px; height: 26px; }
  .bottom-nav a.active svg.ic { stroke-width: 2.6; }
  .bottom-nav .badge { position: absolute; top: 6px; right: 4px; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: 80px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; z-index: 41; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
  .fab svg.ic { width: 26px; height: 26px; }
  .header-row.mobile-top-av { display: flex; }
  .overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; }
  .modal.small { min-height: 0; border-radius: var(--radius); margin: auto 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .auth .panel { padding: 32px 22px; }
  .auth h1 { font-size: 42px; margin-bottom: 28px; }
  .doc h1 { font-size: 30px; }
  .chat { height: calc(100dvh - 64px); }
  .post.focus .text { font-size: 16px; }
  .media.n1 img { max-height: 380px; }
  .msg .del { left: -34px; }
}

/* ================= Polimento da interface ================= */
.desktop-only { }
/* menu lateral: item ativo em destaque */
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active svg.ic { color: var(--accent); stroke-width: 2.4; }
.compose-btn { box-shadow: 0 6px 20px rgba(124, 92, 255, .35); }
.logo span { background: linear-gradient(135deg, #8f74ff, #5b3df5); box-shadow: 0 4px 14px rgba(124, 92, 255, .4); }
/* cabeçalho */
.header-row h1 { font-weight: 800; letter-spacing: -.3px; }
.tabs .active::after { height: 3px; width: 48px; }
/* compositor */
.composer textarea::placeholder { color: var(--muted); }
.composer .toolbar .icon-btn:hover { background: var(--accent-soft); }
/* posts */
.post .text { line-height: 1.45; }
.media { border-radius: 18px; }
.quote { border-radius: 18px; }
.new-posts button { padding: 8px 18px; }
/* cartões laterais */
.card { border: 1px solid var(--border); background: var(--bg-2); }
.card h2 { font-size: 19px; font-weight: 800; padding: 14px 16px 6px; }
.card .row { transition: background-color .15s; }
.search-box { border: 1px solid var(--border); }
/* estados vazios */
.empty { text-align: center; padding: 56px 32px; }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--accent-soft); color: var(--accent); }
.empty-ic svg.ic { width: 30px; height: 30px; }
.empty h2 { font-size: 26px; }
.empty .btn { margin-top: 8px; }
/* perfil: capa padrão com textura */
.banner { background:
  radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0 / 28px 28px,
  linear-gradient(135deg, #7c5cff 0%, #5b3df5 40%, #12b886 100%); }
.banner img { position: relative; }
/* notificações e mensagens */
.notif .kind svg { width: 26px; height: 26px; }
.conv { border-radius: 0; }
.msg .bubble { box-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* menus e toasts */
.menu { border-radius: 14px; }
.toast { border-radius: 999px; padding: 11px 20px; background: var(--text); color: var(--bg); font-weight: 600; }
.toast a { color: inherit; }
.toast.err { background: var(--danger); color: #fff; }
/* emojis */
.emoji-menu { display: grid; grid-template-columns: repeat(8, 38px); gap: 2px; padding: 8px; min-width: 0; }
.emoji-menu button { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 22px; border-radius: 8px; }
.emoji-menu button:hover { background: var(--hover); }
.chat .composer-bar #chat-emoji { color: var(--accent); }
@media (max-width: 700px) { .desktop-only { display: none; } .emoji-menu { grid-template-columns: repeat(7, 38px); } }

.bell-btn.on { color: var(--accent); border-color: var(--accent) !important; }

/* dica dos selos */
.tip { position: fixed; z-index: 300; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 6px; pointer-events: none; white-space: nowrap; animation: fade .12s ease; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.verified[data-tip] { cursor: help; }
.notif-ctx { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 16px 0 44px; margin-bottom: -6px; }
.notif-ctx svg.ic { width: 16px; height: 16px; color: var(--accent); }
.notif-ctx a:hover { text-decoration: underline; }

/* notificações agrupadas */
.notif .kind.like svg, .notif .kind.follow svg { width: 28px; height: 28px; }
.notif-avs { display: flex; gap: 4px; flex-wrap: wrap; }
.notif-avs a:hover .avatar { opacity: .85; }
.notif-txt { margin-top: 8px; }
.notif-txt a:hover b { text-decoration: underline; }
.notif-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; align-self: center; margin-left: 8px; }
/* cartão de ativar push */
.push-card { display: flex; gap: 14px; align-items: center; margin: 12px 16px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.push-card > svg.ic { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.push-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.push-card .btn { margin-left: auto; }
@media (max-width: 500px) { .push-card { display: grid; grid-template-columns: 26px 1fr; align-items: start; } .push-card .btn { grid-column: 1 / -1; margin: 4px 0 0; width: 100%; } }

/* ================= DMs ================= */
.conv .n { display: flex; align-items: center; gap: 4px; }
.conv .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .ct { font-weight: 400; margin-left: auto; padding-left: 8px; font-size: 13px; flex-shrink: 0; }
.conv-side { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.conv-side .pin-ic svg.ic { width: 16px; height: 16px; }
.conv-more { opacity: 0; width: 32px; height: 32px; }
.conv:hover .conv-more, .conv-more:focus { opacity: 1; }
@media (pointer: coarse) { .conv-more { opacity: 1; } }

.chat .stream { gap: 0; padding: 12px 16px 8px; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.msg { max-width: 80%; margin-top: 2px; }
.msg.first { margin-top: 8px; }
.msg-row { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.msg.mine .msg-row { flex-direction: row-reverse; }
.msg .bubble { border-radius: 20px; }
.msg:not(.mine) .bubble { border-radius: 6px 20px 20px 6px; }
.msg:not(.mine).first .bubble { border-top-left-radius: 20px; }
.msg:not(.mine).last .bubble { border-bottom-left-radius: 20px; }
.msg.mine .bubble { border-radius: 20px 6px 6px 20px; }
.msg.mine.first .bubble { border-top-right-radius: 20px; }
.msg.mine.last .bubble { border-bottom-right-radius: 20px; }
.msg.first.last .bubble { border-radius: 20px; }
.msg.mine.first.last .bubble { border-bottom-right-radius: 6px; }
.msg:not(.mine).first.last .bubble { border-bottom-left-radius: 6px; }
.msg .time, .msg .del { display: none; }
.msg-acts { display: flex; opacity: 0; transition: opacity .12s; color: var(--muted); flex-shrink: 0; }
.msg-acts .icon-btn { width: 30px; height: 30px; }
.msg-acts svg.ic { width: 17px; height: 17px; }
.msg:hover .msg-acts { opacity: 1; }
@media (pointer: coarse) { .msg-acts { display: none; } }
.reactions { display: flex; gap: 4px; margin-top: -6px; position: relative; z-index: 1; padding: 0 8px; }
.rx { background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; font-size: 14px; line-height: 20px; }
.rx span { font-size: 12px; color: var(--muted); }
.rx.mine { border-color: var(--accent); background: var(--accent-soft); }
.reply-ref { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--muted); background: var(--bg-2); border-radius: 12px; padding: 6px 10px; margin: 4px 0 2px; max-width: 100%; text-align: left; border-left: 3px solid var(--accent); }
.reply-ref svg.ic { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.reply-ref span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg-status { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.msg-status:empty { display: none; }
.msg-status.seen { color: var(--accent); }
.seen-ic { display: inline-flex; }
.seen-ic svg.ic { width: 13px; height: 13px; stroke-width: 2.6; }
.seen-ic svg.ic + svg.ic { margin-left: -8px; }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 3px var(--accent); } }
.chat-mode { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat-mode > svg.ic { color: var(--accent); }
.chat-mode div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.chat-mode span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-menu { display: flex; gap: 2px; padding: 6px; border-radius: 999px; min-width: 0; }
.rx-menu button { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 24px; border-radius: 50%; transition: transform .1s; }
.rx-menu button:hover { transform: scale(1.2); background: transparent; }
.rx-menu button.on { background: var(--accent-soft); }
.info-body { display: flex; flex-direction: column; gap: 12px; }
.info-bubble { display: flex; padding: 8px 0; }
.info-bubble.mine { justify-content: flex-end; }
.info-bubble .bubble { background: var(--bubble-other); padding: 10px 14px; border-radius: 20px; max-width: 80%; white-space: pre-wrap; overflow-wrap: anywhere; }
.info-bubble.mine .bubble { background: var(--accent); color: #fff; }
.info-bubble img { max-height: 200px; border-radius: 12px; }
.info-card { background: var(--bg-2); border-radius: 14px; overflow: hidden; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row.col { flex-direction: column; gap: 4px; }
.info-h { margin: 6px 0 0; font-size: 15px; }

/* ajustes do chat */
#msgs { display: flex; flex-direction: column; }
.msg-row { position: relative; }
.msg-acts { position: absolute; top: 50%; transform: translateY(-50%); left: 100%; padding-left: 4px; }
.msg.mine .msg-acts { left: auto; right: 100%; padding: 0 4px 0 0; flex-direction: row-reverse; }
.msg.mine .reactions { justify-content: flex-end; }
.msg.mine .msg-status { justify-content: flex-end; }
body.in-chat .fab { display: none; }

/* ícone do app (usado em avisos e na faixa de instalar) */
.app-av { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #8f74ff, #5b3df5); display: grid; place-items: center; flex-shrink: 0; }
.app-av::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
/* aviso oficial nas notificações */
.notif.system .kind { width: 40px; }
.notif.system .app-av { width: 32px; height: 32px; border-radius: 9px; }
.notif.system .app-av::after { width: 12px; height: 12px; }
.sys-title { font-weight: 800; font-size: 17px; margin-top: 4px; }
.sys-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sys-link { margin-top: 6px; font-weight: 600; }
/* faixa de instalar */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); background: var(--accent-soft); }
.install-banner div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.install-banner span:not(.app-av) { font-size: 13px; color: var(--muted); }
/* tutorial */
.install-tabs { border-bottom: 1px solid var(--border); margin: 20px 0 4px; }
.install-now { margin: 16px 0; }
.install-now .btn { width: auto; }
.steps { list-style: none; padding: 0; margin: 12px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { margin: 2px 0 0; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
/* painel: avisos */
.announce { margin: 12px 16px 0; border: 1px solid var(--border); border-radius: 16px; padding: 4px 16px 12px; background: var(--bg-2); }
.announce summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.announce summary::-webkit-details-marker { display: none; }
.announce summary svg.ic { color: var(--accent); }
.an-actions { display: flex; justify-content: flex-end; }
.an-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); }
.an-item span { color: var(--muted); font-size: 14px; }

/* ================= Emojis ================= */
.emoji-picker { width: 352px; padding: 0; display: flex; flex-direction: column; height: 400px; }
.emoji-picker.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; height: 55vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.ep-search { display: flex; align-items: center; gap: 8px; margin: 10px 10px 6px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.ep-search:focus-within { border-color: var(--accent); color: var(--accent); }
.ep-search input { flex: 1; border: 0; outline: none; background: transparent; padding: 9px 0; }
.ep-tabs { display: flex; justify-content: space-between; padding: 0 8px; border-bottom: 1px solid var(--border); }
.ep-tabs button { width: 32px; height: 34px; font-size: 18px; padding: 0; justify-content: center; border-radius: 8px; filter: grayscale(.6); }
.ep-tabs button:hover { filter: none; background: var(--hover); }
.ep-grid { flex: 1; overflow-y: auto; padding: 4px 8px 8px; }
.ep-grid h4 { margin: 10px 4px 4px; font-size: 13px; color: var(--muted); position: sticky; top: 0; background: var(--bg); padding: 4px 0; z-index: 1; }
.ep-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.ep-row button { height: 38px; padding: 0; justify-content: center; font-size: 24px; border-radius: 8px; width: auto; }
.ep-row button:hover { background: var(--hover); }
/* ================= GIFs ================= */
.gif-modal { display: flex; flex-direction: column; max-height: 88vh; }
.gif-modal .mhead { gap: 10px; }
.gif-scroll { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 300px; padding: 0 8px; }
.gif-grid { columns: 3 150px; column-gap: 4px; }
.gif-item { display: block; width: 100%; margin-bottom: 4px; border-radius: 8px; overflow: hidden; background: var(--bg-3); break-inside: avoid; }
.gif-item img { width: 100%; height: 100%; object-fit: cover; }
.gif-item:hover { outline: 3px solid var(--accent); }
.gif-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 8px; }
/* ================= Mídia com crédito ================= */
.media-item { position: relative; overflow: hidden; min-height: 0; }
.media-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.media.n1 .media-item img { max-height: 510px; height: auto; }
.media.n3 .media-item:first-child { grid-row: span 2; }
.media-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
a.media-tag:hover { text-decoration: underline; }
.pv-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
/* ================= Visualizador ================= */
.lightbox .lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; color: #fff; background: rgba(255, 255, 255, .12); }
.lb-bar { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.lb-bar .btn { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); }
.lb-bar .btn:hover { background: rgba(255, 255, 255, .24); }
.lb-bar svg.ic { width: 18px; height: 18px; }
/* ================= Tela "use o app" ================= */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 48px 24px calc(24px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
.gate-top { text-align: center; }
.gate-icon { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(135deg, #8f74ff, #5b3df5); margin: 0 auto 20px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(124, 92, 255, .45); }
.gate-icon::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.gate h1 { font-size: 34px; margin: 0 0 8px; }
.gate p { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }
.gate .steps { margin: 8px 0 20px; }
.gate .steps li > div { padding-top: 4px; line-height: 1.45; }
.kbd { display: inline-flex; vertical-align: middle; background: var(--bg-3); border-radius: 6px; padding: 2px 4px; }
.kbd svg.ic { width: 16px; height: 16px; }
.gate-help { text-align: center; font-size: 14px; }
.gate-skip { margin-top: auto; padding: 24px 0 8px; color: var(--muted); font-size: 14px; text-decoration: underline; text-align: center; }
/* ================= Deslizar para voltar ================= */
.swipe-back { position: fixed; left: 0; z-index: 400; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3); color: var(--muted); display: grid; place-items: center; transform: translate(-50px, -50%); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); pointer-events: none; transition: background .15s, color .15s; }
.swipe-back.ready { background: var(--accent); color: #fff; }

/* ================= iPhone: área do notch / ilha / bateria ================= */
.header { padding-top: env(safe-area-inset-top); }
.public-page header { padding-top: calc(8px + env(safe-area-inset-top)); }
.gate { padding-top: calc(48px + env(safe-area-inset-top)); }
.auth .panel { padding-top: calc(32px + env(safe-area-inset-top)); }
.sidebar { padding-top: calc(8px + env(safe-area-inset-top)); }
.lightbox .lb-close { top: calc(14px + env(safe-area-inset-top)); }
#toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 700px) {
  .modal .mhead { padding-top: calc(8px + env(safe-area-inset-top)); }
  .modal.small { margin-top: env(safe-area-inset-top); }
  .fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .chat { height: calc(100dvh - 64px - env(safe-area-inset-bottom)); }
  .new-posts { top: calc(110px + env(safe-area-inset-top)); }
}

/* ================= Classificação indicativa ================= */
.age-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: #000; color: #fff; font-weight: 900; font-size: 13px; border: 2px solid #fff; box-shadow: 0 0 0 1px #000; flex-shrink: 0; }
.age-badge.big { width: 64px; height: 64px; font-size: 30px; border-radius: 12px; border-width: 3px; margin: 0 auto 20px; }
.age-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 24px; }
.age-note.small { margin: 8px 0 0; font-size: 12px; }
.age-note.small .age-badge { width: 20px; height: 20px; font-size: 10px; border-width: 1.5px; }
.doc .age-note { margin: 0 0 8px; font-size: 15px; }

/* fotos: sem o menu nativo do iPhone ao segurar (usamos o nosso) */
.media img, .msg .bubble img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* botões da foto em tela cheia mais visíveis */
.lb-bar .btn { background: #fff; color: #0f1115; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.lb-bar .btn:hover { background: #e9e9ee; }
@media (max-width: 500px) { .lb-bar { flex-direction: column; width: calc(100% - 40px); } .lb-bar .btn { width: 100%; padding: 12px; } }

/* ================= Celular: barra de topo e menu lateral ================= */
.mobile-only { display: none !important; }
.desktop-only-inline { }
.topbar { justify-content: space-between; gap: 12px; }
.tb-av { position: relative; flex-shrink: 0; border-radius: 50%; }
.tb-dot { position: absolute; top: 0; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.tb-center { flex: 1; min-width: 0; text-align: center; }
.tb-center h1 { font-size: 18px; }
.tb-right { width: 36px; display: flex; justify-content: flex-end; }
.explore-top { gap: 12px; }
.scroll-tabs { overflow-x: auto; scrollbar-width: none; }
.scroll-tabs::-webkit-scrollbar { display: none; }
.conv-search { padding: 4px 16px 10px; }
.conv-search .search-box input { padding: 9px 0; }
.drawer-ov { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0); transition: background .2s; }
.drawer-ov.open { background: var(--overlay); }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(300px, 82vw); background: var(--bg); border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top)) 0 calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.drawer-ov.open .drawer { transform: none; }
.dr-head { padding: 4px 20px 16px; }
.dr-name { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 18px; }
.dr-counts { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.dr-counts b { color: var(--text); }
.dr-nav a, .dr-nav button { display: flex; align-items: center; gap: 18px; padding: 14px 20px; font-size: 19px; font-weight: 700; width: 100%; text-align: left; }
.dr-nav a:hover, .dr-nav button:hover { background: var(--hover); }
.dr-nav svg.ic { width: 24px; height: 24px; }
.dr-nav.small a, .dr-nav.small button { font-size: 15px; font-weight: 600; padding: 12px 20px; }
.dr-nav.small svg.ic { width: 20px; height: 20px; }
.dr-sep { height: 1px; background: var(--border); margin: 8px 20px; }
@media (max-width: 700px) {
  .mobile-only { display: flex !important; }
  .desktop-only, .desktop-only-inline { display: none !important; }
  .header-row.mobile-top-av { display: none; }
  .chat .composer-bar { align-items: center; }
  .chat-plus { background: var(--bg-2); }
}

/* ================= Editor de recorte ================= */
.crop-modal { display: flex; flex-direction: column; overflow: hidden; }
.crop-stage { height: min(60vh, 480px); background: #000; position: relative; }
.crop-stage canvas { display: block; touch-action: none; cursor: grab; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-tools { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px; }
.crop-tools input[type=range] { flex: 1; accent-color: var(--accent); }
.crop-aspects { display: flex; gap: 8px; padding: 8px 16px 16px; overflow-x: auto; }
.crop-aspects button { border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.crop-aspects button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pv-edit { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.pv-edit svg.ic { width: 14px; height: 14px; }
.previews .pv button.pv-edit { top: auto; right: auto; width: auto; height: auto; border-radius: 999px; }
@media (max-width: 700px) { .crop-stage { height: calc(100dvh - 240px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); } .crop-modal { min-height: 100dvh; } }

/* ================= Arquivos nas DMs ================= */
.file-card { display: flex; align-items: center; gap: 12px; background: var(--bubble-other); border-radius: 18px; padding: 12px 14px; max-width: 320px; margin: 2px 0; -webkit-touch-callout: none; }
.msg.mine .file-card { background: var(--accent); color: #fff; }
.file-card > svg.ic:first-child { width: 30px; height: 30px; flex-shrink: 0; }
.file-card > svg.ic:last-child { width: 20px; height: 20px; flex-shrink: 0; opacity: .8; }
.file-card div { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.file-card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card span { font-size: 12px; opacity: .8; }
.file-card:hover { filter: brightness(1.08); }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.file-chip > svg.ic { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.file-chip div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.file-chip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip span { color: var(--muted); font-size: 12px; }
.chat .preview-img .file-chip button { position: static; background: var(--bg-3); color: var(--text); }

/* ================= Conta oficial ================= */
.as-btn { position: relative; align-self: flex-start; border-radius: 50%; }
.as-swap { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.as-swap svg.ic { width: 11px; height: 11px; stroke-width: 2.6; }
.as-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 4px 6px 4px 10px; margin: 4px 0 2px; }
.as-chip svg.ic { width: 15px; height: 15px; color: var(--accent); }
.as-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.as-chip button:hover { background: var(--hover); }
.role-off { color: var(--accent); }

/* foto única: mostra no formato dela (quadrada fica quadrada) */
.previews.one .pv { aspect-ratio: auto; width: fit-content; max-width: 100%; }
.previews.one .pv img { width: auto; max-width: 100%; height: auto; max-height: 510px; object-fit: contain; display: block; }
.media.n1 { width: fit-content; max-width: 100%; }
.media.n1 img, .media.n1 .media-item img { width: auto; max-width: 100%; height: auto; max-height: 510px; object-fit: contain; }
@media (max-width: 700px) { .previews.one .pv img, .media.n1 img, .media.n1 .media-item img { max-height: 380px; } }
.ep-tabs button.on { filter: none; background: var(--hover); }

.forgot { font-size: 13px; margin: -4px 0 8px; }
/* foto única pequena (ex.: GIF de pixel art) aparece num tamanho bom, sem borrar */
.media.n1 img, .media.n1 .media-item img { min-width: min(100%, 240px); }
/* janelas baixas: a barra lateral rola e fica mais compacta, sem cortar o botão Postar */
.sidebar { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
@media (max-height: 720px) and (min-width: 701px) {
  .sidebar .nav a { padding-top: 7px; padding-bottom: 7px; }
  .compose-btn { margin-top: 6px; }
}

/* ---------- vídeo nos posts ---------- */
.media-item.video video { width: 100%; max-height: 510px; display: block; background: #000; }
.media.n1:has(.video) { width: 100%; }
.previews .pv-video { aspect-ratio: auto; width: 100%; }
.previews .pv-video video { width: 100%; max-height: 420px; display: block; background: #000; }

/* ---------- visualizador de mídia (estilo X) ---------- */
body.mv-lock { overflow: hidden; }
.mv { position: fixed; inset: 0; z-index: 45; display: flex; background: rgba(0, 0, 0, .97); animation: fade .15s ease; }
.mv-stage { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 64px 72px; }
.mv-media { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mv-media img, .mv-media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mv-stage > .icon-btn { color: #fff; background: rgba(0, 0, 0, .55); width: 40px; height: 40px; }
.mv-stage > .icon-btn:hover { background: rgba(60, 60, 60, .8); }
.mv-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; }
.mv-toggle { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.mv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.mv-prev { left: 12px; } .mv-next { right: 12px; }
.mv-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.mv-bar .actions { width: 100%; max-width: 600px; margin: 0; color: #e7e9ea; }
.mv-bar .actions .icon-btn { background: transparent; width: 36px; height: 36px; color: inherit; }
.mv-side { width: 0; overflow: hidden; background: var(--bg); border-left: 1px solid var(--border); transition: width .2s ease; }
.mv.side-open .mv-side { width: 380px; }
.mv-side-in { width: 380px; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.mv-side .post.focus { border-bottom: 1px solid var(--border); }
.mv-side .mv-reply .composer { border-bottom: 1px solid var(--border); }
@media (max-width: 1000px) { .mv-stage { padding: 56px 8px 64px; } .mv-nav { display: none; } }

/* ---------- player de vídeo ---------- */
.vp { position: relative; background: #000; width: 100%; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; }
.vp video { width: 100%; max-height: 560px; display: block; background: #000; }
.vp:fullscreen { display: flex; align-items: center; }
.vp:fullscreen video { max-height: 100vh; height: 100%; }
.vp-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 6px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; opacity: 0; transition: opacity .2s; }
.vp-bar { height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vp-bar::before { content: ''; position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.vp-fill { position: relative; height: 3px; border-radius: 2px; background: #fff; width: 0; }
.vp-fill::after { content: ''; position: absolute; right: -6px; top: -4.5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.vp-bar:hover .vp-fill::after, .vp.seeking .vp-fill::after { transform: scale(1); }
.vp-bar:hover::before, .vp-bar:hover .vp-fill { height: 5px; }
.vp-row { display: flex; align-items: center; gap: 4px; }
.vp-row button { color: #fff; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.vp-row button:hover { background: rgba(255,255,255,.15); }
.vp-row svg.ic { width: 20px; height: 20px; }
.vp-time { font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.vp-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: none; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.vp-big svg.ic { width: 26px; height: 26px; margin-left: 3px; }
.vp.paused .vp-big { display: grid; }
.media-item.video .media-tag { bottom: auto; top: 10px; }
.mv-media .vp { max-height: 100%; background: transparent; }
.mv-media .vp video { max-height: calc(100vh - 140px); }
/* botão de som sempre visível no canto do vídeo */
.vp-badge { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; transition: opacity .2s; }
.vp-badge svg.ic { width: 18px; height: 18px; }
/* controles escondidos não podem "roubar" o clique */
/* foto de perfil e capa ampliadas */
.lightbox.lb-circle img { width: min(460px, 86vw, 80vh); height: min(460px, 86vw, 80vh); max-width: none; max-height: none; border-radius: 50%; object-fit: cover; }
.lightbox.lb-profile:not(.lb-circle) img { width: min(1200px, 95vw); max-height: 80vh; object-fit: contain; }

/* ---------- cartões ao passar o mouse (selos e perfis) ---------- */
.popcard { position: fixed; z-index: 120; background: var(--bg); border-radius: 16px; box-shadow: 0 0 0 1px var(--border), 0 10px 34px rgba(0,0,0,.35); animation: fade .12s ease; }
.badge-pop { width: 320px; max-width: calc(100vw - 16px); padding: 18px 20px; }
.badge-pop h3 { margin: 0 0 12px; font-size: 22px; }
.bp-line { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.35; }
.bp-line svg { width: 20px; height: 20px; flex-shrink: 0; }
.bp-ic { display: inline-flex; }
.bp-ic svg { width: 20px; height: 20px; }
.user-pop { width: 300px; max-width: calc(100vw - 16px); padding: 16px; }
.uc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.uc-name { font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.uc-name:hover { text-decoration: underline; }
.uc-bio { margin-top: 10px; white-space: pre-wrap; word-break: break-word; }
.uc-counts { display: flex; gap: 16px; margin-top: 10px; }
.uc-counts a:hover { text-decoration: underline; }
.uc-fb { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.uc-fb:hover { text-decoration: underline; }
.uc-avs { display: flex; }
.uc-avs .avatar { border: 2px solid var(--bg); margin-left: -6px; }
.uc-avs .avatar:first-child { margin-left: 0; }
.uc-top .avatar { width: 64px; height: 64px; font-size: 26px; } .uc-avs .avatar { width: 20px; height: 20px; font-size: 9px; }
/* crédito de mídia reaproveitada: mini foto + nome + selos */
.media-tag.credit { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 999px; max-width: calc(100% - 16px); }
.media-tag.credit .avatar { width: 18px; height: 18px; font-size: 9px; }
.media-tag.credit span:not(.verified) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-tag.credit .verified svg { width: 15px; height: 15px; }
.media-tag.credit:hover span:not(.verified) { text-decoration: underline; }
.profile-top .uc-fb { margin-top: 12px; }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; }
.tabs-scroll a { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.media .media-tag.credit .avatar { width: 18px !important; height: 18px !important; min-width: 0 !important; max-width: none !important; max-height: none !important; object-fit: cover; cursor: pointer; border-radius: 50%; }
.chat .preview-img video { max-height: 120px; border-radius: 12px; display: block; }
.msg .bubble .vp { width: min(320px, 70vw); border-radius: 16px; }
.msg .bubble .vp video { max-height: 420px; }
.vp { white-space: normal; }

/* controles do vídeo: escondidos não pegam toque; aparecem pausado, ao tocar (celular) ou passar o mouse (PC) */
.vp-ui { pointer-events: none; }
.vp.paused .vp-ui, .vp.show-ui .vp-ui, .vp.seeking .vp-ui { opacity: 1; pointer-events: auto; }
.vp.paused .vp-badge, .vp.show-ui .vp-badge, .vp.seeking .vp-badge { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .vp:hover .vp-ui { opacity: 1; pointer-events: auto; }
  .vp:hover .vp-badge { opacity: 0; pointer-events: none; }
}
@media (pointer: coarse) { .vp-row button { width: 40px; height: 40px; } .vp-row svg.ic { width: 22px; height: 22px; } }
/* ---------- armazenamento no Painel ---------- */
.storage-card { margin: 12px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-2, transparent); }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.st-bar { height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; margin-bottom: 12px; }
.st-bar div { height: 100%; border-radius: 999px; transition: width .4s; }
.st-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--border); }
.st-note { font-size: 13px; margin: 10px 0 0; }

/* ---------- busca: histórico e sugestões ---------- */
.search-dd { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--bg); border-radius: 14px; box-shadow: 0 0 0 1px var(--border), 0 10px 30px rgba(0,0,0,.35); max-height: min(70vh, 560px); overflow-y: auto; padding: 4px 0; min-width: 280px; }
.sd-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; }
.sd-head b { font-size: 19px; }
.sd-head .link { font-weight: 700; font-size: 14px; }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; }
.sd-item:hover { background: var(--hover); }
.sd-ic { width: 40px; display: grid; place-items: center; flex-shrink: 0; }
.sd-ic svg.ic { width: 20px; height: 20px; }
.sd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-who b, .sd-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-rm { color: var(--accent); width: 32px; height: 32px; }
.sd-empty { padding: 14px 16px; margin: 0; font-size: 14px; }
mark.hl { background: none; color: inherit; font-weight: 800; }
.search-dd { color: var(--text); }
.sd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.sd-rel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.sd-rel svg.ic { width: 13px; height: 13px; }
.sd-who span b { font-weight: 800; }
.sd-clear { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.sd-clear svg.ic { width: 13px; height: 13px; stroke-width: 3; }

/* barra de ações como no X: responder, repostar, curtir e visualizações espalhados; salvar e compartilhar juntos à direita */
.actions { max-width: none; justify-content: flex-start; margin-right: -8px; }
.actions > .act { flex: 1 1 0; min-width: 0; }
.actions > .act span:not(.icon-btn) { min-width: 3ch; }
.act-end { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.post.focus .actions { justify-content: flex-start; }
.post.focus .actions > .act { flex: 1 1 0; }
.mv-bar .actions > .act { flex: 1 1 0; }
/* no post aberto, os 5 botões ficam distribuídos por igual */
.post.focus .actions { justify-content: space-around; margin-right: 0; }
.post.focus .actions > .act { flex: 0 0 auto; }
.post.focus .act-end { display: contents; }
/* número colado no ícone, como no X */
.act { gap: 0; }
.act > span:not(.icon-btn) { margin-left: -4px; }
.post.focus .act > span:not(.icon-btn) { margin-left: -4px; }

/* posts de contas silenciadas/bloqueadas (nas conversas) */
.hidden-post { cursor: default; }
.hidden-post .row { align-items: stretch; }
.hp-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; margin: 2px 0; font-size: 15px; }
.hp-show { background: none; border: 0; font-weight: 800; color: var(--text); padding: 4px 8px; }
.hp-show:hover { text-decoration: underline; }
.post.focus + .hidden-post, .hidden-post .body { min-width: 0; }
.quote.gone { color: var(--muted); background: var(--bg-2); }
.mute-note { margin-top: 10px; font-size: 15px; }
.blocked-screen { max-width: 420px; margin: 56px auto; padding: 0 24px; }
.blocked-screen h2 { font-size: 30px; margin: 0 0 8px; line-height: 1.15; word-break: break-word; }
.blocked-screen p { margin: 0 0 26px; }

/* ---------- aniversário ---------- */
.birth-line { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: default; }
.birth-line.today { color: var(--accent); font-weight: 700; cursor: pointer; }
.birth-line.today:hover { text-decoration: underline; }
.birth-edit select { color: var(--text); padding: 28px 10px 8px; font-size: 17px; appearance: auto; }
.birth-edit select option { background: var(--bg); }
.birth-edit input[type=date] { color-scheme: dark; }
:root[data-theme=light] .birth-edit input[type=date] { color-scheme: light; }
.danger-link { color: var(--danger) !important; font-weight: 700; background: none; border: 0; padding: 6px 0 2px; display: block; margin: 0 auto; }
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; }
.celebrate .bl { position: absolute; bottom: -140px; border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 32%), var(--c); animation: bl-up linear forwards; opacity: .95; }
.celebrate .bl::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 60px; background: rgba(255,255,255,.5); }
.celebrate .bl::before { content: ''; position: absolute; left: calc(50% - 4px); top: calc(100% - 2px); border: 4px solid transparent; border-bottom-color: var(--c); }
@keyframes bl-up { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(18px, -60vh) rotate(5deg); } 100% { transform: translate(-10px, -125vh) rotate(-4deg); } }
.celebrate .cf { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: cf-fall ease-in forwards; opacity: 0; }
@keyframes cf-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 110vh) rotate(var(--r)); opacity: .9; } }

.profile-top h2.bday-name { cursor: pointer; }

/* cabeçalho sólido (sem o borrão de vidro fosco em cima) */
.header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo span, .mobile-top .logo span, .topbar .logo span { box-shadow: none; }
.pa-extra { display: contents; }

/* puxar para atualizar */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 4px); left: 50%; transform: translate(-50%, -60px); z-index: 45; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); box-shadow: 0 4px 14px rgba(0,0,0,.35); display: grid; place-items: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
.ptr.show { opacity: 1; }
.ptr-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--accent); }
.ptr.ready .ptr-spin { border-color: var(--accent); border-top-color: transparent; }
.ptr.loading { transition: transform .2s, opacity .15s; }
.ptr.loading .ptr-spin { border-color: var(--border); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
