/* As duas telas de mapa do site do Mapa de Networking: o mapa dos membros (/mapa/: a entrada por código e, depois, o
   mapa em tela cheia) e a demonstração da página de vendas (/demo/, com perfis fictícios, dentro de um quadro). O mapa
   em si é a tela do Mapa de Networking da HubClub IA (/tela/mapa-networking.css, tudo dentro de .hmn); aqui fica só a
   moldura. Mesmas cores e letras da página de vendas (pagina.css). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fontes/inter-var.woff2?v=1') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fontes/poppins-600.woff2?v=1') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fontes/poppins-700.woff2?v=1') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fontes/poppins-800.woff2?v=1') format('woff2'); }

:root {
  color-scheme: dark;
  --fundo: #02070b;
  --texto: #f2f7fa;
  --texto-2: #b6c5cf;
  --texto-3: #8497a4;
  --azul-claro: #76b7d5;
  --azul-vivo: #3aa0d8;
  --linha: rgba(255, 255, 255, .09);
  --linha-azul: rgba(118, 183, 213, .24);
  --tit: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --txt: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.app { margin: 0; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: var(--fundo); color: var(--texto);
  font: 400 15px/1.5 var(--txt); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────────── o topo do mapa dos membros ───────────── */
.app-topo { flex: none; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 18px; border-bottom: 1px solid var(--linha);
  background: rgba(2, 7, 11, .94); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marca img { width: 38px; height: 38px; display: block; }
.marca-texto { display: grid; line-height: 1.05; }
.marca-texto b { font: 800 1.02rem var(--tit); letter-spacing: -.02em; }
.marca-texto small { font: 600 .62rem var(--tit); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); }
.app-quem { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.app-email { font-size: .86rem; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-plano { flex: none; padding: 3px 9px; border-radius: 999px; font: 600 .7rem var(--tit); letter-spacing: .04em; color: #cfeeff;
  background: rgba(58, 160, 216, .16); border: 1px solid rgba(58, 160, 216, .36); }
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 13px;
  border: 1px solid transparent; font: 600 .95rem/1.1 var(--tit); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.bt-p { color: #fff; background: linear-gradient(135deg, #3789ad 0%, #2e7697 42%, #0c4a69 100%); text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
  box-shadow: 0 14px 34px -14px rgba(58, 160, 216, .9), inset 0 1px 0 rgba(255, 255, 255, .26); }
.bt-p:hover { transform: translateY(-1px); }
.bt-p[disabled] { opacity: .6; cursor: progress; transform: none; }
.bt-s { color: var(--texto); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
.bt-s:hover { background: rgba(118, 183, 213, .12); border-color: rgba(118, 183, 213, .5); }
.bt-m { min-height: 36px; padding: 0 14px; font-size: .84rem; border-radius: 10px; }
.elo { padding: 0; border: 0; background: none; color: var(--azul-claro); font: 500 .88rem var(--txt); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.elo[disabled] { color: var(--texto-3); text-decoration: none; cursor: default; }

/* ───────────── o corpo: o mapa ou o cartão de entrar ───────────── */
.app-corpo { position: relative; flex: 1; min-height: 0; display: flex; }
.app-mapa { flex: 1; min-width: 0; min-height: 0; height: 100%; }
/* (o fundo de quem ainda não entrou: a grade e a luz da página de vendas, sem mapa nenhum) */
.app-fundo { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(rgba(118, 183, 213, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 183, 213, .07) 1px, transparent 1px);
  background-size: 58px 58px; }
.app-fundo::after { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 160, 216, .26), rgba(58, 160, 216, 0) 64%); }
.cartao { position: relative; z-index: 1; width: min(440px, 100% - 32px); margin: auto; padding: 32px 30px 28px; border-radius: 22px;
  border: 1px solid var(--linha-azul); background: linear-gradient(180deg, rgba(16, 44, 60, .96), rgba(5, 15, 22, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.cartao-ic { width: 46px; height: 46px; padding: 12px; border-radius: 14px; color: #dff3ff; background: linear-gradient(135deg, #2e7697, #0b3f5a); }
.cartao h1 { margin: 18px 0 0; font: 700 1.45rem/1.2 var(--tit); letter-spacing: -.02em; }
.cartao p { margin: 10px 0 0; color: var(--texto-2); font-size: .95rem; }
.cartao form { display: grid; gap: 12px; margin-top: 22px; }
.cartao label { font: 600 .82rem var(--tit); color: var(--texto-2); }
.campo { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(2, 10, 16, .7);
  color: var(--texto); font: 500 1rem var(--txt); }
.campo:focus { outline: none; border-color: var(--azul-vivo); box-shadow: 0 0 0 3px rgba(58, 160, 216, .25); }
.campo-codigo { font: 700 1.5rem var(--tit); letter-spacing: .32em; text-align: center; }
.cartao .bt { width: 100%; }
.cartao-acoes { display: grid; gap: 10px; margin-top: 22px; }
.cartao-pe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.aviso { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .88rem; color: #dbeef9; background: rgba(58, 160, 216, .12);
  border: 1px solid rgba(58, 160, 216, .3); }
.aviso.erro { color: #f2f7fa; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.nota { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--linha); font-size: .82rem !important; color: var(--texto-3) !important; }
.nota a { color: var(--azul-claro); }
.app-carregando { position: relative; z-index: 1; margin: auto; color: var(--texto-3); font-size: .95rem; }

@media not all and (min-width: 601px) {
  .app-topo { height: 56px; padding: 0 12px; gap: 10px; }
  .marca-texto small { display: none; }
  .app-email { display: none; }
  .cartao { padding: 26px 20px 22px; }
}
