/* Social: amigos, perfil, mensagens e reels (site). Cores só por variáveis do tema. */

.soc-page { padding-block: 24px 48px; }

/* Abas e filtros */
.soc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.soc-tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem;
}
.soc-tab.is-active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.soc-tab .count { font-size: .78rem; opacity: .8; }
.soc-search { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.soc-search .input { flex: 1 1 220px; }
.soc-chat-search-link { display:block; margin-top:8px; color:var(--accent-text); font-size:.82rem; text-decoration:none; }
.soc-chat-search-link:hover { text-decoration:underline; }
.soc-search-results { display:grid; gap:12px; max-width:900px; }
.soc-search-result { border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:16px; }
.soc-search-result-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.soc-search-result-head time { color:var(--muted); font-size:.8rem; }
.soc-search-result p { margin:9px 0 12px; white-space:pre-wrap; overflow-wrap:anywhere; }

/* Pessoas */
.soc-people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.soc-person {
    display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0;
}
.soc-person .soc-person-main { min-width: 0; flex: 1; }
.soc-person strong, .soc-person span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-person .muted { font-size: .85rem; color: var(--muted); }
.soc-person-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.soc-person-actions form { margin: 0; }
.soc-list { display: grid; gap: 10px; }
.soc-list .soc-person { flex-wrap: wrap; }

.soc-online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--success); margin-left: 6px; vertical-align: middle; }
.soc-online.is-off { background: var(--border-strong); }

/* Perfil */
.soc-profile { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.soc-profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px; }
.soc-profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.soc-profile-head h1 { margin: 0; font-size: 1.5rem; }
.soc-profile-hero { position: relative; isolation: isolate; padding: 0; gap: 0; overflow: hidden; }
.soc-profile-cover { position: relative; height: 124px; overflow: hidden; background: linear-gradient(120deg,#fff0c7,#f8bd62 52%,#f28b68); }
.soc-profile-hero.is-accent-ocean .soc-profile-cover { background: linear-gradient(120deg,#d7f5f4,#54b7c0 52%,#427fc0); }
.soc-profile-hero.is-accent-forest .soc-profile-cover { background: linear-gradient(120deg,#e2f3cf,#76bd79 52%,#348a78); }
.soc-profile-hero.is-accent-violet .soc-profile-cover { background: linear-gradient(120deg,#eee3ff,#aa8de3 52%,#786bc6); }
.soc-profile-cover::before,.soc-profile-cover::after { content:""; position:absolute; width:230px; height:230px; border:1px solid rgba(255,255,255,.38); border-radius:50%; }
.soc-profile-cover::before { right:12%; top:-152px; box-shadow:0 0 0 24px rgba(255,255,255,.08),0 0 0 48px rgba(255,255,255,.06); }
.soc-profile-cover::after { right:-55px; bottom:-190px; width:300px; height:300px; background:rgba(255,255,255,.12); }
.soc-profile-cover-orb { position:absolute; right:24%; bottom:-50px; width:122px; height:122px; border-radius:50%; background:rgba(255,255,255,.18); }
.soc-profile-hero-body { position:relative; display:grid; gap:16px; padding:0 24px 24px; }
.soc-profile-hero .soc-profile-head { align-items:flex-end; margin-top:-47px; }
.soc-profile-avatar { position:relative; display:block; flex:none; width:104px; height:104px; }
.soc-profile-hero .soc-profile-avatar > .avatar { width:96px; height:96px; border:4px solid var(--surface); box-shadow:0 3px 12px rgba(0,0,0,.13); }
.soc-profile-frame { position:absolute; inset:-4px; width:112px; height:112px; object-fit:contain; pointer-events:none; z-index:2; filter:drop-shadow(0 4px 8px rgba(0,0,0,.24)); }
.soc-profile-identity { min-width:0; flex:1; display:grid; gap:5px; padding:0 0 4px; }
.soc-profile-identity-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.soc-profile-identity h1 { overflow-wrap:anywhere; }
.soc-presence { flex:none; display:inline-flex; align-items:center; gap:7px; padding:5px 10px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-size:.78rem; }
.soc-presence i { width:8px; height:8px; border-radius:50%; background:var(--border-strong); }
.soc-presence.is-online { color:var(--success); }
.soc-presence.is-online i { background:var(--success); box-shadow:0 0 0 3px color-mix(in srgb,var(--success) 15%,transparent); }
.soc-profile-headline { margin:0; color:var(--text-soft); font-weight:600; }
.soc-profile-role { display:flex; align-items:flex-start; gap:8px; color:var(--role-color); }
.soc-profile-role .icon { flex:none; width:18px; height:18px; margin-top:2px; }
.soc-profile-role span { display:grid; gap:2px; }
.soc-profile-role small { color:var(--text-soft); line-height:1.4; }
.soc-stat-link { color:inherit; text-decoration:none; }
.soc-stat-link:hover { background:var(--accent-soft); color:var(--accent-text); }
.soc-profile-ranking { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.soc-profile-ranking > div { display:flex; align-items:center; gap:9px; flex:1; min-width:180px; }
.soc-profile-ranking > div > .icon { color:var(--accent-text); }
.soc-profile-ranking > div span { display:grid; gap:2px; }
.soc-profile-ranking small { color:var(--muted); }
.soc-profile-ranking > a { padding:8px 12px; border-radius:10px; background:var(--surface-2); color:var(--text); text-decoration:none; }
.soc-profile-ranking > a:hover { background:var(--accent-soft); }
.soc-recent-gifts { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:9px; }
.soc-recent-gift { display:grid; justify-items:center; gap:4px; min-width:0; padding:12px 8px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); text-align:center; }
.soc-recent-gift img,.soc-recent-gift > span { width:54px; height:54px; object-fit:contain; display:grid; place-items:center; }
.soc-recent-gift strong,.soc-recent-gift small { max-width:100%; overflow-wrap:anywhere; }
.soc-recent-gift small { color:var(--muted); font-size:.75rem; }
.soc-gift-sell { display:grid; gap:5px; width:100%; margin-top:6px; }
.soc-gift-sell label { font-size:.78rem; font-weight:700; }
.soc-gift-sell .select { width:100%; min-width:0; font-size:.8rem; }
.soc-gift-sell .btn { width:100%; justify-content:center; }
.soc-gift-sold { color:var(--success) !important; font-weight:700; }
.soc-profile-last-seen { color:var(--muted); }
.soc-profile-about { align-content:start; }
.soc-profile-about-icon { width:40px; height:40px; display:grid; place-items:center; color:var(--accent-text); background:var(--accent-soft); border-radius:12px; }
.soc-profile-about > div:nth-child(2) { display:grid; gap:2px; }
.soc-about-label { color:var(--muted); font-size:.8rem; }
.soc-about-divider { height:1px; width:100%; background:var(--border); }
.soc-profile-about > p { margin:0; color:var(--text-soft); line-height:1.5; }
.soc-profile-locked { display:grid; gap:8px; justify-items:start; color:var(--text-soft); }
.soc-profile-locked .icon { color:var(--accent-text); }
.soc-profile-locked span { color:var(--muted); font-size:.88rem; line-height:1.45; }
.soc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; }
.soc-stat { background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.soc-stat strong { display: block; font-size: 1.2rem; }
.soc-stat span { font-size: .8rem; color: var(--muted); }
.soc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soc-actions form { margin: 0; }
.soc-bio { white-space: pre-line; margin: 0; color: var(--text-soft); }

/* Mensagens: duas colunas no computador, uma no celular */
.soc-chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; height: calc(100dvh - var(--header-height) - 48px); min-height: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.soc-convs { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.soc-convs-head { padding: 14px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.soc-convs-head h1 { margin: 0; font-size: 1.15rem; }
.soc-conv-list { overflow-y: auto; flex: 1; display: block; }
.soc-conv { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.soc-conv:hover { background: var(--hover); }
.soc-conv.is-active { background: var(--accent-soft); }
.soc-conv-main { min-width: 0; flex: 1; }
.soc-conv-main strong, .soc-conv-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-conv-main small { color: var(--muted); }
.soc-badge-unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.soc-thread-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.soc-thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.soc-thread-head .soc-thread-title { min-width: 0; flex: 1; }
.soc-thread-head strong, .soc-thread-head small { display: block; }
.soc-thread-head small { color: var(--muted); }
.soc-back { display: none; }
.soc-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.soc-day { align-self: center; font-size: .78rem; color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 999px; margin: 6px 0; }
.soc-msg { display: flex; gap: 8px; max-width: 78%; align-items: flex-end; }
.soc-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.soc-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 8px 12px; min-width: 0; }
.soc-msg.is-mine .soc-bubble { background: var(--accent); color: var(--accent-ink); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.soc-msg.is-mine .soc-bubble a { color: var(--accent-ink); }
.soc-msg.is-deleted { opacity: .72; }
.soc-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.soc-bubble a { color: inherit; text-decoration: underline; word-break: break-all; }
.soc-bubble img { display: block; width: min(280px, 64vw); height: auto; aspect-ratio: 4 / 3; object-fit: cover; max-height: 360px; border-radius: 10px; background: var(--surface-2); }
.soc-bubble:has(img) { padding: 4px; }
.soc-bubble a:has(img) { display: block; }
.soc-meta { display: flex; gap: 6px; justify-content: flex-end; font-size: .72rem; opacity: .75; margin-top: 4px; }
.soc-sender-name { font-size: .78rem; color: var(--muted); margin-bottom: 2px; display: block; }
.soc-empty-thread { margin: auto; text-align: center; color: var(--muted); }
.soc-older { align-self: center; margin-bottom: 8px; }
.soc-reply-preview { display: grid; gap: 2px; padding: 7px 9px; margin-bottom: 7px; border-left: 3px solid var(--accent); border-radius: 5px; background: color-mix(in srgb,var(--accent) 11%,var(--surface)); font-size: .8rem; }
.soc-reply-preview span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-soft); }
.soc-msg.is-mine .soc-reply-preview { color: var(--text); }
.soc-inline-gift { display: flex; gap: 10px; align-items: center; min-width: 180px; padding: 7px; border-radius: 12px; background: color-mix(in srgb,var(--accent) 13%,var(--surface)); color: var(--text); }
.soc-inline-gift img,.soc-inline-gift > span { width: 54px; height: 54px; flex: none; object-fit: contain; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-size: 1.8rem; }
.soc-inline-gift div { display: grid; gap: 2px; }
.soc-inline-gift small { color: var(--muted); }
.soc-inline-gift p { font-size: .84rem; }
.soc-msg-actions,.soc-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; justify-content: flex-end; }
.soc-msg-actions button,.soc-reaction { border: 1px solid color-mix(in srgb,var(--border) 75%,transparent); background: color-mix(in srgb,var(--surface) 84%,transparent); color: var(--text-soft); border-radius: 999px; padding: 3px 8px; font-size: .72rem; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.soc-msg-actions .icon { width: 13px; height: 13px; }
.soc-reaction.is-mine { color: var(--accent-text); border-color: var(--accent); }
.soc-deleted-copy { color: var(--muted); font-style: italic; }
.soc-replying { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--text-soft); font-size: .84rem; }
.soc-gift-dialog { width: min(640px,calc(100vw - 24px)); max-height: min(80vh,720px); padding: 0; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.soc-gift-dialog::backdrop { background: rgba(17,14,28,.58); backdrop-filter: blur(3px); }
.soc-gift-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.soc-gift-dialog-head strong,.soc-gift-dialog-head small { display: block; }
.soc-gift-dialog-head small { color: var(--muted); margin-top: 2px; }
.soc-gift-dialog-form { display: grid; gap: 12px; padding: 16px; }
.soc-gift-choices { display: grid; grid-template-columns: repeat(auto-fill,minmax(135px,1fr)); gap: 9px; max-height: 45vh; overflow: auto; }
.soc-gift-choice { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); text-align: center; }
.soc-gift-choice > img,.soc-gift-choice-empty { width: 64px; height: 64px; object-fit: contain; display: grid; place-items: center; border-radius: 10px; background: var(--surface); font-size: 1.8rem; }
.soc-gift-choice strong { font-size: .88rem; }
.soc-gift-choice small { color: var(--muted); }
.soc-gift-choice label { display: flex; gap: 4px; align-items: center; font-size: .77rem; }
.soc-gift-choice input { accent-color: var(--accent); }
.soc-gift-dialog-form > .btn { justify-self: end; }

/* Seletor de presentes no perfil: categorias visíveis e escolha de moeda por cartão. */
.soc-gift-disclosure { margin-top: 10px; }
.soc-gift-disclosure > summary { width: fit-content; cursor: pointer; }
.soc-gift-form { display: grid; gap: 14px; margin-top: 14px; }
.soc-gift-balance { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text-soft); font-size: .9rem; }
.soc-gift-category { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
.soc-gift-category legend { padding-inline: 7px; color: var(--text); font-weight: 700; }
.soc-gift-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 9px; }
.soc-gift-card { position: relative; min-width: 0; display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; transition: border-color .16s ease,background .16s ease,transform .16s ease; }
.soc-gift-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.soc-gift-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent); }
.soc-gift-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.soc-gift-card:focus-within { outline: 3px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset: 2px; }
.soc-gift-card-visual { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); color: var(--accent-text); }
.soc-gift-card-visual img { max-width: 100%; max-height: 100%; object-fit: contain; }
.soc-gift-card-visual > span { display: grid; place-items: center; }
.soc-gift-card-visual .icon { width: 25px; height: 25px; }
.soc-gift-card-copy { min-width: 0; display: grid; gap: 3px; }
.soc-gift-card-copy strong,.soc-gift-card-copy small { overflow-wrap: anywhere; }
.soc-gift-card-copy strong { font-size: .9rem; }
.soc-gift-card-copy small { color: var(--text-soft); font-size: .78rem; line-height: 1.3; }
.soc-gift-card-copy .soc-gift-resale { color: var(--muted); font-size: .7rem; }

.soc-composer { border-top: 1px solid var(--border); padding: 10px 12px; display: grid; gap: 8px; background: var(--surface); }
.soc-composer-row { display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; gap:8px; align-items:end; }
.soc-composer-row textarea { grid-column:1/-1; grid-row:1; width:100%; min-width:0; min-height:48px; max-height:160px; resize:none; font-size:1rem; line-height:1.5; }
.soc-composer-row > [data-send] { grid-column:4; grid-row:2; justify-self:end; }
.soc-emojis { display: flex; flex-wrap: wrap; gap: 4px; }
.soc-emojis button { border: 0; background: transparent; font-size: 1.2rem; padding: 2px 4px; cursor: pointer; border-radius: 8px; }
.soc-emojis button:hover { background: var(--hover); }
.soc-preview { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.soc-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.soc-status { font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.soc-notice { padding: 10px 12px; border-radius: 12px; background: var(--warning); color: #1f1600; font-size: .9rem; }

/* Reels (feed): o visual do feed em tela cheia fica em reels.css; aqui só ficam as hashtags,
   também usadas na página de um reel. */
.reel-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.reel-tags a { color: var(--accent); text-decoration: none; font-weight: 700; }

/* Página de um reel */
.reel-show { display: grid; gap: 20px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
.reel-show-player { background: #000; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 16; }
.reel-show-player video { width: 100%; height: 100%; object-fit: contain; }
.reel-show-body { display: grid; gap: 14px; min-width: 0; }
.reel-show-body h1 { margin: 0; font-size: 1.4rem; }
.reel-show-creator { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reel-show-creator a { color: var(--accent); font-weight: 800; text-decoration: none; }
.reel-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.reel-related { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.reel-related a { color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; gap: 4px; }
.reel-related a strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-related a span { color: var(--muted); font-size: .8rem; }

/* Estúdio de Reels */
.reel-studio,.reel-creator-form { padding-top: 1.5rem; padding-bottom: 4rem; }
.reel-studio-stats { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; margin: 1rem 0; }
.reel-studio-stat { padding: 14px; display: grid; gap: 3px; }
.reel-studio-stat strong { font-size: 1.3rem; }
.reel-studio-stat span { color: var(--muted); font-size: .78rem; }
.reel-studio-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.reel-studio-list { display: grid; gap: 12px; }
.reel-studio-item { padding: 14px; display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 16px; }
.reel-studio-thumb { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.reel-studio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-studio-copy { min-width: 0; display: grid; align-content: start; gap: 9px; }
.reel-studio-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.reel-studio-title h2 { margin: 0; font-size: 1.05rem; }
.reel-studio-numbers { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .84rem; }
.reel-moderation-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb,var(--danger) 12%,transparent); color: var(--text); }
.reel-studio-item form { display: inline-flex; }
.reel-publish-form { max-width: 780px; margin: 0 auto; padding: clamp(16px,3vw,28px); display: grid; gap: 18px; }
.label--sub { margin-top: 10px; }
.reel-form-preview { width: 100px; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.reel-review-box { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 12px; background: color-mix(in srgb,var(--accent) 10%,transparent); color: var(--muted); }
.reel-review-box strong { color: var(--text); }
.reel-publish-form .form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
    .soc-profile { grid-template-columns: 1fr; }
    .reel-show { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .soc-page:has(.soc-chat) { padding: 0; }
    .soc-chat { grid-template-columns: 1fr; height: calc(100dvh - var(--header-height) - var(--bottom-nav-height, 0px)); min-height: 0; border-radius: 0; border-left: 0; border-right: 0; }
    .soc-composer { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
    .soc-thread-head { display:grid; grid-template-columns:34px 40px minmax(0,1fr) repeat(3,34px); align-items:center; gap:5px; padding:8px 10px; }
    .soc-thread-head > .soc-back,.soc-thread-head > .avatar,.soc-thread-head > .soc-thread-title,.soc-thread-head > button,.soc-thread-head > form { order:initial; margin:0; min-width:0; }
    .soc-thread-head > .soc-back { grid-column:1; }
    .soc-thread-head > .avatar { grid-column:2; }
    .soc-thread-head > .soc-thread-title { grid-column:3; }
    .soc-thread-head > button,.soc-thread-head > form { display:grid; place-items:center; }
    .soc-thread-head > button.btn,.soc-thread-head > form .btn { width:34px; height:34px; padding:0; justify-content:center; }
    .soc-thread-head > .soc-back { width:34px; height:34px; padding:0; justify-content:center; }
    .soc-thread-head .soc-thread-title strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .soc-thread-head .soc-thread-title small { white-space:normal; overflow:visible; line-height:1.25; font-size:.74rem; overflow-wrap:anywhere; }
    .soc-chat.has-thread .soc-convs { display: none; }
    .soc-chat:not(.has-thread) .soc-thread-wrap { display: none; }
    .soc-chat.has-thread .soc-back { display: inline-flex; }
    .soc-convs { border-right: 0; }
    .soc-msg { max-width: 88%; }
    .soc-thread { padding: 10px 12px; }
    .soc-emojis { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
    .soc-emojis::-webkit-scrollbar { display: none; }
    .soc-emojis button { flex: 0 0 auto; font-size: 1.1rem; }
    .soc-composer-row { grid-template-columns:48px minmax(0,1fr) 112px; gap:7px; }
    .soc-composer-row textarea { min-height:44px; max-height:120px; }
    .soc-composer-row > [data-send] { grid-column:3; grid-row:2; width:100%; justify-content:center; }
    .soc-composer-row > label { grid-column:1; grid-row:2; justify-content:center; }
    .soc-composer-row > [data-open-gift] { grid-column:2; grid-row:2; justify-content:center; min-width:0; }
    .soc-safety { margin:0 12px 7px; }
    .soc-people { grid-template-columns: 1fr; }
    .soc-stats { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
    .soc-profile-hero-body { padding-inline:16px; }
    .soc-profile-identity-top { align-items:flex-start; flex-direction:column; }
    .soc-profile-hero .soc-profile-head > .avatar { width:80px; height:80px; }
    .soc-profile-hero .soc-profile-head { margin-top:-40px; gap:12px; }
    .reel-studio-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .reel-studio-item { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
    .reel-studio-title { display: grid; justify-content: start; }
    .reel-publish-form .form-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 430px) {
    .soc-profile-hero .soc-profile-head { align-items:flex-start; flex-direction:column; }
    .soc-profile-hero .soc-profile-head > .avatar { margin-top:-4px; }
    .soc-profile-identity { width:100%; }
    .soc-stats { grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); }
    .soc-actions .btn { min-height:42px; }
}
/* 1.0.31: pastas (Conversas / Solicitações), pedidos de mensagem, aviso anti-golpe e privacidade do chat */
.soc-folder-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.soc-folder-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: inherit; text-decoration: none; font-size: .88rem; }
.soc-folder-tabs a:hover { background: var(--hover); }
.soc-folder-tabs a.is-active { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.soc-conv-main small.soc-conv-tag { color: var(--accent); font-weight: 600; font-size: .78rem; }
.soc-safety { margin: 0 12px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: .82rem; overflow: hidden; }
.soc-safety summary { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 12px; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
.soc-safety summary::-webkit-details-marker { display: none; }
.soc-safety summary::after { content: '⌄'; margin-left: auto; color: var(--muted); font-size: 1rem; transition: transform .16s ease; }
.soc-safety[open] summary::after { transform: rotate(180deg); }
.soc-safety summary > svg { flex: none; width: 17px; height: 17px; color: var(--accent-text); }
.soc-safety summary em { font-style: normal; font-size: .72rem; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 1px 8px; }
.soc-safety-list { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 8px; }
.soc-safety-item { --t: #f4b940; display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 11px; background: color-mix(in srgb, var(--t) 11%, transparent); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); }
.soc-safety-item--info { --t: #4da3ff; } .soc-safety-item--danger { --t: #ff6b6b; } .soc-safety-item--success { --t: #3ecf8e; }
.soc-safety-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--t) 20%, transparent); color: var(--t); }
.soc-safety-ico svg { width: 16px; height: 16px; }
.soc-safety-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.soc-safety-item strong { color: var(--text); }
.soc-safety-item small { color: var(--text-soft); line-height: 1.4; font-size: .8rem; overflow-wrap: anywhere; }
.soc-request-panel { margin: 10px 16px 0; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; gap: 10px; }
.soc-request-panel p { margin: 0; font-size: .92rem; }
.soc-request-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-request-actions form { margin: 0; }
.soc-request-sent { margin: 10px 16px 0; }
.soc-msg-warning { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--warning) 22%, transparent); font-size: .82rem; font-weight: 600; }
.soc-msg-warning svg { flex: none; width: 16px; height: 16px; }
.soc-chat-privacy { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 10px; text-align: left; max-width: 460px; }
.soc-chat-privacy h4 { margin: 0; font-size: .95rem; }
.soc-chat-privacy label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.soc-chat-privacy label span { display: grid; gap: 2px; }
.soc-chat-privacy small { color: var(--muted); font-size: .8rem; }
.soc-chat-privacy .btn { justify-self: start; }
.soc-preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border: 1px dashed var(--border-strong, var(--border)); border-radius: 12px; font-size: .9rem; }
.soc-preview-bar > span { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 220px; }
.soc-preview-bar svg { width: 16px; height: 16px; }
.soc-preview-bar .is-active { background: var(--accent-soft); }

/* Perfil 3.0: vitrine social responsiva, inspirada na experiência de app e
   alimentada somente com os dados públicos reais da conta. */
.soc-page { max-width: 1380px; }
.soc-profile { gap:18px; grid-template-columns:minmax(0,1fr) 300px; }
.soc-profile-card { border-radius:22px; border-color:color-mix(in srgb,var(--border) 88%,var(--accent)); box-shadow:0 14px 34px color-mix(in srgb,var(--text) 6%,transparent); }
.soc-profile-hero { background:var(--surface); }
.soc-profile-cover { height:224px; background:radial-gradient(circle at 77% 25%,rgba(63,229,255,.48),transparent 20%),radial-gradient(circle at 91% 10%,rgba(220,74,255,.42),transparent 22%),linear-gradient(112deg,#19143a,#40206f 48%,#072a49); }
.soc-profile-cover.has-image { background:var(--surface-3); }
.soc-profile-cover > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.soc-profile-cover::before { z-index:1; left:0; right:0; bottom:0; top:auto; width:auto; height:75%; border:0; border-radius:0; background:linear-gradient(0deg,color-mix(in srgb,var(--surface) 48%,transparent),transparent); box-shadow:none; }
.soc-profile-cover::after { z-index:1; right:8%; bottom:-110px; width:270px; height:270px; background:rgba(255,255,255,.09); backdrop-filter:blur(3px); }
.soc-profile-cover-orb { z-index:2; right:14%; bottom:17px; width:112px; height:24px; border:1px solid rgba(255,255,255,.6); background:transparent; transform:rotate(-16deg); box-shadow:0 0 0 14px rgba(255,255,255,.05); }
.soc-profile-hero-body { gap:15px; padding:0 26px 24px; }
.soc-profile-hero .soc-profile-head { margin-top:-62px; gap:18px; }
.soc-profile-avatar { width:132px; height:132px; filter:drop-shadow(0 12px 18px rgba(0,0,0,.3)); }
.soc-profile-hero .soc-profile-avatar > .avatar { width:120px; height:120px; border:4px solid var(--surface); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 75%,transparent),0 8px 22px rgba(0,0,0,.32); }
.soc-profile-frame { inset:-6px; width:136px; height:136px; }
.soc-profile-identity { padding-bottom:8px; }
.soc-profile-identity h1 { font-size:clamp(1.6rem,3vw,2.25rem); letter-spacing:-.035em; }
.soc-profile-identity-top > div > .muted { color:var(--text-soft); font-weight:650; }
.soc-profile-headline { max-width:800px; color:var(--text); font-size:1rem; line-height:1.45; }
.soc-profile-role { display:inline-flex; width:max-content; max-width:100%; margin-top:2px; padding:7px 10px; border:1px solid color-mix(in srgb,var(--role-color) 45%,var(--border)); border-radius:11px; background:color-mix(in srgb,var(--role-color) 10%,var(--surface)); }
.soc-profile-role small { display:none; }
.soc-bio { max-width:820px; font-size:.97rem; line-height:1.55; }
.soc-stats { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--surface-2); }
.soc-stat { display:grid; justify-items:center; gap:3px; min-width:0; padding:13px 8px; border-right:1px solid var(--border); text-align:center; }
.soc-stat:last-child { border-right:0; }
.soc-stat strong { font-family:var(--font-display); font-size:1.2rem; font-variant-numeric:tabular-nums; }
.soc-stat span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:.73rem; }
.soc-actions { gap:9px; padding-top:2px; }
.soc-actions .btn { min-height:42px; border-radius:13px; }
.soc-actions form:first-child .btn { min-width:150px; }
.soc-profile-about { position:sticky; top:84px; gap:11px; background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),var(--surface)); }
.soc-profile-about-icon { width:48px; height:48px; border-radius:15px; }
.soc-profile-ranking { margin-top:18px; border-radius:18px; }
.soc-profile-nav { display:flex; gap:5px; overflow:auto; margin:18px 0 0; padding:6px; border:1px solid var(--border); border-radius:17px; background:var(--surface); scrollbar-width:none; }
.soc-profile-nav a { display:inline-flex; align-items:center; gap:7px; flex:none; padding:10px 13px; border-radius:11px; color:var(--text-soft); font-size:.86rem; font-weight:750; text-decoration:none; }
.soc-profile-nav a:hover,.soc-profile-nav a.is-active { color:var(--accent-text); background:var(--accent-soft); }
.soc-profile-nav .icon { width:18px; height:18px; }
.soc-profile-nav b { display:grid; place-items:center; min-width:19px; height:19px; padding:0 4px; border-radius:999px; background:color-mix(in srgb,var(--accent) 25%,transparent); font-size:.68rem; }
.soc-extras { gap:18px; margin-top:18px; }
.soc-extras .soc-profile-card { border-radius:20px; }
.feed-profile-section { grid-column:span 1; }
.soc-profile-favorites { grid-column:span 1; }
.soc-recent-gifts { grid-template-columns:repeat(4,minmax(0,1fr)); }
.soc-profile-kicker { display:block; margin-bottom:3px; color:var(--accent-text); font-size:.69rem; font-weight:800; letter-spacing: 0; }
.soc-profile-reels { margin-top:18px; padding:20px; border:1px solid var(--border); border-radius:21px; background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 7%,var(--surface)),var(--surface)); }
.soc-profile-reels .soc-profile-section-head h2 { margin:0; font-size:1.22rem; }
.soc-profile-reel-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:13px; }
.soc-profile-reel { position:relative; display:grid; align-content:end; min-width:0; min-height:190px; overflow:hidden; padding:10px; border:1px solid color-mix(in srgb,var(--border) 85%,transparent); border-radius:15px; color:#fff; text-decoration:none; background:linear-gradient(145deg,#301565,#0d315a); isolation:isolate; }
.soc-profile-reel:hover { outline:2px solid var(--accent); outline-offset:2px; }
.soc-profile-reel > img,.soc-profile-reel-placeholder { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.soc-profile-reel-placeholder { display:grid; place-items:center; color:#fff; background:radial-gradient(circle at 60% 20%,#8f50ff,transparent 34%),linear-gradient(145deg,#101934,#382070); }
.soc-profile-reel-placeholder .icon { width:31px; height:31px; }
.soc-profile-reel-scrim { position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,rgba(4,8,22,.93),rgba(4,8,22,.06) 72%); }
.soc-profile-reel strong { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; font-size:.86rem; line-height:1.18; }
.soc-profile-reel small { display:flex; align-items:center; gap:4px; margin-top:5px; color:rgba(255,255,255,.82); font-size:.68rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.soc-profile-reel small .icon { flex:none; width:13px; height:13px; }

@media (max-width: 1080px) {
    .soc-profile { grid-template-columns:1fr; }
    .soc-profile-about { position:relative; top:auto; grid-template-columns:auto minmax(0,1fr); align-items:center; }
    .soc-profile-about > .soc-about-divider,.soc-profile-about > p { grid-column:1/-1; }
}
@media (max-width: 760px) {
    .soc-page { padding:10px 0 calc(22px + env(safe-area-inset-bottom,0px)); }
    .soc-page > .soc-preview-bar,.soc-page > .soc-profile,.soc-page > .soc-profile-nav,.soc-page > .soc-profile-ranking,.soc-page > .soc-extras { margin-left:12px; margin-right:12px; }
    .soc-profile-card { border-radius:19px; }
    .soc-profile-hero { margin-inline:-12px; border-right:0; border-left:0; border-radius:0; }
    .soc-profile-cover { height:178px; }
    .soc-profile-hero-body { padding:0 17px 19px; }
    .soc-profile-hero .soc-profile-head { align-items:flex-end; margin-top:-49px; gap:12px; }
    .soc-profile-avatar { width:106px; height:106px; }
    .soc-profile-hero .soc-profile-avatar > .avatar { width:96px; height:96px; }
    .soc-profile-frame { inset:-5px; width:111px; height:111px; }
    .soc-profile-identity { padding-bottom:0; }
    .soc-profile-identity h1 { font-size:1.48rem; }
    .soc-profile-identity-top { gap:3px; }
    .soc-presence { padding:4px 8px; font-size:.7rem; }
    .soc-profile-role { padding:5px 7px; font-size:.76rem; }
    .soc-stats { margin-inline:-1px; }
    .soc-stat { padding:10px 4px; }
    .soc-stat strong { font-size:1.05rem; }
    .soc-stat span { font-size:.65rem; }
    .soc-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .soc-actions form,.soc-actions .btn,.soc-actions .badge,.soc-actions .hint { min-width:0; width:100%; }
    .soc-actions .btn { justify-content:center; padding-inline:9px; font-size:.82rem; }
    .soc-profile-about { display:none; }
    .soc-profile-nav { margin-top:10px; border-right:0; border-left:0; border-radius:0; }
    .soc-profile-nav a { padding:9px 11px; }
    .soc-extras { grid-template-columns:1fr; }
    .feed-profile-section,.soc-profile-favorites { grid-column:span 1; }
    .soc-recent-gifts { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .soc-profile-reels { margin:12px; padding:15px 0 15px 15px; border-right:0; border-left:0; border-radius:0; }
    .soc-profile-reels .soc-profile-section-head { padding-right:15px; }
    .soc-profile-reel-grid { display:flex; overflow:auto; gap:9px; padding-right:12px; scrollbar-width:none; }
    .soc-profile-reel { flex:0 0 137px; min-height:180px; }
}
@media (max-width: 390px) {
    .soc-profile-hero .soc-profile-head { align-items:flex-end; flex-direction:row; }
    .soc-profile-identity { width:auto; }
    .soc-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .soc-stat:nth-child(2n) { border-right:0; }
    .soc-stat:nth-child(n+3) { border-top:1px solid var(--border); }
}

/* Ajustes de leitura e toque no perfil mobile. Mantém nome e avatar juntos
   mesmo em telas pequenas, como em um perfil de aplicativo. */
.soc-profile-cover-spark { position:absolute; z-index:2; width:5px; height:5px; border-radius:50%; background:#fff; box-shadow:0 0 12px 4px rgba(129,239,255,.65); }
.soc-profile-cover-spark--one { top:27%; right:25%; }
.soc-profile-cover-spark--two { top:48%; right:11%; width:3px; height:3px; background:#f5a3ff; box-shadow:0 0 12px 3px rgba(243,94,255,.72); }
.soc-preview-bar { border-style:solid; border-radius:16px; background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 9%,var(--surface)),var(--surface)); box-shadow:0 8px 20px color-mix(in srgb,var(--text) 4%,transparent); }
.soc-preview-bar .btn { min-height:36px; border-radius:11px; }
.soc-profile-hero::after { content:""; position:absolute; inset:0; pointer-events:none; border:1px solid color-mix(in srgb,var(--accent) 32%,transparent); border-radius:inherit; z-index:5; }
.soc-profile-hero-body { z-index:6; }
.soc-profile-cover { transition:filter .2s ease; }
.soc-profile-hero:hover .soc-profile-cover { filter:saturate(1.08); }

@media (max-width: 760px) {
    .soc-preview-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; margin-bottom:10px; padding:9px 11px; font-size:.79rem; }
    .soc-preview-bar > span { min-width:0; grid-column:1/-1; flex:initial; line-height:1.35; }
    .soc-preview-bar .btn { padding:7px 10px; font-size:.75rem; }
    .soc-preview-bar .btn:last-child { grid-column:span 2; }
    .soc-profile-cover { height:166px; }
    .soc-profile-cover::after { right:-80px; bottom:-135px; width:235px; height:235px; }
    .soc-profile-hero .soc-profile-head { display:flex; align-items:flex-end; flex-direction:row; flex-wrap:nowrap; gap:11px; margin-top:-46px; }
    .soc-profile-avatar { width:98px; height:98px; }
    .soc-profile-hero .soc-profile-avatar > .avatar { width:89px; height:89px; }
    .soc-profile-frame { inset:-4px; width:103px; height:103px; }
    .soc-profile-identity { flex:1; width:auto; padding-bottom:1px; }
    .soc-profile-identity-top { display:block; }
    .soc-profile-identity h1 { font-size:1.36rem; line-height:1.05; }
    .soc-profile-identity-top .muted { display:block; margin-top:3px; font-size:.8rem; }
    .soc-presence { margin-top:6px; width:max-content; }
    .soc-profile-headline { margin-top:7px; font-size:.86rem; line-height:1.35; }
    .soc-profile-role { max-width:calc(100vw - 140px); margin-top:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .soc-bio { padding:9px 10px; border-left:2px solid var(--accent); border-radius:0 10px 10px 0; background:color-mix(in srgb,var(--accent) 7%,transparent); font-size:.87rem; }
    .soc-stats { border-radius:14px; }
    .soc-actions { gap:7px; }
    .soc-actions .btn { min-height:44px; border-radius:12px; }
    .soc-profile-nav { position:sticky; z-index:7; top:var(--header-height,56px); box-shadow:0 8px 20px color-mix(in srgb,var(--text) 8%,transparent); }
}
@media (max-width: 390px) {
    .soc-profile-hero .soc-profile-head { flex-direction:row; align-items:flex-end; }
    .soc-profile-identity { width:auto; }
    .soc-profile-cover { height:158px; }
    .soc-profile-hero-body { padding-inline:14px; }
    .soc-profile-avatar { width:91px; height:91px; }
    .soc-profile-hero .soc-profile-avatar > .avatar { width:82px; height:82px; }
    .soc-profile-frame { width:96px; height:96px; }
    .soc-profile-identity h1 { font-size:1.25rem; }
    .soc-profile-role { max-width:calc(100vw - 123px); }
}
@media (prefers-reduced-motion: reduce) {
    .soc-profile-cover { transition:none; }
}

/* Composição do cabeçalho social: a capa e a identidade formam um painel único,
   com a mesma leitura de um perfil em aplicativo. */
.soc-profile-hero { overflow:visible; border:0; border-radius:24px; background:#071222; color:#f7f9ff; box-shadow:0 18px 42px rgba(5,12,29,.2); }
.soc-profile-cover { border:1px solid rgba(153,120,255,.45); border-bottom:0; border-radius:24px 24px 0 0; background:radial-gradient(circle at 77% 28%,rgba(74,226,255,.7),transparent 3px),radial-gradient(circle at 84% 23%,rgba(215,68,255,.65),transparent 28%),linear-gradient(120deg,#11082f 0%,#311360 48%,#072f52 100%); }
.soc-profile-hero-body { position:relative; padding-top:0; border:1px solid rgba(126,151,210,.22); border-top:0; border-radius:0 0 24px 24px; background:linear-gradient(145deg,#071222,#0b1930); }
.soc-profile-hero .soc-profile-avatar { aspect-ratio:1; display:grid; place-items:center; isolation:isolate; }
.soc-profile-hero .soc-profile-avatar > .avatar { grid-area:1 / 1; display:block; overflow:hidden; border-color:#0b1729; }
.soc-profile-frame { position:relative; inset:auto; display:block; grid-area:1 / 1; width:calc(100% + 8px); height:calc(100% + 8px); aspect-ratio:1; transform:none; transform-origin:center; pointer-events:none; z-index:3; }
.soc-profile-frame > img { display:block; width:100%; height:100%; max-width:none; aspect-ratio:1; object-fit:contain; object-position:center; }
.soc-profile-hero .soc-profile-identity h1,.soc-profile-hero .soc-profile-headline,.soc-profile-hero .soc-bio { color:#f7f9ff; }
.soc-profile-hero .muted,.soc-profile-hero .soc-profile-role small,.soc-profile-hero .soc-stat span { color:rgba(225,232,255,.68); }
.soc-profile-hero .soc-profile-role { background:rgba(255,255,255,.06); border-color:color-mix(in srgb,var(--role-color) 55%,rgba(255,255,255,.2)); }
.soc-profile-hero .soc-presence { background:rgba(255,255,255,.09); color:#9af3cd; }
.soc-profile-hero .soc-stats { border-color:rgba(173,190,234,.16); background:rgba(255,255,255,.045); }
.soc-profile-hero .soc-stat { border-color:rgba(173,190,234,.16); background:transparent; }
.soc-profile-hero .soc-stat-link:hover { background:rgba(159,102,255,.2); color:#fff; }
.soc-profile-hero .soc-bio { border-left-color:#ff48b5; background:rgba(255,255,255,.055); }
.soc-profile-hero .btn--secondary,.soc-profile-hero .btn--ghost { border-color:rgba(135,236,255,.7); color:#dffbff; background:rgba(7,18,34,.12); }
.soc-profile-hero .btn--primary { border:0; color:#fff; background:linear-gradient(105deg,#f31aa8,#853eff 54%,#16ccec); box-shadow:0 8px 20px rgba(213,42,220,.25); }
.soc-profile-hero .btn--secondary:hover,.soc-profile-hero .btn--ghost:hover { background:rgba(52,229,255,.15); }

.soc-preview-bar { padding:0; overflow:hidden; border:1px solid var(--border); }
.soc-preview-bar summary { display:flex; align-items:center; gap:9px; min-height:45px; padding:0 13px; color:var(--text); cursor:pointer; list-style:none; font-weight:700; }
.soc-preview-bar summary::-webkit-details-marker { display:none; }
.soc-preview-bar summary > .icon:first-child { width:19px; height:19px; color:var(--accent-text); }
.soc-preview-bar summary > span { flex:1; min-width:0; }
.soc-preview-bar summary > .icon:last-child { width:17px; height:17px; transition:transform .18s ease; }
.soc-preview-bar[open] summary > .icon:last-child { transform:rotate(180deg); }
.soc-preview-options { display:flex; gap:8px; flex-wrap:wrap; padding:0 13px 13px; }
.soc-preview-options .btn { flex:0 0 auto; }

@media (max-width: 760px) {
    .soc-preview-bar { margin-bottom:9px; border-radius:14px; }
    .soc-preview-bar summary { min-height:41px; padding:0 11px; font-size:.78rem; }
    .soc-preview-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:0 10px 10px; }
    .soc-preview-options .btn { width:100%; min-height:36px; justify-content:center; }
    .soc-preview-options .btn:last-child { grid-column:1/-1; }
    .soc-profile-hero { margin-inline:-12px; border-radius:0; }
    .soc-profile-cover { border-right:0; border-left:0; border-radius:0; }
    .soc-profile-hero-body { border-right:0; border-bottom:0; border-left:0; border-radius:0; padding-bottom:20px; }
    .soc-profile-hero .soc-profile-head { margin-top:-48px; }
    .soc-profile-hero .soc-profile-avatar { width:104px; height:104px; }
    .soc-profile-hero .soc-profile-avatar > .avatar { width:92px; height:92px; }
    .soc-profile-frame { width:112px; height:112px; }
    .soc-profile-hero .soc-profile-identity h1 { font-size:1.45rem; }
    .soc-profile-hero .soc-profile-role { border-color:rgba(255,255,255,.28); }
    .soc-profile-hero .soc-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .soc-profile-hero .soc-stat:nth-child(3n) { border-right:0; }
    .soc-profile-hero .soc-stat:nth-child(n+4) { border-top:1px solid rgba(173,190,234,.16); }
    .soc-profile-hero .soc-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 390px) {
    .soc-profile-hero .soc-profile-avatar { width:95px; height:95px; }
    .soc-profile-hero .soc-profile-avatar > .avatar { width:84px; height:84px; }
    .soc-profile-frame { width:103px; height:103px; }
    .soc-profile-hero .soc-profile-identity h1 { font-size:1.29rem; }
}

/* QR code recebido no bate-papo: botão de escanear (só para QR do próprio site) */
.soc-qr-scan { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); }
.soc-qr-scan > .icon:first-child { flex: none; width: 24px; height: 24px; color: var(--accent-text, var(--accent)); }
.soc-qr-scan > .icon:last-child { flex: none; width: 16px; height: 16px; margin-left: auto; opacity: .6; }
.soc-qr-scan span { display: grid; gap: 1px; min-width: 0; }
.soc-qr-scan small { color: var(--text-muted); overflow-wrap: anywhere; }
a.soc-qr-scan:hover { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.soc-qr-scan--foreign { background: color-mix(in srgb, #d97706 12%, var(--surface)); border-color: color-mix(in srgb, #d97706 40%, var(--border)); }
.soc-qr-scan--foreign > .icon:first-child { color: #b45309; }

/* ===== Mensagens privadas e salas v3 (alpha.115): bolhas, lista de conversas e caixa de texto mais leves ===== */
.soc-chat { box-shadow: 0 22px 50px -36px rgba(0, 0, 0, .7); }
.soc-convs { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 60%, var(--surface))); }
.soc-conv { position: relative; border-bottom-color: color-mix(in srgb, var(--border) 60%, transparent); transition: background .15s; }
.soc-conv.is-active { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.soc-conv.is-active::before { content: ""; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.soc-badge-unread { color: var(--accent-ink, #fff); box-shadow: 0 0 0 2px var(--surface); }
.soc-thread-head { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); }
.soc-thread { background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface-2); scroll-behavior: smooth; }
.soc-day { position: sticky; top: 4px; z-index: 1; border: 1px solid var(--border); box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .5); font-weight: 600; }
.soc-bubble { box-shadow: 0 2px 8px -5px rgba(0, 0, 0, .35); }
.soc-msg.is-mine .soc-bubble { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000)); }
.soc-msg { animation: soc-in .25s ease both; }
@keyframes soc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.soc-composer { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.soc-composer-row textarea { min-height: 56px; border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.soc-composer-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.soc-composer-row > [data-send] { border-radius: 999px; }
.soc-empty-thread { align-self: center; margin: auto; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--border); background: var(--surface); color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .soc-msg { animation: none; } .soc-thread { scroll-behavior: auto; } }

/* ==================================================================
   Mensagens — ajustes (alpha.115 revisão 8): caixa de escrever menor
   (cresce com o que você digita, via JS), lista de conversas ganha
   mais espaço porque a composição deixou de empurrar.
   ================================================================== */
.soc-composer { padding: 8px 12px; }
.soc-composer-row textarea {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.soc-composer-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.soc-composer-row > [data-send] {
  min-height: 44px;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* botão novo: fixar a conversa como bolha flutuante */
.soc-pin-chat {
  min-height: 34px; padding: 0 10px;
  border-radius: 999px;
  gap: 6px;
}
.soc-pin-chat .icon { width: 15px; height: 15px; }
.soc-pin-chat.is-pinned { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }

/* ==================================================================
   Bolhas flutuantes de conversa (chat heads), estilo Messenger.
   Ficam em qualquer página do site, podem ser arrastadas e removidas.
   Montadas pelo módulo js/components/chat-bubbles.js a partir de
   localStorage; sem rede, sem rastreio.
   ================================================================== */
.chat-bubbles {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  inset: 0;
}
.chat-bubble {
  position: absolute;
  width: 56px; height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .18);
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 20px 32px -16px rgba(0, 0, 0, .55); }
.chat-bubble.is-dragging { cursor: grabbing; transition: none; transform: scale(1.05); }
/* alpha.115 rev. 10: a bolha mostra a foto da pessoa dentro de um "alvéolo" redondo e
   a moldura equipada por cima (como o avatar aparece no feed e no fórum). */
.chat-bubble .chat-bubble-photo {
  position: absolute; inset: 4px;
  border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--text) 5%, var(--surface));
  display: grid; place-items: center;
  pointer-events: none;
}
.chat-bubble .chat-bubble-photo img,
.chat-bubble .chat-bubble-avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none;
}
.chat-bubble .chat-bubble-avatar {
  display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 60%, white), var(--accent));
  color: var(--accent-ink); font-weight: 800; font-size: 1.3rem;
}
.chat-bubble .chat-bubble-frame {
  position: absolute; inset: -8px;
  width: calc(100% + 16px); height: calc(100% + 16px);
  border-radius: 50%;
  object-fit: contain; pointer-events: none;
  z-index: 2;
}
.chat-bubble .chat-bubble-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--danger, #e23b4a); color: #fff;
  display: inline-grid; place-items: center;
  font-size: .7rem; font-weight: 800; line-height: 1;
  border: 2px solid var(--surface);
}
.chat-bubble .chat-bubble-close {
  position: absolute; top: -6px; left: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(10, 8, 18, .85);
  color: #fff;
  display: grid; place-items: center;
  font: 700 .9rem/1 system-ui;
  cursor: pointer;
  border: 2px solid var(--surface);
  opacity: 0;
  transition: opacity .14s ease;
}
.chat-bubble:hover .chat-bubble-close, .chat-bubble:focus-within .chat-bubble-close { opacity: 1; }
.chat-bubble .chat-bubble-name {
  position: absolute; right: calc(100% + 8px); top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 8, 18, .9); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; font-size: .78rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .14s ease;
}
.chat-bubble:hover .chat-bubble-name { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .chat-bubble, .chat-bubble .chat-bubble-close, .chat-bubble .chat-bubble-name { transition: none; }
}

/* ==================================================================
   alpha.115 revisão 11: mensagens com mais área visível.
   O cartão da conversa agora ocupa quase toda a altura disponível,
   com menos recuo em volta. O corpo das mensagens ganha mais ar.
   ================================================================== */
.soc-page:has(.soc-chat) { padding-block: 12px 20px; }
.soc-chat { height: calc(100dvh - var(--header-height) - 24px); min-height: 580px; }
.soc-thread { padding: 20px 22px; gap: 10px; }
.soc-day { margin: 10px 0; }
.soc-bubble { padding: 10px 14px; max-width: min(680px, 72%); line-height: 1.42; }
.soc-conv { padding: 11px 12px; }
.soc-conv-name { font-size: .95rem; }
.soc-conv-snippet { font-size: .8rem; line-height: 1.35; }
@media (max-width: 640px) {
  .soc-page:has(.soc-chat) { padding-block: 0; }
  .soc-chat { height: calc(100dvh - var(--header-height) - var(--bottom-nav-height, 0px)); min-height: 0; }
  .soc-thread { padding: 14px 14px 18px; }
  .soc-bubble { max-width: 86%; }
}
