/* =========================================================================
   [vasc_meeting_certificado] · #certificado
   Mesa escura; sobre ela, o certificado em papel creme com o nome ainda em
   branco. Ao lado, o acesso por e-mail + código. Escopado em #certificado.
   ========================================================================= */

#certificado {
  --vct-ink: #140d02;
  --vct-ink-2: #241805;
  --vct-text: #f6ead0;
  --vct-muted: rgba(246,234,208,.7);
  --vct-line: rgba(232,196,110,.22);
  --vct-gold: #e8c46e;
  --vct-gold-hi: #fbe7a8;
  --vct-paper: #fbf5e6;
  --vct-display: "Bricolage Grotesque", system-ui, sans-serif;
  --vct-body: "Manrope", system-ui, sans-serif;
  --vct-spring: cubic-bezier(.34,1.56,.64,1);

  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 11vh, 128px) 24px;
  color: var(--vct-text); font-family: var(--vct-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(232,196,110,.16), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(150,96,22,.22), transparent 70%),
    linear-gradient(180deg, #0d0802 0%, #1a1105 100%);
}
#certificado.has-modal { z-index: 100; } /* aviso aberto fica acima do menu fixo do topo */
#certificado *, #certificado *::before, #certificado *::after { box-sizing: border-box; }
#certificado h2, #certificado h3, #certificado p, #certificado ol, #certificado li, #certificado figure { margin: 0; padding: 0; list-style: none; text-transform: none; letter-spacing: normal; text-shadow: none; }
#certificado a { color: inherit; }
#certificado button { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; }
#certificado svg { display: block; }

#certificado .vct__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }

/* texto */
#certificado .vct__title { font-family: var(--vct-display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.025em; color: var(--vct-text); text-wrap: balance; }
#certificado .vct__lede { margin-top: 18px; max-width: 520px; font-size: 17px; color: var(--vct-muted); }
#certificado .vct__lede strong { color: var(--vct-gold-hi); font-weight: 700; }

#certificado .vct__steps { margin-top: 34px; display: grid; gap: 4px; counter-reset: vct; }
#certificado .vct__steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
#certificado .vct__steps li + li { border-top: 1px solid var(--vct-line); }
#certificado .vct__step-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--vct-gold); background: rgba(232,196,110,.08); box-shadow: inset 0 0 0 1.5px rgba(232,196,110,.35); }
#certificado .vct__step-ic svg { width: 21px; height: 21px; }
#certificado .vct__steps strong { display: block; font-size: 16.5px; font-weight: 700; color: var(--vct-text); }
#certificado .vct__steps p { margin-top: 2px; font-size: 15px; color: var(--vct-muted); }

/* mesa: certificado + acesso */
#certificado .vct__desk { position: relative; display: grid; gap: 0; }

#certificado .vct__paper { position: relative; z-index: 1; width: 100%; aspect-ratio: 2000 / 1415; transform: rotate(-2.2deg); transition: transform .6s var(--vct-spring); }
#certificado .vct__desk:hover .vct__paper { transform: rotate(-1deg) translateY(-4px); }
/* matriz oficial; nome e texto entram no espaço vazio entre "CERTIFICADO" e a assinatura */
#certificado .vct__paper-in {
  position: absolute; inset: 0; border-radius: 4px; color: #2b3550;
  background: #dfe5ee center / 100% 100% no-repeat;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  container-type: inline-size;
}
#certificado .vct__paper-name { position: absolute; left: 22%; right: 22%; top: 40.5%; height: 5.5cqw; }
#certificado .vct__paper-name i { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: rgba(43,53,80,.45); }
#certificado .vct__paper-name i::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 1.5px; height: 4cqw; background: #1f3a7a; animation: vct-caret 1.1s steps(1) infinite; }
@keyframes vct-caret { 50% { opacity: 0; } }
#certificado .vct__paper-body { position: absolute; left: 10%; right: 10%; top: 50%; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 1.5cqw; line-height: 1.75; color: #2b3550; }
#certificado .vct__paper-body b { color: #1c2440; font-weight: 700; }

#certificado .vct__access {
  position: relative; z-index: 2; margin: -2.5% 4% 0 10%;
  padding: 22px 22px 18px; border-radius: 18px;
  background: rgba(20,13,2,.92); backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(232,196,110,.28);
}
#certificado .vct__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--vct-ink); background: linear-gradient(135deg, #fbe7a8, #d9ac52); }
#certificado .vct__badge svg { width: 16px; height: 16px; }
#certificado .vct__form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
#certificado .vct__field { display: grid; gap: 6px; }
#certificado .vct__field span { font-size: 13px; font-weight: 700; color: var(--vct-muted); }
#certificado .vct__field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(232,196,110,.3) !important;
  background: rgba(255,248,230,.06) !important; color: var(--vct-text) !important; font: 600 16px/1 var(--vct-body); box-shadow: none !important; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
#certificado .vct__field input::placeholder { color: rgba(246,234,208,.38); }
#certificado .vct__field input:focus { border-color: var(--vct-gold) !important; background: rgba(255,248,230,.1) !important; }
#certificado .vct__field input[name="code"] { text-transform: uppercase; letter-spacing: .08em; }
#certificado .vct__btn {
  grid-column: 1 / -1; height: 50px; padding: 0 22px; border: 0 !important; border-radius: 999px !important;
  font: 800 15px/1 var(--vct-body) !important; color: var(--vct-ink) !important;
  background: linear-gradient(135deg, #fbe7a8, #e8c46e 45%, #c9973a) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .3s var(--vct-spring), box-shadow .2s ease;
}
#certificado .vct__btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(0,0,0,.5), 0 0 22px rgba(232,196,110,.25); }
#certificado .vct__btn[disabled] { opacity: .6; cursor: progress; transform: none; }
#certificado .vct__status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: rgba(232,196,110,.1); box-shadow: inset 3px 0 0 var(--vct-gold); }
#certificado .vct__status strong { display: block; color: var(--vct-gold-hi); }
#certificado .vct__status.is-error { background: rgba(232,110,90,.12); box-shadow: inset 3px 0 0 #e8826e; }
#certificado .vct__status.is-error strong { color: #ffc9bc; }
#certificado .vct__note { margin-top: 12px; font-size: 13.5px; color: var(--vct-muted); }
#certificado .vct__note a { color: var(--vct-gold); font-weight: 700; text-underline-offset: 3px; }

/* resultado (área do participante vinda do plugin de inscrições) */
#certificado .vct__result { max-width: 1180px; margin: 48px auto 0; }

/* aviso de acesso programado */
#certificado .vct-modal { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; background: rgba(8,5,1,.66); backdrop-filter: blur(6px); }
#certificado .vct-modal[hidden] { display: none; }
#certificado .vct-modal__panel { position: relative; width: min(460px, 100%); padding: 30px 26px 24px; border-radius: 20px; text-align: center; color: #2a1d06; background: var(--vct-paper); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: vct-pop .45s var(--vct-spring) both; }
@keyframes vct-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
#certificado .vct-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(42,29,6,.08); color: #2a1d06; font-size: 22px; line-height: 1; }
#certificado .vct-modal__ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; color: #fff6dc; background: radial-gradient(circle at 35% 30%, #f3d27e, #b8862c 70%); }
#certificado .vct-modal__ic svg { width: 26px; height: 26px; }
#certificado .vct-modal__panel h3 { font-family: var(--vct-display); font-size: 24px; font-weight: 800; line-height: 1.15; color: #1a1206; }
#certificado .vct-modal__panel p { margin-top: 10px; font-size: 15.5px; color: #4a3612; }
#certificado .vct-modal__muted { font-size: 14px !important; color: #7a6230 !important; }
#certificado .vct-modal__actions { display: grid; gap: 10px; margin-top: 20px; }
#certificado .vct-modal__actions .vct__btn { width: 100%; }
#certificado .vct-modal__wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: #1a1206; box-shadow: inset 0 0 0 1.5px rgba(42,29,6,.3); transition: transform .3s var(--vct-spring); }
#certificado .vct-modal__wa:hover { transform: translateY(-3px); }
#certificado .vct-modal__wa svg { width: 18px; height: 18px; }
#certificado a:focus-visible, #certificado button:focus-visible { outline: 2px solid var(--vct-gold-hi); outline-offset: 3px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  #certificado .vct__inner { grid-template-columns: minmax(0, 1fr); }
  #certificado .vct__desk { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  #certificado { padding: 72px 16px; }
  #certificado .vct__access { margin: -6% 0 0; padding: 18px 16px 16px; }
  #certificado .vct__form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #certificado .vct__paper, #certificado .vct__btn, #certificado .vct-modal__panel { transition: none; animation: none; }
  #certificado .vct__paper-name i::after { animation: none; }
}

/* ---------- área do participante (certificado liberado) ---------- */
#certificado .vct-ready { margin: 0 24px; padding: 28px; border-radius: 22px; background: rgba(20,13,2,.85); box-shadow: inset 0 0 0 1px rgba(232,196,110,.3), 0 30px 60px rgba(0,0,0,.4); animation: vct-pop .5s var(--vct-spring) both; }
#certificado .vct-ready__hello { display: flex; gap: 18px; align-items: center; }
#certificado .vct-ready__photo { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--vct-gold-hi); }
#certificado .vct-ready__photo--empty { background: #fff; border-style: dashed; border-color: #e4cf98; }
#certificado .vct-ready__kicker { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--vct-gold); }
#certificado .vct-ready__title { margin: 4px 0 0; font-family: var(--vct-display); font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; }
#certificado .vct-ready__text { margin: 6px 0 0; color: var(--vct-muted); max-width: 640px; }
#certificado .vct-ready__text b { color: var(--vct-gold-hi); }
#certificado .vct-ready__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; color: var(--vct-muted); }
#certificado .vct-ready__meta b { color: var(--vct-text); }
#certificado .vct-ready__paper { position: relative; margin: 22px auto 0; max-width: 820px; aspect-ratio: 2000 / 1415; border-radius: 6px; background: #dfe5ee center / 100% 100% no-repeat; box-shadow: 0 24px 50px rgba(0,0,0,.5); container-type: inline-size; color: #1c2440; }
#certificado .vct-ready__name { position: absolute; left: 10%; right: 10%; top: 40.5%; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 3.4cqw; line-height: 1.2; border-bottom: 1px solid rgba(28,36,64,.5); padding-bottom: .4cqw; margin: 0 auto; width: 60%; }
#certificado .vct-ready__body { position: absolute; left: 8%; right: 8%; top: 51%; text-align: center; font-family: Helvetica, Arial, sans-serif; font-size: 1.45cqw; line-height: 1.75; color: #29324f; }
#certificado .vct-ready__actions { margin: 22px 0 0; text-align: center; }
#certificado .vct-ready__dl { display: inline-flex !important; align-items: center; text-decoration: none; }
#certificado .vct-ready__note { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: var(--vct-muted); }
@media (max-width: 560px) { #certificado .vct-ready { margin: 0; padding: 20px 16px; } #certificado .vct-ready__hello { align-items: flex-start; } }
