/* Portal de aprovação Valente — paleta Método Conecta */
:root {
  --preto: #000000;
  --tinta: #111111;
  --vermelho: #E83A22;      /* blocos grandes de marca */
  --vermelho-txt: #D2301A;  /* botões e textos (contraste AA) */
  --vermelho-esc: #A82612;
  --verde: #1F7A4D;
  --fundo: #F5F5F5;
  --cinza-1: #EFEFEF;
  --cinza-2: #E6E6E6;
  --cinza-3: #D9D9D9;
  --muted: #5C5C5C;
  --raio: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montserrat', system-ui, -apple-system, sans-serif; color: var(--tinta); background: var(--fundo); font-size: 16px; line-height: 1.45; }
body.dark { background: var(--preto); }
a { color: var(--vermelho-txt); }
a:hover { color: var(--vermelho-esc); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.light { font-weight: 300; font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-va { background: var(--vermelho); color: #fff; font-weight: 900; font-size: 34px; letter-spacing: -1px; line-height: 1; padding: 6px 12px 8px; }
.logo-mk { font-weight: 300; font-style: italic; font-size: 17px; }
.logo.sm { gap: 8px; }
.logo.sm .logo-va { font-size: 24px; padding: 4px 9px 6px; letter-spacing: -.5px; }
.logo.sm .logo-mk { font-size: 14px; }

/* Topo */
.topbar { background: var(--preto); color: #fff; }
.topbar-in { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sep { width: 1px; height: 24px; background: #444; }
.topbar-label { font-size: 14px; font-weight: 700; color: #D4D4D4; letter-spacing: .3px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--vermelho); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.who { font-size: 14px; font-weight: 600; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--vermelho-txt); color: #fff; }
.btn-primary:hover { background: var(--vermelho-esc); color: #fff; }
.btn-ok { background: var(--verde); color: #fff; }
.btn-ok:hover { background: #17603c; color: #fff; }
.btn-outline { background: #fff; color: var(--vermelho-txt); border-color: var(--vermelho-txt); }
.btn-ghost { background: #fff; color: var(--tinta); border-color: var(--cinza-3); }
.btn-ghost:hover { border-color: var(--tinta); color: var(--tinta); }
.btn-dark { background: var(--preto); color: #fff; border-color: #555; min-height: 44px; font-size: 14px; }
.btn-dark:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn svg { flex-shrink: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions > * { flex: 1 1 180px; }

/* Formulários */
label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=password], select, textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--cinza-3); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--tinta); background: #fff; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vermelho-txt); outline-offset: 1px; border-color: var(--vermelho-txt); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--preto); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 40px 32px; display: flex; flex-direction: column; gap: 22px; }
.login-card h1 { font-size: 26px; font-weight: 900; letter-spacing: -.5px; }
.erro { background: #FDECEA; color: #8A1F0F; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }

/* Conteúdo */
.main { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.hello h1 { font-size: 36px; font-weight: 900; letter-spacing: -.8px; }
.hello p { font-size: 17px; color: var(--muted); margin-top: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--cinza-3); background: #fff; color: var(--tinta); font-size: 15px; font-weight: 600; text-decoration: none; }
.tab:hover { color: var(--tinta); border-color: var(--tinta); }
.tab[aria-current=page] { background: var(--tinta); border-color: var(--tinta); color: #fff; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--cinza-2); border-radius: var(--raio); }
.post { overflow: hidden; display: flex; flex-direction: column; }
.thumb { aspect-ratio: 4 / 5; background: var(--cinza-1); position: relative; overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .chip { position: absolute; top: 12px; left: 12px; }
.thumb .vazio { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.chip { background: rgba(255,255,255,.94); color: var(--tinta); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.post-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-body h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.post-body .btn { margin-top: auto; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.b-pend { background: #FDF1D8; color: #7A4B00; }
.b-ok { background: #E8F4EC; color: #145236; }
.b-aj { background: #FBEDE7; color: #8A2A0B; }
.b-off { background: var(--cinza-1); color: var(--muted); }

.vazio-card { border: 1.5px dashed var(--cinza-3); border-radius: var(--raio); background: #fff; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vazio-card strong { font-size: 18px; }
.aviso { padding: 20px; display: flex; flex-direction: column; gap: 6px; border-color: #F0C9BE; background: #FFF8F6; }

/* Detalhe do post */
.detalhe { display: flex; flex-wrap: wrap; overflow: hidden; }
.detalhe-arte { flex: 1 1 380px; min-width: 0; background: #EDEDED; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.slides { width: 100%; max-width: 420px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.slides > * { flex: 0 0 100%; scroll-snap-align: center; border-radius: 12px; overflow: hidden; background: #fff; }
.slides img, .slides video { width: 100%; height: auto; }
.detalhe-info { flex: 1 1 380px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-size: 13px; font-weight: 800; color: var(--vermelho-txt); letter-spacing: .4px; }
.detalhe-info h1 { font-size: 24px; font-weight: 800; line-height: 1.25; margin-top: 6px; }
.label-up { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.legenda { background: var(--fundo); border-radius: 12px; padding: 16px; font-size: 15px; line-height: 1.6; white-space: pre-line; margin-top: 8px; }
.ok-box { background: #E8F4EC; color: #145236; border-radius: 12px; padding: 16px; font-weight: 600; }
.aj-box { background: #FBEDE7; color: #8A2A0B; border-radius: 12px; padding: 16px; line-height: 1.5; white-space: pre-line; }
.voltar { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--tinta); min-height: 44px; }

/* Estratégia */
.hero { background: var(--preto); color: #FAF7F1; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.hero .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .pill { background: rgba(250,247,241,.14); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.tag-red { align-self: flex-start; background: var(--vermelho); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: 1.2px; padding: 6px 10px; }
.hero p { font-size: 22px; font-weight: 700; line-height: 1.45; max-width: 860px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.sec { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.sec h2 { font-size: 18px; font-weight: 800; }
.quote { background: var(--fundo); border-radius: 12px; padding: 16px; line-height: 1.6; }
.persona { background: #FBEDE7; border-radius: 12px; padding: 16px; line-height: 1.5; }
.pilar { display: flex; flex-direction: column; gap: 6px; }
.pilar-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.pilar-top span:last-child { color: var(--vermelho-txt); font-weight: 800; }
.bar { height: 10px; background: var(--cinza-1); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--vermelho-txt); border-radius: 999px; }
.meses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mes { background: var(--fundo); border-radius: 12px; padding: 16px; }
.mes h3 { font-size: 14px; font-weight: 800; color: var(--vermelho-txt); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.mes ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.pend-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.pend-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--fundo); font-weight: 600; line-height: 1.45; }
.pend-list li.feito span { color: var(--muted); text-decoration: line-through; }
.sec-red { border: 1.5px solid var(--vermelho-txt); }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat span { font-size: 13px; font-weight: 700; color: var(--muted); }
.stat strong { font-size: 34px; font-weight: 900; }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl { min-width: 760px; }
.tbl th, .tbl td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--cinza-1); vertical-align: middle; }
.tbl thead th { background: #FAFAFA; font-size: 13px; color: var(--muted); border-bottom: 1.5px solid var(--cinza-2); }
.tbl .acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tbl form { margin: 0; }
.cli { display: flex; align-items: center; gap: 12px; }
.cli .avatar { background: var(--tinta); width: 40px; height: 40px; flex-shrink: 0; }
.cli small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.box-senha { padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1.5px solid var(--verde); }
.msg-pronta { background: var(--fundo); border-radius: 12px; padding: 16px; white-space: pre-line; line-height: 1.6; font-size: 15px; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.novo { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.novo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; margin-top: 12px; }
.novo-form .field { margin: 0; }

/* Aviso flutuante */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 50; max-width: calc(100% - 32px); transition: opacity .4s; }
.toast-erro { background: #8A1F0F; }
.toast.hide { opacity: 0; pointer-events: none; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .main { padding-top: 28px; }
  .hello h1 { font-size: 28px; }
  .hero { padding: 24px; }
  .hero p { font-size: 18px; }
  .detalhe-info { padding: 20px; }
  .detalhe-arte { padding: 16px; }
  .login-card { padding: 32px 22px; }
}
@media (max-width: 560px) {
  .topbar-in { padding-top: 12px; padding-bottom: 12px; }
  .topbar-label, .sep, .who { display: none; }
  .topbar-r .btn-dark { min-height: 40px; padding: 0 12px; }
}
