/* ==========================================================================
   Noel Plus — Biblioteca de Componentes Base
   Consome exclusivamente tokens.css. Nenhum valor bruto de cor/tamanho
   deve aparecer aqui fora dos tokens — se precisar de um valor novo,
   ele vira token primeiro.
   ========================================================================== */

/* -----------------------------------------------------------------------
   Reset mínimo + base tipográfica
   ----------------------------------------------------------------------- */
.np-root {
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-lh);
}

.np-root *, .np-root *::before, .np-root *::after { box-sizing: border-box; }

/* Contexto Studio: paleta puxa mais pro cinza/preto, corte mais técnico */
.np-context-studio { --ctx-cut: var(--radius-cut-studio); --ctx-surface: var(--color-surface-2); }
.np-context-feed    { --ctx-cut: var(--radius-cut-feed);   --ctx-surface: var(--color-surface-1); }

/* -----------------------------------------------------------------------
   Tipografia utilitária
   ----------------------------------------------------------------------- */
.np-display-2xl { font-family: var(--font-display); font-size: var(--text-display-2xl-size); font-weight: var(--text-display-2xl-weight); letter-spacing: var(--text-display-2xl-tracking); line-height: var(--text-display-2xl-lh); }
.np-display-xl  { font-family: var(--font-display); font-size: var(--text-display-xl-size);  font-weight: var(--text-display-xl-weight);  letter-spacing: var(--text-display-xl-tracking);  line-height: var(--text-display-xl-lh); }
.np-display-lg  { font-family: var(--font-display); font-size: var(--text-display-lg-size);  font-weight: var(--text-display-lg-weight);  letter-spacing: var(--text-display-lg-tracking);  line-height: var(--text-display-lg-lh); }
.np-display-md  { font-family: var(--font-display); font-size: var(--text-display-md-size);  font-weight: var(--text-display-md-weight);  letter-spacing: var(--text-display-md-tracking);  line-height: var(--text-display-md-lh); }
.np-heading-lg  { font-family: var(--font-body); font-size: var(--text-heading-lg-size); font-weight: var(--text-heading-lg-weight); line-height: var(--text-heading-lg-lh); }
.np-heading-md  { font-family: var(--font-body); font-size: var(--text-heading-md-size); font-weight: var(--text-heading-md-weight); line-height: var(--text-heading-md-lh); }
.np-body-lg     { font-family: var(--font-body); font-size: var(--text-body-lg-size); font-weight: var(--text-body-lg-weight); line-height: var(--text-body-lg-lh); }
.np-body-md     { font-family: var(--font-body); font-size: var(--text-body-md-size); font-weight: var(--text-body-md-weight); line-height: var(--text-body-md-lh); }
.np-body-sm     { font-family: var(--font-body); font-size: var(--text-body-sm-size); font-weight: var(--text-body-sm-weight); letter-spacing: var(--text-body-sm-tracking); line-height: var(--text-body-sm-lh); }
.np-caption     { font-family: var(--font-body); font-size: var(--text-caption-size); font-weight: var(--text-caption-weight); letter-spacing: var(--text-caption-tracking); line-height: var(--text-caption-lh); text-transform: uppercase; }
.np-mono-md     { font-family: var(--font-mono); font-size: var(--text-mono-md-size); line-height: var(--text-mono-md-lh); }
.np-mono-sm     { font-family: var(--font-mono); font-size: var(--text-mono-sm-size); line-height: var(--text-mono-sm-lh); }

.np-text-secondary { color: var(--color-text-secondary); }
.np-text-tertiary  { color: var(--color-text-tertiary); }

/* -----------------------------------------------------------------------
   Botões
   Corte Vivo aplicado: raio assimétrico com "cut" no canto inferior-direito.
   Interação usa --ease-spring (assinatura de movimento da marca).
   ----------------------------------------------------------------------- */
.np-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: 48px;
  padding: 0 var(--space-7);
  border: none;
  border-radius: var(--radius-cut-feed);
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring),
              background-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.np-button:active { transform: scale(0.96); }
.np-button:focus-visible { outline: none; box-shadow: var(--shadow-glow-green); }
.np-button[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.np-button--primary {
  background: var(--color-green-primary);
  color: var(--color-text-on-green);
}
.np-button--primary:hover { background: var(--color-green-neon); box-shadow: var(--shadow-md); }
/* o botão cheio do "Utilizar" (página da receita, mini-player): o mesmo lugar do primário verde, em índigo */
.np-button--use { background: var(--color-indigo-primary); color: #FFFFFF; }
.np-button--use:hover { background: var(--color-indigo-hover); box-shadow: var(--shadow-md); }

.np-button--secondary {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.np-button--secondary:hover { border-color: var(--color-green-border); background: var(--color-surface-1); }

.np-button--ghost {
  background: transparent;
  color: var(--color-green-base);
  padding: 0 var(--space-4);
  height: 40px;
}
.np-button--ghost:hover { background: var(--color-green-bg); }

.np-button--danger {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid var(--color-border);
}
.np-button--danger:hover { border-color: var(--color-danger); background: var(--color-danger-bg); }

.np-button--sm { height: 36px; padding: 0 var(--space-5); font-size: var(--text-body-sm-size); border-radius: var(--radius-cut-studio); }

.np-button--loading { color: transparent; pointer-events: none; position: relative; }
.np-button--loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(10,11,10,0.35);
  border-top-color: var(--color-text-on-green);
  border-radius: 50%;
  animation: np-spin 700ms linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------- */
.np-card {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-cut-feed);
  padding: var(--space-6);
  transition: transform var(--duration-slow) var(--ease-spring), border-color var(--duration-base) var(--ease-standard);
}
.np-card:hover { border-color: var(--color-green-border); }

.np-card--studio {
  border-radius: var(--radius-cut-studio);
  background: var(--color-surface-2);
  padding: var(--space-5);
}

.np-card--hero {
  border-radius: var(--radius-cut-hero);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.np-card--interactive { cursor: pointer; }
.np-card--interactive:active { transform: scale(0.98); }

/* -----------------------------------------------------------------------
   Badges
   Categoria de mídia = cor do acento correspondente, sempre em bg-tint + texto sólido.
   Conquista = ouro, formato "pill" com ícone.
   ----------------------------------------------------------------------- */
.np-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 24px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-caption-size);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-tracking);
  text-transform: uppercase;
  white-space: nowrap;
}

.np-badge--music    { background: color-mix(in srgb, var(--color-accent-music) 18%, transparent);    color: var(--color-accent-music); }
.np-badge--video    { background: color-mix(in srgb, var(--color-accent-video) 18%, transparent);    color: var(--color-accent-video); }
.np-badge--image    { background: color-mix(in srgb, var(--color-accent-image) 18%, transparent);    color: var(--color-accent-image); }
.np-badge--podcast  { background: color-mix(in srgb, var(--color-accent-podcast) 18%, transparent);  color: var(--color-accent-podcast); }
.np-badge--games    { background: color-mix(in srgb, var(--color-accent-games) 18%, transparent);    color: var(--color-accent-games); }
.np-badge--apps     { background: color-mix(in srgb, var(--color-accent-apps) 22%, transparent);     color: var(--color-accent-apps); }
.np-badge--books    { background: color-mix(in srgb, var(--color-accent-books) 24%, transparent);    color: var(--color-accent-books); }
.np-badge--movies   { background: color-mix(in srgb, var(--color-accent-movies) 22%, transparent);   color: color-mix(in srgb, var(--color-accent-movies) 75%, white); }

.np-badge--achievement {
  background: color-mix(in srgb, var(--color-accent-gold) 16%, transparent);
  color: var(--color-accent-gold);
}

.np-badge--live {
  background: var(--color-green-bg);
  color: var(--color-green-neon);
}
.np-badge--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-green-neon);
  box-shadow: 0 0 6px var(--color-green-neon);
  animation: np-pulse 1.6s var(--ease-standard) infinite;
}
@keyframes np-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* -----------------------------------------------------------------------
   Inputs
   ----------------------------------------------------------------------- */
.np-field { display: flex; flex-direction: column; gap: var(--space-2); }
.np-field-label { font-family: var(--font-body); font-size: var(--text-body-sm-size); font-weight: 600; color: var(--color-text-secondary); }

.np-input {
  height: 48px;
  padding: 0 var(--space-5);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.np-input::placeholder { color: var(--color-text-tertiary); }
.np-input:focus { outline: none; border-color: var(--color-green-base); box-shadow: 0 0 0 3px var(--color-green-bg); }
.np-input--error { border-color: var(--color-danger); }
.np-input--error:focus { box-shadow: 0 0 0 3px var(--color-danger-bg); }
/* Data e hora: no iPhone o campo nativo tem largura mínima própria e centraliza o valor; sem isto ele passa da borda da tela. */
.np-input[type="date"], .np-input[type="time"], .np-input[type="datetime-local"], .np-input[type="month"] {
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box; min-width: 0; max-width: 100%;
  color-scheme: dark;
}
.np-input::-webkit-date-and-time-value { text-align: left; }

.np-field-hint { font-size: var(--text-body-sm-size); color: var(--color-text-tertiary); }
.np-field-hint--error { color: var(--color-danger); }

.np-textarea {
  min-height: 96px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.np-textarea::placeholder { color: var(--color-text-tertiary); }
.np-textarea:focus { outline: none; border-color: var(--color-green-base); box-shadow: 0 0 0 3px var(--color-green-bg); }

.np-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-cut-studio);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.np-dropzone:hover { border-color: var(--color-green-border); color: var(--color-text-secondary); }

/* Input estilo Studio — monoespaçado, para prompts/seeds */
.np-input--mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono-md-size);
  background: var(--color-bg-page);
  border-radius: var(--radius-cut-studio);
}

/* -----------------------------------------------------------------------
   Navegação — Tabs (Feed ⇄ Studio) e Bottom Nav
   ----------------------------------------------------------------------- */
.np-tabs {
  display: inline-flex;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
  gap: var(--space-1);
}
.np-tab {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-body-sm-size);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-spring), color var(--duration-base) var(--ease-standard);
}
.np-tab--active { background: var(--color-green-primary); color: var(--color-text-on-green); }

.np-bottomnav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) max(var(--space-5), env(safe-area-inset-right, 0px)) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)) max(var(--space-5), env(safe-area-inset-left, 0px));
}
.np-bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
.np-bottomnav-item--active { color: var(--color-green-primary); }
.np-bottomnav-item--active .np-bottomnav-dot { opacity: 1; transform: scale(1); }
.np-bottomnav-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-green-neon);
  opacity: 0; transform: scale(0);
  transition: all var(--duration-base) var(--ease-spring);
}

/* -----------------------------------------------------------------------
   Progresso / Nível / XP
   ----------------------------------------------------------------------- */
.np-progress-track {
  height: 8px;
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.np-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-green-base), var(--color-green-primary));
  border-radius: var(--radius-pill);
  transition: width var(--duration-celebration) var(--ease-spring);
}

.np-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-cut-studio);
  background: var(--color-green-bg);
  border: 1px solid var(--color-green-border);
  color: var(--color-green-neon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-heading-md-size);
}

/* -----------------------------------------------------------------------
   Avatares
   Anel neon = indicador de "geração pessoal ao vivo / personalizada".
   Uso reservado — não é decoração padrão de todo avatar.
   ----------------------------------------------------------------------- */
.np-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
}
.np-avatar { position: relative; overflow: hidden; flex-shrink: 0; }
.np-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.np-avatar--sm { width: 32px; height: 32px; }
.np-avatar--md { width: 48px; height: 48px; }
.np-avatar--lg { width: 72px; height: 72px; }

.np-avatar--live {
  border-color: var(--color-green-neon);
  box-shadow: var(--shadow-glow-green);
}

.np-avatar-stack { display: flex; }
.np-avatar-stack .np-avatar { margin-left: -12px; border-width: 3px; border-color: var(--color-surface-1); }
.np-avatar-stack .np-avatar:first-child { margin-left: 0; }

/* -----------------------------------------------------------------------
   Receitas — atribuição e linhagem
   Tratamento de primeira classe: nunca em rodapé/menu secundário.
   ----------------------------------------------------------------------- */
.np-recipe-credit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-cut-studio);
}
.np-recipe-credit-label { font-size: var(--text-body-sm-size); color: var(--color-text-secondary); }
.np-recipe-credit-name { font-size: var(--text-body-sm-size); font-weight: 700; color: var(--color-text-primary); }

/* "Usada como está" — crédito + split automático de receita */
.np-recipe-credit--split { border-color: var(--color-green-border); }
.np-recipe-credit--split .np-recipe-credit-label { color: var(--color-green-base); }
.np-recipe-credit--split::before {
  content: '⟲';
  color: var(--color-green-neon);
  font-size: 14px;
}

/* "Inspirado em, com edição substancial" — crédito sem split */
.np-recipe-credit--inspired { opacity: 0.85; }
.np-recipe-credit--inspired::before {
  content: '✦';
  color: var(--color-text-tertiary);
  font-size: 12px;
}

/* Variante inline, sem cartão — uso repetido dentro de cards de feed.
   display:block (não flex) para que o texto quebre como uma frase só em
   colunas estreitas, em vez de cada span quebrar linha por conta própria. */
.np-recipe-credit--compact {
  display: block; background: none; border: none; padding: 0; height: auto; line-height: 1.4;
}
.np-recipe-credit--compact .np-recipe-credit-label,
.np-recipe-credit--compact .np-recipe-credit-name { font-size: 11px; }
.np-recipe-credit--compact .np-recipe-credit-name { margin-left: 4px; }
.np-recipe-credit--compact::before { margin-right: 4px; }

/* Mesma caixa (fundo/borda/padding) da variante base, mas com o mesmo
   flow de "frase única" da --compact — pro cartão não quebrar em dois
   blocos desalinhados quando o espaço disponível encolhe. */
.np-recipe-credit--wrap { display: block; line-height: 1.5; }
.np-recipe-credit--wrap .np-recipe-credit-name { margin-left: 4px; }
.np-recipe-credit--wrap::before { margin-right: 6px; }

.np-lineage {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.np-lineage-link {
  width: 16px; height: 1px;
  background: var(--color-border);
  position: relative;
}
.np-lineage-link::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  width: 4px; height: 4px;
  background: var(--color-green-base);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* -----------------------------------------------------------------------
   Celebração — reservado a marcos que importam
   ----------------------------------------------------------------------- */
.np-celebration-burst {
  position: relative;
  display: inline-flex;
}
.np-celebration-burst .np-spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-green-neon);
  opacity: 0;
  animation: np-burst var(--duration-celebration) var(--ease-spring) forwards;
}
@keyframes np-burst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.4); }
}

/* -----------------------------------------------------------------------
   Ícones — base
   Sistema coeso: um único stroke-width, sem mistura de estilos preenchido
   x contornado dentro do mesmo contexto.
   ----------------------------------------------------------------------- */
.np-icon {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  stroke: currentColor;
  stroke-width: var(--icon-stroke-width);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.np-icon[hidden] { display: none; }
.np-icon--sm { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.np-icon--lg { width: var(--icon-size-lg); height: var(--icon-size-lg); }
.np-icon--filled { fill: currentColor; stroke: none; }

/* -----------------------------------------------------------------------
   Créditos / Moeda
   O ícone de crédito nunca é uma moeda ou ficha literal — usa a mesma
   forma de Corte Vivo do resto do sistema, em miniatura. Isso mantém a
   linguagem consistente e evita qualquer leitura de "ficha de cassino".
   ----------------------------------------------------------------------- */
.np-credit-icon {
  display: inline-block;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-accent-gold), color-mix(in srgb, var(--color-accent-gold) 55%, white));
}
.np-credit-icon--sm { width: 14px; height: 14px; border-radius: var(--radius-cut-tiny-sm); }
.np-credit-icon--md { width: 18px; height: 18px; border-radius: var(--radius-cut-tiny-md); }
.np-credit-icon--lg { width: 24px; height: 24px; border-radius: var(--radius-cut-tiny-lg); }

/* Contador — bloco básico reutilizado em chip, saldo e custo */
.np-credit-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text-primary);
}
.np-credit-counter--lg {
  font-family: var(--font-display);
  font-size: var(--text-display-md-size);
  font-weight: var(--text-display-md-weight);
  gap: var(--space-3);
}

/* Chip de saldo — presente em header/nav */
.np-credit-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-4) 0 var(--space-3);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm-size);
  font-weight: 700;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard);
}
.np-credit-chip:hover { border-color: var(--color-accent-gold); }

/* Custo de geração — exibido antes de uma ação que consome créditos */
.np-credit-cost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-sm-size);
  font-weight: 700;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
}
.np-credit-cost--affordable { color: var(--color-green-base); }
.np-credit-cost--insufficient { color: var(--color-danger); background: var(--color-danger-bg); }

/* -----------------------------------------------------------------------
   Interação social — Feed
   Padrão: rail vertical (vídeo curto). --inline: linha horizontal sob o
   conteúdo (música, imagem, post). Remixar tem tratamento distinto —
   é a ação que gera split de receita, não pode competir visualmente
   com curtir/comentar como se fosse mais um ícone igual aos outros.
   ----------------------------------------------------------------------- */
.np-social-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.np-social-bar--inline { flex-direction: row; align-items: center; gap: var(--space-6); }

.np-social-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  font-family: var(--font-body);
}
.np-social-bar--inline .np-social-action { flex-direction: row; gap: var(--space-2); }

.np-social-action-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(19, 21, 19, 0.72); /* scrim sólido — sem blur, só contraste sobre mídia */
  transition: transform var(--duration-fast) var(--ease-spring);
}
.np-social-bar--inline .np-social-action-icon-wrap { width: 32px; height: 32px; background: none; }
.np-social-action:active .np-social-action-icon-wrap { transform: scale(0.86); }

.np-social-action-count { font-size: var(--text-body-sm-size); font-weight: 700; color: var(--color-text-secondary); }

.np-social-action--liked .np-icon { fill: var(--color-green-neon); stroke: var(--color-green-neon); }
.np-social-action--liked .np-social-action-count { color: var(--color-green-neon); }

/* Salvar — mesma lógica de toggle do curtir, mas em dourado: precisa ser
   visualmente distinto de "curtir" (verde) já que os dois convivem na mesma
   barra e o usuário precisa reconhecer o estado de cada um à distância. */
.np-social-action--saved .np-icon { fill: var(--color-accent-gold); stroke: var(--color-accent-gold); }
.np-social-action--saved .np-social-action-count { color: var(--color-accent-gold); }

.np-social-action--remix {
  flex-direction: row;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-green-bg);
  border: 1px solid var(--color-green-border);
  color: var(--color-green-neon);
  font-size: var(--text-body-sm-size);
  font-weight: 700;
  transition: background-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-spring);
}
.np-social-action--remix:hover { background: var(--color-green-border); }
.np-social-action--remix:active { transform: scale(0.94); }
.np-social-action--remix .np-social-action-count { color: inherit; opacity: 0.8; font-weight: 700; }
/* "Utilizar": o Remixar das receitas que são ferramenta (o resultado depende do que a pessoa envia). Mesma forma, outra cor: índigo. */
.np-social-action--use { background: var(--color-indigo-bg); border-color: var(--color-indigo-border); color: var(--color-indigo-text); }
.np-social-action--use:hover { background: color-mix(in srgb, var(--color-indigo-border) 40%, var(--color-indigo-bg)); }

/* Visualizações — estatística, não é uma ação: sem estado de toggle. */
.np-view-count {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-body-sm-size); font-weight: 700;
  color: var(--color-text-secondary);
}
.np-view-count .np-icon { color: inherit; }

/* -----------------------------------------------------------------------
   Estados vazios — o mini sistema (a mesma linguagem do painel das telas de entrada)
   Uma estrela na cor da categoria, órbitas inclinadas em perspectiva e os planetas
   nas cores dos formatos, girando devagar; o lado aceso de cada planeta vira para a
   estrela. Sem personagem, sem mascote. Montado por npOrbitHTML (mock-data.js) ou à mão:
     <div class="np-orbit" style="--orbit-hue:var(--color-accent-video)"><div class="np-orbit-plane">
       <div class="np-orbit-path" style="--d:52%; --t:18s; --at:-4s; --p:0.06; --c:…"><div class="np-orbit-arm"><i class="np-orbit-planet"></i></div></div>
       … <i class="np-orbit-star"></i></div></div>
   "Sem resultados" = .np-orbit--empty: só a órbita tracejada e a estrela apagada, parada.
   ----------------------------------------------------------------------- */
.np-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: var(--space-9) var(--space-6);
}
.np-empty-state h3 { font-family: var(--font-body); font-size: var(--text-heading-lg-size); font-weight: 700; margin: 0; color: var(--color-text-primary); }
.np-empty-state p { font-family: var(--font-body); font-size: var(--text-body-md-size); color: var(--color-text-secondary); margin: 0; max-width: 320px; }

.np-orbit {
  --orbit-size: 196px; --orbit-hue: var(--color-green-primary); --orbit-tilt: 64deg;
  position: relative; flex: none; width: var(--orbit-size); height: calc(var(--orbit-size) * 0.66); margin: 0 auto; perspective: 760px;
}
.np-orbit::before {   /* a luz da estrela no plano, numa camada chata atrás */
  content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 46%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orbit-hue) 22%, transparent), transparent);
}
.np-orbit-plane {
  position: absolute; left: 50%; top: 50%; width: var(--orbit-size); height: var(--orbit-size);
  margin: calc(var(--orbit-size) / -2) 0 0 calc(var(--orbit-size) / -2);
  transform-style: preserve-3d; transform: rotateX(var(--orbit-tilt));
}
.np-orbit-path { position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); transform: translate(-50%, -50%); transform-style: preserve-3d; }
.np-orbit-path::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(214, 255, 228, 0.2);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), #000 70%); mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), #000 70%);
}
.np-orbit-arm { position: absolute; inset: 0; transform-style: preserve-3d; animation: np-orbit-spin var(--t, 18s) linear infinite; animation-delay: var(--at, 0s); }
.np-orbit-planet {
  --s: calc(var(--orbit-size) * var(--p, 0.06));
  position: absolute; left: 100%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--c) 70%, white) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 52%, black) 100%);
  box-shadow: 0 0 calc(var(--s) * 0.9) color-mix(in srgb, var(--c) 55%, transparent);
  animation: np-orbit-face var(--t, 18s) linear infinite; animation-delay: var(--at, 0s);
}
.np-orbit-planet::after {   /* a fase: o lado aceso vira para a estrela */
  content: ''; position: absolute; inset: -0.5px; border-radius: 50%;
  background: radial-gradient(118% 118% at 0% 50%, transparent 46%, rgba(2, 5, 3, 0.6) 66%, rgba(2, 5, 3, 0.88) 84%);
  animation: np-orbit-spin var(--t, 18s) linear infinite; animation-delay: var(--at, 0s);
}
.np-orbit-star {
  --z: calc(var(--orbit-size) * 0.2);
  position: absolute; left: 50%; top: 50%; width: var(--z); height: var(--z); margin: calc(var(--z) / -2) 0 0 calc(var(--z) / -2); border-radius: 50%;
  transform: rotateX(calc(var(--orbit-tilt) * -1));
  background: radial-gradient(circle at 50% 50%, #FBFFFC 0%, color-mix(in srgb, var(--orbit-hue) 30%, white) 22%, color-mix(in srgb, var(--orbit-hue) 85%, white) 48%, var(--orbit-hue) 74%, color-mix(in srgb, var(--orbit-hue) 72%, black) 100%);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--orbit-hue) 65%, transparent), 0 0 46px 8px color-mix(in srgb, var(--orbit-hue) 24%, transparent);
}
.np-orbit-star::before {
  content: ''; position: absolute; inset: -80%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--orbit-hue) 32%, transparent) 0%, transparent 60%);
  animation: np-orbit-breathe 6.5s var(--ease-standard) infinite;
}
@keyframes np-orbit-spin { to { transform: rotate(360deg); } }
@keyframes np-orbit-face {
  from { transform: rotate(0deg) rotateX(calc(var(--orbit-tilt) * -1)); }
  to { transform: rotate(-360deg) rotateX(calc(var(--orbit-tilt) * -1)); }
}
@keyframes np-orbit-breathe { 0%, 100% { scale: 1; opacity: 0.8; } 50% { scale: 1.1; opacity: 1; } }
/* sem resultados: uma órbita vazia, tracejada e parada, com a estrela apagada (nada de verde: não há ação a fazer) */
.np-orbit--empty::before { display: none; }
.np-orbit--empty .np-orbit-path::before { border: 1.5px dashed var(--color-border); -webkit-mask: none; mask: none; }
.np-orbit--empty .np-orbit-star { background: var(--color-surface-2); border: 1.5px dashed var(--color-text-tertiary); box-shadow: none; }
.np-orbit--empty .np-orbit-star::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .np-orbit-arm, .np-orbit-planet, .np-orbit-planet::after { animation-play-state: paused; }   /* parados, cada planeta no seu lugar da órbita */
  .np-orbit-star::before { animation: none; }
}
/* a marca das capas sem imagem (npArtMarkSVG): a estrela e as órbitas, em branco, espiando do canto inferior-direito */
.np-art-mark { position: absolute; width: 60%; height: 60%; right: -8%; bottom: -8%; opacity: 0.3; overflow: visible; }

/* ==========================================================================
   PEÇAS ADICIONADAS NA CONSTRUÇÃO DAS TELAS DE PRODUTO
   Mesma lógica de tokens do restante do sistema — nenhuma decisão de
   paleta/tipografia/motion nova, só preenchendo lacunas de componente.
   ========================================================================== */

/* -----------------------------------------------------------------------
   Layout de página — wrappers de largura
   ----------------------------------------------------------------------- */
.np-page { max-width: var(--shell-content-max); margin: 0 auto; padding: var(--space-5); }
.np-page--wide { max-width: var(--shell-content-max-wide); }
.np-page--flush { padding: 0; }

/* -----------------------------------------------------------------------
   App Shell — header, sidebar (desktop) e bottom nav (mobile)
   Abaixo de --shell-breakpoint-desktop: bottom nav. Acima: sidebar lateral.
   Mesma navegação, densidade adaptada — igual à regra Feed/Studio.
   Áreas do iPhone (PWA, etapa 1): as telas usam viewport-fit=cover, e o que fica preso no alto ou embaixo soma env(safe-area-inset-*) (0 fora do
   iPhone). As alturas do cabeçalho e da barra de baixo (--shell-header-height, --shell-bottomnav-height) já trazem essas áreas.
   ----------------------------------------------------------------------- */
.np-app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--shell-header-height);
  padding: env(safe-area-inset-top, 0px) max(var(--space-5), env(safe-area-inset-right, 0px)) 0 max(var(--space-5), env(safe-area-inset-left, 0px));
  background: var(--color-bg-page);
  border-bottom: 1px solid transparent;
}
.np-app-header--solid { background: color-mix(in srgb, var(--color-bg-page) 92%, transparent); border-bottom-color: var(--color-border); backdrop-filter: none; }
.np-app-header--transparent { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent); border-bottom: none; }
/* Logos: são os arquivos de design-system/logos/ usados como <img> (com width/height no HTML, então sem salto de
   layout; o tamanho visível vem do CSS). Ícone = principal/icone/verde; lockup = principal/horizontal/verde-branco.
   Dê a classe à <img>: .np-logo-mark (ícone), .np-logo-lockup (ícone + texto, dimensione pela altura; mínimo 24px). */
.np-logo-mark, .np-app-header-mark, .np-sidebar-nav-mark, .np-logo-lockup { display: block; max-width: 100%; object-fit: contain; flex-shrink: 0; }
.np-logo-lockup { width: auto; height: 28px; }
.np-app-header-brand { display: flex; align-items: center; gap: var(--space-3); }
.np-app-header-mark { width: 26px; height: 26px; flex-shrink: 0; }
.np-app-header-actions { display: flex; align-items: center; gap: var(--space-3); }

.np-app-content { padding-bottom: calc(var(--shell-bottomnav-height) + var(--space-6)); }
.np-shell--player-active .np-app-content { padding-bottom: calc(var(--shell-bottomnav-height) + var(--shell-miniplayer-height) + var(--space-6)); }

.np-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }

.np-bottomnav-item--create {
  width: 52px; height: 52px;
  margin-top: -30px;
  border-radius: var(--radius-cut-studio);
  background: var(--color-green-primary);
  color: var(--color-text-on-green);
  box-shadow: var(--shadow-md);
  align-items: center; justify-content: center;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.np-bottomnav-item--create:active { transform: scale(0.9); }

.np-sidebar-nav {
  display: none;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 30;
  width: var(--shell-sidebar-width);
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: calc(var(--space-6) + env(safe-area-inset-top, 0px)) 0 calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface-1);
  border-right: 1px solid var(--color-border);
}
.np-sidebar-nav-mark { width: 34px; height: 34px; margin-bottom: var(--space-3); flex-shrink: 0; }
.np-sidebar-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 56px; padding: var(--space-2) 0;
  background: none; border: none; cursor: pointer; text-decoration: none;
  color: var(--color-text-tertiary);
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-standard);
}
.np-sidebar-nav-item:hover { color: var(--color-text-primary); }
.np-sidebar-nav-item--active { color: var(--color-green-primary); }
.np-sidebar-nav-item--create {
  width: 48px; height: 48px;
  border-radius: var(--radius-cut-studio);
  background: var(--color-green-primary);
  color: var(--color-text-on-green);
  align-items: center; justify-content: center;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.np-sidebar-nav-item--create:hover { transform: scale(1.06); }
.np-sidebar-nav-spacer { flex: 1; }

@media (min-width: 900px) {
  .np-bottomnav { display: none; }
  .np-sidebar-nav { display: flex; }
  .np-app-header, .np-app-content { margin-left: var(--shell-sidebar-width); }
  /* Fullscreen imersivo é só mobile — no desktop o header nunca sai do fluxo normal,
     mesmo com --transparent aplicado (evita margin-left + left dobrando o deslocamento). */
  .np-app-header--transparent { position: sticky; left: auto; background: var(--color-bg-page); border-bottom: 1px solid var(--color-border); }
  .np-app-content { padding-bottom: var(--space-8); }
  .np-shell--player-active .np-app-content { padding-bottom: calc(84px + var(--space-8)); }
}

/* -----------------------------------------------------------------------
   Mini-player — persistente em qualquer tela
   ----------------------------------------------------------------------- */
.np-miniplayer {
  position: fixed; left: 0; right: 0; bottom: var(--shell-bottomnav-height); z-index: 25;
  display: none;
  align-items: center; gap: var(--space-4);
  height: var(--shell-miniplayer-height);
  padding: 0 var(--space-4);
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border);
  cursor: pointer;
}
.np-shell--player-active .np-miniplayer { display: flex; }
/* Barra de progresso: a linha visível é fina (2px, colada no topo do player),
   mas o alvo de toque/arraste é uma faixa de 18px em volta dela. */
.np-miniplayer-seek { position: absolute; top: -8px; left: 0; right: 0; height: 18px; cursor: pointer; touch-action: none; }
.np-miniplayer-seek:focus-visible { outline: 2px solid var(--color-green-base); outline-offset: -2px; }
.np-miniplayer-progress { position: absolute; top: 8px; left: 0; height: 2px; background: var(--color-green-primary); pointer-events: none; transition: height var(--duration-fast) var(--ease-standard), top var(--duration-fast) var(--ease-standard); }
.np-miniplayer-seek:hover .np-miniplayer-progress, .np-miniplayer-seek.is-seeking .np-miniplayer-progress { top: 7px; height: 4px; }
.np-miniplayer-art { width: 40px; height: 40px; border-radius: var(--radius-cut-tiny-md); background: var(--color-surface-2); flex-shrink: 0; object-fit: cover; }
.np-miniplayer-info { flex: 1; min-width: 0; }
.np-miniplayer-title { font-size: var(--text-body-sm-size); font-weight: 700; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-miniplayer-artist { font-size: 11px; color: var(--color-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-miniplayer-controls { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

@media (min-width: 900px) {
  .np-miniplayer { left: var(--shell-sidebar-width); bottom: 0; height: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 0 var(--space-7) env(safe-area-inset-bottom, 0px); }
}

/* -----------------------------------------------------------------------
   Sheet — modal ascendente (player expandido e afins)
   ----------------------------------------------------------------------- */
.np-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: var(--color-bg-overlay);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.np-backdrop--visible { opacity: 0.72; pointer-events: auto; }

.np-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 92vh; overflow-y: auto;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-cut-hero);
  padding: var(--space-4) var(--space-6) calc(var(--space-9) + env(safe-area-inset-bottom, 0px));
  transform: translateY(102%);
  transition: transform var(--duration-slow) var(--ease-spring);
  /* Fechada, a folha só está fora da vista (no desktop, só transparente): sem isso ela engole os cliques no que
     estiver por baixo (botão de enviar do chat, linhas do Painel). */
  pointer-events: none;
}
.np-sheet--open { transform: translateY(0); pointer-events: auto; }
.np-sheet-handle { width: 36px; height: 4px; background: var(--color-border); border-radius: var(--radius-pill); margin: 0 auto var(--space-5); }

@media (min-width: 900px) {
  .np-sheet { left: 50%; right: auto; bottom: 96px; width: 400px; border-radius: var(--radius-cut-hero); transform: translate(-50%, 24px); opacity: 0; transition: transform var(--duration-slow) var(--ease-spring), opacity var(--duration-base) var(--ease-standard); }
  .np-sheet--open { transform: translate(-50%, 0); opacity: 1; }
}

/* -----------------------------------------------------------------------
   Player expandido — conteúdo do sheet
   ----------------------------------------------------------------------- */
.np-player-art { width: 100%; aspect-ratio: 1; border-radius: var(--radius-cut-hero); background: var(--color-surface-2); margin-bottom: var(--space-6); overflow: hidden; }
.np-player-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-7); margin: var(--space-6) 0; }
.np-player-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-green-primary); color: var(--color-text-on-green);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.np-player-play:active { transform: scale(0.92); }
.np-player-skip, .np-player-aux { background: none; border: none; color: var(--color-text-primary); cursor: pointer; display: flex; }
.np-player-aux { color: var(--color-text-tertiary); }
.np-player-aux--active { color: var(--color-green-base); }
.np-player-scrubber-row { display: flex; align-items: center; gap: var(--space-3); }
.np-player-seek { flex: 1; padding: var(--space-3) 0; cursor: pointer; touch-action: none; }
.np-player-seek:focus-visible { outline: 2px solid var(--color-green-base); outline-offset: 2px; border-radius: var(--radius-sm); }
.np-player-seek .np-progress-fill { transition: none; }
.np-player-controls-spacer { width: 24px; flex-shrink: 0; }
/* TELA CHEIA do player (npPlayerFullscreen, em app.js): no áudio, a capa inteira por cima de tudo, sobre o fundo desfocado */
.np-fullscreen { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); padding: max(var(--space-7), env(safe-area-inset-top)) var(--space-5) max(var(--space-7), env(safe-area-inset-bottom)); background: #000; color: var(--color-text-primary); overflow: hidden; }
.np-fullscreen-bg { position: absolute; inset: 0; }
.np-fullscreen-bg img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(32px) brightness(0.4) saturate(1.1); }
.np-fullscreen-close { position: absolute; top: max(var(--space-4), env(safe-area-inset-top)); right: var(--space-4); z-index: 2; background: rgba(19, 21, 19, 0.6); color: #fff; }
.np-fullscreen-stage { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.np-fullscreen-cover { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-cut-hero); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); }
.np-fullscreen-art { width: min(80vw, 60vh); aspect-ratio: 1; border-radius: var(--radius-cut-hero); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.7); }
.np-fullscreen-info { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; max-width: 100%; }
.np-fullscreen-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-heading-lg-size); max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-fullscreen-by { color: var(--color-text-secondary); font-size: var(--text-body-sm-size); }
.np-fullscreen-play { margin-top: var(--space-4); }
/* Repetir: desligado (cinza) · uma faixa (verde + "1") · lista (verde). */
.np-player-repeat { position: relative; }
.np-player-repeat[data-mode="1"], .np-player-repeat[data-mode="2"] { color: var(--color-green-base); }
.np-player-repeat-one { display: none; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-green-primary); color: var(--color-text-on-green); font-family: var(--font-mono); font-size: 9px; font-weight: 700; align-items: center; justify-content: center; }
.np-player-repeat[data-mode="1"] .np-player-repeat-one { display: flex; }
[data-action="prev"][aria-disabled="true"], [data-action="next"][aria-disabled="true"] { opacity: 0.3; pointer-events: none; }

/* Fila do player: anteriores, faixa atual e próximas (quando há playlist). */
.np-queue-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: var(--space-7) 0 var(--space-2); }
.np-queue-row { display: flex; align-items: center; gap: var(--space-4); width: 100%; padding: var(--space-3); background: none; border: none; border-radius: var(--radius-md); color: var(--color-text-primary); font-family: var(--font-body); text-align: left; cursor: pointer; }
.np-queue-row:hover { background: var(--color-surface-2); }
.np-queue-row--past { opacity: 0.6; }
.np-queue-row--current { background: var(--color-green-bg); cursor: default; }
/* Capa estética do áudio no palco (Feed, detalhe, página da mídia): o fundo desfocado e escurecido, e a capa nítida e quadrada no centro. */
.np-aesthetic-backdrop { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(28px) brightness(0.45) saturate(1.1); pointer-events: none; }
.np-audio-art { display: block; width: min(56vw, 240px, 32vh); aspect-ratio: 1; flex-shrink: 0; object-fit: cover; border-radius: var(--radius-cut-hero); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); background: var(--color-surface-2); }
.np-queue-thumb { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-cut-tiny-sm); }
.np-queue-text { flex: 1; min-width: 0; }
.np-queue-title { font-size: var(--text-body-sm-size); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-queue-row--current .np-queue-title { color: var(--color-green-primary); }
.np-queue-sub { font-size: 11px; color: var(--color-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-player-time { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-tertiary); width: 34px; flex-shrink: 0; }
.np-player-time--end { text-align: right; }

/* -----------------------------------------------------------------------
   Ícone circular — ações contextuais (grid, header, player)
   ----------------------------------------------------------------------- */
.np-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), border-color var(--duration-base) var(--ease-standard);
}
.np-icon-btn:hover { border-color: var(--color-green-border); }
.np-icon-btn:active { transform: scale(0.9); }
.np-icon-btn--sm { width: 32px; height: 32px; }
.np-icon-btn--ghost { background: rgba(19, 21, 19, 0.72); border: none; }
.np-icon-btn--primary { background: var(--color-green-primary); border: none; color: var(--color-text-on-green); }

/* -----------------------------------------------------------------------
   Slider — <input type="range"> estilizado (Studio: steps, intensidade)
   ----------------------------------------------------------------------- */
.np-field-row { display: flex; align-items: center; gap: var(--space-4); }
.np-field-row .np-field-label { width: 96px; flex-shrink: 0; margin: 0; }
.np-field-row .np-input { min-width: 0; }
.np-field-row-value { font-family: var(--font-mono); font-size: var(--text-mono-sm-size); color: var(--color-text-primary); width: 40px; text-align: right; flex-shrink: 0; }

.np-slider-input {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 4px; border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-green-base) 0%, var(--color-green-base) var(--val, 50%), var(--color-surface-2) var(--val, 50%), var(--color-surface-2) 100%);
  outline: none; cursor: pointer;
}
.np-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-green-primary);
  border: 2px solid var(--color-bg-page);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.np-slider-input::-webkit-slider-thumb:active { transform: scale(1.25); }
.np-slider-input::-moz-range-track { height: 4px; border-radius: var(--radius-pill); background: var(--color-surface-2); }
.np-slider-input::-moz-range-progress { height: 4px; border-radius: var(--radius-pill); background: var(--color-green-base); }
.np-slider-input::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-bg-page);
  background: var(--color-green-primary); cursor: pointer;
}

/* -----------------------------------------------------------------------
   Switch — parâmetros booleanos (ex: permitir remix da minha receita)
   ----------------------------------------------------------------------- */
.np-switch { position: relative; display: inline-flex; align-items: center; width: 44px; height: 26px; flex-shrink: 0; }
.np-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.np-switch-track { position: absolute; inset: 0; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-pill); transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard); }
.np-switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--color-text-tertiary); border-radius: 50%; transition: transform var(--duration-base) var(--ease-spring), background var(--duration-base) var(--ease-standard); }
.np-switch input:checked ~ .np-switch-track { background: var(--color-green-bg); border-color: var(--color-green-border); }
.np-switch input:checked ~ .np-switch-thumb { transform: translateX(18px); background: var(--color-green-primary); }

/* -----------------------------------------------------------------------
   Chip selecionável — multi-seleção (onboarding, filtros)
   Diferente do badge (rótulo estático): é um input, tem estado selecionado.
   ----------------------------------------------------------------------- */
.np-chip-select {
  display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0;
  height: 40px; padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-body); font-size: var(--text-body-sm-size); font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.np-chip-select:hover { border-color: var(--color-green-border); color: var(--color-text-primary); }
.np-chip-select:active { transform: scale(0.96); }
.np-chip-select:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.np-chip-select--selected { background: var(--color-green-primary); border-color: var(--color-green-primary); color: var(--color-text-on-green); }

/* -----------------------------------------------------------------------
   Card selecionável — grade de calibragem de gosto (onboarding)
   ----------------------------------------------------------------------- */
.np-card--selectable { position: relative; cursor: pointer; border: 2px solid transparent; padding: 0; overflow: hidden; }
.np-card--selectable.np-card--selected { border-color: var(--color-green-neon); box-shadow: var(--shadow-glow-green); }
.np-card-select-check {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-green-primary); color: var(--color-text-on-green);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.4);
  transition: all var(--duration-base) var(--ease-spring);
}
.np-card--selected .np-card-select-check { opacity: 1; transform: scale(1); }

/* -----------------------------------------------------------------------
   Step dots — progresso do onboarding
   ----------------------------------------------------------------------- */
.np-step-dots { display: flex; align-items: center; gap: var(--space-2); justify-content: center; }
.np-step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-border); transition: all var(--duration-base) var(--ease-spring); }
.np-step-dot--done { background: var(--color-green-base); }
.np-step-dot--active { width: 20px; border-radius: var(--radius-pill); background: var(--color-green-primary); }

/* -----------------------------------------------------------------------
   Grid de mídia — Feed (Imagem) e Perfil (Publicações)
   ----------------------------------------------------------------------- */
.np-media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 560px)  { .np-media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .np-media-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
@media (min-width: 1300px) { .np-media-grid { grid-template-columns: repeat(5, 1fr); } }
.np-media-grid-item { position: relative; border-radius: var(--radius-cut-feed); overflow: hidden; aspect-ratio: 3/4; background: var(--color-surface-2); cursor: pointer; }
.np-media-grid-item--square { aspect-ratio: 1; }
.np-media-grid-item--tall { aspect-ratio: 3/5; }
.np-media-grid-item-scrim { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3); background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); display: flex; align-items: center; justify-content: space-between; }
.np-media-grid-item-quick { position: absolute; top: var(--space-2); right: var(--space-2); }

/* -----------------------------------------------------------------------
   Vídeo — palco de mídia (Feed vídeo tab / Detalhe)
   ----------------------------------------------------------------------- */
.np-video-stage { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: var(--radius-cut-feed); overflow: hidden; background: var(--color-surface-2);
  /* camada própria: o que está dentro (capa, título, botões, com z-index) nunca passa por cima das barras da página ao rolar */
  isolation: isolate; }
@media (max-width: 899px) {
  .np-video-stage--feed { position: fixed; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: 5; }
}
.np-video-overlay-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 70%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
}
.np-video-overlay-info { flex: 1; min-width: 0; color: var(--color-text-primary); }
@media (max-width: 899px) {
  .np-shell--player-active .np-video-overlay-bottom { padding-bottom: calc(var(--shell-bottomnav-height) + var(--shell-miniplayer-height) + var(--space-6)); }
}
.np-video-session-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3; display: flex; gap: 3px; padding: var(--space-3) var(--space-4) 0; }
.np-video-session-progress span { flex: 1; height: 2px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.25); }
.np-video-session-progress span.done { background: var(--color-green-primary); }

/* -----------------------------------------------------------------------
   Comentários — Detalhe de criação
   ----------------------------------------------------------------------- */
.np-comment { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.np-comment:last-child { border-bottom: none; }
.np-comment-body { flex: 1; min-width: 0; }
.np-comment-header { display: flex; align-items: baseline; gap: var(--space-2); }
.np-comment-name { font-size: var(--text-body-sm-size); font-weight: 700; color: var(--color-text-primary); }
.np-comment-time { font-size: 11px; color: var(--color-text-tertiary); }
.np-comment-text { font-size: var(--text-body-md-size); color: var(--color-text-primary); margin-top: 2px; line-height: 1.4; }
.np-comment-actions { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.np-comment-like { display: flex; align-items: center; gap: 4px; background: none; border: none; color: var(--color-text-tertiary); font-size: 11px; font-weight: 600; cursor: pointer; }
.np-comment-like--active { color: var(--color-green-neon); }

/* -----------------------------------------------------------------------
   Stat — número + rótulo (perfil, generalização do credit-counter)
   ----------------------------------------------------------------------- */
.np-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.np-stat-value { font-family: var(--font-display); font-size: var(--text-display-md-size); font-weight: 700; color: var(--color-text-primary); }
.np-stat-label { font-size: 11px; color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }

/* -----------------------------------------------------------------------
   Menu de ações (⋯) — bottom sheet no mobile, cartão central no desktop.
   Usado no post (Descobrir) e no perfil de outra pessoa. z-index 60: fica
   acima dos overlays de tela cheia (50). Estrutura: .np-actions > scrim +
   sheet; linhas .np-action; .np-toast confirma o resultado.
   ----------------------------------------------------------------------- */
.np-actions { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s linear var(--duration-slow); }
.np-actions--open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.np-actions-scrim { position: absolute; inset: 0; background: var(--color-bg-overlay); opacity: 0; transition: opacity var(--duration-base) var(--ease-standard); }
.np-actions--open .np-actions-scrim { opacity: 0.72; }
.np-actions-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  padding: var(--space-4) var(--space-5) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface-1); border: 1px solid var(--color-border); border-radius: var(--radius-cut-hero);
  transform: translateY(102%); transition: transform var(--duration-slow) var(--ease-spring);
}
.np-actions--open .np-actions-sheet { transform: translateY(0); }
@media (min-width: 900px) {
  .np-actions-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; max-height: 80vh; transform: translate(-50%, -46%); opacity: 0; transition: transform var(--duration-slow) var(--ease-spring), opacity var(--duration-base) var(--ease-standard); }
  .np-actions--open .np-actions-sheet { transform: translate(-50%, -50%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .np-actions-sheet { transition-duration: 0s; } }

.np-actions-head { padding: var(--space-2) var(--space-2) var(--space-4); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-3); }
.np-actions-title { font-size: var(--text-heading-md-size); font-weight: 600; color: var(--color-text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-actions-sub { margin-top: 2px; color: var(--color-text-secondary); }
.np-actions-back { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.np-actions-group + .np-actions-group { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.np-action {
  display: flex; align-items: center; gap: var(--space-5); width: 100%; min-height: 52px;
  padding: var(--space-3) var(--space-3); background: none; border: none; border-radius: var(--radius-md);
  color: var(--color-text-primary); font-family: var(--font-body); font-size: var(--text-body-md-size); font-weight: 600;
  text-align: left; text-decoration: none; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.np-action:hover { background: var(--color-surface-2); }
.np-action:focus-visible { outline: 2px solid var(--color-green-base); outline-offset: -2px; }
.np-action .np-icon { flex-shrink: 0; color: var(--color-text-secondary); }
.np-action-text { flex: 1; min-width: 0; }
.np-action-sub { display: block; margin-top: 2px; font-size: var(--text-body-sm-size); font-weight: 500; color: var(--color-text-secondary); }
.np-action--danger, .np-action--danger .np-icon { color: var(--color-danger); }
.np-action--danger:hover { background: var(--color-danger-bg); }
/* Menu de ações do compartilhar (Feed; app.js › npShareMenuOpen): as opções em LINHA, ícone num círculo e o nome embaixo */
.np-share-row { display: flex; justify-content: space-between; gap: var(--space-2); overflow-x: auto; padding: var(--space-2) 0 var(--space-1); scrollbar-width: none; }
.np-share-row::-webkit-scrollbar { display: none; }
.np-share-opt { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); min-width: 64px; padding: var(--space-2) 0; background: none; border: none; border-radius: var(--radius-md); color: var(--color-text-primary); font-family: var(--font-body); font-size: 12px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.np-share-opt-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-surface-2); border: 1px solid var(--color-border); transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.np-share-opt-icon .np-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-share-opt:hover .np-share-opt-icon { background: var(--color-surface-3, var(--color-surface-2)); }
.np-share-opt:active .np-share-opt-icon { transform: scale(0.94); }
.np-share-opt:focus-visible { outline: none; }
.np-share-opt:focus-visible .np-share-opt-icon { outline: 2px solid var(--color-green-base); outline-offset: 2px; }
.np-share-opt-label { max-width: 76px; text-align: center; line-height: 1.25; color: var(--color-text-secondary); }
.np-share-opt--liked .np-icon { fill: var(--color-green-neon); stroke: var(--color-green-neon); }
.np-share-opt--liked .np-share-opt-label { color: var(--color-green-neon); }
.np-share-opt--saved .np-icon { fill: var(--color-accent-gold); stroke: var(--color-accent-gold); }
.np-share-opt--saved .np-share-opt-label { color: var(--color-accent-gold); }
.np-share-opt--danger, .np-share-opt--danger .np-share-opt-label { color: var(--color-danger); }
.np-share-menu .np-actions-sheet { padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); }
.np-actions-form { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.np-actions-buttons { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.np-actions-buttons .np-button { flex: 1; }
.np-button:disabled { opacity: 0.4; pointer-events: none; }

.np-toast {
  position: fixed; left: 50%; bottom: calc(var(--space-9) + env(safe-area-inset-bottom, 0px)); z-index: 70;
  max-width: calc(100vw - var(--space-8)); padding: var(--space-4) var(--space-6);
  /* Claro sobre o app escuro (e sobre as imagens do feed): o aviso tem que saltar do fundo. Serve para sucesso e erro, por isso não é verde. */
  background: var(--color-text-primary); color: var(--color-bg-page); border: 1px solid var(--color-green-primary); border-radius: var(--radius-cut-studio);
  box-shadow: var(--shadow-lg); font-size: var(--text-body-sm-size); font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-slow) var(--ease-spring);
}
.np-toast--visible { opacity: 1; transform: translate(-50%, 0); }
