/* ==========================================================================
   SEIXAS SOCIAL · RECURSOS DA VERSÃO 3.1
   Chat completo, comunidades, Market, destaques, busca, conta e admin.
   Tudo em medidas flexíveis (se adapta a qualquer tela).
   ========================================================================== */

/* Só aparece em telas de toque (ex.: botão "Câmera") */
.touch-only { display: none !important; }
@media (hover: none) and (pointer: coarse) {
    .touch-only { display: inline-flex !important; }
}

/* ---------- Chat: bolhas, respostas, reações ---------- */
.msg-line {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
}
.msg-row.mine .msg-line { flex-direction: row-reverse; }
.msg-bubble { min-width: 0; overflow-wrap: anywhere; }

.msg-more {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, background .15s;
}
.msg-row:hover .msg-more,
.msg-more:focus-visible { opacity: 1; }
.msg-more:hover { background: var(--bg-hover); color: var(--text-primary); }
@media (hover: none) {
    .msg-more { opacity: .55; width: 26px; height: 26px; }
}

.msg-quote {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 5px 9px;
    margin: -2px -4px 6px;
    border-left: 3px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    background: rgba(0, 0, 0, .18);
    font-size: .76rem;
    cursor: pointer;
    max-width: 100%;
}
.msg-row.theirs .msg-quote { border-left-color: var(--brand-cyan); background: rgba(56, 189, 248, .08); }
.msg-quote b { font-weight: 800; }
.msg-quote span {
    opacity: .85;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.msg-deleted { font-style: italic; opacity: .75; }
.msg-seen { color: var(--brand-cyan); font-weight: 700; }

.msg-reacts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: -6px;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}
.msg-react {
    border: 1px solid var(--border-subtle);
    background: var(--bg-card-solid);
    color: var(--text-primary);
    border-radius: 99px;
    padding: 1px 7px;
    font-size: .78rem;
    cursor: pointer;
    line-height: 1.5;
}
.msg-react.mine { border-color: var(--brand-cyan); background: rgba(6, 182, 212, .18); }

.msg-react-picker {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.msg-react-picker button {
    flex: 1 1 36px;
    min-width: 36px;
    aspect-ratio: 1;
    max-width: 52px;
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: transform .12s;
}
.msg-react-picker button:hover { transform: scale(1.12); }
.msg-react-picker button.active { border-color: var(--brand-cyan); background: rgba(6, 182, 212, .2); }

.msg-flash .msg-bubble { animation: msgFlash 1.2s ease; }
@keyframes msgFlash {
    0%, 100% { box-shadow: none; }
    30% { box-shadow: 0 0 0 3px var(--brand-amber); }
}

.chat-typing {
    min-height: 0;
    padding: 0 16px;
    font-size: .76rem;
    color: var(--brand-cyan);
    font-weight: 600;
}
.chat-typing:not(:empty) { padding: 4px 16px; }
.chat-typing.compact:not(:empty) { padding: 3px 10px; font-size: .7rem; }

.reply-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 0 10px;
    border-left: 3px solid var(--brand-cyan);
    border-radius: 10px 10px 0 0;
    background: var(--bg-elevated);
    font-size: .8rem;
    min-width: 0;
}
.reply-bar.compact { margin: 0 6px; padding: 5px 8px; font-size: .72rem; }
.reply-bar .ellipsis { color: var(--text-muted); }

.mic-btn { color: var(--brand-purple); flex: none; }
.mic-btn.recording {
    color: #fff;
    background: var(--brand-rose);
    border-radius: 50%;
    animation: micPulse 1.2s infinite;
}
@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .55); }
    50% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
}

.audio-msg {
    display: block;
    width: min(260px, 62vw);
    max-width: 100%;
    height: 40px;
}
.floating-chat-box .audio-msg { width: 100%; min-width: 170px; }
.chat-video { width: 100%; border-radius: 10px; display: block; max-height: 320px; background: #000; }

/* ---------- Comunidades ---------- */
.community-rules summary::-webkit-details-marker { color: var(--brand-amber); }
.pinned-label {
    font-size: .78rem;
    font-weight: 800;
    color: var(--brand-amber);
    margin: 0 0 6px 4px;
}
.event-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--border-subtle);
}
.event-row:first-of-type { border-top: none; }
.event-date {
    flex: none;
    width: 52px;
    text-align: center;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: .68rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 0;
    line-height: 1.1;
}
.event-date span { display: block; font-size: 1.3rem; font-weight: 800; }
@container (max-width: 420px) {
    .event-row { flex-wrap: wrap; }
}
@media (max-width: 420px) {
    .event-row > div:last-child { flex-direction: row !important; width: 100%; justify-content: flex-end; }
}

/* ---------- Destaques do perfil ---------- */
.highlights-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 20px 16px;
    scrollbar-width: none;
}
.highlights-row::-webkit-scrollbar { display: none; }
.highlight-item {
    flex: none;
    width: clamp(58px, 16vw, 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: .72rem;
    color: var(--text-secondary);
    text-align: center;
}
.highlight-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-circle {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-story);
    overflow: hidden;
}
.highlight-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bg-card-solid);
    display: block;
}
.highlight-circle.add {
    background: var(--bg-elevated);
    border: 2px dashed var(--border-glow);
    display: grid;
    place-items: center;
    color: var(--brand-cyan);
    font-size: 1.1rem;
}
.story-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
}
.story-pick {
    position: relative;
    aspect-ratio: 9 / 14;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}
.story-pick:has(input:checked) { border-color: var(--brand-cyan); }
.story-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-pick input { position: absolute; top: 6px; left: 6px; z-index: 1; width: 18px; height: 18px; }
.story-pick span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .66rem;
    text-align: center;
}

/* ---------- Avaliações ---------- */
.rate-stars { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.rate-stars button {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform .1s, color .1s;
}
.rate-stars button.on { color: #facc15; }
.rate-stars button:hover { transform: scale(1.15); }

/* ---------- Market: várias fotos ---------- */
.photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .7rem;
    padding: 2px 7px;
    border-radius: 99px;
}
.product-gallery img#pgMain {
    width: 100%;
    max-height: min(56vh, 420px);
    object-fit: contain;
    background: #000;
    border-radius: 14px;
    cursor: zoom-in;
    display: block;
}
.product-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 8px;
    padding-bottom: 2px;
}
.product-thumbs button {
    flex: none;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    opacity: .7;
}
.product-thumbs button.on { border-color: var(--brand-cyan); opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mk-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
    margin: 6px 0;
}
.mk-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.mk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-photo button {
    position: absolute;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
}
.mk-del { right: 4px; }
.mk-first { left: 4px; color: #facc15 !important; }
.mk-cover {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--brand-cyan);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 99px;
    text-transform: uppercase;
}
@media (max-width: 520px) {
    .alert-form { grid-template-columns: 1fr 1fr !important; }
    .alert-form > :first-child { grid-column: 1 / -1; }
}

/* ---------- Busca ---------- */
.search-page-input { font-size: 1rem; padding: 12px 16px; }
.search-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 4px 12px;
}

/* ---------- Conta / privacidade ---------- */
.switch-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    cursor: pointer;
    font-size: .86rem;
}
.switch-row input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand-cyan); }
.switch-row small { color: var(--text-muted); }

/* ---------- Admin: problemas relatados ---------- */
.feedback-item {
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    margin-bottom: 10px;
}
.fb-status { font-size: .74rem; font-weight: 700; margin-left: 4px; text-transform: capitalize; }
.fb-shot {
    display: block;
    margin-top: 8px;
    max-width: min(100%, 320px);
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    cursor: zoom-in;
}

/* ==========================================================================
   v3.2 · termos, recuperação, convites, aparência, rascunhos, conversas, admin
   ========================================================================== */

/* ---------- Tela de entrada ---------- */
.auth-link {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: none;
    color: var(--brand-cyan);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .8rem;
    color: var(--text-secondary);
    margin: 4px 0 12px;
    cursor: pointer;
    line-height: 1.45;
}
.auth-terms input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--brand-cyan); }
.auth-terms a { color: var(--brand-cyan); font-weight: 700; }

/* o modal (termos) precisa ficar por cima da tela de login */
#termsGate { z-index: 2500; }
#genericModalBackdrop { z-index: 2600; }
#termsGate .modal-panel { position: relative; }

/* ---------- Textos legais ---------- */
.legal-text {
    max-height: min(56vh, 520px);
    overflow-y: auto;
    padding: 4px 14px 4px 2px;
    font-size: .86rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.legal-text h4 { color: var(--text-primary); margin: 14px 0 4px; font-size: .92rem; }
.legal-text h4:first-child { margin-top: 0; }

/* ---------- Códigos de recuperação ---------- */
.recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
    gap: 8px;
}
.recovery-grid code {
    display: block;
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-glow);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    user-select: all;
}

/* ---------- Convites ---------- */
.invite-row, .draft-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--bg-elevated);
    margin-bottom: 8px;
    min-width: 0;
}
.draft-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; }
.small-btn { padding: 6px 11px !important; font-size: .76rem !important; white-space: nowrap; }
@media (max-width: 480px) {
    .draft-row { flex-wrap: wrap; }
    .draft-row > div { flex-basis: calc(100% - 60px) !important; }
}

/* ---------- Aparência ---------- */
.appearance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
    gap: 8px;
}
.appearance-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    border-radius: 14px;
    border: 2px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, transform .12s;
}
.appearance-opt:hover { transform: translateY(-1px); }
.appearance-opt.active { border-color: var(--brand-cyan); background: var(--bg-hover); }

/* ---------- Menções ---------- */
.mention-box {
    position: fixed;
    z-index: 4000;
    width: min(300px, calc(100vw - 16px));
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 14px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-popup);
    display: none;
}
.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 10px;
    cursor: pointer;
}
.mention-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.mention-item div { display: flex; flex-direction: column; font-size: .82rem; }
.mention-item span { color: var(--text-muted); font-size: .74rem; }
.mention-item.active, .mention-item:hover { background: var(--bg-hover); }

/* ---------- Publicar: agendar / rascunho ---------- */
.tool-chip.active { border-color: var(--brand-amber); background: rgba(245, 158, 11, .12); }
.scheduled-badge {
    color: var(--brand-amber);
    font-weight: 700;
    background: rgba(245, 158, 11, .12);
    padding: 1px 8px;
    border-radius: 99px;
}

/* ---------- Lista de conversas ---------- */
.conv-row { padding: 12px 14px; border-radius: 0; border-left: 3px solid transparent; }
.conv-row.selected { background: var(--bg-hover); border-left-color: var(--brand-cyan); }
.conv-flag { font-size: .7rem; color: var(--text-muted); }
.unread-pill.muted { background: var(--text-muted) !important; }
.conv-archive-toggle {
    padding: 10px 16px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand-cyan);
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
}
.conv-archive-toggle:hover { background: var(--bg-hover); }
.ttl-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 99px;
    background: rgba(6, 182, 212, .14);
    color: var(--brand-cyan);
    font-size: .68rem;
    font-weight: 700;
}
.catchup-text {
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-elevated);
    font-size: .9rem;
    line-height: 1.6;
    max-height: 55vh;
    overflow-y: auto;
}

/* ---------- Menu lateral: rodapé ---------- */
.side-footer {
    padding: 12px 16px 4px;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.side-footer a { cursor: pointer; color: var(--text-muted); }
.side-footer a:hover { color: var(--brand-cyan); text-decoration: underline; }

/* ---------- Admin: gráficos e erros ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.stat-strip > div {
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-elevated);
    text-align: center;
}
.stat-strip b { display: block; font-size: 1.35rem; }
.stat-strip span { font-size: .72rem; color: var(--text-muted); }
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 12px;
}
.chart-card {
    padding: 12px;
    border-radius: 14px;
    background: var(--bg-elevated);
    min-width: 0;
}
.chart-card h4 { font-size: .84rem; margin-bottom: 6px; }
.admin-chart { width: 100%; height: auto; display: block; overflow: visible; }
.admin-chart .chart-axis { stroke: var(--border-subtle); stroke-width: 1; }
.admin-chart .chart-lbl { fill: var(--text-muted); font-size: 10px; }
.admin-chart .chart-val { fill: var(--text-secondary); font-size: 9px; font-weight: 700; }
.feature-bars { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.feature-bar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 34px; gap: 8px; align-items: center; font-size: .78rem; }
.feature-bar > div { height: 10px; border-radius: 99px; background: var(--bg-card); overflow: hidden; }
.feature-bar i { display: block; height: 100%; border-radius: 99px; background: var(--gradient-brand); }
.feature-bar b { text-align: right; }
.error-item summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    min-width: 0;
}
.error-item summary::-webkit-details-marker { display: none; }
.err-count {
    flex: none;
    padding: 1px 7px;
    border-radius: 99px;
    background: rgba(244, 63, 94, .16);
    color: var(--brand-rose);
    font-weight: 800;
    font-size: .74rem;
}
.err-stack {
    max-height: 180px;
    overflow: auto;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-input);
    font-size: .72rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-secondary);
}
/* códigos: sem a ligadura que transforma "3x8" em "3×8" */
#regInvite, #recCode, .recovery-grid code, .invite-row { font-feature-settings: "calt" 0, "liga" 0; }

/* ==========================================================================
   v3.3 · carrossel, repost, notas, aniversários, lembranças, vídeos curtos,
   editor de stories, figurinhas, transcrição, IA de imagem, ofertas
   ========================================================================== */

/* ---------- Publicar: várias fotos ---------- */
.composer-media-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px 4px;
    scrollbar-width: thin;
}
.composer-thumb {
    position: relative;
    flex: none;
    width: clamp(78px, 22vw, 110px);
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.composer-thumb img, .composer-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.composer-thumb .remove-preview-btn { top: 4px; right: 4px; width: 24px; height: 24px; font-size: .75rem; }
.thumb-badge { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: .8rem; text-shadow: 0 1px 4px #000; }
.thumb-cover {
    position: absolute; left: 4px; top: 4px;
    background: var(--brand-cyan); color: #fff;
    font-size: .6rem; font-weight: 800; text-transform: uppercase;
    padding: 1px 6px; border-radius: 99px;
}
.composer-thumb.add-more {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px dashed var(--border-glow); cursor: pointer; color: var(--brand-cyan); font-size: .75rem; font-weight: 700;
}
.composer-thumb.add-more i { font-size: 1.2rem; }

/* ---------- Carrossel no post ---------- */
.carousel { position: relative; background: #000; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.carousel-media { width: 100%; height: min(70vw, 490px); object-fit: contain; display: block; cursor: pointer; background: #000; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255, 255, 255, .85); color: #0f172a; cursor: pointer;
    opacity: 0; transition: opacity .15s; z-index: 2;
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel:hover .carousel-arrow { opacity: 1; }
@media (hover: none) { .carousel-arrow { display: none; } }
.carousel-count {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; font-weight: 700;
    padding: 2px 9px; border-radius: 99px;
}
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: transform .15s, background .15s; }
.carousel-dots span.on { background: #fff; transform: scale(1.3); }

/* ---------- Repost ---------- */
.repost-label { padding: 0 20px; margin-top: -4px; font-size: .76rem; color: var(--brand-emerald); font-weight: 700; }
.repost-card {
    margin: 0 18px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-elevated);
}
.repost-card.missing { padding: 14px; font-size: .85rem; color: var(--text-muted); cursor: default; }
.repost-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; font-size: .84rem; flex-wrap: wrap; }
.repost-head img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.repost-head span { color: var(--text-muted); font-size: .74rem; }
.repost-text { padding: 2px 12px 10px; font-size: .88rem; }
.repost-card .post-media, .repost-card .carousel { border: none; }
.repost-card .post-media { max-height: 360px; }

/* ---------- Notas de 24 h ---------- */
.notes-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 44px 4px 6px;
    margin-bottom: 8px;
    scrollbar-width: none;
    align-items: flex-start;
}
.notes-strip::-webkit-scrollbar { display: none; }
.note-item {
    position: relative;
    flex: none;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.note-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-card-solid); box-shadow: 0 0 0 2px var(--border-glow); }
.note-item > span { font-size: .72rem; color: var(--text-secondary); margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-bubble {
    position: absolute;
    bottom: calc(100% - 12px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 120px;
    min-width: 54px;
    padding: 5px 9px;
    border-radius: 14px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    font-size: .7rem;
    line-height: 1.25;
    text-align: center;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    z-index: 1;
}
.note-bubble.empty { color: var(--text-muted); font-weight: 700; }
.note-bubble.big { position: static; transform: none; max-width: none; font-size: .95rem; padding: 12px; -webkit-line-clamp: unset; }
.notes-hint { align-self: center; font-size: .76rem; color: var(--text-muted); max-width: 320px; }
.profile-note {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    font-size: .82rem;
}

/* ---------- Aniversários ---------- */
.birthday-card {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, .14), rgba(245, 158, 11, .12));
    border-color: rgba(236, 72, 153, .35);
}
.bday-me { font-size: .9rem; margin-bottom: 6px; }
.bday-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bday-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer; }
.bday-row b { display: block; font-size: .88rem; }
.bday-row span { font-size: .76rem; color: var(--text-secondary); }
.bday-done { font-size: .76rem; color: var(--brand-emerald); font-weight: 700; white-space: nowrap; }
.bday-soon { font-size: .76rem; color: var(--text-muted); margin-top: 4px; }
.bday-today-tag { color: var(--brand-pink); font-weight: 800; }
.wishes-mural { padding: 16px 20px; margin-bottom: 20px; }
.wish-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.wish-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer; flex: none; }
.wish-row b { font-size: .84rem; }
.wish-row p { font-size: .88rem; margin-top: 2px; }

/* ---------- Lembranças ---------- */
.memory-card { padding: 14px 16px; margin-bottom: 16px; border-color: rgba(139, 92, 246, .35); }
.memory-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.memory-body { cursor: pointer; margin-bottom: 10px; font-size: .9rem; }
.memory-thumb { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; display: block; }

/* ---------- Vídeos curtos ---------- */
.reels-wrap { display: flex; justify-content: center; }
.reels-feed {
    width: min(100%, calc((100dvh - var(--nav-height) - 40px) * 9 / 16));
    height: calc(100dvh - var(--nav-height) - 40px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    border-radius: 20px;
    background: #000;
    scrollbar-width: none;
}
.reels-feed::-webkit-scrollbar { display: none; }
.reel {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .8)); }
.reel-info { position: absolute; left: 14px; right: 74px; bottom: 18px; color: #fff; }
.reel-author { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; margin-bottom: 6px; }
.reel-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.reel-text { font-size: .86rem; line-height: 1.4; max-height: 7.5em; overflow: hidden; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.reel-actions { position: absolute; right: 8px; bottom: 18px; display: flex; flex-direction: column; gap: 14px; }
.reel-actions button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: none; color: #fff; cursor: pointer; font-size: 1.45rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.reel-actions button span { font-size: .68rem; font-weight: 700; }
.reel-actions button.on i { color: #f43f5e; }
.reel-more { display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
    .reels-feed {
        width: 100%;
        height: calc(100dvh - var(--nav-height) - var(--bottom-nav) - 24px);
        border-radius: 0;
    }
}

/* ---------- Editor de stories ---------- */
.modal-panel.wide-modal { max-width: min(880px, 96vw); width: min(100%, 880px); }
.story-editor-wrap { padding-top: 22px; }
.story-start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.story-start-opt {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 10px; border-radius: 16px; border: 2px solid var(--border-subtle);
    background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; font-size: .86rem;
}
.story-start-opt span { font-size: 2rem; }
.story-start-opt:hover { border-color: var(--brand-cyan); }
.story-editor-cols { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 640px) { .story-editor-cols { grid-template-columns: 1fr; } }
.story-canvas {
    --sw: 300px;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    touch-action: none;
    user-select: none;
}
@media (max-width: 640px) { .story-canvas { max-width: min(260px, 70vw); max-height: 46vh; } }
.story-canvas > img, .story-canvas > video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.story-item {
    position: absolute;
    transform: translate(-50%, -50%);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: pre-wrap;
    max-width: 88%;
    padding: 2px 8px;
    border-radius: 8px;
    cursor: grab;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    font-family: Inter, system-ui, sans-serif;
}
.story-item.emoji { text-shadow: none; padding: 0; }
.story-item.sel { outline: 2px dashed rgba(255, 255, 255, .9); outline-offset: 3px; }
.story-poll-preview, .story-q-preview {
    position: absolute; left: 10%; right: 10%; bottom: 14%;
    background: rgba(255, 255, 255, .95); color: #0f172a;
    border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px;
    font-size: .7rem; text-align: center; pointer-events: none;
}
.story-q-preview { bottom: 30%; }
.story-poll-preview span, .story-q-preview span { background: #eef2f7; border-radius: 8px; padding: 4px; }
.close-badge {
    position: absolute; top: 10px; left: 10px;
    background: #22c55e; color: #fff; font-size: .68rem; font-weight: 800;
    padding: 2px 8px; border-radius: 99px;
}
.close-badge.inline { position: static; display: inline-block; margin-left: 4px; }
.story-tools { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tool-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tool-row > label { font-size: .78rem; font-weight: 700; color: var(--text-secondary); margin-right: 4px; }
.tool-box { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--bg-elevated); }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-subtle); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--brand-cyan); box-shadow: 0 0 0 2px var(--brand-cyan); }
.emoji-row button { font-size: 1.3rem; background: none; border: none; cursor: pointer; padding: 2px; border-radius: 8px; }
.emoji-row button:hover { background: var(--bg-hover); }
.btn-secondary.active { border-color: var(--brand-cyan); color: var(--brand-cyan); }

/* ---------- Story aberto: enquete e pergunta ---------- */
.story-interactive {
    position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
    width: min(84%, 320px); z-index: 13;
    display: flex; flex-direction: column; gap: 12px;
}
.story-poll, .story-qbox {
    background: rgba(255, 255, 255, .96); color: #0f172a;
    border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.story-poll b, .story-qbox b { font-size: .95rem; text-align: center; }
.story-poll small, .story-qbox small { text-align: center; color: #64748b; }
.sp-opt {
    position: relative; display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc;
    font-weight: 700; font-size: .88rem; color: #0f172a; cursor: pointer; overflow: hidden; text-align: left;
}
button.sp-opt:hover { border-color: #06b6d4; }
.sp-opt.result i { position: absolute; inset: 0 auto 0 0; background: rgba(6, 182, 212, .22); }
.sp-opt.result.mine i { background: rgba(6, 182, 212, .42); }
.sp-opt span, .sp-opt em { position: relative; font-style: normal; }
.story-qbox form { display: flex; gap: 6px; }
.story-qbox input { flex: 1; min-width: 0; border: 1px solid #e2e8f0; border-radius: 99px; padding: 9px 12px; font-size: .86rem; outline: none; color: #0f172a; background: #f8fafc; }
.story-qbox button { border: none; border-radius: 50%; width: 38px; background: #06b6d4; color: #fff; cursor: pointer; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-card-solid); margin-left: -6px; }

/* ---------- Chat: ofensiva, figurinhas, transcrição ---------- */
.streak-tag { font-size: .74rem; font-weight: 800; color: #f97316; white-space: nowrap; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
.sticker-add, .sticker-cell { position: relative; aspect-ratio: 1; border-radius: 16px; }
.sticker-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px dashed var(--border-glow); color: var(--brand-cyan); font-size: .7rem; font-weight: 700; text-align: center; cursor: pointer; padding: 4px;
}
.sticker-add i { font-size: 1.3rem; }
.sticker-cell img { width: 100%; height: 100%; object-fit: contain; cursor: pointer; transition: transform .12s; }
.sticker-cell img:hover { transform: scale(1.06); }
.sticker-cell button {
    position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%;
    border: none; background: rgba(0, 0, 0, .7); color: #fff; font-size: .7rem; cursor: pointer; opacity: 0;
}
.sticker-cell:hover button { opacity: 1; }
@media (hover: none) { .sticker-cell button { opacity: .8; } }
.msg-bubble.sticker { background: none !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
.sticker-img { width: clamp(110px, 30vw, 150px); height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.transcribe-btn {
    display: inline-block; margin-top: 4px; background: rgba(255, 255, 255, .16); border: none;
    color: inherit; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; cursor: pointer;
}
.msg-row.theirs .transcribe-btn { background: var(--bg-hover); }
.transcript-text { margin-top: 6px; font-size: .84rem; font-style: italic; opacity: .92; border-left: 3px solid currentColor; padding-left: 8px; }

/* ---------- IA: imagem ---------- */
.ai-img-loading, .ai-img-error { padding: 16px; border-radius: 12px; background: var(--bg-elevated); font-size: .86rem; text-align: center; }
.ai-img-error { color: var(--brand-rose); display: flex; flex-direction: column; align-items: center; }
.ai-img-result { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; display: block; background: #000; }

/* ---------- Market: ofertas ---------- */
.offers-box { padding: 12px 14px; border-radius: 14px; background: var(--bg-elevated); margin: 12px 0; font-size: .88rem; }
.offers-box h4 { font-size: .9rem; margin-bottom: 6px; }
.offer-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.offer-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.offer-status { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.offer-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.collections-bar { margin: -6px 0 14px; }

/* ---------- Endereço na rede (Wi-Fi) ---------- */
.lan-box {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
    background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .35); font-size: .85rem;
}
.lan-box.warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.lan-url { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 800; color: var(--brand-emerald); word-break: break-all; }
.lan-box small { color: var(--text-muted); }
.side-lan {
    margin: 12px 12px 0; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    background: rgba(16, 185, 129, .1); border: 1px dashed rgba(16, 185, 129, .45);
    font-size: .74rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 2px;
}
.side-lan b { font-family: ui-monospace, Consolas, monospace; color: var(--brand-emerald); font-size: .82rem; word-break: break-all; }
.side-lan span { font-size: .68rem; color: var(--text-muted); }

/* capa vazia: fundo colorido (cada conta tem a sua cor até escolher uma foto) */
.profile-cover { background-color: #0e7490; background-image: linear-gradient(125deg, #06b6d4, #2563eb 55%, #7c3aed); }
.person-cover { background-color: #0e7490; background-image: linear-gradient(125deg, #06b6d4, #2563eb 55%, #7c3aed); }
.role-tag { display: inline-block; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; margin-left: 4px; vertical-align: middle; }
.role-tag.owner { background: rgba(245, 158, 11, .18); color: #f59e0b; }
.role-tag.admin { background: rgba(6, 182, 212, .16); color: var(--brand-cyan); }
.admin-log-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border-subtle); font-size: .82rem; }
.admin-log-row > span { color: var(--text-muted); font-size: .74rem; min-width: 92px; }
.admin-log-row i { color: var(--text-secondary); }
.admin-log-row small { margin-left: auto; color: var(--text-muted); font-size: .7rem; }

/* ---------- Foto de perfil e capa: clicar para ver / trocar ---------- */
.avatar-edit-wrap { position: relative; flex-shrink: 0; cursor: zoom-in; border-radius: 50%; }
.avatar-edit-wrap.mine { cursor: pointer; }
.avatar-edit-wrap.mine::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    background: rgba(0, 0, 0, 0); transition: background .15s;
}
.avatar-edit-wrap.mine:hover::after { background: rgba(0, 0, 0, .28); }
.avatar-edit-badge {
    position: absolute; right: 4px; bottom: 6px; z-index: 1;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gradient-brand); color: #fff; font-size: .9rem;
    border: 3px solid var(--bg-card-solid); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.profile-cover.clickable { cursor: pointer; }
.cover-edit-btn {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 99px;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; font-weight: 700;
    backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25);
}
@media (max-width: 520px) { .cover-edit-btn span { display: none; } .cover-edit-btn { padding: 9px 11px; top: 10px; bottom: auto; } }

.photo-menu-preview { display: flex; justify-content: center; margin-bottom: 14px; }
.photo-menu-preview.avatar img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--border-glow); background: var(--bg-elevated); }
.photo-menu-preview.cover > div { width: 100%; aspect-ratio: 3.2; border-radius: 14px; background-size: cover; background-position: center; }
.photo-menu-preview.cover .empty-cover { background: linear-gradient(125deg, #06b6d4, #2563eb 55%, #7c3aed); }
.photo-menu-actions { display: flex; flex-direction: column; gap: 8px; }
.photo-menu-actions .drawer-item { width: 100%; }

/* ---------- Recorte ---------- */
.cropper {
    position: relative; margin: 0 auto; overflow: hidden;
    background: #000; touch-action: none; user-select: none; cursor: grab; border-radius: 14px;
}
.cropper:active { cursor: grabbing; }
.cropper.round { width: min(300px, 78vw); aspect-ratio: 1; }
.cropper.wide { width: 100%; aspect-ratio: 3; }
.cropper img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.cropper.round .crop-mask {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at center, transparent 0, transparent 69.5%, rgba(0, 0, 0, .6) 70.5%);
}
.cropper.round .crop-mask::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
    border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
}
.cropper.wide .crop-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); border-radius: 14px; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-muted); }
.crop-zoom input { flex: 1; accent-color: var(--brand-cyan); }
.search-label { font-size: .86rem; color: var(--text-secondary); margin: -4px 0 12px 4px; }
.search-label b { color: var(--text-primary); }

/* chave da IA aparece como bolinhas, mas não é tratada como senha de login pelo navegador */
.secret-field { -webkit-text-security: disc; text-security: disc; font-family: monospace; }

/* ---------- Perfil estilo Facebook (3.3.6): capa larga, centralizada, mais alta; foto maior ---------- */
@media (min-width: 881px) {
    .app-shell.profile-view { grid-template-columns: minmax(0, 1fr) !important; max-width: 1180px; }
    .app-shell.profile-view #leftSidebar { display: none; }
}
.profile-header-card .profile-cover {
    height: auto; aspect-ratio: 3 / 1; max-height: 420px; min-height: 130px;
    background-size: cover; background-position: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.profile-header-card .profile-big-avatar { width: clamp(96px, 15vw, 168px); height: clamp(96px, 15vw, 168px); border-width: 5px; }
.profile-header-card .profile-header-body { margin-top: calc(-1 * clamp(40px, 6.5vw, 84px)); padding: 0 32px 22px; }
.profile-header-card .profile-main-id > div:not(.avatar-edit-wrap) { margin-top: clamp(44px, 7vw, 92px); }
/* a parte de baixo (foto/nome) encosta na capa: deixa os cliques chegarem no botão "Editar capa" */
.profile-header-body { pointer-events: none; }
.profile-header-body > * { pointer-events: auto; }
.cover-edit-btn { z-index: 2; cursor: pointer; font-family: inherit; }
.cover-edit-btn:hover { background: rgba(0, 0, 0, .75); }
@media (max-width: 880px) {
    /* celular: foto e nome no meio, como no app do Facebook */
    .profile-header-card .profile-header-body { padding: 0 16px 16px; }
    .profile-header-card .profile-main-id { align-items: center; text-align: center; width: 100%; }
    .profile-header-card .profile-main-id > div:not(.avatar-edit-wrap) { margin-top: 0; width: 100%; }
    .profile-header-card .profile-main-id h2 { justify-content: center; }
}
.profile-header-card .profile-main-id > .avatar-edit-wrap { margin-top: 0; }

/* "Novas publicações": botão flutuante no topo da linha do tempo — não empurra os posts (nada pula) */
.new-posts-float { position: sticky; top: calc(var(--nav-height, 70px) + 12px); height: 0; z-index: 60;
    display: flex; justify-content: center; overflow: visible; pointer-events: none; }
.new-posts-float > button { pointer-events: auto; box-shadow: 0 8px 24px rgba(0,0,0,.45); border-radius: 99px; padding: 9px 18px; }
#mainContent.no-anim, #mainContent.no-anim * { animation: none !important; transition: none !important; }

/* ---------- Marca Seixas Social (logo próprio) ---------- */
.brand-wordmark { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.035em; line-height: 1; color: var(--text-primary); white-space: nowrap; }
.brand-wordmark > span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.brand-logo-wrap { gap: 10px; }
.brand-logo-img { width: 40px; height: 40px; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(59, 130, 246, .35)); }
.brand-logo-wrap:hover .brand-logo-img { transform: scale(1.06); box-shadow: none; filter: drop-shadow(0 6px 18px rgba(59, 130, 246, .5)); }
.auth-brand img { width: 58px; height: 58px; border-radius: 0; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(59, 130, 246, .35)); }
.auth-brand .brand-wordmark { font-size: 1.6rem; }
.auth-slogan { font-size: .8rem; color: var(--text-secondary); margin-top: 5px; line-height: 1.35; }
.company-sign { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; font-size: .72rem; color: var(--text-muted); }
.company-sign img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; opacity: .85; }
.side-company { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .68rem; color: var(--text-muted); }
.side-company img { width: 14px; height: 14px; border-radius: 4px; object-fit: cover; opacity: .8; }
body.booting #bootSplash img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 30px rgba(59, 130, 246, .45)); }
@media (max-width: 880px) { .brand-logo-img { width: 36px; height: 36px; } .brand-wordmark { font-size: 1.12rem; } }
@media (max-width: 380px) { .top-navbar .brand-wordmark { display: none; } }

/* Painel Admin: proteção contra nudez */
.nudity-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-subtle); background: rgba(16, 185, 129, .06); }
.nudity-box p { font-size: .78rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.45; }

/* passo a passo de instalação do app Android */
.android-steps { margin: 0; padding-left: 20px; font-size: .86rem; color: var(--text-secondary); line-height: 1.5; display: grid; gap: 8px; }
.android-steps b { color: var(--text-primary); }

/* ---------- 3.8: botões redondos SEMPRE redondos (no celular a regra de "botão fácil de tocar" esticava a altura)
   e telas que não piscam ao trocar de aba ---------- */
.icon-btn { flex-shrink: 0; aspect-ratio: 1 / 1; }
@media (max-width: 880px) {
    .icon-btn { min-height: 0 !important; }
    /* os pequenos (3 pontinhos) continuam fáceis de tocar: área de toque invisível em volta */
    .post-card .post-header .icon-btn::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
}
/* os posts não "deslizam" mais toda vez que uma tela é desenhada (isso parecia uma piscada) */
.post-card { animation: none; }
/* troca de aba: só um esmaecer bem leve */
#mainContent.view-enter { animation: viewIn .18s ease-out; }
@keyframes viewIn { from { opacity: .82; } to { opacity: 1; } }

/* ---------- Moderação: ficha do usuário (v3.11) ---------- */
.mod-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.mod-badge.ok { background: rgba(16, 185, 129, .14); color: var(--brand-emerald); }
.mod-badge.warn { background: rgba(245, 158, 11, .16); color: var(--brand-amber); }
.mod-badge.susp { background: rgba(249, 115, 22, .18); color: #fb923c; }
.mod-badge.ban { background: rgba(244, 63, 94, .18); color: var(--brand-rose); }
.mod-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.mod-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.mod-head h3 { font-size: 1.2rem; margin: 0; }
.mod-sub { font-size: .78rem; color: var(--text-muted); }
.mod-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mod-stat { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px; text-align: center; }
.mod-stat b { display: block; font-size: 1.2rem; }
.mod-stat span { font-size: .7rem; color: var(--text-muted); }
.mod-stat.warn { border-color: rgba(245, 158, 11, .5); }
.mod-stat.warn b { color: var(--brand-amber); }
.mod-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 14px; font-size: .84rem; margin-bottom: 6px; }
.mod-info span { display: block; font-size: .7rem; color: var(--text-muted); }
.mod-section { border-top: 1px solid var(--border-subtle); padding-top: 12px; margin-top: 12px; }
.mod-section h4 { font-size: .95rem; margin-bottom: 8px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-actions button { padding: 7px 13px; font-size: .8rem; }
.mod-danger { color: var(--brand-rose) !important; }
.mod-danger-btn { background: var(--brand-rose) !important; }
.mod-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg-elevated); margin-bottom: 7px; font-size: .84rem; }
.mod-row.on { border-left: 3px solid #fb923c; }
.mod-row.off { opacity: .6; }
.mod-reason { margin: 3px 0; white-space: pre-wrap; word-break: break-word; }
.mod-note { font-size: .82rem; color: var(--text-muted); }
.mod-form { background: var(--bg-elevated); border-radius: 14px; padding: 14px; border: 1px solid var(--border-subtle); }
.mod-label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 5px; color: var(--text-secondary); }
.warn-card { text-align: center; }
.warn-card .big { font-size: 2.4rem; }
.warn-item { text-align: left; background: var(--bg-elevated); border-left: 3px solid var(--brand-amber); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; white-space: pre-wrap; }
#loginError, #registerError { white-space: pre-line; }
@media (max-width: 600px) { .mod-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Conteúdo sensível: borrado com aviso (v3.12) ---------- */
.sx-sens { position: relative; overflow: hidden; border-radius: inherit; }
.sx-sens .sx-m { filter: blur(32px) brightness(.55); transform: scale(1.08); pointer-events: none; }
.sx-sens.open .sx-m { filter: none; transform: none; pointer-events: auto; }
.sx-sens.open > .sx-ov { display: none; }
.sx-ov { position: absolute; inset: 0; z-index: 13; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 16px; text-align: center; color: #fff; cursor: pointer; background: rgba(6, 11, 22, .35); }
.sx-ov-icon { font-size: 1.9rem; }
.sx-ov b { font-size: 1.02rem; }
.sx-ov span { font-size: .84rem; opacity: .92; }
.sx-ov small { font-size: .74rem; opacity: .75; }
.sx-ov-btn { margin-top: 8px; padding: 8px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .84rem; cursor: pointer; }
.sx-ov-btn:hover { background: rgba(255,255,255,.22); }
.sx-sens:not(.post-media) { min-height: 180px; }
.sx-story { position: absolute; inset: 0; }
.reel.sx-sens .sx-ov { z-index: 6; }
img.sx-blur { filter: blur(14px) brightness(.6); }
