@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Syne:wght@500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --purple: #7F77DD;
    --purple-light: #EEEDFE;
    --purple-mid: #AFA9EC;
    --purple-dark: #534AB7;
    --bg: #f5f3ff;
    --card: #ffffff;
    --border: #e0d8f8;
    --text: #1a1a2e;
    --muted: #9b97b8;
    --hint: #c4c0dc;
    --radius: 16px;
    --radius-sm: 999px;
}

body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* HEADER */
header { background: #fff; border-bottom: 1.5px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-name { font-size: 14px; color: var(--muted); }
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; cursor: pointer; border: 2px solid var(--purple-light); transition: opacity 0.15s; }
.nav-avatar:hover { opacity: 0.85; }
.notif-btn { position: relative; background: none; border: none; cursor: pointer; padding: 4px; display: flex; align-items: center; }
.notif-icon { width: 22px; height: 22px; color: var(--muted); }
.notif-badge { position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: #E24B4A; border-radius: 50%; font-size: 10px; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* LAYOUT */
.page { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }

/* COMPOSE */
.compose-bar { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 20px; cursor: pointer; transition: border-color 0.15s; }
.compose-bar:hover { border-color: var(--purple); }
.compose-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.compose-placeholder { flex: 1; font-size: 15px; color: var(--hint); }
.btn-post-bar { background: var(--purple); color: var(--purple-light); border: none; border-radius: var(--radius-sm); padding: 7px 20px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: opacity 0.15s; }
.btn-post-bar:hover { opacity: 0.85; }

/* FEED */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 20px; border-left-width: 3px; }
.post-card[data-tipo="reflexão"] { border-left-color: #7F77DD; }
.post-card[data-tipo="ideia"]    { border-left-color: #1D9E75; }
.post-card[data-tipo="projeto"]  { border-left-color: #D85A30; }
.post-card[data-tipo="nota"]     { border-left-color: #EF9F27; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.post-author { font-size: 14px; font-weight: 500; }
.post-handle { font-size: 13px; color: var(--muted); }
.post-time { font-size: 12px; color: var(--hint); margin-left: auto; }
.pill { font-size: 11px; padding: 3px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.pill-reflexão { background: #EEEDFE; color: #534AB7; }
.pill-ideia    { background: #E1F5EE; color: #0F6E56; }
.pill-projeto  { background: #FAECE7; color: #993C1D; }
.pill-nota     { background: #FAEEDA; color: #854F0B; }
.post-text { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 12px; }
.post-img { max-width: 100%; width: auto; border-radius: 12px; margin-bottom: 12px; display: block; max-height: 600px; object-fit: contain; cursor: zoom-in; transition: opacity 0.15s; }
.post-img:hover { opacity: 0.92; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 28px; cursor: pointer; background: none; border: none; line-height: 1; opacity: 0.8; }
.lightbox-close:hover { opacity: 1; }
.post-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn-action { font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 5px; font-family: 'DM Sans', sans-serif; padding: 0; transition: color 0.15s; }
.btn-action:hover { color: var(--text); }
.btn-action.liked { color: #D4537E; }
.btn-action.delete:hover { color: #E24B4A; }

/* COMMENTS */
.comments-section { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; display: none; }
.comments-section.open { display: block; }
.comment-item { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-av { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-size: 12px; font-weight: 500; color: var(--text); }
.comment-handle { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 13px; color: var(--text); line-height: 1.5; margin-top: 2px; }
.comment-time { font-size: 11px; color: var(--hint); }
.comment-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.comment-form input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 14px; font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none; color: var(--text); background: var(--bg); }
.comment-form input:focus { border-color: var(--purple); }
.btn-comment-send { background: var(--purple); color: var(--purple-light); border: none; border-radius: var(--radius-sm); padding: 7px 16px; font-size: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--purple); border-radius: var(--radius-sm); padding: 9px 14px; }
.search-box input { border: none; outline: none; flex: 1; font-size: 14px; color: var(--text); background: transparent; font-family: 'DM Sans', sans-serif; }
.search-box input::placeholder { color: var(--hint); }
.search-btn { width: 22px; height: 22px; border-radius: 50%; background: var(--purple); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trending-box { background: var(--card); border: 2px solid var(--purple); border-radius: var(--radius); overflow: hidden; }
.trending-head { background: var(--purple); color: var(--purple-light); font-size: 14px; font-weight: 500; padding: 12px 16px; font-family: 'Syne', sans-serif; }
.trending-body { padding: 8px 0; min-height: 80px; }
.trend-item { padding: 8px 16px; border-bottom: 0.5px solid var(--border); transition: background 0.1s; display: block; }
.trend-item:last-child { border-bottom: none; }
.trend-item:hover { background: var(--purple-light); }
.trend-tag { font-size: 13px; font-weight: 500; color: var(--purple-dark); }
.trend-count { font-size: 11px; color: var(--muted); margin-top: 1px; }
.trend-empty { font-size: 13px; color: var(--hint); padding: 16px; }

/* EMPTY */
.feed-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: 15px; background: var(--card); border: 1.5px dashed var(--border); border-radius: var(--radius); }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(100,80,200,0.15); backdrop-filter: blur(2px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--border); padding: 24px; width: 100%; max-width: 500px; margin: 20px; }
.modal h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.modal textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--text); font-family: 'DM Sans', sans-serif; resize: none; min-height: 100px; outline: none; transition: border-color 0.15s; }
.modal textarea:focus { border-color: var(--purple); }
.modal-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; gap: 10px; }
.type-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.type-tag { font-size: 12px; padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid var(--border); background: transparent; color: var(--muted); font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.type-tag:hover { border-color: var(--purple-mid); color: var(--purple-dark); }
.type-tag.active { background: var(--purple-mid); color: #26215C; border-color: var(--purple-mid); }
.char-count { font-size: 11px; color: var(--hint); margin-top: 6px; }
.modal-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cancel { background: transparent; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--muted); font-family: 'DM Sans', sans-serif; }
.btn-cancel:hover { border-color: var(--muted); color: var(--text); }
.btn-publish { background: var(--purple); color: var(--purple-light); border: none; border-radius: var(--radius-sm); padding: 8px 22px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-publish:hover { opacity: 0.85; }

/* IMAGE UPLOAD */
.upload-area { border: 1.5px dashed var(--border); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; margin-top: 10px; transition: border-color 0.15s; color: var(--muted); font-size: 13px; }
.upload-area:hover { border-color: var(--purple); color: var(--purple); }
.upload-area input[type=file] { display: none; }
.img-preview { width: 100%; border-radius: 10px; margin-top: 10px; max-height: 200px; object-fit: cover; display: none; }

/* NOTIFICAÇÕES */
.notif-panel { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.notif-panel-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px; border-bottom: 0.5px solid var(--border); transition: background 0.1s; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--purple-light); }
.notif-item:hover { background: #f0eeff; }
.notif-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; flex-shrink: 0; }
.notif-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--hint); margin-top: 2px; }
.notif-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: 14px; }
.btn-mark-read { font-size: 12px; color: var(--purple); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }

/* AUTH PAGES */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 400px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo img { height: 36px; }
.auth-card h2 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.form-group input { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 15px; color: var(--text); font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.15s; background: var(--bg); }
.form-group input:focus { border-color: var(--purple); background: #fff; }
.btn-auth { width: 100%; background: var(--purple); color: var(--purple-light); border: none; border-radius: var(--radius-sm); padding: 12px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: 6px; transition: opacity 0.15s; }
.btn-auth:hover { opacity: 0.85; }
.auth-link { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-link a { color: var(--purple); }
.alert { padding: 10px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error   { background: #FCEBEB; color: #A32D2D; }
.alert-success { background: #E1F5EE; color: #0F6E56; }

/* PERFIL PAGE */
.profile-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 520px; margin: 40px auto; }
.profile-card h2 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.profile-avatar-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-av-big { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s; }
.swatch.selected { border-color: var(--text); }
.btn-salvar { background: var(--purple); color: var(--purple-light); border: none; border-radius: var(--radius-sm); padding: 10px 28px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-sair { background: transparent; border: 1.5px solid #E24B4A; color: #A32D2D; border-radius: var(--radius-sm); padding: 10px 20px; font-size: 14px; cursor: pointer; font-family: 'DM Sans', sans-serif; }

@media (max-width: 760px) { .page { grid-template-columns: 1fr; } .sidebar { order: -1; } }

/* ========== BUSCA DE USUÁRIOS ========== */
.search-results-wrap { max-width: 680px; margin: 24px auto; padding: 0 24px; }
.user-result { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; transition: border-color 0.15s; text-decoration: none; color: var(--text); }
.user-result:hover { border-color: var(--purple); }
.user-result-info { flex: 1; }
.user-result-name { font-size: 15px; font-weight: 500; }
.user-result-handle { font-size: 13px; color: var(--muted); }
.user-result-bio { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ========== BIO + LINK ========== */
.profile-bio { font-size: 14px; color: var(--text); line-height: 1.6; margin-top: 10px; }
.profile-link { font-size: 13px; color: var(--purple); display: flex; align-items: center; gap: 4px; margin-top: 4px; text-decoration: none; }
.profile-link:hover { text-decoration: underline; }

/* ========== MENSAGENS ========== */
.msgs-layout { max-width: 900px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 16px; height: calc(100vh - 62px); }
.convs-panel { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.convs-head { padding: 16px; border-bottom: 1px solid var(--border); font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.convs-search { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.convs-search input { width: 100%; border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; font-size: 13px; outline: none; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; }
.convs-list { flex: 1; overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border-bottom: 0.5px solid var(--border); transition: background 0.1s; text-decoration: none; color: var(--text); }
.conv-item:hover, .conv-item.active { background: var(--purple-light); }
.conv-item.unread .conv-nome { font-weight: 500; }
.conv-nome { font-size: 14px; color: var(--text); }
.conv-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.conv-time { font-size: 11px; color: var(--hint); margin-left: auto; white-space: nowrap; }
.conv-badge { background: var(--purple); color: #EEEDFE; font-size: 10px; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; }

.chat-panel { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-head-name { font-size: 15px; font-weight: 500; }
.chat-head-handle { font-size: 13px; color: var(--muted); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; flex-direction: column; gap: 8px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-bubble { max-width: 65%; padding: 9px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.msg-row.mine .msg-bubble { background: var(--purple); color: #EEEDFE; border-bottom-right-radius: 4px; }
.msg-row.other .msg-bubble { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; color: var(--hint); margin-bottom: 4px; }
.chat-input-wrap { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.chat-input-wrap input { flex: 1; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 14px; outline: none; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; transition: border-color 0.15s; }
.chat-input-wrap input:focus { border-color: var(--purple); }
.btn-send-msg { width: 38px; height: 38px; border-radius: 50%; background: var(--purple); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 0.15s; }
.btn-send-msg:hover { opacity: 0.85; }
.no-conv { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; flex-direction: column; gap: 10px; }
.nova-conv-btn { background: var(--purple); color: #EEEDFE; border: none; border-radius: 999px; padding: 8px 20px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 6px; }

@media (max-width: 760px) {
    .msgs-layout { grid-template-columns: 1fr; height: auto; }
    .convs-panel { max-height: 300px; }
}

/* === Polls === */
.poll-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.poll-opcao { position: relative; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: border-color 0.15s; }
.poll-opcao:not(.votado) { cursor: pointer; }
.poll-opcao:not(.votado):hover { border-color: var(--purple); background: var(--purple-light); }
.poll-opcao.minha { border-color: var(--purple); }
.poll-barra { position: absolute; left: 0; top: 0; bottom: 0; background: var(--purple-light); z-index: 0; border-radius: 8px; transition: width 0.4s ease; }
.poll-label { position: relative; z-index: 1; font-weight: 500; color: var(--text); }
.poll-pct { position: relative; z-index: 1; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.poll-meta { font-size: 12px; color: var(--hint); margin-top: 4px; }

/* === DMs melhoradas === */
.dm-typing { display: flex; align-items: center; gap: 6px; padding: 4px 16px; font-size: 12px; color: var(--muted); min-height: 22px; }
.dm-typing-dots { display: flex; gap: 3px; }
.dm-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dm-bounce 1.2s infinite; }
.dm-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.dm-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dm-bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }
.msg-check { font-size: 10px; color: var(--hint); margin-top: 2px; text-align: right; }
.msg-check.lida { color: var(--purple); }
.chat-toolbar { display: flex; gap: 4px; padding: 6px 16px 0; }
.chat-toolbar button { background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.chat-toolbar button:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.chat-toolbar button.ativo { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.gif-picker { padding: 10px 16px; border-top: 1px solid var(--border); display: none; }
.gif-picker input { width: 100%; border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; outline: none; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; margin-bottom: 8px; }
.gif-picker input:focus { border-color: var(--purple); }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; max-height: 160px; overflow-y: auto; }
.gif-grid img { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: opacity 0.15s; }
.gif-grid img:hover { opacity: 0.8; }
.msg-gif { max-width: 200px; border-radius: 10px; display: block; margin-top: 4px; }
.msg-img { max-width: 200px; border-radius: 10px; display: block; margin-top: 4px; cursor: pointer; }

/* === Link Preview Card === */
.link-preview-card { display:block; border:1.5px solid var(--border); border-radius:12px; overflow:hidden; margin-top:10px; text-decoration:none; color:inherit; transition:border-color 0.15s, box-shadow 0.15s; }
.link-preview-card:hover { border-color:var(--purple); box-shadow:0 2px 12px rgba(83,74,183,0.10); }
.link-preview-img { width:100%; height:180px; background-size:cover; background-position:center; background-repeat:no-repeat; background-color:var(--border); }
.link-preview-body { padding:10px 14px 12px; }
.link-preview-domain { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:3px; margin-bottom:4px; text-transform:lowercase; }
.link-preview-title { font-size:14px; font-weight:600; color:var(--text); line-height:1.35; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.link-preview-desc { font-size:12px; color:var(--muted); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
