/* ═══════════════════════════════════════════════════════════════
   COMMENTS MODULE · estilos universais
   
   • Prefixo .cm-* (Comments Module)
   • Reusa tokens globais (--accent, --text, etc.)
   • Funciona em qualquer página — drop em DECODE, AVATAR, HUB, FLOW
   • Light/dark via tokens
   ═══════════════════════════════════════════════════════════════ */

.cm-module {
  margin: 56px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}


/* ───── Header (título + contagem + ordenação) ───── */
.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.cm-head-title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.cm-head-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.cm-head-count {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cm-sort {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}
.cm-sort-btn {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.12s ease;
  letter-spacing: -0.005em;
}
.cm-sort-btn:hover { color: var(--text); }
.cm-sort-btn.is-active {
  background: var(--bg-base);
  color: var(--text);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.06);
}


/* ───── Lista ───── */
.cm-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* ───── Comment item ───── */
.cm-item-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cm-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cm-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  line-height: 1.3;
}
.cm-item-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cm-item-name:hover { color: var(--accent); }
.cm-item-author-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: oklch(0.99 0 0);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.cm-item-role {
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: -0.005em;
}
.cm-item-sep { color: var(--text-dim); opacity: 0.5; }
.cm-item-ping {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.cm-item-time {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.cm-item-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Highlight do comentário da própria autora do artigo */
.cm-item-author > .cm-item-row > .cm-item-body {
  background: var(--accent-bg);
  border: 1px solid oklch(from var(--accent) calc(l + 0.18) c h);
  border-radius: 12px;
  padding: 12px 14px;
}
.theme-dark .cm-item-author > .cm-item-row > .cm-item-body {
  border-color: oklch(from var(--accent) calc(l - 0.2) c h);
}


/* Replies — indentação + linha guia */
.cm-item-replies {
  margin-top: 14px;
  margin-left: 18px;
  padding-left: 22px;
  border-left: 1.5px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cm-item-reply .cm-item-text { font-size: 14px; }
.cm-item-reply .cm-item-name { font-size: 13.5px; }


/* ───── Reactions · 5 tipos do reaction_emoji_enum ───── */
/*   LIKE 👍 · LOVE ❤️ · FIRE 🔥 · MIND_BLOWN 🤯 · DISAGREE 👎     */
/*   Flat outline por padrão (currentColor + text-mute); só a    */
/*   reação votada ganha fill + cor de accent. Editorial.        */
.cm-reactions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.cm-react {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px 0 9px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-mute);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}
.cm-react:hover {
  border-color: var(--rx-accent);
  color: var(--rx-accent);
  background: oklch(from var(--rx-accent) calc(l + 0.32) calc(c * 0.3) h);
  transform: translateY(-1px);
}
.theme-dark .cm-react:hover {
  background: oklch(from var(--rx-accent) calc(l - 0.30) calc(c * 0.6) h);
  color: oklch(from var(--rx-accent) calc(l + 0.2) c h);
}
.cm-react.is-mine {
  border-color: var(--rx-accent);
  background: oklch(from var(--rx-accent) calc(l + 0.32) calc(c * 0.3) h);
  color: var(--rx-accent);
  box-shadow: 0 4px 10px -4px oklch(from var(--rx-accent) l c h / 0.35);
}
.theme-dark .cm-react.is-mine {
  background: oklch(from var(--rx-accent) calc(l - 0.30) calc(c * 0.6) h);
  color: oklch(from var(--rx-accent) calc(l + 0.2) c h);
}
.cm-react-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}
.cm-react-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cm-react-total {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

/* Microanimação ao virar "minha reação" — pulse com bounce */
.cm-react.is-mine .cm-react-icon {
  animation: cmReactPulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cmReactPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.cm-action-reply,
.cm-action-report { padding: 0 6px; }
.cm-action-report { margin-left: auto; opacity: 0.55; }
.cm-action-report:hover { opacity: 1; color: oklch(0.60 0.22 25); }
.cm-action-reply:hover { color: var(--accent); }

.cm-item-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cm-item-actions .cm-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.cm-item-actions .cm-action:hover { color: var(--text); }


/* Mobile: reactions menores e mais compactas */
.mobile-frame .cm-reactions { gap: 3px; }
.mobile-frame .cm-react { height: 26px; padding: 0 8px; gap: 4px; }
.mobile-frame .cm-react-num { font-size: 10.5px; }
.mobile-frame .cm-action-report { display: none; }




/* ───── Face ───── */
.cm-face {
  position: relative;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: oklch(1 0 0);
  font-weight: 600;
  text-shadow: 0 1px 1px oklch(0 0 0 / 0.15);
  border: 1.5px solid oklch(1 0 0 / 0.15);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.cm-face-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  color: oklch(0.06 0 0);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ───── Textarea (composer + reply composer) ───── */
.cm-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 56px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: -0.005em;
}
.cm-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.18);
}
.cm-textarea::placeholder { color: var(--text-dim); }


/* ───── Botões ───── */
.cm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: var(--text);
  color: var(--bg-base);
  border: 1px solid var(--text);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.cm-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px oklch(0.2 0.02 275 / 0.4);
}
.cm-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.theme-dark .cm-btn-primary {
  background: var(--accent);
  color: oklch(0.06 0 0);
  border-color: var(--accent);
}

.cm-btn-ghost {
  height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-mute);
  border: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.12s ease;
}
.cm-btn-ghost:hover { background: var(--bg-elev); color: var(--text); }


/* ───── Reply composer ───── */
.cm-reply-composer {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cm-reply-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-reply-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cm-reply-count {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.cm-reply-actions {
  display: inline-flex;
  gap: 6px;
}


/* ═══════════════════════════════════════════════════════════════
   GHOST COMPOSER · placeholder clicável → abre modal de verificação
   Substitui o gate verde antigo. Visual idêntico a um composer real
   pra reduzir fricção mental — leitor só percebe o gate ao clicar.
   ═══════════════════════════════════════════════════════════════ */

.cm-gate-wrap {
  margin-top: 12px;
}

.cm-ghost-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 14px;
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: 14px;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}
.cm-ghost-composer:hover {
  border-style: solid;
  border-color: var(--accent);
  background: var(--bg-base);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px oklch(from var(--accent) l c h / 0.18);
}

.cm-ghost-face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px dashed var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.16s ease;
}
.cm-ghost-composer:hover .cm-ghost-face {
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent);
}

.cm-ghost-placeholder {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  transition: color 0.16s ease;
}
.cm-ghost-composer:hover .cm-ghost-placeholder { color: var(--text-mute); }

.cm-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: var(--text);
  color: var(--bg-base);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  flex-shrink: 0;
  transition: background 0.16s ease;
}
.theme-dark .cm-ghost-cta {
  background: var(--accent);
  color: oklch(0.06 0 0);
}
.cm-ghost-composer:hover .cm-ghost-cta {
  background: var(--accent);
  color: oklch(0.99 0 0);
}
.theme-dark .cm-ghost-composer:hover .cm-ghost-cta {
  background: oklch(from var(--accent) calc(l + 0.05) c h);
  color: oklch(0.06 0 0);
}


/* ═══════════════════════════════════════════════════════════════
   SELF · destaque para comentários do próprio usuário logado
   ═══════════════════════════════════════════════════════════════ */

.cm-item-self-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-elev);
  color: var(--text-mute);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.cm-item-self > .cm-item-row > .cm-item-body {
  position: relative;
}
.cm-item-self > .cm-item-row > .cm-item-body::before {
  /* faixa lateral discreta indicando "seu comentário" */
  content: "";
  position: absolute;
  left: -14px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.55;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE · ghost composer
   ═══════════════════════════════════════════════════════════════ */

.mobile-frame .cm-ghost-composer {
  padding: 12px;
  gap: 10px;
}
.mobile-frame .cm-ghost-face { width: 32px; height: 32px; }
.mobile-frame .cm-ghost-placeholder { font-size: 13px; }
.mobile-frame .cm-ghost-cta {
  height: 32px;
  padding: 0 10px;
  font-size: 11.5px;
}


/* ═══════════════════════════════════════════════════════════════
   MODAL · pop-up de conversão (hook → verify)
   ═══════════════════════════════════════════════════════════════ */

.cm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: oklch(0.12 0.02 275 / 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cmModalOverlayIn 0.2s ease-out;
}
.theme-dark .cm-modal-overlay { background: oklch(0.05 0.02 275 / 0.75); }
@keyframes cmModalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cm-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow:
    0 50px 100px -20px oklch(0.05 0.02 275 / 0.45),
    0 30px 60px -30px oklch(0.05 0.02 275 / 0.4);
  animation: cmModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cmModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.cm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  z-index: 2;
}
.cm-modal-close:hover {
  background: var(--bg-elev);
  color: var(--text);
}


/* ─── HOOK state (state A) ─── */

.cm-modal-hook {
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cm-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: oklch(1 0 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow:
    0 16px 32px -10px #25d36680,
    inset 0 1px 0 oklch(1 0 0 / 0.2);
  /* Pulse sutil pra puxar atenção ao trigger principal */
  animation: cmModalIconPulse 2.4s ease-in-out infinite;
}
@keyframes cmModalIconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 32px -10px #25d36680, inset 0 1px 0 oklch(1 0 0 / 0.2); }
  50%      { transform: scale(1.04); box-shadow: 0 20px 38px -8px #25d366a0, inset 0 1px 0 oklch(1 0 0 / 0.2); }
}

.cm-modal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.40 0.18 155);
  margin-bottom: 12px;
}
.theme-dark .cm-modal-eyebrow { color: oklch(0.78 0.18 155); }

/* Claimed-handle pill — shown instead of the eyebrow when a subject is passed
   (e.g. X-BIO create flow confirms the address the user just chose). */
.cm-modal-handle {
  display: inline-flex; align-items: center;
  margin-bottom: 14px; padding: 6px 13px;
  border-radius: 999px;
  background: oklch(0.95 0.04 155);
  border: 1px solid oklch(0.62 0.15 155 / 0.3);
  font-size: 13px; letter-spacing: -0.01em;
}
.cm-modal-handle-dom { color: oklch(0.48 0.02 155); }
.cm-modal-handle-name { color: oklch(0.45 0.15 155); font-weight: 600; }
.theme-dark .cm-modal-handle { background: oklch(0.32 0.05 155 / 0.4); border-color: oklch(0.7 0.15 155 / 0.35); }
.theme-dark .cm-modal-handle-dom { color: oklch(0.72 0.02 155); }
.theme-dark .cm-modal-handle-name { color: oklch(0.84 0.16 155); }

.cm-modal-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 12px;
  text-wrap: balance;
}

.cm-modal-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0 0 24px;
  max-width: 36ch;
  text-wrap: pretty;
}

/* Social proof: avatares sobrepostos + texto */
.cm-modal-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 22px;
}
.cm-modal-proof-faces {
  display: inline-flex;
  flex-shrink: 0;
}
.cm-modal-proof-face {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: oklch(1 0 0);
  border: 2px solid var(--bg-elev);
  margin-left: -8px;
  letter-spacing: 0.02em;
}
.cm-modal-proof-face:first-child { margin-left: 0; }
.cm-modal-proof-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-mute);
  letter-spacing: -0.005em;
  text-align: left;
}
.cm-modal-proof-text strong {
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

/* CTA dominante */
.cm-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 22px;
  background: #25d366;
  color: oklch(1 0 0);
  border: 0;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 16px 32px -8px #25d36660;
  margin-bottom: 14px;
}
.cm-modal-cta:hover {
  background: #1eba59;
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -8px #25d36680;
}
.cm-modal-cta:active { transform: translateY(0); }

.cm-modal-already {
  font-size: 12.5px;
  color: var(--text-mute);
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
  transition: color 0.12s ease;
}
.cm-modal-already:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cm-modal-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  width: 100%;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  justify-content: center;
}
.cm-modal-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cm-modal-trust-sep { opacity: 0.5; }


/* ─── VERIFY state (state B) — fluxo 2 passos dentro do modal ─── */

.cm-modal-verify {
  padding: 22px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cm-modal-verify .cm-verify-back {
  position: static;
  align-self: flex-start;
  margin-top: 0;
}
.cm-modal-verify-head {
  margin-top: 4px;
}
.cm-modal-verify-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 8px 0 0;
}


/* ─── MOBILE ajustes ─── */
.mobile-frame .cm-modal { max-width: 100%; max-height: calc(100% - 40px); border-radius: 18px; }
.mobile-frame .cm-modal-hook { padding: 32px 24px 22px; }
.mobile-frame .cm-modal-title { font-size: 26px; }
.mobile-frame .cm-modal-icon { width: 56px; height: 56px; }
.mobile-frame .cm-modal-verify { padding: 18px 18px 20px; }
.mobile-frame .cm-modal-verify-title { font-size: 22px; }
.mobile-frame .cm-verify-cta { width: 100%; justify-content: center; }
.mobile-frame .cm-verify-phone { display: none; }
.mobile-frame .cm-verify-code { width: 100%; }
.mobile-frame .cm-verify-submit { width: 100%; justify-content: center; }
.mobile-frame .cm-verify-email { width: 100%; flex: 1 1 100%; }
.mobile-frame .cm-verify-sendcode { width: 100%; flex: 1 1 100%; }
.mobile-frame .cm-modal-overlay { padding: 16px; }


/* ═══════════════════════════════════════════════════════════════
   VERIFY · panel expandido (2 passos + termos)
   ═══════════════════════════════════════════════════════════════ */

.cm-verify {
  padding: 24px 24px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cmVerifyIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
@keyframes cmVerifyIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cm-verify-back {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 7px;
  transition: all 0.12s ease;
}
.cm-verify-back:hover { background: var(--bg-base); color: var(--text); }

.cm-verify-head {
  margin-top: 12px;
}
.cm-verify-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.40 0.18 155);
  margin-bottom: 10px;
}
.theme-dark .cm-verify-stamp { color: oklch(0.78 0.18 155); }
.cm-verify-stamp svg { color: #25d366; }
.cm-verify-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0;
}

.cm-verify-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cm-verify-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cm-verify-step-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: -0.005em;
  flex-shrink: 0;
}
.cm-verify-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cm-verify-step-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.cm-verify-step-sub {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  margin-top: -4px;
}

.cm-verify-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 14px;
  background: #25d366;
  color: oklch(1 0 0);
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.12s ease;
  align-self: flex-start;
}
.cm-verify-cta:hover { transform: translateY(-1px); }
.cm-verify-phone {
  font-size: 12px;
  background: oklch(0 0 0 / 0.18);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.cm-verify-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cm-verify-code {
  width: 180px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cm-verify-code:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.18);
}
.cm-verify-code-hint {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.cm-verify-code-eg {
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* ── Etapa 2: e-mail ("Falta pouco") ───────────────────────── */
.cm-verify-stamp-ok { color: var(--accent) !important; }
.cm-verify-stamp-ok svg { color: var(--accent) !important; }
.cm-modal-verify-lead {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-mute);
  text-wrap: pretty;
}
.cm-verify-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cm-verify-email {
  flex: 1;
  min-width: 180px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cm-verify-email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.18);
}
.cm-verify-sendcode {
  flex: none;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cm-verify-sendcode:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cm-verify-sendcode:disabled { opacity: 0.4; cursor: not-allowed; }

/* passo bloqueado até enviar o código */
.cm-verify-step.is-locked { opacity: 0.5; }
.cm-verify-step.is-locked .cm-verify-step-num { background: var(--border); color: var(--text-dim); }

/* indicador de progresso 2 passos */
.cm-verify-stepdots {
  display: flex;
  gap: 7px;
  margin-top: 16px;
  align-self: flex-start;
}
.cm-verify-dot {
  width: 22px; height: 4px; border-radius: 999px;
  background: var(--border);
  transition: background 0.2s ease;
}
.cm-verify-dot.is-on { background: var(--accent); }
.cm-verify-dot.is-done { background: oklch(from var(--accent) l c h / 0.45); }

.cm-verify-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
}
.cm-verify-check {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.cm-verify-terms-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-mute);
  text-wrap: pretty;
}
.cm-verify-terms-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cm-verify-terms-text a:hover { text-decoration-thickness: 2px; }

.cm-verify-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  background: var(--text);
  color: var(--bg-base);
  border: 0;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  align-self: flex-start;
}
.cm-verify-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px oklch(0.2 0.02 275 / 0.45);
}
.cm-verify-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.theme-dark .cm-verify-submit {
  background: var(--accent);
  color: oklch(0.06 0 0);
}

.cm-verify-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: cmSpin 0.7s linear infinite;
}
@keyframes cmSpin {
  to { transform: rotate(360deg); }
}

.cm-verify-foot {
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.55;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  background: var(--bg-base);
  border-radius: 9px;
  border: 1px dashed var(--border-soft);
}


/* ═══════════════════════════════════════════════════════════════
   COMPOSER (verified)
   ═══════════════════════════════════════════════════════════════ */

.cm-composer {
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-composer-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-composer-id {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cm-composer-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.cm-composer-ping {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.cm-composer-verified {
  color: var(--accent);
  font-weight: 600;
}
.cm-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cm-composer-count {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */

.mobile-frame .cm-module {
  margin: 36px 0;
  gap: 18px;
  /* O .dec-main no mobile é full-bleed (margin: 0 -18px), então
     o cm-module precisa de padding lateral próprio pra não colar
     nas bordas do celular. Bate com o padding do .dec-body. */
  padding: 0 22px;
}
.mobile-frame .cm-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
}
.mobile-frame .cm-head-title { font-size: 22px; }
.mobile-frame .cm-sort { font-size: 11px; }
.mobile-frame .cm-sort-btn { padding: 5px 9px; font-size: 10.5px; }

.mobile-frame .cm-list { gap: 22px; }
.mobile-frame .cm-item-row { gap: 10px; }
.mobile-frame .cm-item-text { font-size: 14px; }
.mobile-frame .cm-item-head {
  gap: 4px 7px;
}
.mobile-frame .cm-item-role { font-size: 11px; }
.mobile-frame .cm-item-replies {
  margin-left: 12px;
  padding-left: 14px;
  gap: 14px;
}
.mobile-frame .cm-item-reply .cm-item-text { font-size: 13px; }

.mobile-frame .cm-action-report { display: none; }

.mobile-frame .cm-gate {
  padding: 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.mobile-frame .cm-gate-cta {
  width: 100%;
  justify-content: center;
}

.mobile-frame .cm-verify {
  padding: 20px 16px 16px;
}
.mobile-frame .cm-verify-title { font-size: 21px; }
.mobile-frame .cm-verify-cta {
  flex-direction: row;
  width: 100%;
  justify-content: center;
}
.mobile-frame .cm-verify-phone { display: none; }
.mobile-frame .cm-verify-code { width: 100%; }
.mobile-frame .cm-verify-submit { width: 100%; }
