/* ==========================================================================
   SiteSocials.org / Social OS — Sistema Visual do Template Padrão
   ========================================================================== */

:root {
  --accent: #18BAE5;
  --accent-contrast: #FFFFFF;

  /* Tema Escuro (Padrão Inicial — Cinza Azulado Profundo Neutro Frio) */
  --surface-bar: #0A0D13;       /* Mais escuro que todas as 16 cores de destaque */
  --surface-panel: #0A0D13;     /* Mesma cor das barras */
  --bg-page: #11151E;           /* Um pouco mais claro que as barras, ainda mais escuro que todas as cores */
  --bg-dots: rgba(255, 255, 255, 0.065);

  --text-primary: #F3F5F8;
  --text-secondary: #98A2B3;
  --text-muted: #667085;
  --border-subtle: rgba(255, 255, 255, 0.075);
  --input-bg: #151A25;

  /* Relevo reto e sombras de botões */
  --btn-relief: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(0, 0, 0, 0.38);
  --btn-drop-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
  --panel-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tema Claro */
html[data-theme="light"] {
  --surface-bar: #FFFFFF;
  --surface-panel: #FFFFFF;
  --bg-page: #EEF1F5;           /* Branco levemente mais escuro que as barras */
  --bg-dots: rgba(15, 23, 42, 0.075);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-subtle: rgba(15, 23, 42, 0.085);
  --input-bg: #F5F7FA;

  --btn-relief: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  --btn-drop-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  --panel-shadow: 0 8px 26px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Esconde barras de rolagem mantendo rolagem suave e contínua */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  /* Grade de pontos minúsculos flutuando para textura minimalista */
  background-image: radial-gradient(circle, var(--bg-dots) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

/* Na aba S Vlog o fundo padrão é sempre preto absoluto */
body.is-svlog-tab {
  background-color: #000000 !important;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
}

/* ==========================================================================
   Botões e Seletores (Relevo Reto: Highlight no topo, Sombra embaixo + Sombra Projetada)
   ========================================================================== */

button, .ss-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  transition: all 0.16s ease;
  text-decoration: none;
  user-select: none;
}

button svg, .ss-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Botões na Barra de Abas: invisíveis por padrão, margem 50% destaque em hover, preenchidos quando selecionados */
.nav-tab-btn, .nav-ctrl-btn {
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  padding: 9px 15px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav-tab-btn:hover, .nav-ctrl-btn:hover {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.nav-tab-btn.active, .ss-btn-filled, .btn-new-social {
  background-color: var(--accent) !important;
  color: var(--accent-contrast) !important;
  border-color: transparent !important;
  box-shadow: var(--btn-relief), var(--btn-drop-shadow);
  font-weight: 600;
}

.ss-btn-filled:hover, .btn-new-social:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ss-btn-outline {
  border: 1.5px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text-primary);
}
.ss-btn-outline:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

/* ==========================================================================
   Barra de Abas (Layout TOPO vs. Layout LATERAL Recolhível)
   ========================================================================== */

.ss-navbar {
  background-color: var(--surface-bar);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 900;
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- MODO BARRA TOPO --- */
body[data-nav="top"] .ss-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body[data-nav="top"] .nav-header-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  max-width: 360px;
}

body[data-nav="top"] .nav-tabs-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-nav="top"] .nav-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* --- MODO BARRA LATERAL (Esquerda, Recolhível) --- */
body[data-nav="side"] .ss-navbar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 76px;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-bottom: none;
  border-right: 1px solid var(--border-subtle);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

body[data-nav="side"] .ss-navbar:hover,
body[data-nav="side"] .ss-navbar.touch-expanded {
  width: 280px;
  padding: 22px 20px;
}

body[data-nav="side"] .nav-header-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

body[data-nav="side"] .nav-tabs-group,
body[data-nav="side"] .nav-actions-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

/* Esconde textos quando a barra lateral está recolhida */
body[data-nav="side"] .ss-navbar:not(:hover):not(.touch-expanded) .nav-label,
body[data-nav="side"] .ss-navbar:not(:hover):not(.touch-expanded) .header-text-box,
body[data-nav="side"] .ss-navbar:not(:hover):not(.touch-expanded) .visitor-header-actions {
  display: none !important;
}

body[data-nav="side"] .ss-navbar:not(:hover):not(.touch-expanded) .nav-tab-btn,
body[data-nav="side"] .ss-navbar:not(:hover):not(.touch-expanded) .nav-ctrl-btn,
body[data-nav="side"] .ss-navbar:not(:hover):not(.touch-expanded) .btn-new-social {
  justify-content: center;
  padding: 11px 0;
}

body[data-nav="side"] .ss-navbar:hover .nav-tab-btn,
body[data-nav="side"] .ss-navbar.touch-expanded .nav-tab-btn,
body[data-nav="side"] .ss-navbar:hover .nav-ctrl-btn,
body[data-nav="side"] .ss-navbar.touch-expanded .nav-ctrl-btn,
body[data-nav="side"] .ss-navbar:hover .btn-new-social,
body[data-nav="side"] .ss-navbar.touch-expanded .btn-new-social {
  justify-content: flex-start;
  width: 100%;
}

body[data-nav="side"] .main-viewport {
  padding-left: 88px;
}

/* Cabeçalho: Foto circular / Logo / Ícone + Nome + Bio */
.header-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--input-bg);
}

.header-logo-free {
  max-height: 42px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.header-icon-free {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.header-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.header-user-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  word-break: break-word;
}

.header-user-bio {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 2px;
  /* Quebra de linha garantida na barra lateral e limite elegante no topo */
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-nav="side"] .ss-navbar:hover .header-user-bio,
body[data-nav="side"] .ss-navbar.touch-expanded .header-user-bio {
  -webkit-line-clamp: 4;
}

.visitor-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-wrap: wrap;
}

.visitor-login-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Área Central e Painéis Largos (com respiro lateral mostrando o fundo)
   ========================================================================== */

.main-viewport {
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 28px 36px 96px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feed-column {
  width: 100%;
  max-width: 1120px; /* Bem largo, deixando pequenas áreas de fundo pontilhado nas laterais */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ss-panel {
  background-color: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
  padding: 26px 30px;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Barra superior discreta de filtro Perfil | SS */
.feed-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pill-group {
  display: inline-flex;
  background-color: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: 12px;
  gap: 6px;
  box-shadow: var(--panel-shadow);
}

/* ==========================================================================
   Criador de Novo Social (No topo do Início e no Modal Lado a Lado)
   ========================================================================== */

.composer-type-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.composer-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-input, .ss-textarea, .ss-select {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.16s ease;
}

.ss-input:focus, .ss-textarea:focus, .ss-select:focus {
  border-color: var(--accent);
}

.ss-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Barra de formatação Markdown para Texto Dinâmico */
.md-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
}

.md-tool-btn {
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  color: var(--text-secondary);
}
.md-tool-btn:hover {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Prévia ao vivo abaixo no Início ou ao lado no Modal */
.live-preview-container {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-subtle);
}

.live-preview-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ==========================================================================
   Cards de Social Publicados (Design Editorial, Mídia Cheia, Campanhas)
   ========================================================================== */

.social-card {
  position: relative;
  padding-top: 52px;
  overflow: hidden;
}

.social-type-corner-icon {
  position: absolute;
  top: 18px;
  left: 24px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.92;
}

.social-owner-controls {
  position: absolute;
  top: 14px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pin-btn.pinned {
  color: var(--accent);
}

.dots-menu-wrapper {
  position: relative;
}

.dots-dropdown {
  position: absolute;
  top: 38px;
  right: 0;
  background: var(--surface-bar);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--btn-drop-shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  z-index: 40;
}

/* Estilo Jornal Eletrônico (Texto Dinâmico) */
.editorial-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.editorial-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.editorial-subtitle {
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.48;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.editorial-body {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editorial-body h2, .editorial-body h3 {
  margin-top: 10px;
  font-weight: 700;
}

.editorial-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

.editorial-hypertag-figure {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editorial-hypertag-figure.align-centro {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.editorial-hypertag-figure.align-esquerda {
  align-items: flex-start;
  margin-right: auto;
}
.editorial-hypertag-figure.align-direita {
  align-items: flex-end;
  margin-left: auto;
}

.editorial-hypertag-figure img,
.editorial-hypertag-figure video {
  width: 100%;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--border-subtle);
}

.editorial-hypertag-caption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Social Tipo Fotos ou Vídeos (Preenche toda a área do social, legenda só em tela cheia) */
.media-bleed-container {
  margin: 4px -30px 18px -30px;
  position: relative;
  background: #05070B;
  cursor: pointer;
}

.media-bleed-item {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}

.carousel-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(10, 13, 19, 0.78);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Social Tipo Campanha (Enquete com % e CTA) */
.campaign-poll-box {
  margin-top: 16px;
  padding: 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option-btn {
  position: relative;
  width: 100%;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
}

.poll-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  z-index: -1;
  transition: width 0.35s ease;
}

/* Footer interno de cada Social (Nome + Foto do autor + Data à esquerda, Estrela/Comentários à direita) */
.social-card-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.social-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.social-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--input-bg);
  border: 1.5px solid var(--border-subtle);
}

.social-interaction-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.star-indicator-btn {
  padding: 5px 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.star-indicator-btn.starred {
  color: #FFD723;
}
.star-indicator-btn.starred svg {
  fill: #FFD723;
  stroke: #FFD723;
  filter: drop-shadow(0 0 6px rgba(255, 215, 35, 0.45));
}

/* Aba inferior de comentários sobre o painel */
.comments-drawer {
  margin-top: 16px;
  padding: 18px;
  background: var(--input-bg);
  border-top: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  padding: 10px 12px;
  background: var(--surface-panel);
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

/* ==========================================================================
   Página S Vlog (Rolagem Snap 1 Vídeo por Vez, Estrelas/Comentários à Esquerda)
   ========================================================================== */

.svlog-snap-container {
  width: 100%;
  max-width: 920px;
  height: calc(100vh - 110px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.svlog-stage-item {
  height: calc(100vh - 110px);
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

/* Área de estrelas e comentários no lado ESQUERDO do vídeo */
.svlog-left-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 10px;
  border-radius: 16px;
}

.svlog-player-frame {
  height: 100%;
  max-height: 760px;
  aspect-ratio: 9 / 16;
  background: #05070A;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.svlog-player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svlog-bottom-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  color: #fff;
}

/* ==========================================================================
   Página Galeria (Grade 3 x Infinito)
   ========================================================================== */

.gallery-grid-3x {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-thumb-card {
  aspect-ratio: 1 / 1;
  background: var(--surface-panel);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.gallery-thumb-card img,
.gallery-thumb-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-thumb-card:hover img,
.gallery-thumb-card:hover video {
  transform: scale(1.04);
}

/* ==========================================================================
   Página Perfil (Painel Único Exclusivo)
   ========================================================================== */

.profile-single-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-hero-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-info-tile {
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.catalog-item-card {
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.catalog-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Modais (Novo Social Lado a Lado, Lightbox Tela Cheia, Configurações, Onboarding)
   ========================================================================== */

.ss-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Modal +Novo Social: Edição e Prévia Lado a Lado */
.modal-new-social-split {
  width: 100%;
  max-width: 1320px;
  max-height: 90vh;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.modal-split-pane {
  padding: 26px;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-split-pane.preview-pane {
  background: var(--bg-page);
  border-left: 1px solid var(--border-subtle);
}

/* Modal Lightbox (Mídia maior que o corpo da página + Legenda + Link p/ Social original) */
.lightbox-modal-box {
  width: 100%;
  max-width: 1240px;
  max-height: 92vh;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lightbox-media-stage {
  width: 100%;
  max-height: 74vh;
  background: #04060A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media-stage img,
.lightbox-media-stage video {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox-footer-bar {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Paleta de 16 Cores de Destaque (2 linhas de 8) */
.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  max-width: 460px;
}

.color-swatch-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 0;
  box-shadow: var(--btn-relief);
}

.color-swatch-btn.selected {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

/* Seletor deslizante Topo / Lateral */
.sliding-layout-toggle {
  display: inline-flex;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
}

/* ==========================================================================
   Mini Footer (Canto Inferior Direito em Formato de Balão)
   3 cantos redondos e o canto inferior direito reto!
   ========================================================================== */

.ss-mini-footer {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 950;
  background-color: var(--surface-bar);
  border: 1px solid var(--border-subtle);
  /* 3 cantos completamente redondos e o canto inferior direito reto */
  border-radius: 999px 999px 0 999px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--text-secondary);
  box-shadow: var(--panel-shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ss-mini-footer:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.mini-footer-prefix {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.mini-footer-brand {
  font-size: 1.02rem;
  font-weight: 900; /* Extrabold / Fat */
  letter-spacing: -0.065em; /* Letras bem juntinhas */
  color: var(--text-primary);
  line-height: 1;
}

.mini-footer-brand .s-accent {
  color: var(--accent);
}

/* Botão Voltar ao Topo */
.back-to-top-btn {
  position: fixed;
  left: 24px;
  bottom: 20px;
  z-index: 940;
  background-color: var(--surface-bar);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--panel-shadow);
}

body[data-nav="side"] .back-to-top-btn {
  left: 96px;
}

@media (max-width: 960px) {
  .modal-new-social-split {
    grid-template-columns: 1fr;
  }
  .gallery-grid-3x {
    grid-template-columns: repeat(2, 1fr);
  }
  body[data-nav="top"] .ss-navbar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
}
