/* =========================================================
   R321 — Tema padrão MassaCoin (só visual): leva o padrão da Home
   (azul royal em degradê, dourado metálico, cards bem arredondados,
   barra inferior flutuante) a todas as telas. Nenhuma função/texto mexe.
   ========================================================= */
:root {
  --tp-blue-1: #3677c9; --tp-blue-2: #1f60b6; --tp-blue-3: #0a43a0;
  --tp-navy: #0f2f6e; --tp-gold-1: #f6dc8a; --tp-gold-2: #e0b44a; --tp-page: #fbfcfe;
  --tp-grad: linear-gradient(115deg, #3677c9 0%, #1f60b6 45%, #0a43a0 100%);
  --tp-shadow: 0 8px 22px rgba(17, 41, 106, .12);
}
html body { background: var(--tp-page); }

/* ---- cabeçalhos: degradê azul royal, texto branco ---- */
html body .sx-top, html body header.subheader {
  background: var(--tp-grad) !important; background-image: var(--tp-grad) !important; color: #fff !important;
  border-radius: 0 0 26px 26px; box-shadow: 0 10px 24px rgba(10, 67, 160, .22);
}
html body .sx-top *, html body header.subheader .subheader__title, html body .sx-top .sx-bell, html body .sx-top button, html body .sx-top svg { color: #fff; }
html body header.subheader .subheader__sub { color: rgba(255, 255, 255, .86) !important; }
html body header.subheader .subheader__back { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .9); }
html body .sx-top .sx-icon-btn { border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 50%; background: transparent !important; }
html body .sx-top .sx-brand { color: #fff; letter-spacing: .04em; }
html body .sx-top .sx-search input { color: #11296a; background: #fff; border-radius: 999px; }
html body .sx-top .sx-search input::placeholder { color: #6b7a99; }
html body .sx-top .sx-search .sx-icon-btn { color: #fff; }

/* ---- cards: cantos bem arredondados, sombra suave, borda dourada fina ---- */
html body .statement-row, html body .notice, html body .plaque, html body .form, html body .hub-frame, html body .post-card, html body .sx-res {
  border-radius: 22px; box-shadow: var(--tp-shadow); border: 1px solid rgba(224, 180, 74, .45);
}
html body .statement-row__icon, html body .highlight-card__icon { border-radius: 14px; }

/* ---- títulos de seção: azul-marinho com sublinhado dourado ---- */
html body .section-heading { color: var(--tp-navy); position: relative; }
html body .section-heading:not(.section-heading--hero)::after { content: ""; display: block; width: 52px; height: 3px; border-radius: 3px; margin-top: 6px; background: linear-gradient(90deg, var(--tp-gold-1), var(--tp-gold-2)); }

/* ---- botões principais: pílula azul royal; abas arredondadas ---- */
html body .btn-primary, html body button.btn-primary, html body a.btn-primary {
  background: linear-gradient(180deg, #2f6fb8 0%, #14509f 100%) !important; color: #fff !important; border: 0 !important;
  border-radius: 999px !important; box-shadow: 0 8px 18px rgba(20, 80, 159, .28) !important;
}
html body .tab, html body .hub-subtab { border-radius: 999px; }
html body .tab.is-active, html body .hub-subtab.is-active { background: linear-gradient(180deg, #2f6fb8, #14509f); color: #fff; border-color: transparent; }

/* ---- campos: arredondados ---- */
html body .field input, html body .field select, html body .field textarea, html body input[type="text"], html body input[type="email"], html body input[type="password"], html body input[type="search"], html body input[type="tel"], html body input[type="number"], html body select, html body textarea { border-radius: 16px; }

/* ---- barra de navegação inferior: pílula flutuante branca com divisórias ---- */
html body .footer-nav {
  left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 28px); max-width: 452px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 8px 4px; border-radius: 26px;
  background: #fff; border: 1px solid rgba(11, 27, 63, .06); box-shadow: 0 10px 28px rgba(17, 41, 106, .2);
}
html body .footer-nav__item { position: relative; }
html body .footer-nav__item + .footer-nav__item::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: rgba(11, 27, 63, .12); }
html body .footer-nav__item.is-active { color: var(--tp-navy); font-weight: 800; }

/* ---- barra de saldo/atalhos da Rede Social ---- */
html body .sx-walletbar { border-radius: 20px; box-shadow: var(--tp-shadow); border: 1px solid rgba(224, 180, 74, .45); }
html body .sx-walletbar .hub-chip { border-radius: 50%; }

/* ---- R322: vídeo do feed de lado a lado (borda a borda da tela) no celular ----
   O cartão ficou com margens e o vídeo parava nas bordas dele (sobravam espaços laterais). */
@media (max-width: 700px) {
  html body .post-card.post-card--rail:has(.post-media--video) { overflow: visible !important; }
  html body .post-card.post-card--rail:has(.post-media--video) > .post-stage { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
  html body .post-card.post-card--rail:has(.post-media--video) > .post-stage .post-media--video { width: 100% !important; max-width: 100% !important; border-radius: 0 !important; }
}

/* R330 — Pitches: o botão 🔗 de compartilhar ficava fora da tela no celular (o título não encolhia). */
html body .pt-header { flex-wrap: nowrap; }
html body .pt-header > div:not(.pt-cta) { min-width: 0; flex: 1 1 0; }
html body .pt-header > #sxShareSec { flex: 0 0 auto; margin-left: 0; padding: 4px 6px; }
