/* Gerenciador de hospedagem SiteRápido — painel, área do cliente e fatura. Sem fontes externas (LGPD). */
:root {
    --marca: #FFC619;
    --fundo: #f5f5f4;
    --cartao: #ffffff;
    --texto: #1c1917;
    --suave: #6b6560;
    --linha: #e7e5e4;
    --ok: #15803d;
    --ok-fundo: #dcfce7;
    --alerta: #b45309;
    --alerta-fundo: #fef3c7;
    --erro: #b91c1c;
    --erro-fundo: #fee2e2;
    --neutro-fundo: #e7e5e4;
    --info-fundo: #e0f2fe;
    --raio: 10px;
    --escuro: #141210;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--fundo); color: var(--texto); }
a { color: #8a6500; }
h1 { font-size: 1.5rem; margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

/* Topo */
.topo { display: flex; align-items: center; gap: 14px; background: var(--escuro); color: #fff; padding: 0 18px; height: 56px; position: sticky; top: 0; z-index: 20; }
.topo a { color: #fff; text-decoration: none; }
.topo__marca { font-weight: 800; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.marca-ponto { width: 12px; height: 12px; border-radius: 3px; background: var(--marca); display: inline-block; }
.topo__usuario { margin-left: auto; font-size: .9rem; color: #d6d3d1; white-space: nowrap; }
.topo__usuario a { color: var(--marca); }
.topo__menu { display: none; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 4px; }
.topo__links { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; }
.topo__links a { padding: 7px 11px; border-radius: 7px; font-size: .92rem; color: #e7e5e4; }
.topo__links a.ativo, .topo__links a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Painel */
.painel__corpo { display: flex; min-height: calc(100vh - 56px); }
.lateral { width: 210px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--linha); padding: 14px 10px; }
.lateral a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--texto); text-decoration: none; font-size: .94rem; margin-bottom: 2px; }
.lateral a:hover { background: var(--fundo); }
.lateral a.ativo { background: var(--escuro); color: #fff; font-weight: 600; }
.contador { background: var(--marca); color: #111; border-radius: 99px; font-size: .75rem; font-weight: 700; padding: 0 7px; }
.conteudo { flex: 1; min-width: 0; padding: 26px 28px 60px; max-width: 1200px; }
@media (max-width: 860px) {
    .topo__menu { display: block; }
    .lateral { position: fixed; top: 56px; bottom: 0; left: 0; z-index: 15; transform: translateX(-100%); transition: transform .2s; }
    body.menu-aberto .lateral { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.15); }
    .conteudo { padding: 20px 16px 50px; }
    .topo__usuario { display: none; }
}

/* Área do cliente */
.area__conteudo { max-width: 980px; margin: 0 auto; padding: 28px 16px 60px; }
.rodape { text-align: center; color: var(--suave); font-size: .85rem; padding: 20px 16px 40px; }
.rodape a { color: var(--suave); }

/* Blocos */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; margin-bottom: 18px; }
.cartao--estreito { max-width: 440px; margin: 40px auto; }
.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 18px; }
.grade-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .grade-2 { grid-template-columns: minmax(0, 1fr); } }
.numero { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px 18px; }
.numero span { display: block; color: var(--suave); font-size: .85rem; }
.numero strong { display: block; font-size: 1.55rem; margin-top: 2px; letter-spacing: -0.02em; }
.numero--destaque { border-color: var(--marca); box-shadow: inset 4px 0 0 var(--marca); }
.cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cabecalho h1, .cabecalho h2 { margin: 0; }
.suave { color: var(--suave); }
.pequeno { font-size: .86rem; }
.lista-dados { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.lista-dados dt { color: var(--suave); }
.lista-dados dd { margin: 0; overflow-wrap: anywhere; }

/* Tabelas */
.tabela-rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linha); vertical-align: top; font-size: .93rem; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--suave); font-weight: 600; background: #fafaf9; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.cartao > .tabela-rolagem { margin: -20px; }
.cartao > .tabela-rolagem:not(:first-child) { margin-top: 0; border-top: 1px solid var(--linha); }
.cartao > .tabela-rolagem:not(:last-child) { margin-bottom: 0; }
.cartao > .tabela-rolagem table { border-radius: var(--raio); }
.vazio { padding: 26px; text-align: center; color: var(--suave); }

/* Selos */
.selo { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.selo--ok { background: var(--ok-fundo); color: var(--ok); }
.selo--alerta { background: var(--alerta-fundo); color: var(--alerta); }
.selo--erro { background: var(--erro-fundo); color: var(--erro); }
.selo--neutro { background: var(--neutro-fundo); color: #44403c; }
.selo--apagado { background: #f5f5f4; color: #a8a29e; }
.selo--info { background: var(--info-fundo); color: #075985; }

/* Avisos */
.aviso { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.aviso--ok { background: var(--ok-fundo); color: #14532d; border-color: #bbf7d0; }
.aviso--erro { background: var(--erro-fundo); color: #7f1d1d; border-color: #fecaca; }
.aviso--info { background: var(--info-fundo); color: #0c4a6e; border-color: #bae6fd; }
.aviso--alerta { background: var(--alerta-fundo); color: #78350f; border-color: #fde68a; }

/* Formulários */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.campo { margin-bottom: 14px; }
.campo small { display: block; color: var(--suave); font-weight: 400; margin-top: 4px; font-size: .83rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d6d3d1; border-radius: 8px; font: inherit; background: #fff; color: var(--texto);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marca); outline-offset: 1px; border-color: #a8a29e; }
textarea { min-height: 120px; resize: vertical; }
.linha-campos { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.checar { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.checar input { margin-top: 4px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--marca); color: #111; white-space: nowrap; }
.botao:hover { filter: brightness(.96); }
.botao--sec { background: #fff; border-color: #d6d3d1; color: var(--texto); font-weight: 600; }
.botao--escuro { background: var(--escuro); color: #fff; }
.botao--perigo { background: #fff; border-color: #fca5a5; color: var(--erro); font-weight: 600; }
.botao--pequeno { padding: 6px 12px; font-size: .86rem; }
.botao--largo { width: 100%; }
.botao[disabled] { opacity: .5; cursor: not-allowed; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filtros input, .filtros select { width: auto; min-width: 160px; }
.filtros a { padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--linha); text-decoration: none; color: var(--texto); font-size: .9rem; }
.filtros a.ativo { background: var(--escuro); color: #fff; border-color: var(--escuro); }

/* Tickets */
.mensagens { display: flex; flex-direction: column; gap: 14px; }
.msg { border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; padding: 14px 16px; }
.msg__topo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--suave); margin-bottom: 8px; }
.msg__topo strong { color: var(--texto); }
.msg__corpo { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--cliente { border-left: 4px solid #a8a29e; }
.msg--equipe { border-left: 4px solid var(--marca); }
.msg--ia { border-left: 4px solid #0ea5e9; }
.msg--rascunho { background: #f0f9ff; border: 1px dashed #38bdf8; }
.msg__nota { margin-top: 10px; font-size: .84rem; color: #075985; background: var(--info-fundo); padding: 6px 10px; border-radius: 6px; }

/* Fatura */
.fatura { max-width: 620px; margin: 0 auto; }
.fatura__valor { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.pix { text-align: center; }
.pix img { width: 230px; height: 230px; image-rendering: pixelated; border: 1px solid var(--linha); border-radius: 8px; }
.pix textarea { min-height: 86px; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.abas { display: flex; gap: 6px; margin-bottom: 16px; }
.abas button { flex: 1; padding: 10px; border: 1px solid #d6d3d1; background: #fff; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.abas button.ativo { background: var(--escuro); color: #fff; border-color: var(--escuro); }
.oculto { display: none !important; }

/* Planos (página pública) */
.planos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plano { background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.plano h2 { font-size: 1.15rem; }
.plano__preco { font-size: 1.8rem; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.02em; }
.plano__preco small { font-size: .9rem; font-weight: 500; color: var(--suave); }
.plano .botao { margin-top: auto; }
.plano__desc { white-space: pre-line; color: var(--suave); font-size: .92rem; margin: 10px 0 18px; }
.hero { background: var(--escuro); color: #fff; border-radius: 16px; padding: 34px 26px; margin-bottom: 24px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--marca), transparent 70%); opacity: .35; }
.hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.hero p { color: #d6d3d1; max-width: 560px; margin: 0; }
@media (max-width: 520px) {
    .grade { grid-template-columns: 1fr 1fr; gap: 10px; }
    .numero { padding: 12px 14px; }
    .numero strong { font-size: 1.2rem; }
}

/* Central de ajuda (base de conhecimento) */
.kb-topo { background: var(--escuro); color: #fff; border-radius: 16px; padding: 30px 24px; margin-bottom: 22px; text-align: center; }
.kb-topo h1 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.kb-topo p { color: #d6d3d1; margin: 0 auto 18px; max-width: 560px; }
.kb-busca { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.kb-busca input { flex: 1; }
.kb-categorias { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
.kb-categoria { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px 18px; text-decoration: none; color: var(--texto); }
.kb-categoria:hover { border-color: var(--marca); box-shadow: inset 4px 0 0 var(--marca); }
.kb-categoria span { color: var(--suave); font-size: .9rem; }
.kb-categoria small { color: var(--suave); margin-top: 4px; }
.kb-item { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.kb-item:last-child { border-bottom: 0; }
.kb-artigo h1 { font-size: 1.5rem; }
.kb-artigo h2 { font-size: 1.08rem; margin: 22px 0 8px; }
.kb-artigo ol, .kb-artigo ul { padding-left: 22px; margin: 0 0 12px; }
.kb-artigo li { margin-bottom: 6px; line-height: 1.55; }
.kb-artigo code { background: #f4f4f5; padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.kb-dica { background: var(--alerta-fundo); border-left: 4px solid var(--marca); padding: 10px 14px; border-radius: 6px; }
.kb-dns { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.kb-dns li { background: #f4f4f5; border-radius: 6px; padding: 8px 12px; }
.kb-dns span { color: var(--suave); font-size: .85rem; margin-right: 6px; }
.kb-util { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--linha); }
.kb-util form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kb-sugestoes { background: var(--info-fundo); border: 1px solid #bae6fd; border-radius: 8px; padding: 12px 14px; margin: -4px 0 14px; }
.kb-sugestoes ul { margin: 6px 0; padding-left: 18px; }
.kb-sugestoes li { margin: 4px 0; }
@media (max-width: 640px) { .kb-busca { flex-direction: column; } }

/* Editor das mensagens de ticket (assets/js/editor.js) e mensagens formatadas */
.editor { border: 1px solid #d6d3d1; border-radius: var(--raio); background: #fff; }
.editor:focus-within { border-color: #a8a29e; box-shadow: 0 0 0 3px rgba(255, 198, 25, .35); }
.editor--erro { border-color: var(--erro); box-shadow: 0 0 0 3px var(--erro-fundo); }
.editor__barra { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--linha); background: #fafaf9; border-radius: var(--raio) var(--raio) 0 0; }
.editor__botao { min-width: 32px; height: 32px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; background: none; color: #44403c; font: inherit; font-size: .95rem; cursor: pointer; }
.editor__botao svg { width: 18px; height: 18px; fill: currentColor; }
.editor__botao:hover:not(:disabled) { background: #f0efed; }
.editor__botao[aria-pressed="true"] { background: #e7e5e4; border-color: #d6d3d1; color: #1c1917; }
.editor__botao:disabled { opacity: .35; cursor: default; }
.editor__botao--html { margin-left: auto; font-size: .78rem; font-weight: 700; letter-spacing: .03em; font-family: ui-monospace, Consolas, monospace; }
.editor__sep { width: 1px; height: 20px; background: var(--linha); margin: 0 4px; }
.editor__area { padding: 12px 14px; outline: none; line-height: 1.55; overflow-wrap: anywhere; max-height: 60vh; overflow-y: auto; }
.editor__area--vazia::before { content: attr(data-placeholder); color: #a8a29e; pointer-events: none; position: absolute; }
.editor .editor__fonte { display: none; width: 100%; border: 0; border-radius: 0 0 var(--raio) var(--raio); font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: 12px 14px; resize: vertical; outline: none; }
.editor--html .editor__area { display: none; }
.editor--html .editor__fonte { display: block; }
.editor__area > :first-child, .msg__corpo--html > :first-child { margin-top: 0; }
.editor__area > :last-child, .msg__corpo--html > :last-child { margin-bottom: 0; }
.editor__area p, .msg__corpo--html p { margin: 0 0 .7em; }
.editor__area h3, .msg__corpo--html h3 { font-size: 1.1rem; margin: .9em 0 .4em; }
.editor__area h4, .msg__corpo--html h4 { font-size: 1rem; margin: .8em 0 .3em; }
.editor__area ul, .editor__area ol, .msg__corpo--html ul, .msg__corpo--html ol { margin: 0 0 .7em; padding-left: 1.4em; }
.editor__area blockquote, .msg__corpo--html blockquote { margin: 0 0 .7em; padding: 4px 0 4px 12px; border-left: 3px solid #d6d3d1; color: #57534e; }
.editor__area pre, .msg__corpo--html pre { margin: 0 0 .7em; padding: 10px 12px; background: #f5f5f4; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; white-space: pre-wrap; }
.editor__area code, .msg__corpo--html code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: #f5f5f4; padding: 1px 4px; border-radius: 4px; }
.editor__area a, .msg__corpo--html a { color: #1d5fae; }
.msg__corpo.msg__corpo--html { white-space: normal; }

/* Barra de progresso (e-mails em massa) e lista de escolha com rolagem */
.progresso { height: 8px; background: #e7e5e4; border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.progresso span { display: block; height: 100%; background: #2a78d6; border-radius: 99px; transition: width .4s; }
.progresso--grande { height: 14px; }
.lista-escolha { max-height: 300px; overflow-y: auto; border: 1px solid var(--linha); border-radius: 8px; padding: 6px 10px; }
.lista-escolha .checar { margin: 0; padding: 6px 0; border-top: 1px solid #f5f5f4; }
.lista-escolha .checar:first-child { border-top: 0; }
.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; }
/* Cupom e resumo no pedido (contratar.php) */
.cupom-linha { display: flex; gap: 8px; }
.cupom-linha input { flex: 1; min-width: 0; letter-spacing: .04em; }
.cupom-aviso { margin: 8px 0 0; padding: 9px 12px; font-size: .92rem; }
.resumo-pedido { border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px 14px; margin: 0 0 18px; background: #fafaf9; }
.resumo-pedido > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.resumo-pedido__desconto { color: var(--ok); font-weight: 600; }
.resumo-pedido__total { border-top: 1px solid var(--linha); margin-top: 4px; padding-top: 8px !important; }
.resumo-pedido__total strong { font-size: 1.15rem; }
/* Itens do plano na página pública (uma linha da descrição por item; os 4 primeiros são os limites do plano) */
.plano__itens { list-style: none; margin: 14px 0 20px; padding: 0; font-size: .92rem; color: var(--suave); }
.plano__itens li { position: relative; padding: 4px 0 4px 24px; border-top: 1px solid #f5f5f4; }
.plano__itens li:first-child { border-top: 0; }
.plano__itens li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plano__itens li.destaque { color: var(--texto); font-weight: 600; }

/* Outros ciclos no card do plano (trimestral, semestral, anual) */
.plano__ciclos { list-style: none; margin: 8px 0 0; padding: 8px 10px; background: #fafaf9; border-radius: 10px; font-size: .88rem; }
.plano__ciclos li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--suave); }
.plano__ciclos li span:last-child { color: var(--texto); font-weight: 600; white-space: nowrap; }
.plano__eco { color: var(--ok); font-size: .8rem; margin-left: 4px; }
.resumo-pedido > div[hidden] { display: none; }
