/* MobiHub · tema das telas do sistema (assinatura, configuração inicial e as
   próximas). Mesma identidade do site e do login: preto, roxo sólido, Plus
   Jakarta Sans. Sem brilho, degradê, vidro fosco, emoji ou quadradinho com
   ícone: o capricho vem da tipografia, do alinhamento, dos estados e do
   movimento com propósito. Cada tela carrega este arquivo antes do próprio. */

:root {
  color-scheme: dark;
  --fundo:       #0B0A11;
  --fundo-2:     #14121D;
  --fundo-3:     #1B1927;
  --campo:       #07060B;
  --tinta:       #F6F5FB;
  --tinta-2:     #B5B1C6;
  --tinta-3:     #8D88A3;
  --linha:       rgba(255, 255, 255, .08);
  --linha-2:     rgba(255, 255, 255, .15);
  --roxo:        #5C30CF;
  --roxo-hover:  #4B25B3;
  --roxo-claro:  #9D82FF;
  --roxo-fundo:  rgba(92, 48, 207, .14);
  --roxo-borda:  rgba(157, 130, 255, .38);
  --ok:          #7CE3A1;
  --alerta:      #FFB35C;
  --perigo:      #FF8A80;  /* suspensão, cancelamento e cartão recusado */
  --perigo-cheio: #C4473E; /* botão de confirmar ação que não volta atrás */
  /* Tons de apoio. O tema claro e a cor própria da loja trocam estes valores. */
  --linha-3:     rgba(255, 255, 255, .26);   /* borda ao passar o mouse */
  --sutil:       rgba(255, 255, 255, .06);   /* fundo de selo neutro */
  --hover-linha: rgba(255, 255, 255, .03);   /* linha de lista com o mouse em cima */
  --roxo-leve:   rgba(92, 48, 207, .08);     /* opção marcada */
  --foco:        rgba(157, 130, 255, .16);   /* anel do campo em foco */
  --realce:      rgba(92, 48, 207, .22);     /* linha nova, por um instante */
  --sobre-acento: #FFFFFF;                   /* texto em cima da cor principal */
  --sobre-acento-fraco: rgba(255, 255, 255, .3);
  --ok-fundo:     rgba(124, 227, 161, .1);
  --alerta-fundo: rgba(255, 179, 92, .12);
  --alerta-borda: rgba(255, 179, 92, .5);
  --perigo-fundo: rgba(255, 138, 128, .12);
  --perigo-borda: rgba(255, 138, 128, .4);
  --traco-apagado: rgba(255, 255, 255, .13);
  --contorno-ponto: rgba(255, 255, 255, .28);
  --veu:          rgba(5, 4, 9, .72);
  --sombra-janela: 0 30px 60px rgba(0, 0, 0, .5);
  --sombra-aviso:  0 12px 30px rgba(0, 0, 0, .45);
  --sombra-previa: 0 18px 40px rgba(0, 0, 0, .35);   /* a prévia do e-mail, solta da página */
  --fonte:       'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-mono:  'IBM Plex Mono', ui-monospace, monospace;
  --raio:        14px;
  --raio-g:      20px;
  --lado:        clamp(16px, 4vw, 32px);
  --suave:       cubic-bezier(.2, .7, .2, 1);
}

/* Tema claro, que a loja escolhe nas boas-vindas. A cor principal própria da loja
   vem do servidor, calculada para o texto continuar legível (App\Support\Tema). */
:root[data-tema="claro"] {
  color-scheme: light;
  --fundo:       #F4F3F8;
  --fundo-2:     #FFFFFF;
  --fundo-3:     #ECEAF3;
  --campo:       #FFFFFF;
  --tinta:       #17151F;
  --tinta-2:     #474357;
  --tinta-3:     #686378;
  --linha:       rgba(23, 21, 31, .10);
  --linha-2:     rgba(23, 21, 31, .18);
  --linha-3:     rgba(23, 21, 31, .34);
  --sutil:       rgba(23, 21, 31, .06);
  --hover-linha: rgba(23, 21, 31, .03);
  --roxo-claro:  #5C30CF;
  --roxo-fundo:  rgba(92, 48, 207, .10);
  --roxo-leve:   rgba(92, 48, 207, .06);
  --roxo-borda:  rgba(92, 48, 207, .35);
  --foco:        rgba(92, 48, 207, .20);
  --realce:      rgba(92, 48, 207, .14);
  --ok:          #1B7F45;
  --ok-fundo:    rgba(27, 127, 69, .10);
  --alerta:      #A85300;
  --alerta-fundo: rgba(168, 83, 0, .10);
  --alerta-borda: rgba(168, 83, 0, .45);
  --perigo:      #C0392F;
  --perigo-fundo: rgba(192, 57, 47, .08);
  --perigo-borda: rgba(192, 57, 47, .40);
  --traco-apagado: rgba(23, 21, 31, .12);
  --contorno-ponto: rgba(23, 21, 31, .30);
  --veu:          rgba(23, 21, 31, .42);
  --sombra-janela: 0 24px 50px rgba(23, 21, 31, .18);
  --sombra-aviso:  0 12px 28px rgba(23, 21, 31, .14);
  --sombra-previa: 0 0 0 1px rgba(23, 21, 31, .08), 0 14px 32px rgba(23, 21, 31, .10);
}
/* o nome MobiHub é branco: no tema claro ele fica escuro */
:root[data-tema="claro"] .logo__palavra { filter: invert(1); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 400 16px/1.55 var(--fonte);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.65rem, 4.4vw, 2.15rem); }
h2 { font-size: 1.05rem; letter-spacing: -.01em; }
h1:focus, h2:focus { outline: none; }
p { margin: 0; }
button, select, input { font: inherit; }
a { color: var(--roxo-claro); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--roxo-claro); outline-offset: 3px; border-radius: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--fonte-mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.chamada { color: var(--tinta-2); }
.dica { font-size: .85rem; color: var(--tinta-3); }

/* ---- botões ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn .ico { width: 18px; height: 18px; }
.btn--principal { background: var(--roxo); color: var(--sobre-acento); }
.btn--principal:hover { background: var(--roxo-hover); }
.btn--vazado { background: transparent; color: var(--tinta); border-color: var(--linha-2); }
.btn--vazado:hover { border-color: var(--tinta-3); }
.btn--miudo { padding: .65rem 1rem; font-size: .88rem; }
.btn--grande { padding: 1.1rem 1.9rem; font-size: 1.02rem; }
.btn--texto { background: none; border: 0; color: var(--tinta-2); padding: .5rem .2rem; font-weight: 500; }
.btn--texto:hover { color: var(--tinta); }
.btn--largo { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.btn.is-salvando { pointer-events: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.girando {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--sobre-acento-fraco); border-top-color: var(--sobre-acento);
  animation: giro .7s linear infinite;
}

/* ---- logo e anel: os 20 traços do círculo da marca --------------------- */
.logo { --h: 28px; display: inline-flex; align-items: center; gap: calc(var(--h) * 9 / 87); color: inherit; text-decoration: none; }
.logo .anel { width: calc(var(--h) * 84 / 87); height: calc(var(--h) * 84 / 87); }
.logo__palavra { height: calc(var(--h) * 58 / 87); width: auto; transform: translateY(calc(var(--h) * -6.5 / 87)); }
.logo--grande { --h: 46px; }

.anel { display: block; overflow: visible; }
.anel__traco { fill: var(--cor); transition: fill .45s var(--suave); }
.anel.is-progresso .anel__traco { fill: var(--traco-apagado); }
.anel.is-progresso .anel__traco.is-aceso { fill: var(--roxo-claro); }
.anel.is-girando { animation: giro 14s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* faixa ondulada da marca, ao fundo das telas de abertura */
.onda { position: absolute; left: 0; top: 50%; width: 100%; height: 62%; transform: translateY(-50%); z-index: -1; }
.onda path { fill: none; stroke: var(--roxo); stroke-width: 70; stroke-linecap: round; opacity: .28; }

/* ---- marca da empresa: a logo enviada ou, sem ela, as iniciais ----------
   O mesmo quadro aparece na configuração, na prévia, nos e-mails e na entrada.
   Logo larga deixa o quadro mais largo, até 2,6 vezes a altura. */
.marca-empresa {
  --h: 40px; --proporcao: 1;
  position: relative; flex: none; overflow: hidden;
  height: var(--h); width: calc(var(--h) * var(--proporcao));
  display: grid; place-items: center; border-radius: calc(var(--h) / 4);
  font-weight: 700; font-size: calc(var(--h) * .36); letter-spacing: .02em;
  transition: width .35s var(--suave), background-color .25s ease, box-shadow .25s ease;
}
.marca-empresa.is-iniciais { background: var(--tinta); color: var(--fundo); }
.marca-empresa.is-logo { background: #F6F5FB; padding: calc(var(--h) * .12); }
.marca-empresa.is-logo.is-escuro { background: var(--campo); box-shadow: inset 0 0 0 1px var(--linha-2); }
.marca-empresa img { display: block; width: 100%; height: 100%; object-fit: contain; }
.marca-empresa img.entra { animation: logoEntra .5s var(--suave); }
@keyframes logoEntra { from { opacity: 0; transform: scale(.8); } }

/* ---- prévia de e-mail do sistema, com cara de e-mail de verdade ---------- */
.email-figura { margin: 0; display: grid; gap: .6rem; }
.email-figura__rotulo { display: flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500; color: var(--tinta-3); }
.email-figura__rotulo .ico { width: 16px; height: 16px; }
.email-previa {
  display: grid; gap: .55rem; justify-items: start; text-align: left;
  padding: 1.1rem 1.25rem 1.3rem; border-radius: 16px;
  background: #F6F5FB; color: #1B1927; box-shadow: var(--sombra-previa);
}
.email-previa__de { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .45rem; font-size: .82rem; color: #6B6680; }
.email-previa__de b { color: #1B1927; }
.email-previa__anel { width: 18px; height: 18px; }
.email-previa .marca-empresa { --h: 34px; margin-top: .2rem; }
.email-previa .marca-empresa.is-iniciais { background: #1B1927; color: #fff; }
.email-previa .marca-empresa.is-logo:not(.is-escuro) { background: #fff; box-shadow: inset 0 0 0 1px #E4E1EE; }
.email-previa .marca-empresa.is-escuro { background: #1B1927; box-shadow: none; }
.email-previa__assunto { font-weight: 700; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.email-previa__texto { font-size: .92rem; color: #4A4560; overflow-wrap: anywhere; }
.email-previa__nota { font-size: .8rem; color: #6B6680; }
.email-previa__botao {
  margin-top: .3rem; padding: .6rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--roxo); color: var(--sobre-acento); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none;
}
button.email-previa__botao, a.email-previa__botao { cursor: pointer; }
button.email-previa__botao:hover, a.email-previa__botao:hover { background: var(--roxo-hover); }

/* ---- barra do topo ----------------------------------------------------- */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--lado); border-bottom: 1px solid var(--linha);
}
.topo__direita { display: flex; align-items: center; gap: 1.1rem; }

/* ---- cartões, campos e validação --------------------------------------- */
.cartao {
  display: grid; gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border-radius: var(--raio-g); border: 1px solid var(--linha); background: var(--fundo-2);
}
.cartao__cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.cartao__rodape { display: flex; justify-content: flex-end; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.campo { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.campo--largo { grid-column: 1 / -1; }
.campo > span:first-child, .campo > label:first-child { font-size: .85rem; font-weight: 500; color: var(--tinta-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="time"], input[type="search"], select {
  width: 100%; padding: .8rem .95rem;
  font-size: 1rem; line-height: 1.3; color: var(--tinta);
  background-color: var(--campo); border: 1px solid var(--linha-2); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .3s ease;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: var(--campo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D88A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px;
}
input::placeholder { color: var(--tinta-3); }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input:hover, select:hover { border-color: var(--linha-3); }
input:focus, select:focus { outline: none; border-color: var(--roxo-claro); box-shadow: 0 0 0 3px var(--foco); }
input[aria-invalid="true"] { border-color: var(--alerta); }
input[readonly] { color: var(--tinta-2); }
.campo__nota { font-size: .84rem; color: var(--tinta-3); }
.campo__nota:empty { display: none; }
.campo__nota.is-erro { color: var(--alerta); }
.campo__nota.is-ok { color: var(--ok); }
.campo__nota button {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--roxo-claro); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.divisor { display: flex; align-items: center; gap: .8rem; font-size: .82rem; font-weight: 600; color: var(--tinta-3); margin-top: .4rem; }
.divisor::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.erro { color: var(--alerta); font-size: .9rem; }

.senha { position: relative; display: block; }
.senha input { padding-right: 3.1rem; }
.senha__olho {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 10px;
  display: grid; place-items: center; background: none; color: var(--tinta-3); cursor: pointer;
}
.senha__olho:hover { color: var(--tinta); }
.forca { display: flex; align-items: center; gap: .75rem; font-size: .84rem; color: var(--tinta-3); }
.forca__barras { display: inline-flex; gap: 4px; flex: none; }
.forca__barras i { width: 26px; height: 4px; border-radius: 4px; background: var(--linha-2); transition: background-color .25s ease; }
.forca[data-forca="1"] .forca__barras i:first-child { background: var(--alerta); }
.forca[data-forca="2"] .forca__barras i:nth-child(-n+2) { background: var(--roxo-claro); }
.forca[data-forca="3"] .forca__barras i { background: var(--ok); }
.forca[data-forca="1"] .forca__texto { color: var(--alerta); }
.forca[data-forca="3"] .forca__texto { color: var(--ok); }

/* caixa de marcar e opção única, desenhadas para combinar com o resto */
.caixa {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; border-radius: 6px;
  border: 1.5px solid var(--linha-2); background: var(--campo) center / 14px no-repeat;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.caixa:hover { border-color: var(--tinta-3); }
.caixa:checked {
  background-color: var(--roxo); border-color: var(--roxo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.caixa:focus-visible { outline: 2px solid var(--roxo-claro); outline-offset: 2px; }
:root[data-sobre-acento="escuro"] .caixa:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317151F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.caixa[aria-invalid="true"] { border-color: var(--alerta); }

/* linha com caixa de marcar e texto (trava do chassi, aceite dos termos) */
.marcar {
  display: flex; gap: .85rem; align-items: flex-start; cursor: pointer;
  padding: 1rem 1.2rem; border: 1px solid var(--linha); border-radius: var(--raio-g); background: var(--fundo-2);
}
.marcar .caixa { margin-top: .15rem; }
.marcar > span { display: grid; gap: .2rem; }
.marcar b { font-weight: 600; }
.marcar small { color: var(--tinta-2); font-size: .9rem; }

/* chave liga/desliga */
.chave { position: relative; display: inline-flex; flex: none; }
.chave input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.chave__trilho {
  position: relative; width: 44px; height: 26px; border-radius: 999px;
  background: var(--linha-2); transition: background-color .2s ease;
}
.chave__trilho::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .25s var(--suave);
}
.chave input:checked + .chave__trilho { background: var(--roxo); }
.chave input:checked + .chave__trilho::after { transform: translateX(18px); }
.chave input:focus-visible + .chave__trilho { outline: 2px solid var(--roxo-claro); outline-offset: 2px; }
.chave input:disabled { cursor: not-allowed; }
.chave input:disabled + .chave__trilho { opacity: .35; }

/* opção única */
.opcoes { border: 0; padding: 0; margin: 0; display: grid; gap: .55rem; min-width: 0; }
.opcoes legend { padding: 0; margin-bottom: .6rem; font-weight: 600; }
.opcao {
  display: flex; gap: .85rem; align-items: flex-start; cursor: pointer;
  padding: .9rem 1rem; border-radius: var(--raio); border: 1px solid var(--linha-2);
  transition: border-color .2s ease, background-color .2s ease;
}
.opcao:hover { border-color: var(--linha-3); }
.opcao input, .radio {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: .1rem 0 0; border-radius: 50%;
  border: 1.5px solid var(--linha-2); background: var(--campo); cursor: pointer;
  transition: box-shadow .2s var(--suave), border-color .2s ease;
}
.opcao input:checked, .radio:checked { border-color: var(--roxo-claro); box-shadow: inset 0 0 0 4px var(--campo), inset 0 0 0 10px var(--roxo-claro); }
.opcao input:focus-visible, .radio:focus-visible { outline: 2px solid var(--roxo-claro); outline-offset: 2px; }
.opcao:has(input:checked) { border-color: var(--roxo-borda); background: var(--roxo-leve); }
.opcao span { display: grid; gap: .1rem; }
.opcao small { color: var(--tinta-2); font-size: .88rem; }

.tag {
  display: inline-block; margin-left: .4rem; padding: .15rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; vertical-align: middle;
  background: var(--alerta-fundo); color: var(--alerta);
}

.botao-icone {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--tinta-3);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.botao-icone:hover { color: var(--tinta); border-color: var(--linha-2); }
.botao-icone:disabled { opacity: .3; cursor: not-allowed; }
.botao-icone .ico { width: 18px; height: 18px; }

/* lista com linhas finas dentro de um quadro só; o contorno de foco vai para dentro, senão o quadro o corta */
.tabela { border: 1px solid var(--linha); border-radius: var(--raio-g); background: var(--fundo-2); overflow: hidden; }
.tabela :focus-visible { outline-offset: -3px; }

/* observação */
.nota-caixa {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: var(--raio-g);
  border: 1px solid var(--linha); background: var(--fundo-2);
  color: var(--tinta-2); font-size: .92rem;
}
.nota-caixa > .ico { margin-top: .1rem; }
.nota-caixa b { display: block; color: var(--tinta); margin-bottom: .15rem; }
.nota-caixa .btn { margin-top: .8rem; }

/* movimento das linhas novas: entra e fica marcada por um instante */
.is-nova { animation: entraLinha .45s var(--suave), realce 1.8s ease; }
@keyframes entraLinha { from { opacity: 0; transform: translateY(-6px); } }
@keyframes realce { from { background-color: var(--realce); } to { background-color: transparent; } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } }

/* Ajuda do protótipo (dados de exemplo, contas de teste, simular pagamento):
   caixa tracejada que some quando o sistema for de verdade. */
.prototipo {
  padding: .65rem .9rem; border: 1px dashed var(--linha-2); border-radius: 12px;
  font-size: .84rem; color: var(--tinta-3);
}
.prototipo button, .prototipo a {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
  color: var(--roxo-claro); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ---- peças das telas de trabalho (painel da equipe, Minha assinatura e as
   próximas): seção sem caixa com linha fina em cima, tabela só com as linhas,
   selo de situação, pessoa, botão de perigo e janela de confirmação ---------- */
.avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--roxo); color: var(--sobre-acento); font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.avatar--claro { background: var(--tinta); color: var(--fundo); }
.link { color: var(--roxo-claro); font-size: .88rem; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tom-alerta { color: var(--alerta) !important; }
.tom-perigo { color: var(--perigo) !important; }
.tom-roxo { color: var(--roxo-claro) !important; }
.tom-ok { color: var(--ok) !important; }
.secao { display: grid; gap: 1rem; align-content: start; min-width: 0; padding-top: 1.1rem; border-top: 1px solid var(--linha-2); }
.secao__cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.secao__cabeca h2 { font-size: 1.05rem; }
.selo-tom { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.selo-tom--ok { color: var(--ok); background: var(--ok-fundo); }
.selo-tom--roxo { color: var(--roxo-claro); background: var(--roxo-fundo); }
.selo-tom--alerta { color: var(--alerta); background: var(--alerta-fundo); }
.selo-tom--perigo { color: var(--perigo); background: var(--perigo-fundo); }
.selo-tom--apagado { color: var(--tinta-3); background: var(--sutil); }
.selo-tom--neutro { color: var(--tinta-2); background: var(--sutil); }
/* a tabela passa um pouco das margens, para o fundo da linha em foco ter folga
   e o texto continuar alinhado com os títulos */
.dados {
  width: calc(100% + 1.2rem); margin-inline: -.6rem;
  border-collapse: separate; border-spacing: 0; font-size: .92rem;
}
.dados th {
  padding: .65rem .8rem; border-bottom: 1px solid var(--linha-2);
  text-align: left; font-size: .78rem; font-weight: 600; color: var(--tinta-3); white-space: nowrap;
}
.dados td { padding: .8rem .8rem; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.dados th:first-child, .dados td:first-child { padding-left: .6rem; }
.dados th:last-child, .dados td:last-child { padding-right: .6rem; }
.dados tbody tr:last-child td { border-bottom: 0; }
.dados .num { text-align: right; }
.dados th.num { text-align: right; }
.dados small { display: block; font-size: .8rem; color: var(--tinta-3); }
.dados td a { color: var(--tinta); font-weight: 500; text-decoration: none; }
.dados td a:hover { color: var(--roxo-claro); }
.dados td > b { display: block; font-weight: 600; }
.dados__acao { text-align: right; }
.dados tr.is-nova td { animation: realce 1.8s ease; }
.btn--perigo { background: none; color: var(--perigo); border-color: var(--perigo-borda); }
.btn--perigo:hover { border-color: var(--perigo); }
.btn--perigo-cheio { background: var(--perigo-cheio); color: #fff; }
.btn--perigo-cheio:hover { background: #AE3D35; }
textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: .7rem .85rem;
  font: inherit; font-size: .92rem; color: var(--tinta);
  background: var(--campo); border: 1px solid var(--linha-2); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea::placeholder { color: var(--tinta-3); }
textarea:focus { outline: none; border-color: var(--roxo-claro); box-shadow: 0 0 0 3px var(--foco); }
/* ---- janela de confirmação ---------------------------------------------------------- */
.modal { width: min(480px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; background: none; color: var(--tinta); }
.modal::backdrop { background: var(--veu); }
.modal__caixa {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.3rem;
  border-radius: var(--raio-g); border: 1px solid var(--linha-2); background: var(--fundo-2);
  box-shadow: var(--sombra-janela);
}
.modal[open] .modal__caixa { animation: modalEntra .3s var(--suave); }
@keyframes modalEntra { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__cabeca { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal__cabeca h2 { font-size: 1.15rem; line-height: 1.3; }
.modal__cabeca .botao-icone { margin: -.5rem -.5rem 0 0; }
.modal__corpo { display: grid; gap: .9rem; }
.modal__corpo .campo > span:first-child i { font-style: normal; font-weight: 400; color: var(--tinta-3); }
.modal__acoes { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.lista-simples { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--tinta-2); }
.marcar-linha { display: flex; align-items: center; gap: .7rem; font-size: .92rem; cursor: pointer; }
.campos-lado { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .8rem; }

/* ---- dentro do sistema da rede (Minha assinatura, cadastro de produto e as
   próximas): o topo com a empresa e quem está usando, a página e o rodapé ------ */
/* o topo fica preso: o que recebe o foco pelo teclado para abaixo dele, não por baixo */
html:has(.topo--sistema) { scroll-padding-top: 5.5rem; }
.topo--sistema { position: sticky; top: 0; z-index: 10; background: var(--fundo); }
.empresa { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--tinta); text-decoration: none; }
.empresa__nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empresa:hover .empresa__nome { color: var(--roxo-claro); }
.eu { display: flex; align-items: center; gap: .7rem; flex: none; }
.eu__texto { display: grid; text-align: right; }
.eu__texto b { font-size: .9rem; font-weight: 600; }
.eu__texto small { font-size: .78rem; color: var(--tinta-3); }

.faixa-prototipo { max-width: 1120px; margin: 1rem auto 0; width: calc(100% - 2 * var(--lado)); }
.faixa-prototipo b { color: var(--tinta); font-weight: 600; }

/* ---- página -------------------------------------------------------------------- */
.pagina {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 2rem; align-content: start;
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--lado) 4rem;
}
.pagina:focus { outline: none; }
.pagina__cabeca { display: grid; gap: .45rem; justify-items: start; }
.pagina__cabeca h1 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); letter-spacing: -.025em; }
.pagina__cabeca .chamada { max-width: 62ch; }
.voltar { display: inline-flex; align-items: center; gap: .4rem; color: var(--tinta-2); font-size: .9rem; text-decoration: none; }
.voltar:hover { color: var(--tinta); }
.voltar .ico { width: 16px; height: 16px; }
.grade { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2.4rem 3.2rem; align-items: start; }
.coluna { display: grid; gap: 2.4rem; min-width: 0; }
.rodape {
  max-width: 1120px; margin: 0 auto; padding: 1.6rem var(--lado) 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--linha);
}
.rodape .logo { --h: 22px; opacity: .8; }
.rodape__ajuda { display: inline-flex; align-items: center; gap: .5rem; color: var(--tinta-2); font-size: .9rem; text-decoration: none; }
.rodape__ajuda:hover { color: var(--tinta); }
.rodape__ajuda .ico { width: 18px; height: 18px; }

/* ---- pagamento: contador, campo do cartão com a bandeira, Pix, boleto e o
   status de "esperando o pagamento" (assinatura e Minha assinatura) ------------- */
.contador {
  flex: none; display: inline-flex; align-items: center; gap: .1rem;
  padding: 4px; border: 1px solid var(--linha-2); border-radius: 999px; background: var(--campo);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contador:focus-within { border-color: var(--roxo-claro); box-shadow: 0 0 0 3px var(--foco); }
.contador__botao {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--tinta);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, opacity .15s ease;
}
.contador__botao:hover { background: var(--fundo-3); }
.contador__botao[aria-disabled="true"] { opacity: .28; cursor: not-allowed; background: none; }
.contador__botao .ico { width: 18px; height: 18px; }
.contador__botao:focus-visible { outline-offset: 0; border-radius: 50%; }
@keyframes numeroSobe { from { opacity: 0; transform: translateY(40%); } }
@keyframes numeroDesce { from { opacity: 0; transform: translateY(-40%); } }
@keyframes aparece { from { opacity: 0; transform: scale(.6); } }
.com-bandeira { position: relative; display: block; }
.com-bandeira input { padding-right: 4.4rem; }
.bandeira {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: flex-end; height: 28px;
  color: var(--tinta-3); pointer-events: none;
}
.bandeira > * { animation: aparece .3s var(--suave); }
.bandeira svg { display: block; height: 22px; width: auto; }
.bandeira svg.visa { height: 12px; }
.bandeira svg.mastercard { height: 21px; }
.bandeira svg.amex { height: 24px; }
.bandeira svg.diners { height: 20px; }
.bandeira .ico { width: 20px; height: 20px; }
.bandeira.is-marca { color: var(--tinta); }
.bandeira__nome { font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.maiusculas { text-transform: uppercase; letter-spacing: .02em; }
.pix__qr { aspect-ratio: 1; padding: 10px; border-radius: 14px; background: #fff; }
.pix__qr svg { display: block; width: 100%; height: 100%; }
.pix__qr path { fill: #0B0A11; }
.copiar { display: flex; gap: .5rem; }
.copiar input { flex: 1; min-width: 0; padding-block: .62rem; font-size: .8rem; color: var(--tinta-2); text-overflow: ellipsis; }
.btn.is-copiado { border-color: var(--ok); color: var(--ok); }
.status { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--tinta-2); }
.status .girando { border-color: var(--roxo-borda); border-top-color: var(--roxo-claro); }
.status .ico { width: 18px; height: 18px; }
.status b { color: var(--tinta); font-weight: 600; }
.status.is-ok { color: var(--ok); }
.status.is-ok .ico { animation: aparece .3s var(--suave); }
.status.is-expirado { color: var(--alerta); }
.status .btn--texto { padding: 0; color: var(--roxo-claro); font-weight: 600; }
.boleto__barras { padding: 12px 14px; border-radius: 10px; background: #fff; }
.boleto__barras svg { display: block; width: 100%; height: 54px; }
.boleto__barras rect { fill: #0B0A11; }
.boleto__linha { font-size: .9rem; line-height: 1.5; word-spacing: .15em; overflow-wrap: anywhere; }
.boleto__dados { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0; }
.boleto__dados div { display: grid; gap: .05rem; }
.boleto__dados dt { font-size: .8rem; color: var(--tinta-3); }
.boleto__dados dd { margin: 0; font-weight: 600; }
.seguro { text-align: center; font-size: .82rem; color: var(--tinta-3); text-wrap: balance; }
.seguro .ico { display: inline-block; width: 13px; height: 13px; margin-right: .4rem; vertical-align: -2px; }
@media (max-width: 380px) {
  /* a bandeira sobe para a linha do rótulo: o número cabe inteiro, com letra de 16px (menor que isso, o iPhone dá zoom) */
  .com-bandeira input { padding-right: .95rem; }
  .bandeira { top: auto; bottom: calc(100% + .4rem); right: 0; transform: none; height: 22px; }
}

/* ---- aviso depois de salvar ou copiar ---------------------------------- */
.aviso {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 20;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 32px);
  padding: .8rem 1.1rem; border-radius: 14px;
  background: var(--fundo-3); border: 1px solid var(--linha-2);
  box-shadow: var(--sombra-aviso); font-size: .92rem;
  animation: avisoEntra .35s var(--suave);
}
.aviso .ico { color: var(--ok); }
@keyframes avisoEntra { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 980px) {
  .grade { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .eu__texto { display: none; }
}
@media (max-width: 640px) {
  .campos { grid-template-columns: minmax(0, 1fr); }
}

/* em tela bem estreita, botão grande quebra a linha em vez de passar da tela */
@media (max-width: 400px) {
  .btn--grande, .nota-caixa .btn { white-space: normal; text-align: center; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
