/* ═══════════════════════════════════════════════════════════════════
   MINHA CONTA — Layout e componentes
   Usa variáveis do Design System (landing.css / application.css)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layout principal ─────────────────────────────────────────── */

.minha-conta-layout {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1a1a1a;
  background: #f5f5f3;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Navbar do site no topo do painel — mesmo navbar do resto do site, pra não
   parecer outra página. Estático e sem auto-hide aqui, pra não conflitar com a
   barra lateral sticky do painel. Largura alinhada ao container do painel. */
.minha-conta-layout .site-header {
  position: static;
  transform: none !important;
  opacity: 1 !important;
  max-width: 1200px;
  margin: 16px auto;
}

/* Destaque do Baralho — primeiro container do painel. */
.mc-baralho-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #163d73 0%, #1a4a8a 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.mc-baralho-highlight-text { min-width: 0; }
.mc-baralho-highlight-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7a00;
}
.mc-baralho-highlight-title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.25;
  color: #ffffff;
}
.mc-baralho-highlight-btn { flex-shrink: 0; white-space: nowrap; }

/* Filtro de relatórios/mapas — campos na MESMA linha + selects estilizados */
.mc-search-form { margin-bottom: 1.5rem; }
.mc-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.mc-search-field { flex: 1 1 180px; min-width: 140px; }
.mc-search-field select {
  width: 100%;
  height: 44px;
  padding: 0 2.4rem 0 0.9rem;
  border: 1px solid rgba(21, 34, 56, 0.18);
  border-radius: 10px;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23163d73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mc-search-field select:hover { border-color: rgba(21, 34, 56, 0.32); }
.mc-search-field select:focus {
  outline: none;
  border-color: #163d73;
  box-shadow: 0 0 0 3px rgba(22, 61, 115, 0.12);
}
.mc-search-actions { flex: 0 0 auto; }
.mc-search-actions .mc-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 560px) {
  .mc-search-field { flex: 1 1 100%; }
  .mc-search-actions, .mc-search-actions .mc-btn { width: 100%; justify-content: center; }
}

.mc-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}

.mc-main {
  padding: 2.5rem 2rem;
  min-width: 0;
}

/* ── Sidebar ──────────────────────────────────────────────────── */

.mc-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.mc-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.mc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #163d73 0%, #1a4a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mc-sidebar-user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mc-sidebar-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-sidebar-email {
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mc-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.mc-nav-list li a:hover {
  background: rgba(22, 61, 115, 0.04);
  color: #163d73;
}

.mc-nav-list li.is-active a {
  background: rgba(22, 61, 115, 0.06);
  color: #163d73;
  border-left-color: #163d73;
  font-weight: 600;
}

.mc-nav-icon {
  font-size: 1rem;
  opacity: 0.7;
  width: 1.25rem;
  text-align: center;
}

.mc-sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

.mc-signout-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.6);
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}

.mc-signout-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: #1a1a1a;
}

/* ── Banner interesse de cadastro ─────────────────────────────── */

.mc-interest-banner {
  background: #fdf4ec;
  border: 1px solid #f5c99a;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.mc-interest-banner-text {
  flex: 1;
  margin: 0;
  color: #5a3a1a;
  line-height: 1.5;
}

.mc-interest-banner-link {
  color: #c2570a;
  font-weight: 600;
  text-decoration: underline;
}

.mc-interest-banner-close {
  flex-shrink: 0;
  color: #a06030;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.mc-interest-banner-close:hover {
  background: rgba(194, 87, 10, 0.1);
}

.mc-interest-banner--success {
  background: #edf7ed;
  border-color: #9ecf9e;
}
.mc-interest-banner--success .mc-interest-banner-text {
  color: #1e4620;
}
.mc-interest-banner--success .mc-interest-banner-close {
  color: #2e7031;
}

.mc-interest-banner--info {
  background: #eaf3fb;
  border-color: #90c4e4;
}
.mc-interest-banner--info .mc-interest-banner-text {
  color: #1a3a52;
}
.mc-interest-banner--info .mc-interest-banner-close {
  color: #1d5a84;
}

/* ── Banner past_due ──────────────────────────────────────────── */

.mc-past-due-banner {
  background: #fff3cd;
  border-bottom: 2px solid #f0b429;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #7a5c00;
}

.mc-past-due-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mc-past-due-banner p {
  margin: 0;
  flex: 1;
  color: #7a5c00;
}

.mc-banner-cta {
  font-weight: 600;
  color: #163d73;
  text-decoration: underline;
  white-space: nowrap;
}

.mc-past-due-actions {
  flex-shrink: 0;
}

/* ── Flash messages ───────────────────────────────────────────── */

.mc-flash {
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.mc-flash--notice {
  background: rgba(46, 139, 87, 0.1);
  color: #1a5c34;
  border: 1px solid rgba(46, 139, 87, 0.25);
}

.mc-flash--alert {
  background: rgba(220, 53, 69, 0.08);
  color: #8b1a24;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ── Page header ──────────────────────────────────────────────── */

.mc-page-header {
  margin-bottom: 2rem;
}

.mc-page-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #163d73;
  margin: 0 0 0.25rem;
  line-height: 1.1;
}

.mc-page-header p {
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Cards genéricos ──────────────────────────────────────────── */

.mc-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.mc-card--featured {
  border: 2px solid #163d73;
}

.mc-card--primary {
  border: 2px solid #ff7a00;
}

.mc-card-featured-badge {
  position: absolute;
  top: -1px;
  right: 1rem;
  background: #ff7a00;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 8px 8px;
}

.mc-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #163d73;
  margin: 0 0 0.25rem;
}

.mc-card-delete-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.mc-card-delete-btn:hover {
  background: #fff0f0;
  color: #cc2200;
}

.mc-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7a00;
  margin-bottom: 0.5rem;
}

.mc-card-body {
  font-size: 0.92rem;
  color: rgba(26, 26, 26, 0.7);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

/* ── Status badges ────────────────────────────────────────────── */

.mc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mc-status-badge.status-active {
  background: rgba(46, 139, 87, 0.12);
  color: #1a5c34;
}

.mc-status-badge.status-past-due {
  background: rgba(240, 180, 41, 0.15);
  color: #7a5c00;
}

.mc-status-badge.status-canceled {
  background: rgba(0, 0, 0, 0.07);
  color: rgba(26, 26, 26, 0.6);
}

.mc-status-badge.status-expired {
  background: rgba(220, 53, 69, 0.1);
  color: #8b1a24;
}

/* ── Buttons (MC-specific) ────────────────────────────────────── */

.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.mc-btn:hover {
  transform: translateY(-1px);
}

.mc-btn--primary {
  background: #163d73;
  color: #ffffff;
}

.mc-btn--primary:hover {
  background: #1a4a8a;
}

.mc-btn--outline {
  background: transparent;
  color: #163d73;
  border: 1px solid #163d73;
}

.mc-btn--outline:hover {
  background: rgba(22, 61, 115, 0.06);
}

.mc-btn--danger {
  background: transparent;
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.4);
}

.mc-btn--danger:hover {
  background: rgba(192, 57, 43, 0.06);
}

.mc-btn--orange {
  background: #ff7a00;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 122, 0, 0.3);
}

.mc-btn--orange:hover {
  background: #ff8a1a;
}

/* ── Grid de cards 2 colunas ──────────────────────────────────── */

.mc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ── Subscription card ────────────────────────────────────────── */

.mc-sub-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.mc-sub-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mc-sub-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #163d73;
  margin: 0 0 0.25rem;
}

.mc-sub-detail {
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.6);
  margin: 0.25rem 0;
}

.mc-sub-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Cancelamento — tela de motivo ───────────────────────────── */

.mc-cancel-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

.mc-reason-card {
  display: block;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  width: 100%;
}

.mc-reason-card:hover {
  border-color: #163d73;
  background: rgba(22, 61, 115, 0.03);
}

.mc-reason-card-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
}

.mc-reason-card-desc {
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.55);
  display: block;
  margin-top: 0.2rem;
}

/* ── Oferta de retenção ───────────────────────────────────────── */

.mc-retention-offer {
  background: linear-gradient(135deg, #163d73 0%, #1a4a8a 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
  margin: 2rem 0;
}

.mc-retention-offer h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: #ffffff;
}

.mc-retention-offer p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 480px;
}

.mc-retention-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ff7a00;
  line-height: 1;
  margin: 1rem 0;
}

.mc-retention-fine-print {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}

.mc-retention-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mc-decline-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ── Estatísticas de uso ──────────────────────────────────────── */

.mc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.mc-stat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.mc-stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #163d73;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.mc-stat-label {
  font-size: 0.82rem;
  color: rgba(26, 26, 26, 0.6);
  line-height: 1.4;
}

/* ── Tabela de histórico ──────────────────────────────────────── */

.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mc-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.07);
}

.mc-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: rgba(26, 26, 26, 0.85);
  vertical-align: middle;
}

.mc-table tr:last-child td {
  border-bottom: none;
}

.mc-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

/* ── Pagination ───────────────────────────────────────────────── */

.mc-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.mc-pagination a,
.mc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #163d73;
  transition: background 0.15s;
}

.mc-pagination span.current {
  background: #163d73;
  color: #ffffff;
  border-color: #163d73;
}

/* ── Empty state ──────────────────────────────────────────────── */

.mc-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: rgba(26, 26, 26, 0.5);
}

.mc-empty-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.65);
  margin-bottom: 0.5rem;
}

/* ── Chart Reports Section ────────────────────────────────────── */

.mc-chart-reports-wrapper {
  padding: 2rem;
  background: #f8f9fa;
}

.mc-chart-reports {
  max-width: 1100px;
  margin: 0 auto;
}

.mc-chart-reports h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #1a1a1a;
}

.mc-chart-reports-subheading {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #1a1a1a;
}

.mc-chart-reports-price {
  font-weight: 700;
  color: #163d73;
  font-size: 1.05rem;
  margin: 0.5rem 0 0;
}

/* ── Jornada ──────────────────────────────────────────────────── */

.mc-jornada-section {
  margin-bottom: 2rem;
}

.mc-jornada-aprenda {
  margin: 1.5rem 0;
}

.mc-jornada-aprenda-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mc-jornada-aprenda-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.mc-jornada-step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #163d73;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.mc-jornada-step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #1a1a1a;
}

.mc-jornada-step-content p {
  margin: 0;
  color: rgba(26,26,26,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Próximo passo */
.mc-proximo-passo {
  background: #163d73;
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  margin: 1.5rem 0;
}

.mc-proximo-passo-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.mc-proximo-passo-copy {
  flex: 1;
  min-width: 260px;
}

.mc-proximo-passo-headline {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.4rem 0 0.8rem;
  color: #fff;
}

.mc-proximo-passo-body {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.mc-proximo-passo-action {
  flex-shrink: 0;
  text-align: center;
}

.mc-proximo-passo-social,
.mc-proximo-passo-micro {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin: 0.5rem 0 0;
}

/* Mapa de evolução */
.mc-mapa-evolucao {
  margin: 1.5rem 0;
}

.mc-mapa-evolucao-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mc-mapa-evolucao-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #1a1a1a;
}

.mc-mapa-evolucao-sub {
  margin: 0;
  color: rgba(26,26,26,0.6);
  font-size: 0.88rem;
}

.mc-mapa-evolucao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.mc-evolucao-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mc-evolucao-card--completed {
  border-color: #2e7d32;
  background: #f8fff8;
}

.mc-evolucao-card--recommended {
  border-color: #163d73;
  box-shadow: 0 0 0 2px rgba(22,61,115,0.15);
}

.mc-evolucao-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #163d73;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.mc-evolucao-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.mc-evolucao-card-description {
  font-size: 0.82rem;
  color: rgba(26,26,26,0.65);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.mc-evolucao-card-footer {
  margin-top: 0.5rem;
}

.mc-status-completed { color: #2e7d32; font-weight: 700; }
.mc-status-locked    { color: rgba(26,26,26,0.35); }
.mc-status-available { color: #163d73; font-weight: 700; }

.mc-evolucao-card-done {
  font-size: 0.82rem;
  color: #2e7d32;
  font-weight: 600;
}

.mc-evolucao-card-locked {
  font-size: 0.82rem;
  color: rgba(26,26,26,0.4);
}

/* ── Search form ──────────────────────────────────────────────── */

.mc-search-bar-form {
  margin-bottom: 1.5rem;
}

.mc-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(22, 61, 115, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mc-search-bar:focus-within {
  border-color: rgba(22, 61, 115, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 61, 115, 0.08);
}

.mc-search-bar-icon {
  color: #5b6774;
  flex-shrink: 0;
  margin-right: 10px;
}

.mc-search-bar-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1f2a36;
  background: transparent;
  min-width: 0;
}

.mc-search-bar-input::placeholder {
  color: #5b6774;
}

.mc-search-bar-divider {
  width: 1px;
  height: 22px;
  background: rgba(22, 61, 115, 0.15);
  margin: 0 14px;
  flex-shrink: 0;
}

.mc-search-bar-type {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #1f2a36;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mc-search-bar-clear {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #5b6774;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mc-search-bar-clear:hover {
  color: #1f2a36;
}

/* ── Responsive mobile ────────────────────────────────────────── */

@media (max-width: 768px) {
  .mc-container {
    grid-template-columns: 1fr;
  }

  .mc-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    overflow-x: auto;
  }

  .mc-sidebar-header {
    display: none;
  }

  .mc-nav-list {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 0;
  }

  .mc-nav-list li {
    flex: 1;
    min-width: fit-content;
  }

  .mc-nav-list li a {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    justify-content: center;
    text-align: center;
  }

  .mc-nav-list li.is-active a {
    border-left: none;
    border-bottom-color: #163d73;
  }

  .mc-sidebar-footer {
    display: none;
  }

  .mc-main {
    padding: 1.5rem 1rem;
  }

  .mc-cards-grid {
    grid-template-columns: 1fr;
  }

  .mc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mc-search-bar {
    height: auto;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px 14px;
    gap: 8px;
  }

  .mc-search-bar-divider {
    display: none;
  }

  .mc-search-bar-type {
    width: 100%;
    padding-left: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMUNIDADE — cp-* (community posts)
   ═══════════════════════════════════════════════════════════════ */

/* Badges de escopo */
.cp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cp-badge--gerador             { background: #ffebee; color: #c62828; }
.cp-badge--gerador_manifestante { background: #fbe9e7; color: #bf360c; }
.cp-badge--manifestador        { background: #fff3e0; color: #e65100; }
.cp-badge--projetor            { background: #e8f5e9; color: #2e7d32; }
.cp-badge--refletor            { background: #e3f2fd; color: #1565c0; }
.cp-badge--geral               { background: #f5f5f5; color: #424242; }

/* Feed — index */
.cp-feed { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }
.cp-feed-header { margin-bottom: 2rem; }
.cp-feed-title  { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.25rem; }
.cp-feed-subtitle { color: #666; margin: 0; }

.cp-feed-list { display: flex; flex-direction: column; gap: 1.25rem; }

.cp-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.15s;
}
.cp-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }

/* Cores por tipo nos cards do feed */
.cp-card--gerador             { background: #fff5f5; border-color: #c62828; }
.cp-card--gerador_manifestante { background: #fff4f1; border-color: #bf360c; }
.cp-card--projetor            { background: #f2fbf3; border-color: #2e7d32; }
.cp-card--manifestador        { background: #fff9f3; border-color: #e65100; }
.cp-card--refletor            { background: #f0f7ff; border-color: #1565c0; }
.cp-card--geral               { background: #fafafa; border-color: #9e9e9e; }
.cp-card--pinned              { border-width: 2px; }

.cp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.cp-card-date { font-size: 0.78rem; color: #888; }

.cp-card-title { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 600; }
.cp-card-link  { color: inherit; text-decoration: none; }
.cp-card-link:hover { color: #163d73; }

.cp-card-preview {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.cp-card-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #163d73;
  text-decoration: none;
}
.cp-card-read-more:hover { text-decoration: underline; }

.cp-feed-empty { color: #888; padding: 2rem 0; }

/* Post — show */
/* ── Reading layout ─────────────────────────────────────────────── */
.cp-reading-body {
  background: #fafaf8;
  min-height: 100vh;
}

.cp-reading-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cp-reading-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-reading-logo img { height: 40px; width: auto; }

.cp-reading-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cp-reading-back {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
}
.cp-reading-back:hover { color: #111; }

.cp-reading-account {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}
.cp-reading-account:hover { color: #111; }

.cp-reading-cta { font-size: 0.82rem; padding: 8px 16px; }

.cp-reading-flash { max-width: 720px; margin: 16px auto; padding: 0 24px; }

/* ── Reading container ──────────────────────────────────────────── */
.cp-reading-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* ── Post hero ──────────────────────────────────────────────────── */
.cp-post-hero {
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid #e5e7eb;
}

.cp-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.cp-post-date { font-size: 0.78rem; color: #aaa; }

.cp-post-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #111;
  margin: 0;
}

.cp-hero-share {
  flex-shrink: 0;
  padding-top: 8px;
}

.cp-share-standalone-btn--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
}

.cp-hero-share-line1 {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 500;
}

.cp-hero-share-line2 {
  font-size: 0.88rem;
  font-weight: 700;
}

.cp-post-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cp-post-type-hook {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #888;
  margin: 0;
}

.cp-post-type-hook strong { color: #444; font-weight: 600; }

.cp-post-type-hook-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7a00;
  flex-shrink: 0;
}
.cp-post-type-hook-dot--gerador              { background: #c62828; }
.cp-post-type-hook-dot--gerador_manifestante { background: #bf360c; }
.cp-post-type-hook-dot--manifestador         { background: #e65100; }
.cp-post-type-hook-dot--projetor             { background: #2e7d32; }
.cp-post-type-hook-dot--refletor             { background: #1565c0; }
.cp-post-type-hook-dot--geral                { background: #424242; }

[class^="cp-type-label--"] {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  vertical-align: middle;
}
.cp-type-label--gerador              { background: #ffebee; color: #c62828; }
.cp-type-label--gerador_manifestante { background: #fbe9e7; color: #bf360c; }
.cp-type-label--manifestador         { background: #fff3e0; color: #e65100; }
.cp-type-label--projetor             { background: #e8f5e9; color: #2e7d32; }
.cp-type-label--refletor             { background: #e3f2fd; color: #1565c0; }
.cp-type-label--geral                { background: #f5f5f5; color: #424242; }

.cp-layer--cross-teaser {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-style: italic;
}

.cp-paywall-hook {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.25rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cp-reading-time {
  font-size: 0.78rem;
  color: #bbb;
}

.cp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #25d366;
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid #25d366;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.cp-share-btn:hover {
  background: #25d366;
  color: #fff;
}

/* ── Content layers ─────────────────────────────────────────────── */
.cp-layer { margin-bottom: 2rem; }
.cp-layer p { line-height: 1.85; color: #333; margin: 0 0 0.9rem; font-size: 1.02rem; }
.cp-layer p:last-child { margin-bottom: 0; }

.cp-layer-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin: 0 0 14px;
}

/* Layer 2 — pull-quote */
.cp-layer--amplification {
  border-left: 3px solid #ff7a00;
  padding: 22px 28px;
  background: linear-gradient(135deg, #fffaf5 0%, #fff 100%);
  border-radius: 0 12px 12px 0;
  margin: 40px 0;
}
.cp-layer--amplification p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #1a1a1a;
  font-style: italic;
}

/* Layer 3 — personalization highlight */
.cp-layer--personalization {
  background: #f4f5ff;
  border: 2px solid #c5c8e8;
  border-radius: 16px;
  padding: 36px;
  margin: 48px 0;
}
.cp-layer--personalization p {
  font-style: normal;
  color: #222;
}

/* Cores por tipo — fundo claríssimo + borda na cor do tipo */
.cp-layer--personalization-gerador {
  background: #fff5f5;
  border-color: #c62828;
}
.cp-layer--personalization-gerador_manifestante {
  background: #fff4f1;
  border-color: #bf360c;
}
.cp-layer--personalization-projetor {
  background: #f2fbf3;
  border-color: #2e7d32;
}
.cp-layer--personalization-manifestador {
  background: #fff9f3;
  border-color: #e65100;
}
.cp-layer--personalization-refletor {
  background: #f0f7ff;
  border-color: #1565c0;
}
.cp-layer--personalization-geral {
  background: #fafafa;
  border-color: #9e9e9e;
}

/* Layer 4 — gap lead-in */
.cp-layer--gap { margin: 2.5rem 0; }
.cp-layer--gap p {
  font-size: 1.08rem;
  font-weight: 700;
  color: #111;
  line-height: 1.6;
}

/* Layer 5 — CTA editorial */
.cp-layer--cta {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  margin-top: 2rem;
}
.cp-layer--cta p { color: #555; margin-bottom: 1.2rem; }
.cp-cta-btn { margin-top: 0.25rem; }

/* ── Recommendation block (premium dark) ────────────────────────── */
.cp-recommendation {
  background: #1a1a2e;
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  margin-top: 56px;
  text-align: center;
}
.cp-rec-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9a3c;
  margin: 0 0 10px;
}
.cp-rec-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.cp-rec-body {
  font-size: 0.92rem;
  color: #bbb;
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.cp-rec-cta {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #fff;
}
.cp-rec-cta:hover {
  background: #e06900;
  border-color: #e06900;
}

/* ── Paywall (premium dark) ─────────────────────────────────────── */
.cp-paywall {
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
}
.cp-paywall-lock {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 1.25rem;
}
.cp-paywall-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff9a3c;
  margin: 0 0 14px;
}
.cp-paywall-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
}
.cp-paywall-body {
  color: #bbb;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cp-paywall-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.75rem;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.cp-paywall-list li {
  padding: 0;
  font-size: 0.88rem;
  color: #ccc;
}
.cp-paywall-list li::before { content: "✓  "; color: #4caf50; font-weight: 700; }
.cp-paywall-cta { display: flex; width: fit-content; margin: 0 auto 0.75rem; justify-content: center; }
.cp-paywall-dismiss {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  text-decoration: none;
  margin-top: 8px;
}
.cp-paywall-dismiss:hover { color: #aaa; text-decoration: underline; }

/* ── Signup CTA anônimo (premium) ───────────────────────────────── */
.cp-signup-cta {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 56px;
}
.cp-signup-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9a3c;
  margin: 0 0 12px;
}
.cp-signup-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
}
.cp-signup-body {
  color: #bbb;
  font-size: 0.95rem;
  margin: 0 0 2rem;
  line-height: 1.7;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.cp-signup-btn { margin-bottom: 1rem; }
.cp-signup-sub {
  font-size: 0.8rem;
  color: #666;
  margin: 12px 0 0;
}
.cp-signup-sub a { color: #888; }

@media (max-width: 600px) {
  .cp-post-title { font-size: 1.6rem; }
  .cp-layer--personalization { padding: 24px 20px; }
  .cp-paywall-lock { padding: 32px 24px; }
  .cp-signup-cta { padding: 32px 24px; }
  .cp-recommendation { padding: 28px 24px; }
  .cp-feed-title { font-size: 1.3rem; }
}

/* ── Reações ──────────────────────────────────────────────────────── */
.cp-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
  border-top: 1px solid var(--color-border, #e5e7eb);
  margin-top: 32px;
}

.cp-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted, #6b7280);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
}

.cp-reaction-btn:hover {
  border-color: var(--color-primary, #1a1a2e);
  color: var(--color-primary, #1a1a2e);
}

.cp-reaction-btn.is-active {
  border-color: var(--color-primary, #1a1a2e);
  background: var(--color-primary, #1a1a2e);
  color: #fff;
}

.cp-reaction-count {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

/* ── Landing pública /comunidade ─────────────────────────────────── */
.cp-public-landing {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.cp-public-hero {
  text-align: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  margin-bottom: 40px;
}

.cp-public-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 12px;
}

.cp-public-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cp-public-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted, #6b7280);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cp-public-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cp-public-feed {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cp-type-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cp-type-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cp-type-section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border, #e5e7eb);
}

.cp-public-cta-block {
  text-align: center;
  padding: 40px 32px;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
}

.cp-public-cta-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cp-public-cta-body {
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cp-public-cta-sub {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
}

/* ── Signup CTA (post público anônimo) ───────────────────────────── */
.cp-signup-cta {
  margin-top: 48px;
  padding: 36px 32px;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  text-align: center;
}

.cp-signup-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 8px;
}

.cp-signup-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cp-signup-body {
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cp-signup-sub {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
}

/* ── Share button ────────────────────────────────────────────────── */
.cp-reaction-btn--share {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #fff;
  font-weight: 700;
}
.cp-reaction-btn--share:hover {
  background: #e06900;
  border-color: #e06900;
  color: #fff;
}
.cp-share-wrapper { position: relative; }
.cp-share-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 180px;
  z-index: 200;
}
.cp-share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 7px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.cp-share-option:hover { background: #f5f5f5; }

/* ── Compartilhar standalone (centralizado abaixo do texto) ─────── */
.cp-share-standalone {
  text-align: center;
  margin: 2rem 0 0.5rem;
}
.cp-share-standalone .cp-share-wrapper { display: inline-block; }
.cp-share-standalone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cp-share-standalone-btn:hover {
  border-color: #ff7a00;
  color: #ff7a00;
}

.cp-share-standalone-btn--gerador:hover             { border-color: #c62828; color: #c62828; }
.cp-share-standalone-btn--gerador_manifestante:hover { border-color: #bf360c; color: #bf360c; }
.cp-share-standalone-btn--manifestador:hover        { border-color: #e65100; color: #e65100; }
.cp-share-standalone-btn--projetor:hover            { border-color: #2e7d32; color: #2e7d32; }
.cp-share-standalone-btn--refletor:hover            { border-color: #1565c0; color: #1565c0; }
.cp-share-dropdown--centered {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* ── Botão de comentários (5º botão de reação) ───────────────────── */
.cp-reaction-btn--comments { color: #444; }
.cp-reaction-btn--comments svg { display: block; flex-shrink: 0; }
.cp-reaction-btn--comments.is-active {
  background: #f0f7ff;
  border-color: #1565c0;
  color: #1565c0;
}

/* ── Seção de comentários ────────────────────────────────────────── */
.cp-comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.cp-comments-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px;
}
.cp-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.cp-comment-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.cp-comment-input:focus {
  outline: none;
  border-color: #ff7a00;
}
.cp-comment-submit { align-self: flex-end; }
.cp-comments-list { display: flex; flex-direction: column; gap: 20px; }
.cp-comment {
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 10px;
}
.cp-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cp-comment-author { font-size: 0.88rem; font-weight: 700; color: #111; }
.cp-comment-date   { font-size: 0.78rem; color: #aaa; }
.cp-comment-body   { font-size: 0.92rem; color: #333; line-height: 1.6; margin: 0 0 6px; }

/* Botão "Responder" */
.cp-reply-trigger {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  margin-top: 2px;
}
.cp-reply-trigger:hover { color: #ff7a00; }

/* Formulário inline de resposta */
.cp-reply-form { margin-top: 10px; }
.cp-reply-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-reply-cancel {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: #aaa;
  cursor: pointer;
  padding: 0;
}
.cp-reply-cancel:hover { color: #333; }

/* Replies aninhadas */
.cp-replies {
  margin-top: 10px;
  padding-left: 20px;
  border-left: 2px solid #efefef;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-comment--reply {
  background: #fff;
  border: 1px solid #efefef;
  padding: 12px 16px;
  border-radius: 8px;
}

/* ── Impact quote [[DESTAQUE:]] ──────────────────────────────────── */
.cp-impact-quote {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: #111;
  border-left: 4px solid #ff7a00;
  padding: 20px 24px;
  margin: 2rem 0;
  background: #fffaf5;
  border-radius: 0 12px 12px 0;
}

/* ── Confirmação de propriedade do mapa ──────────────────────────── */
.confirm-ownership-card {
  background: linear-gradient(135deg, #edf7ed 0%, #f0f9f0 100%);
  border: 1px solid #9ecf9e;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.confirm-ownership-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2e7d32;
  margin: 0;
}
.confirm-ownership-card-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1e4620;
  margin: 0;
}
.confirm-ownership-card-text strong {
  font-weight: 700;
}
.confirm-ownership-card-sub {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(30, 70, 32, 0.65);
  margin: 0;
}
.confirm-ownership-card-cta {
  align-self: flex-start;
  font-size: 0.88rem !important;
  padding: 10px 18px !important;
}

/* ── Banner visitante — sticky no rodapé ──────────────────────── */

.cp-visitor-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 31, 61, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.5rem calc(0.75rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.cp-visitor-bar-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cp-visitor-bar-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cp-visitor-bar-cta {
  flex-shrink: 0;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  background: #e87040;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.cp-visitor-bar-cta:hover {
  background: #d0612f;
  color: #fff;
}

@media (max-width: 600px) {
  .cp-visitor-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .cp-visitor-bar-cta {
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
  }
}

/* ── Hub /comunidade — grade de tipos ───────────────────────────── */
.cp-hub {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.cp-hub--public {
  padding: 0 1.5rem 1rem;
  max-width: 800px;
}

.cp-hub-header {
  margin-bottom: 2rem;
}

.cp-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cp-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-left-width: 4px;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.1s;
}

.cp-hub-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.cp-hub-card--own {
  border-width: 2px;
  border-left-width: 4px;
}

.cp-hub-card--gerador             { border-left-color: #c62828; background: #fff5f5; }
.cp-hub-card--gerador_manifestante { border-left-color: #bf360c; background: #fff4f1; }
.cp-hub-card--projetor             { border-left-color: #2e7d32; background: #f2fbf3; }
.cp-hub-card--manifestador         { border-left-color: #e65100; background: #fff9f3; }
.cp-hub-card--refletor             { border-left-color: #1565c0; background: #f0f7ff; }
.cp-hub-card--geral                { border-left-color: #9e9e9e; background: #fafafa; }

.cp-hub-card--own.cp-hub-card--gerador             { border-color: #c62828; }
.cp-hub-card--own.cp-hub-card--gerador_manifestante { border-color: #bf360c; }
.cp-hub-card--own.cp-hub-card--projetor             { border-color: #2e7d32; }
.cp-hub-card--own.cp-hub-card--manifestador         { border-color: #e65100; }
.cp-hub-card--own.cp-hub-card--refletor             { border-color: #1565c0; }
.cp-hub-card--own.cp-hub-card--geral                { border-color: #9e9e9e; }

.cp-hub-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cp-hub-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: #999;
}

.cp-hub-own-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #163d73;
  background: #e8eef8;
  border-radius: 4px;
  padding: 2px 7px;
}

.cp-hub-card-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.cp-hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.cp-hub-count {
  font-size: 0.78rem;
  color: #888;
}

.cp-hub-arrow {
  font-size: 1rem;
  color: #aaa;
  transition: transform 0.15s, color 0.15s;
}

.cp-hub-card:hover .cp-hub-arrow {
  color: #333;
  transform: translateX(3px);
}

/* Type feed — cabeçalho e voltar */
.cp-type-feed-nav {
  margin-bottom: 1.25rem;
}

.cp-type-feed-back {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}

.cp-type-feed-back:hover {
  color: #163d73;
  text-decoration: underline;
}

.cp-type-feed-back--hero {
  font-size: 0.82rem;
}

.cp-feed-header-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.cp-public-hero-badge {
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .cp-hub-grid {
    grid-template-columns: 1fr;
  }
}
}

/* ══════════════════════════════════════════════════════════════════
   MEUS CRÉDITOS — Peça 3
   ══════════════════════════════════════════════════════════════════ */

/* Shared form input used across minha_conta forms */
.mc-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1f2b3f;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.mc-input:focus {
  outline: none;
  border-color: #163d73;
  box-shadow: 0 0 0 3px rgba(22,61,115,0.08);
}

.mc-btn--ghost {
  background: transparent;
  color: rgba(26,26,26,0.5);
  border: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}
.mc-btn--ghost:hover {
  color: rgba(26,26,26,0.8);
  transform: none;
}

.mc-link {
  color: #163d73;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Grid de créditos — cartões full-width com formulário expansível */
.mc-creditos-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mc-credito-card {
  border-left: 3px solid #ff7a00;
}

.mc-credito-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a5c34;
  margin: 0.25rem 0 1rem;
}

.mc-credito-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Formulário inline expandível */
.mc-credito-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.mc-credito-form-header {
  margin-bottom: 1rem;
}
.mc-credito-form-header strong {
  display: block;
  font-size: 0.95rem;
  color: #1f2b3f;
  margin-bottom: 0.3rem;
}
.mc-credito-form-header p {
  font-size: 0.88rem;
  color: rgba(26,26,26,0.65);
  margin: 0;
  line-height: 1.5;
}

.mc-credito-inner-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form grid: 2 colunas, campos full expandem para a largura total */
.mc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.mc-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mc-form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(26,26,26,0.75);
}
.mc-form-field--full {
  grid-column: 1 / -1;
}
.mc-form-label-note {
  font-weight: 400;
  color: rgba(26,26,26,0.45);
  font-size: 0.78rem;
}
.mc-form-hint {
  font-size: 0.77rem;
  color: rgba(26,26,26,0.5);
  margin: 0;
  line-height: 1.4;
}

/* Place autocomplete results inside the form */
.mc-credito-inner-form [data-place-results] {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-height: 220px;
  overflow-y: auto;
  width: 100%;
}
.mc-form-field[data-place-autocomplete] {
  position: relative;
}

.mc-credito-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.mc-credito-gift-note {
  font-size: 0.82rem;
  color: rgba(26,26,26,0.55);
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* ── Histórico de créditos já utilizados ─────────────────────── */
.mc-creditos-historico {
  margin-top: 2rem;
}
.mc-creditos-historico h2 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(26,26,26,0.6);
  margin-bottom: 0.75rem;
}
.mc-creditos-historico-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.mc-credito-historico-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.mc-credito-historico-item:last-child {
  border-bottom: none;
}
.mc-credito-historico-kind {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2b3f;
  min-width: 180px;
  flex-shrink: 0;
}
.mc-credito-historico-detail {
  font-size: 0.82rem;
  color: rgba(26,26,26,0.6);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mc-form-grid {
    grid-template-columns: 1fr;
  }
  .mc-credito-historico-kind {
    min-width: unset;
  }
}
