/* ===========================================================================
   TRIBO DOS FERAS — app.css
   Tema escuro (o app é a "área da Tribo", deliberadamente diferente da
   landing branca). Mesmas variáveis de marca do site, papéis invertidos.
   Mobile-first. Sem framework, sem build.
   =========================================================================== */

:root {
  /* Marca (idênticas a css/styles.css) */
  --primati-green: #244A3B;
  --primati-green-dark: #173127;
  --primati-gold: #B9853E;
  --primati-gold-light: #D9B36A;
  --primati-black: #101114;
  --primati-white: #FFFFFF;
  --primati-off-white: #F7F5EF;

  /* Papéis no tema escuro do app */
  --bg: #0C0D10;
  --surface: #15171B;
  --surface-2: #1D2026;
  --line: #2A2E36;
  --text: #F2F1EC;
  --text-dim: #A0A5AE;
  --text-faint: #6B7079;

  --ok: #3E9E6B;
  --warn: #C9922F;
  --danger: #C05A4E;

  --font-heading: 'Sora', 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-card: 18px;
  --radius-btn: 14px;
  --tabbar-h: 68px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body { margin: 0; padding: 0; }

/* O reset do site tem [hidden]{display:none!important} por causa de um bug real
   de cascata que apareceu 4 vezes lá. Trazido para cá de propósito. */
[hidden] { display: none !important; }

ul, ol { margin: 0; padding: 0; list-style: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--primati-gold-light); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Botões -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--radius-btn); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
  white-space: normal; text-align: center; min-height: 48px;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--primati-gold); color: #14161A; }
.btn-primary:hover:not([disabled]) { background: var(--primati-gold-light); }

.btn-green { background: var(--primati-green); color: var(--primati-off-white); }
.btn-green:hover:not([disabled]) { background: #2C5A48; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not([disabled]) { border-color: var(--text-faint); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 14px; min-height: 40px; font-size: 14px; }

/* ------------------------------------------------------------ Estrutura -- */
/* A casca ocupa a tela inteira e nao rola: dentro dela, so' o miolo rola e a
   barra de baixo fica presa como ultimo item da coluna. A tela de entrada
   (.onboard) NAO usa esta casca — por isso ela rola normalmente. */
.app-shell {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
}

.app-header {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-top) + 14px) 18px 14px;
  background: rgba(12, 13, 16, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-header-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.app-header-titles { min-width: 0; }
.app-header-eyebrow {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primati-gold-light); font-weight: 700;
}
.app-header-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.app-main {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: 20px 18px 28px;
  max-width: 620px; width: 100%; margin: 0 auto;
}

.view { animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  .btn:active { transform: none; }
}

.view-head { margin-bottom: 18px; }
.view-head h1 { font-size: 24px; letter-spacing: -.01em; }
.view-head p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ------------------------------------------------------------- Tab bar --- */
.tabbar {
  position: relative; z-index: 30; flex: 0 0 auto;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(21, 23, 27, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tab {
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-faint); font-size: 11px; font-weight: 600; padding: 0;
}
.tab svg { width: 21px; height: 21px; }
.tab[aria-selected="true"] { color: var(--primati-gold-light); }

/* ---------------------------------------------------------------- Cards -- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 18px;
}
.card + .card { margin-top: 14px; }

.card-hero {
  background: linear-gradient(155deg, var(--primati-green) 0%, var(--primati-green-dark) 62%, #12251E 100%);
  border-color: rgba(217, 179, 106, .28);
  position: relative; overflow: hidden;
}
.card-hero::after {
  content: ""; position: absolute; right: -46px; top: -46px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,179,106,.22), transparent 68%);
}

.eyebrow {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--primati-gold-light);
}
.card h2 { font-size: 19px; margin: 8px 0 0; }
.card h3 { font-size: 16px; }
.muted { color: var(--text-dim); font-size: 14px; }
.faint { color: var(--text-faint); font-size: 13px; }

.section-title {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint);
  margin: 26px 0 10px;
}

/* ---------------------------------------------------------------- Chips -- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--text-dim); background: var(--surface-2);
}
.chip-gold { border-color: rgba(185,133,62,.5); color: var(--primati-gold-light); background: rgba(185,133,62,.12); }
.chip-ok { border-color: rgba(62,158,107,.5); color: #6FCB98; background: rgba(62,158,107,.12); }
.chip-warn { border-color: rgba(201,146,47,.45); color: #E2B45E; background: rgba(201,146,47,.1); }
.chip-off { opacity: .75; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------- Missões --- */
.mission-item { width: 100%; text-align: left; cursor: pointer; display: block; }
.mission-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mission-item h3 { margin: 10px 0 4px; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--text-faint); }
.mission-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mission-meta svg { width: 14px; height: 14px; }

.steps { counter-reset: step; margin: 14px 0 0; }
.steps li {
  counter-increment: step; position: relative; padding-left: 34px;
  margin-top: 12px; font-size: 14px; color: var(--text-dim);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--primati-gold-light); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* ------------------------------------------------------------- Progresso - */
.progress-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.progress-num { font-family: var(--font-heading); font-size: 30px; font-weight: 800; line-height: 1; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primati-gold), var(--primati-gold-light)); transition: width .4s ease; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat-value { font-family: var(--font-heading); font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

/* ---------------------------------------------------------------- Lives -- */
.live-date {
  flex: none; width: 58px; border-radius: 12px; padding: 8px 4px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.live-day { font-family: var(--font-heading); font-size: 21px; font-weight: 800; line-height: 1; }
.live-month { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-top: 3px; }
.live-row { display: flex; gap: 14px; align-items: flex-start; }
.live-body { min-width: 0; flex: 1; }
.live-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* -------------------------------------------------------------- Formulário */
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 16px;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primati-gold); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input-code { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; text-align: center; font-size: 18px; }

.check-row { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; }
.check-row input { width: 21px; height: 21px; flex: none; margin-top: 2px; accent-color: var(--primati-gold); }
.check-row label { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.form-error {
  margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 13px;
  background: rgba(192,90,78,.12); border: 1px solid rgba(192,90,78,.42); color: #E9A79E;
}
.form-ok {
  margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 13px;
  background: rgba(62,158,107,.12); border: 1px solid rgba(62,158,107,.42); color: #86D3A8;
}

.proof-preview { margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.proof-preview img { width: 100%; max-height: 260px; object-fit: cover; }

/* ------------------------------------------------------------- Onboarding */
.onboard { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--safe-top) + 32px) 22px calc(var(--safe-bottom) + 32px);
  max-width: 460px; margin: 0 auto; }
.onboard-logo { width: 62px; height: 62px; border-radius: 16px; margin-bottom: 22px; }
.onboard h1 { font-size: 27px; letter-spacing: -.015em; }
.onboard-lead { color: var(--text-dim); margin-top: 10px; font-size: 15px; }
.onboard-steps { display: flex; gap: 6px; margin-bottom: 26px; }
.onboard-step { height: 3px; flex: 1; border-radius: 2px; background: var(--surface-2); }
.onboard-step.is-done { background: var(--primati-gold); }

.legal-note {
  margin-top: 22px; padding: 13px 15px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; color: var(--text-faint); line-height: 1.55;
}
.legal-note a { color: var(--primati-gold-light); }

/* --------------------------------------------------------------- Modal --- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(6,7,9,.72);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease both;
}
.sheet {
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; width: 100%; max-width: 620px;
  max-height: 92dvh; overflow-y: auto;
  padding: 8px 18px calc(var(--safe-bottom) + 22px);
  animation: rise .24s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }

/* Comece aqui */
.card-comece { border-color: rgba(217,179,106,.5); }
.comece-lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.comece-lista li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.comece-lista li[role="button"] { cursor: pointer; }
.comece-lista li[role="button"]:hover { border-color: rgba(185,133,62,.55); }
.comece-lista li.is-ok { opacity: .6; }
.comece-lista li.is-ok strong { text-decoration: line-through; }
.comece-lista li > span:nth-child(2) { flex: 1; display: grid; }
.comece-lista strong { font-size: 14px; }
.comece-lista small { font-size: 12px; color: var(--text-faint); }
.comece-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #86D3A8; }
.comece-lista li.is-ok .comece-check { border-color: rgba(62,158,107,.6); background: rgba(62,158,107,.16); }
.comece-seta { color: var(--primati-gold-light); }

/* Comemoração: confete + pílula de moedas */
.festa { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.festa i { position: absolute; top: 38%; display: block; border-radius: 2px; opacity: 0; animation: confete 1.5s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes confete {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), 62vh) rotate(var(--dr)) scale(.6); }
}
.festa-pill {
  position: fixed; left: 50%; top: 34%; transform: translateX(-50%); z-index: 121; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  color: #14161A; background: linear-gradient(135deg, var(--primati-gold-light), var(--primati-gold));
  box-shadow: 0 14px 40px rgba(185,133,62,.45); animation: pill 1.8s ease-out forwards; white-space: nowrap;
}
@keyframes pill {
  0%   { opacity: 0; transform: translate(-50%, 16px) scale(.8); }
  15%  { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  30%  { transform: translate(-50%, 0) scale(1); }
  80%  { opacity: 1; transform: translate(-50%, -20px); }
  100% { opacity: 0; transform: translate(-50%, -48px); }
}
@media (prefers-reduced-motion: reduce) { .festa-pill { animation: none; opacity: 1; } }

/* Reações variadas */
.post-acoes { flex-wrap: wrap; }
.post-reacao { padding: 7px 10px; gap: 4px; }
.post-emoji { font-size: 16px; line-height: 1; }
.post-reacao.is-pulando .post-emoji { animation: pulo .35s ease; }
@keyframes pulo { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }

/* Áudio do Bera */
.audio-slot { margin-top: 10px; }
.audio-caixa { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid rgba(62,158,107,.35); color: #86D3A8; }
.audio-caixa audio { flex: 1; min-width: 0; height: 36px; }

/* Insígnias e vitrine */
.insignias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insignia { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--text-faint); opacity: .55; }
.insignia.is-on { opacity: 1; color: var(--text); border-color: rgba(217,179,106,.5); background: linear-gradient(180deg, rgba(185,133,62,.14), var(--surface)); }
.insignia-marca { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-faint); }
.insignia.is-on .insignia-marca { color: var(--primati-gold-light); border-color: var(--primati-gold); box-shadow: 0 0 0 3px rgba(185,133,62,.15); }
.vitrine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vitrine-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.vitrine-item.is-destaque { border-color: var(--primati-gold); }
.vitrine-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vitrine-texto { padding: 10px; font-size: 12px; line-height: 1.35; color: var(--text-dim); }
.vitrine-meta { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(12,13,16,.72); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }

/* Repost no Instagram + indicar amigo */
.compositor-repost { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.amigo-indicar { margin-top: 10px; }
.amigo-indicar summary { cursor: pointer; font-size: 13px; color: var(--primati-gold-light); }

/* Primeira missão + convide um amigo */
.card-primeira { border-color: rgba(217,179,106,.6); }
.card-amigo h3 { display: flex; align-items: center; gap: 6px; }
.amigo-codigo { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed rgba(185,133,62,.6); }
.amigo-codigo span { font-size: 12px; color: var(--text-faint); }
.amigo-codigo strong { font-family: var(--font-heading); font-size: 20px; letter-spacing: .06em; color: var(--primati-gold-light); }

/* Check-in diário */
.card-diario { border-color: rgba(185,133,62,.35); }
.card-diario.is-feito { border-color: rgba(62,158,107,.45); }
.diario-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.diario-topo h3 { margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.diario-seq { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-faint); font-size: 12px; }
.diario-seq strong { font-family: var(--font-heading); font-size: 18px; color: var(--text); }
.diario-seq.is-vivo { color: var(--primati-gold-light); border-color: rgba(185,133,62,.5); background: rgba(185,133,62,.12); }
.diario-seq.is-vivo strong { color: var(--primati-gold-light); }
.diario-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.diario-btn { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.diario-btn:hover { border-color: rgba(185,133,62,.55); }
.diario-btn:disabled { opacity: .5; }
.diario-dias { display: flex; gap: 6px; margin-top: 12px; }
.dia-bola { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-faint); }
.dia-bola.is-on { background: rgba(185,133,62,.22); border-color: var(--primati-gold); color: var(--primati-gold-light); }
.dia-bola.is-hoje { outline: 2px solid rgba(255,255,255,.18); outline-offset: 1px; }
.card-diario .faint { margin-top: 10px; }

/* Resposta da equipe */
.card-resposta { border-color: rgba(62,158,107,.4); background: linear-gradient(180deg, rgba(62,158,107,.08), transparent); }
.card-resposta + .card-resposta { margin-top: 10px; }
.resposta-texto { margin-top: 8px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

/* Destaque da semana */
.post-destaque { border-color: var(--primati-gold); box-shadow: 0 0 0 1px rgba(217,179,106,.35), 0 8px 28px rgba(185,133,62,.12); }
.post-selo-destaque { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primati-gold-light); margin-bottom: 8px; }

/* Seu próximo passo */
.passo-motivo { margin-bottom: 10px; }
.passo-fechar { margin-top: 8px; }
.av-ganhar { margin-top: 8px; line-height: 1.5; }
.av-ganhar strong { color: var(--primati-gold-light); }

/* Cadeado nos itens trancados do bonequinho */
.av-card-img { position: relative; }
.av-cadeado {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
}
.av-card.is-caro .av-cadeado { color: #E2B45E; border-color: rgba(226,180,94,.5); }

/* Vídeo com capa: imagem + play; o vídeo só carrega ao tocar */
.video-capa { position: relative; }
.video-capa img { width: 100%; max-height: 70dvh; object-fit: cover; display: block; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(12,13,16,.62); border: 2px solid rgba(255,255,255,.7);
}
.video-play:disabled { opacity: .5; }

/* Perfil público */
.perfil-topo { text-align: center; }
.perfil-topo .avatar { display: block; margin: 4px auto 6px; }
.perfil-topo h2 { margin-top: 4px; }
.perfil-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.perfil-selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.perfil-selos .chip { display: inline-flex; align-items: center; gap: 4px; }

/* Pesquisa de entrada: opções como pílulas que marcam. */
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao {
  padding: 9px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
}
.opcao.is-on { color: var(--primati-gold-light); border-color: rgba(185,133,62,.6); background: rgba(185,133,62,.14); }
.sheet.pesquisa-sheet { max-height: 92dvh; overflow-y: auto; }
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 16px; }
.sheet-close { position: absolute; right: 14px; top: 14px; background: none; border: 0; cursor: pointer; color: var(--text-dim); }

/* --------------------------------------------------------------- Toast --- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); z-index: 60; /* acima da barra */
  background: var(--primati-off-white); color: var(--primati-black);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.42); max-width: calc(100% - 36px); text-align: center;
  animation: fade .2s ease both;
}

/* ---------------------------------------------------------------- Vazio -- */
.empty { text-align: center; padding: 34px 18px; }
.empty svg { width: 34px; height: 34px; color: var(--text-faint); margin: 0 auto 12px; }

/* ------------------------------------------------------------ Modo demo -- */
.demo-banner {
  background: rgba(201,146,47,.1); border: 1px solid rgba(201,146,47,.4);
  color: #E2B45E; border-radius: 12px; padding: 11px 13px; font-size: 12.5px;
  line-height: 1.5; margin-bottom: 16px;
}
.demo-banner strong { color: #F0C87A; }

/* ------------------------------------------------------------- Desktop --- */
@media (min-width: 720px) {
  .app-main { padding-top: 26px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { border-radius: 22px; margin-bottom: 6dvh; border-bottom: 1px solid var(--line); }
  .sheet-backdrop { align-items: center; }
}

/* ===========================================================================
   TEMÁTICA PRIMATI — macaco, ouro e mascote (08/09/2026)
   Paleta e layout mantidos exatamente como estavam; o que entra aqui é a
   presença da marca: o glifo do macaco (extraído do logo oficial), o
   medalhão dourado e o mascote do banner.
   =========================================================================== */

/* ------------------------------------------------------ entrada / onboard */
.onboard { position: relative; }

.onboard-arena {
  position: absolute; inset: 0 -22px auto -22px; height: 300px; z-index: 0;
  background: url('../img/arena.webp') center top / cover no-repeat;
  opacity: .30;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, transparent 92%);
  pointer-events: none;
}
.onboard > *:not(.onboard-arena) { position: relative; z-index: 1; }

.onboard-logo {
  width: 72px; height: 72px; border-radius: 0; margin-bottom: 20px;
  filter: drop-shadow(0 6px 20px rgba(185, 133, 62, .32));
}

.onboard-mascote {
  width: 100%; max-width: 240px; height: auto; margin: 0 auto 6px;
  border-radius: 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
}

/* Selo de plano confirmado no passo 2 */
.plano-selo {
  display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(185, 133, 62, .1); border: 1px solid rgba(185, 133, 62, .36);
}
.plano-selo img { flex: none; width: 26px; height: auto; }
.plano-selo strong { display: block; font-size: 13.5px; color: var(--primati-gold-light); }
.plano-selo span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ---------------------------------------------------------------- patente */
.card-patente {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 14px;
  background: linear-gradient(150deg, #1B1E24 0%, var(--surface) 60%);
  border-color: rgba(185, 133, 62, .3);
}
.patente-macaco {
  width: 46px; height: auto; align-self: start;
  filter: drop-shadow(0 4px 12px rgba(185, 133, 62, .34));
}
.patente-info h2 { font-size: 20px; margin: 4px 0 3px; }
.patente-barra { grid-column: 1 / -1; }
.patente-barra .faint strong { color: var(--primati-gold-light); }

/* Sequência viva ganha destaque dourado — é a métrica que puxa o retorno. */
.stat-vivo { border-color: rgba(185, 133, 62, .42); background: rgba(185, 133, 62, .07); }
.stat-vivo .stat-value { color: var(--primati-gold-light); }
.stat-value { display: flex; align-items: center; gap: 6px; }
.stat-value svg { width: 19px; height: 19px; flex: none; }

.txt-ok { color: #6FCB98; }
.txt-warn { color: #E2B45E; }

/* ------------------------------------------------------------------ selos */
.selos { display: flex; flex-wrap: wrap; gap: 10px; }
.selo {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--text-faint);
}
.selo-marca { display: grid; place-items: center; width: 22px; height: 22px; }
.selo.is-on {
  border-color: rgba(185, 133, 62, .55); color: var(--primati-gold-light);
  background: rgba(185, 133, 62, .12);
}

/* -------------------------------------------------------------- upgrade -- */
.card-upgrade { border-color: rgba(185, 133, 62, .3); }
.card-upgrade img { width: 34px; height: auto; margin-bottom: 10px; }
.card-upgrade h3 { margin-bottom: 6px; }

/* --------------------------------------------------------------- agenda -- */
.agenda-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.agenda-opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.agenda-dica { margin-top: 10px; line-height: 1.5; }
.agenda-dica strong { color: var(--text-dim); }

/* ------------------------------------------------------ mural / compositor */
.card-compositor { border-color: rgba(185, 133, 62, .22); }
.card-compositor .textarea { min-height: 86px; }
.compositor-acoes {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 10px;
}
.compositor-acoes label { cursor: pointer; }
.compositor-aviso {
  display: flex; gap: 7px; align-items: flex-start;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  line-height: 1.5;
}
.compositor-aviso svg { flex: none; margin-top: 2px; }

.post-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.post-autor { display: flex; gap: 10px; align-items: center; min-width: 0; }
.post-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primati-gold), #8A5E24);
  color: #14161A; font-family: var(--font-heading); font-weight: 800; font-size: 16px;
}
.post-autor strong { display: block; font-size: 14px; }
.post-autor > div > span { display: block; font-size: 12px; }
/* O "· você" vive DENTRO do <strong> e precisa continuar na mesma linha do nome. */
.post-autor strong .faint { display: inline; font-size: 13px; }
.post-texto { margin-top: 12px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.post-pendente { border-style: dashed; opacity: .82; }

.post-acoes { display: flex; gap: 8px; margin-top: 14px; }
.post-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px; font-weight: 600;
}
.post-btn:active { transform: scale(.97); }
.post-btn.is-on {
  border-color: rgba(185, 133, 62, .55); color: var(--primati-gold-light);
  background: rgba(185, 133, 62, .14);
}
.post-btn-denuncia { margin-left: auto; color: var(--text-faint); }
.post-btn-denuncia:hover { color: #E9A79E; border-color: rgba(192, 90, 78, .5); }

/* Marca d'água do macaco no card da missão da semana.
   NÃO redeclarar background/background-image aqui: o degradê verde do
   .card-hero é definido por `background: linear-gradient(...)`, que escreve
   em background-image — apagá-lo deixa o card preto. A marca d'água entra
   por ::before, camada separada. */
.card-hero::before {
  content: ""; position: absolute; right: -14px; bottom: -18px;
  width: 132px; height: 128px; z-index: 0; opacity: .13;
  background: url('../img/macaco-claro.png') right bottom / contain no-repeat;
  pointer-events: none;
}
.card-hero > * { position: relative; z-index: 1; }

@media (min-width: 720px) {
  .card-patente { grid-template-columns: auto 1fr auto; align-items: center; }
  .patente-barra { grid-column: auto; min-width: 240px; }
}

/* ===========================================================================
   LOJINHA, CAPAS DE ACADEMIA E BOTÃO DO CABEÇALHO (09/09/2026)
   =========================================================================== */

.app-header-acoes { display: flex; align-items: center; gap: 10px; flex: none; }

.header-btn {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.header-btn:hover { color: var(--text); border-color: var(--text-faint); }
.header-btn.is-on {
  color: var(--primati-gold-light);
  border-color: rgba(185, 133, 62, .55);
  background: rgba(185, 133, 62, .14);
}

/* -------------------------------------------------- capas nas missões ---- */
.mission-capa {
  margin: -18px -18px 14px;                 /* sangra até a borda do card */
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden; position: relative; background: var(--surface-2);
}
.mission-capa img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  display: block;
}
/* Missão cumprida ou encerrada não precisa gritar visualmente. */
.mission-capa.is-apagada img { filter: grayscale(.55) brightness(.72); }
.mission-capa::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(21,23,27,.92) 100%);
  pointer-events: none;
}

.sheet-capa {
  margin: 0 -18px 16px; overflow: hidden; border-radius: 14px;
}
.sheet-capa img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
}

/* ------------------------------------------------------------- produtos -- */
.produto { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.produto-foto {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  aspect-ratio: 1; display: grid; place-items: center;
}
.produto-foto img { width: 100%; height: 100%; object-fit: cover; }
.produto-foto .produto-sem-foto {
  width: 54%; height: auto; object-fit: contain; opacity: .6;
}
.produto-selo {
  position: absolute; left: 6px; bottom: 6px; font-size: 9px; padding: 3px 7px;
}
.produto-info h3 { margin-bottom: 4px; }
.produto-preco {
  margin-top: 8px; font-family: var(--font-heading); font-weight: 800;
  font-size: 18px; color: var(--primati-gold-light);
}
.produto-btn { margin-top: 12px; display: inline-flex; }

/* Linha de destaques na tela Hoje: dois cards lado a lado */
.produtos-linha { display: grid; gap: 12px; }
.produtos-linha .card + .card { margin-top: 0; }
.produto-compacto { grid-template-columns: 72px 1fr; padding: 14px; }
.produto-compacto h3 { font-size: 15px; }
.produto-compacto .produto-preco { font-size: 16px; margin-top: 6px; }
.produto-compacto .produto-btn { margin-top: 10px; }

@media (min-width: 560px) {
  .produtos-linha { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------- cupom de assinante -------- */
.cupom {
  margin-top: 12px; padding: 11px 13px; border-radius: 12px;
  background: rgba(185, 133, 62, .1);
  border: 1px dashed rgba(185, 133, 62, .55);
}
.cupom-topo {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--primati-gold-light);
}
.cupom-topo svg { flex: none; }
.cupom-codigo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin-top: 9px; padding: 9px 12px; cursor: pointer;
  border-radius: 9px; border: 1px solid rgba(185, 133, 62, .45);
  background: var(--surface-2);
}
.cupom-codigo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: .09em; color: var(--text);
}
.cupom-codigo span {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--primati-gold-light);
}
.cupom-codigo:active { transform: scale(.985); }

/* ===========================================================================
   v4 — faixa etária, comentários, boas-vindas, instalação, conquista (12/09/2026)
   =========================================================================== */

/* Faixa de idade: chip minúsculo ao lado do nome. Nunca a idade exata. */
.faixa {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line);
}

/* ------------------------------------------------------------ comentários */
.comentarios { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.comentario { display: flex; gap: 10px; padding: 8px 0; }
.comentario + .comentario { border-top: 1px solid rgba(42,46,54,.6); }
.comentario.is-pendente { opacity: .72; }
.comentario-avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--primati-gold-light);
  font-family: var(--font-heading);
}
.comentario-corpo { min-width: 0; flex: 1; }
.comentario-topo { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.comentario-topo strong { font-size: 13px; }
.comentario-topo .chip { font-size: 9px; padding: 2px 7px; }
.comentario-corpo p { font-size: 14px; line-height: 1.5; margin-top: 3px; white-space: pre-wrap; }

.comentario-form { display: flex; gap: 8px; margin-top: 10px; }
.comentario-form .input { flex: 1; padding: 10px 12px; font-size: 14px; }
.comentario-form .btn { flex: none; padding: 0 14px; min-height: 40px; }

/* ------------------------------------------------------------ boas-vindas */
.boasvindas-medalhao { margin: 0 auto 14px; filter: drop-shadow(0 6px 20px rgba(185,133,62,.32)); }
.boasvindas-passos { margin-top: 20px; }
.boasvindas-passos li { display: flex; gap: 14px; align-items: flex-start; }
.boasvindas-passos li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.boasvindas-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(185,133,62,.12); border: 1px solid rgba(185,133,62,.4); color: var(--primati-gold-light);
}
.boasvindas-passos h3 { font-size: 15px; margin-bottom: 4px; }

/* -------------------------------------------------------------- instalar */
.card-instalar { border-color: rgba(185,133,62,.28); }
.instalar-passos { counter-reset: p; margin-top: 10px; }
.instalar-passos li {
  counter-increment: p; position: relative; padding-left: 28px; margin-top: 7px;
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
.instalar-passos li::before {
  content: counter(p); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--primati-gold-light);
  background: var(--surface-2); border: 1px solid var(--line);
}
.instalar-passos strong { color: var(--text); }

/* -------------------------------------------------------------- conquista */
.conquista-previa {
  margin-top: 16px; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); border: 1px solid rgba(185,133,62,.35);
  max-height: 52dvh;
}
.conquista-previa img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------------ vídeo */
.compositor-anexos { display: flex; gap: 8px; flex-wrap: wrap; }
.video-slot {
  margin-top: 12px; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid var(--line);
}
.video-slot video { width: 100%; max-height: 70dvh; display: block; background: #000; }
.video-carregando {
  display: flex; align-items: center; gap: 8px; padding: 22px 14px;
  color: var(--text-faint); font-size: 13px; background: var(--surface-2);
}
.video-escolhido {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 9px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(185,133,62,.1); border: 1px solid rgba(185,133,62,.4); color: var(--primati-gold-light);
}
.video-escolhido span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-escolhido .post-btn { padding: 4px 10px; font-size: 12px; }
.video-progresso { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.video-progresso-topo { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; color: var(--text-dim); }
.video-progresso-topo b { color: var(--primati-gold-light); }

/* ------------------------------------------------------ live no app ------ */
.chip-vivo { position: relative; padding-left: 18px; }
.chip-vivo::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: #6FCB98; transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(111,203,152,.6); animation: pulso 1.6s ease-out infinite;
}
@keyframes pulso { to { box-shadow: 0 0 0 7px rgba(111,203,152,0); } }
@media (prefers-reduced-motion: reduce) { .chip-vivo::before { animation: none; } }

.sheet-live { max-height: 96dvh; }
.live-player {
  margin-top: 14px; border-radius: 12px; overflow: hidden; background: #000;
  aspect-ratio: 16 / 9; border: 1px solid var(--line);
}
.live-player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================================================================
   BONEQUINHO — editor, loja, avatar no app (14/09/2026)
   =========================================================================== */
.avatar-mini {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  overflow: hidden; background: rgba(185,133,62,.12); border: 1px solid rgba(185,133,62,.35);
}
.avatar-mini svg { width: 100%; height: 100%; display: block; }

.header-avatar {
  display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer;
}
.patente-avatar {
  padding: 0; border: 0; background: none; cursor: pointer; align-self: start;
  filter: drop-shadow(0 4px 12px rgba(185,133,62,.28));
}
.patente-avatar svg { display: block; }
.stat-moedas { cursor: pointer; border-color: rgba(185,133,62,.42); background: rgba(185,133,62,.07); }
.stat-moedas .stat-value { color: var(--primati-gold-light); }

/* editor */
.av-editor { max-height: 96dvh; padding-bottom: 0; }
.av-topo { display: flex; gap: 14px; align-items: center; }
.av-preview {
  flex: none; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(185,133,62,.22), rgba(21,23,27,0) 70%);
}
.av-preview svg { display: block; }
.av-topo-info { min-width: 0; flex: 1; }
.av-tabs { margin-top: 14px; margin-bottom: 8px; }
.av-corpo { max-height: 42dvh; overflow-y: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.av-rodape {
  position: sticky; bottom: 0; padding: 10px 0 calc(var(--safe-bottom) + 14px);
  background: linear-gradient(to top, var(--surface) 70%, rgba(21,23,27,0));
}

.av-grid { display: grid; gap: 8px; }
.av-grid-3 { grid-template-columns: repeat(3, 1fr); }
.av-grid-4 { grid-template-columns: repeat(4, 1fr); }
.av-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 6px; border-radius: 14px; cursor: pointer; text-align: center;
  background: var(--surface-2); border: 2px solid var(--line); color: var(--text);
}
.av-card-img { width: 64px; height: 64px; display: grid; place-items: center; }
.av-card-img svg { max-width: 100%; max-height: 100%; }
.av-card-nome { font-size: 12px; font-weight: 700; line-height: 1.2; }
.av-card-estado { font-size: 10.5px; color: var(--text-faint); line-height: 1.2; }
.av-card.is-on { border-color: var(--primati-gold); background: rgba(185,133,62,.12); }
.av-card.is-on .av-card-estado { color: var(--primati-gold-light); }
.av-card.is-locked { opacity: .55; }
.av-card.is-locked .av-card-img { filter: grayscale(1); }
.av-card.is-caro .av-card-estado { color: #E2B45E; }
.av-card:active { transform: scale(.97); }

.av-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.av-swatch {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--surface);
}
.av-swatch.is-on { border-color: var(--primati-gold-light); transform: scale(1.1); }

/* Abas em pílula (usadas no editor do bonequinho; o painel tem cópia própria) */
.eq-tabs, .eq-filtro {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.eq-tabs::-webkit-scrollbar, .eq-filtro::-webkit-scrollbar { display: none; }
.eq-filtro { flex-wrap: wrap; }
.eq-tab {
  flex: none; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px;
}
.eq-tab.is-on { color: var(--primati-gold-light); border-color: rgba(185,133,62,.55); background: rgba(185,133,62,.12); }

/* Cabeçalho apertado no celular: com avatar + patente + sacola, o eyebrow
   "CLUBE PRIMATI" quebrava linha. Some abaixo de 420px; o título fica. */
@media (max-width: 420px) {
  .app-header-eyebrow { display: none; }
  .app-header-acoes .chip { padding: 4px 8px; font-size: 10px; }
  .app-header { gap: 8px; }
}


/* Dia já marcado: fica como registro, não como botão */
.diario-btn.is-feito { opacity: .55; border-color: var(--primati-green); cursor: default; }
.diario-btn.is-feito:hover { transform: none; }

/* "E agora?" — o primeiro cartão da Hoje */
.card-agora {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  border-color: rgba(217,179,106,.38); cursor: pointer;
}
.card-agora.is-ok { border-color: var(--line); cursor: default; }
.card-agora .agora-ic {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(217,179,106,.14); color: var(--primati-gold-light);
}
.card-agora.is-ok .agora-ic { background: rgba(62,158,107,.16); color: #7BD1A2; }
.card-agora strong { display: block; font-family: var(--font-heading); font-size: 16px; }
.card-agora small { display: block; color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.card-agora .agora-seta { margin-left: auto; color: var(--text-faint); }

/* O premio da proxima patente, na barra de evolucao */
.premio-proximo { display: inline-block; margin-top: 4px; color: var(--primati-gold-light); font-size: 12.5px; }
.premio-proximo svg { vertical-align: -2px; margin-right: 3px; }

/* Molduras: cada patente muda o anel do avatar no perfil */
.moldura-bronze { box-shadow: 0 0 0 3px #8A5A2B; }
.moldura-prata  { box-shadow: 0 0 0 3px #B8BCC2; }
.moldura-ouro   { box-shadow: 0 0 0 3px var(--primati-gold); }
.moldura-alfa   { box-shadow: 0 0 0 3px var(--primati-gold-light), 0 0 18px rgba(217,179,106,.55); }

.perfil-moldura { display: inline-block; border-radius: 50%; line-height: 0; }

/* Hoje na Tribo: três tarefinhas que trocam todo dia */
.card-tarefas { margin-bottom: 14px; }
.anel {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--primati-gold) calc(var(--pct) * 1%), var(--surface-2) 0);
  font-size: 11px; font-weight: 700;
}
.anel span { background: var(--surface); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.tarefas { display: grid; gap: 8px; margin-top: 12px; }
.tarefa {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer;
}
.tarefa[role="button"]:hover { border-color: var(--primati-gold); }
.tarefa:not([role="button"]) { cursor: default; }
.tarefa-check {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; color: var(--bg);
}
.tarefa.is-ok { color: var(--text-dim); }
.tarefa.is-ok .tarefa-check { background: var(--primati-green); border-color: var(--primati-green); color: #fff; }
.tarefa-seta { margin-left: auto; color: var(--text-faint); }

/* Congelador da sequência */
.congelador { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.congelador.is-tem { color: #86D3A8; background: rgba(62,158,107,.10); border: 1px solid rgba(62,158,107,.32); border-radius: 12px; padding: 10px 12px; }
.congelador.is-tem strong { color: #A9E3C4; }

/* Post que é resposta do Bera: vira aula da Tribo */
.post-aula { border-color: rgba(217,179,106,.42); }
.post-selo-aula { color: var(--primati-gold-light); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.post-selo-aula svg { vertical-align: -2px; margin-right: 4px; }
