/* ═══════════════════════════════════════════════════════════════
   MASTERCARD BLACK — MANIFESTO PAGE
   Efeito vaporize (partículas de texto) · 100vw × 100vh · sem scroll
   ═══════════════════════════════════════════════════════════════ */

html, body { overflow: hidden !important; }
@media (max-width: 860px) { html, body { overflow: hidden !important; } }

/* Canvas de fundo levemente reduzido — igual ao empresa/cartoes */
#bg-canvas { opacity: 0.13; }

/* ── Canvas de partículas de texto — camada 1, acima do fundo ── */
#text-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ════════════════════════════
   WRAPPER
   ════════════════════════════ */
.mf-wrap {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Wrapper é transparente para o canvas mostrar através */
  pointer-events: none;
}

/* ════════════════════════════
   HEADER — idêntico ao ct-header / em-header
   ════════════════════════════ */
.mf-header {
  flex-shrink: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.10);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.20) 100%
  );
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.mf-header .mc-logo {
  text-decoration: none;
  flex: 1;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}
.mf-header .mc-logo:hover { opacity: 1; }

.mf-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 20px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 100px;
  background: rgba(201, 169, 110, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.mf-badge span {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.mf-header-spacer { flex: 1; }

/* ════════════════════════════
   MAIN — estrutura centrada
   ════════════════════════════ */
.mf-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px 82px;
  position: relative;
  z-index: 10;
}

/* Espaço central: ocupa todo o espaço restante, canvas renderiza aqui */
.mf-stage { flex: 1; }

/* ════════════════════════════
   EYEBROW
   ════════════════════════════ */
.mf-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.mf-eyebrow-line {
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.35));
}
.mf-eyebrow-wrap .mf-eyebrow-line:last-child {
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.35), transparent);
}

.mf-eyebrow {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
  transition: opacity 0.45s ease;
}

/* ════════════════════════════
   CONTADOR DE FRASES — idêntico ao em-counter
   ════════════════════════════ */
.mf-counter {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mf-cnt-cur {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.05em;
  min-width: 22px;
  text-align: right;
}

.mf-cnt-tot {
  font-size: 10px;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.22);
  letter-spacing: 0.05em;
  min-width: 22px;
}

.mf-cnt-track {
  width: 110px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.mf-cnt-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 1px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.45);
}

/* ════════════════════════════
   BOTÃO RETORNAR — idêntico ao em-back-btn
   ════════════════════════════ */
.mf-back-btn {
  position: fixed;
  bottom: 28px;
  left: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(201, 169, 110, 0.18);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(240, 237, 232, 0.42);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: auto;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
}
.mf-back-btn:hover {
  color: var(--gold-light);
  border-color: rgba(201, 169, 110, 0.45);
  background: rgba(20, 18, 14, 0.75);
  transform: translateX(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.mf-back-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: inherit;
  transition: transform 0.25s ease;
}
.mf-back-btn:hover .mf-back-icon { transform: translateX(-2px); }

/* ════════════════════════════
   TIMER BAR — idêntico ao em-timer-bar
   ════════════════════════════ */
.mf-timer-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(201, 169, 110, 0.08);
  z-index: 60;
  overflow: hidden;
}
.mf-timer-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 110, 0.25) 0%,
    rgba(201, 169, 110, 0.55) 50%,
    rgba(232, 201, 138, 0.70) 100%
  );
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
  transition: none;
}

/* Linha dourada decorativa no rodapé */
.mf-wrap::after {
  content: '';
  position: fixed;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 110, 0.18) 30%,
    rgba(201, 169, 110, 0.25) 50%,
    rgba(201, 169, 110, 0.18) 70%,
    transparent
  );
  pointer-events: none;
  z-index: 30;
}
