/* =========================================================
   Encontre Advogado — estilos
   Paleta: azul-marinho institucional + dourado + creme
   ========================================================= */
:root {
  --navy-950: #081428;
  --navy-900: #0f2344;
  --navy-800: #16305a;
  --navy-700: #1f3f72;
  --gold: #c9a24b;
  --gold-600: #b08a35;
  --gold-100: #f5ecd6;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --ink: #1b2333;
  --muted: #5c6678;
  --line: #e4ded1;
  --line-soft: #efebe2;
  --success: #1d7f55;
  --success-bg: #e6f4ec;
  --danger: #b4372b;
  --danger-bg: #fbeceb;
  --warn-bg: #fff6e0;
  --whats: #1fa855;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(8, 20, 40, .35);
  --shadow-sm: 0 4px 16px -6px rgba(8, 20, 40, .15);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); }
a:hover { color: var(--gold-600); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 820px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 8px 22px -10px rgba(201, 162, 75, .9); }
.btn-gold:hover { background: #d6b25f; color: var(--navy-950); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: #17924a; color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: #e9c3bf; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .5em .9em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { text-decoration: none; display: inline-flex; }
.logo-mark { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark svg { width: 38px; height: 38px; }
.logo-text { font-family: var(--serif); font-size: 1.25rem; color: var(--navy-900); letter-spacing: .2px; }
.logo-text strong { color: var(--gold-600); font-weight: 700; }
.logo-mark.is-light .logo-text { color: #fff; }
.logo-mark.is-light .logo-text strong { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--gold-600); }
.site-nav .nav-cta { border: 1.5px solid var(--navy-900); padding: .5em 1.1em; border-radius: 999px; color: var(--navy-900); }
.site-nav .nav-cta:hover { background: var(--navy-900); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy-900); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1.5px solid var(--navy-900); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201, 162, 75, .22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(31, 63, 114, .9), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  padding: 56px 0 72px;
  scroll-margin-top: 68px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 96px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } .hero { padding: 80px 0 96px; } }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.15rem; color: #d5dceb; max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: var(--gold); background: rgba(201, 162, 75, .12); border: 1px solid rgba(201, 162, 75, .35);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: #e7ecf5; font-weight: 500; }
.hero-points .icon { color: var(--gold); background: rgba(201, 162, 75, .15); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }

/* ---------- Formulário em etapas ---------- */
.form-card {
  background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow);
  padding: 24px 20px; border-top: 4px solid var(--gold);
}
@media (min-width: 600px) { .form-card { padding: 30px 30px 26px; } }
.lead-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-form.js .lf-step { display: none; }
.lead-form.js .lf-step.is-active { display: block; animation: lfIn .28s ease; }
.lead-form:not(.js) .lf-step + .lf-step { margin-top: 28px; }
.lead-form:not(.js) [data-next], .lead-form:not(.js) [data-back], .lead-form:not(.js) .lf-head { display: none; }
@keyframes lfIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.lf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lf-steplabel { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.lf-progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.lf-progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--gold-600), var(--gold)); border-radius: 99px; transition: width .35s ease; }
.lf-title { font-family: var(--serif); font-size: 1.45rem; color: var(--navy-900); font-weight: 700; padding: 0; margin-bottom: 4px; line-height: 1.25; }
.lf-optional { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.lf-sub { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.lf-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lf-area { position: relative; cursor: pointer; }
.lf-area input { position: absolute; opacity: 0; pointer-events: none; }
.lf-area-card {
  display: flex; align-items: center; gap: 10px; height: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px;
  background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.lf-area:hover .lf-area-card { border-color: var(--gold); }
.lf-area input:checked + .lf-area-card { border-color: var(--navy-900); background: #f3f6fb; box-shadow: inset 0 0 0 1px var(--navy-900); }
.lf-area input:focus-visible + .lf-area-card { outline: 3px solid rgba(201, 162, 75, .5); outline-offset: 2px; }
.lf-area-icon { width: 30px; height: 30px; flex: none; color: var(--navy-700); background: var(--gold-100); border-radius: 8px; padding: 5px; }
.lf-area-text { display: flex; flex-direction: column; min-width: 0; }
.lf-area-text strong { font-size: .92rem; line-height: 1.25; color: var(--navy-900); }
.lf-area-text small { font-size: .76rem; color: var(--muted); line-height: 1.3; display: none; }
@media (min-width: 520px) { .lf-area-text small { display: block; } }
.lf-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.lf-actions-end { justify-content: flex-end; }
.lf-actions .btn-lg { flex: 1; }
.lf-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.lf-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Campos ---------- */
.field { margin-bottom: 14px; flex: 1; min-width: 0; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.field-row { display: flex; gap: 12px; }
.field-uf { flex: 0 0 96px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75em .9em; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(31, 63, 114, .15); }
.is-invalid { border-color: var(--danger) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 4px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy-900); flex: none; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

.areas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .areas-grid { grid-template-columns: repeat(5, 1fr); } }
.area-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold); color: var(--ink); }
.area-card strong { color: var(--navy-900); font-size: 1rem; }
.area-card span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.area-icon { width: 40px; height: 40px; color: var(--gold-600); margin-bottom: 4px; }

.trust-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.trust-copy p { color: var(--muted); font-size: 1.05rem; }
.trust-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .trust-cards { grid-template-columns: 1fr 1fr; } }
.trust-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line-soft); }
.trust-card .icon { width: 28px; height: 28px; color: var(--gold-600); }
.trust-card strong { color: var(--navy-900); }
.trust-card p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 52px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #cdd6e6; margin: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: #b9c3d6; padding: 56px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-about { margin-top: 14px; max-width: 30em; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 6px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c3d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding-top: 20px; font-size: .8rem; color: #8592aa; }

/* ---------- Página de obrigado ---------- */
.thanks { padding: 56px 0 80px; background: var(--cream); }
.thanks-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); padding: 40px 22px; text-align: center; border-top: 4px solid var(--gold); }
@media (min-width: 640px) { .thanks-card { padding: 48px 56px; } }
.thanks-lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin: 0 auto 28px; }
.thanks-lead strong { color: var(--navy-900); }
.radar { position: relative; width: 120px; height: 120px; margin: 0 auto 24px; display: grid; place-items: center; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar-icon { width: 56px; height: 56px; color: var(--navy-900); background: var(--gold-100); border-radius: 50%; padding: 14px; position: relative; }
@keyframes radar { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.thanks-steps { list-style: none; padding: 0; margin: 0 auto 28px; text-align: left; max-width: 520px; display: grid; gap: 12px; }
.thanks-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); color: var(--muted); }
.thanks-steps li .icon { width: 26px; height: 26px; color: #b6bdc9; }
.thanks-steps li strong { display: block; color: var(--ink); }
.thanks-steps li span { font-size: .9rem; }
.thanks-steps li.is-done .icon { color: var(--success); }
.thanks-steps li.is-active { border-color: var(--gold); background: #fffaf0; }
.thanks-steps li.is-active .icon { color: var(--gold-600); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.thanks-tips { text-align: left; background: var(--cream); border-radius: var(--radius-sm); padding: 20px 22px; max-width: 520px; margin: 0 auto 28px; }
.thanks-tips h2 { font-size: 1.1rem; }
.thanks-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.thanks-tips li { display: flex; gap: 8px; }
.thanks-tips .icon { color: var(--gold-600); margin-top: 3px; }

/* ---------- Conteúdo / artigos ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #d5dceb; padding: 48px 0 44px; }
.page-hero h1 { color: #fff; max-width: 22em; }
.page-hero p { max-width: 40em; font-size: 1.05rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: #9fb0cc; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; margin-top: 16px; color: #9fb0cc; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 16px 72px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; } }
.article-sidebar .form-card { position: sticky; top: 88px; }
.prose { font-size: 1.07rem; line-height: 1.75; max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote, .callout { margin: 1.6em 0; padding: 18px 22px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout p:last-child { margin: 0; }
.inline-cta { margin: 2em 0; padding: 24px; border-radius: var(--radius); background: var(--navy-900); color: #d5dceb; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.inline-cta strong { color: #fff; font-family: var(--serif); font-size: 1.25rem; display: block; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }
.cards-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .15s, transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold); color: var(--ink); }
.post-card h2 { font-size: 1.25rem; margin: 10px 0; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .more { color: var(--navy-700); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--gold-600); background: var(--gold-100); padding: 4px 10px; border-radius: 99px; align-self: flex-start; }
.legal-page { padding: 48px 16px 72px; }

/* ---------- Alertas ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe3cf; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f0c9c5; }
.alert-info { background: #eef3fb; color: var(--navy-700); border-color: #d3dff1; }
.alert-warn { background: var(--warn-bg); color: #7a5a0c; border-color: #f0dca6; }

/* =========================================================
   Painéis (advogado / admin)
   ========================================================= */
.panel-body { background: #f4f2ec; min-height: 100vh; }
.panel-top { background: var(--navy-900); color: #fff; }
.panel-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.panel-top .logo-text { color: #fff; font-size: 1.1rem; }
.panel-top .logo-text strong { color: var(--gold); }
.panel-top .logo { align-items: center; }
.panel-badge { line-height: 1.4; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--gold); color: var(--navy-950); padding: 3px 8px; border-radius: 6px; font-weight: 700; margin-left: 8px; }
.panel-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.panel-nav a { color: #c9d3e6; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.panel-nav a:hover, .panel-nav a.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(201, 162, 75, .16); border: 1px solid rgba(201, 162, 75, .5); color: var(--gold); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.credit-pill:hover { color: #fff; }
.panel-main { padding: 28px 16px 64px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-title h1 { font-size: 1.7rem; margin: 0; }
.panel-title p { margin: 4px 0 0; color: var(--muted); }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.card h2 { font-size: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat strong { font-family: var(--serif); font-size: 1.9rem; color: var(--navy-900); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; flex: 0 1 200px; }
.filters select, .filters input { padding: .55em .8em; font-size: .92rem; }

.lead-list { display: grid; gap: 14px; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; scroll-margin-top: 20px; }
@media (min-width: 800px) { .lead-card { grid-template-columns: 1fr 260px; align-items: start; } }
.lead-card.is-unlocked { border-color: #bfe3cf; box-shadow: inset 4px 0 0 var(--success); }
.lead-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.lead-top span { display: inline-flex; align-items: center; gap: 4px; }
.lead-card h3 { font-family: var(--sans); font-size: 1.05rem; margin: 0 0 6px; }
.lead-desc { color: var(--ink); font-size: .95rem; margin: 0; white-space: pre-line; }
.lead-desc.is-empty { color: var(--muted); font-style: italic; }
.lead-side { display: flex; flex-direction: column; gap: 10px; background: var(--cream); border-radius: var(--radius-sm); padding: 16px; }
.lead-contact { font-size: .95rem; }
.lead-contact strong { display: block; color: var(--navy-900); font-size: 1rem; }
.lead-phone { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .02em; }
.lead-slots { font-size: .8rem; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { background: #faf8f3; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .muted { color: var(--muted); font-size: .82rem; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.inline-form input[type=number] { width: 80px; padding: .4em .6em; font-size: .85rem; }
.inline-form input[type=text] { width: 150px; padding: .4em .6em; font-size: .85rem; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: capitalize; }
.status-ativo, .status-authorized { background: var(--success-bg); color: var(--success); }
.status-pendente, .status-pending { background: var(--warn-bg); color: #8a6510; }
.status-bloqueado, .status-cancelled, .status-paused { background: var(--danger-bg); color: var(--danger); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .9rem; }
.pagination .is-current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.plans-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.is-highlight { border: 2px solid var(--gold); box-shadow: var(--shadow-sm); }
.plan.is-highlight::before { content: "Mais escolhido"; position: absolute; top: -12px; left: 24px; background: var(--gold); color: var(--navy-950); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-size: 1.35rem; margin: 0; }
.plan-price { font-family: var(--serif); font-size: 2.2rem; color: var(--navy-900); font-weight: 700; }
.plan-price small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan-credits { font-weight: 600; color: var(--gold-600); }
.plan p { color: var(--muted); font-size: .92rem; flex: 1; }
.plan .btn { margin-top: 12px; }
.plan-current { font-size: .85rem; font-weight: 600; color: var(--success); text-align: center; margin-top: 12px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 32px 26px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.auth-card.is-wide { max-width: 640px; }
.auth-card .logo { margin-bottom: 18px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-foot { text-align: center; font-size: .9rem; margin-top: 18px; color: var(--muted); }

/* Evita que itens de grid/flex estourem a largura no celular */
.hero-grid > *, .article-layout > *, .trust-grid > *, .footer-grid > * { min-width: 0; }
html, body { overflow-x: hidden; }
@media (max-width: 400px) {
  .lf-area-card { padding: 10px 8px; gap: 8px; }
  .lf-area-icon { width: 26px; height: 26px; padding: 4px; }
  .lf-area-text strong { font-size: .85rem; overflow-wrap: anywhere; }
}
.field .check { display: flex; font-weight: 400; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }

/* =========================================================
   Chat de suporte — widget do advogado
   ========================================================= */
.sc { position: fixed; right: 16px; bottom: 16px; z-index: 80; font-family: var(--sans); }
.sc-toggle {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  background: var(--navy-900); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px;
  font: 600 .95rem var(--sans); cursor: pointer; box-shadow: var(--shadow);
}
.sc-toggle:hover { background: var(--navy-700); }
.sc-toggle .icon { width: 20px; height: 20px; color: var(--gold); }
.sc.is-open .sc-toggle { display: none; }
.sc-badge { position: absolute; top: -6px; right: -6px; background: #d93a2b; color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.sc-badge[hidden] { display: none; }
.sc-panel {
  width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 32px));
  background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.sc-panel[hidden] { display: none; }
.sc-head { background: var(--navy-900); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 3px solid var(--gold); }
.sc-head strong { display: block; font-size: .98rem; }
.sc-head small { color: #b9c3d6; font-size: .78rem; }
.sc-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.sc-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--cream); display: flex; flex-direction: column; gap: 8px; }
.sc-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.sc-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-msg time { display: block; font-size: .7rem; opacity: .65; margin-top: 3px; text-align: right; }
.sc-msg.is-support { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.sc-msg.is-me { background: var(--navy-900); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sc-form { border-top: 1px solid var(--line); padding: 10px; background: #fff; }
.sc-ident { display: grid; gap: 6px; margin-bottom: 8px; }
.sc-ident[hidden] { display: none; }
.sc-ident input { padding: .55em .75em; font-size: .9rem; }
.sc-error { color: var(--danger); font-size: .82rem; margin: 0 0 6px; }
.sc-compose { display: flex; gap: 8px; align-items: flex-end; }
.sc-compose textarea { min-height: 42px; max-height: 120px; resize: none; padding: .6em .8em; font-size: .92rem; border-radius: 12px; }
.sc-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-950); display: grid; place-items: center; cursor: pointer; }
.sc-send:hover { background: #d6b25f; }
@media (max-width: 480px) {
  .sc { right: 12px; bottom: 12px; }
  .sc.is-open { left: 0; right: 0; bottom: 0; top: 0; }
  .sc.is-open .sc-panel { width: 100%; height: 100%; border-radius: 0; }
}

/* ---------- Suporte no admin ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d93a2b; color: #fff; font-size: .72rem; font-weight: 700; margin-left: 4px; }
.nav-badge[hidden] { display: none; }
.ca { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 200px); min-height: 480px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ca-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ca-tabs { display: flex; border-bottom: 1px solid var(--line); }
.ca-tabs button { flex: 1; background: none; border: 0; padding: 12px; font: 600 .88rem var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ca-tabs button.is-active { color: var(--navy-900); border-bottom-color: var(--gold); }
.ca-conversations { overflow-y: auto; flex: 1; }
.ca-placeholder { color: var(--muted); padding: 20px; font-size: .9rem; margin: 0; }
.ca-item { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 14px; cursor: pointer; font-family: var(--sans); }
.ca-item:hover { background: #faf8f3; }
.ca-item.is-active { background: #f1f4f9; box-shadow: inset 3px 0 0 var(--navy-900); }
.ca-item-top, .ca-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ca-item-top strong { font-size: .92rem; color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ca-item-top small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.ca-preview { color: var(--muted); font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ca-item.is-unread .ca-preview { color: var(--ink); font-weight: 600; }
.ca-count { background: #d93a2b; color: #fff; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; flex: none; }
.ca-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--gold-100); color: var(--gold-600); padding: 2px 6px; border-radius: 4px; }
.ca-thread { display: flex; flex-direction: column; min-height: 0; }
.ca-thread[hidden] { display: none; }
.ca-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ca-who { flex: 1; min-width: 0; }
.ca-who-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ca-who-name strong { font-size: 1.05rem; color: var(--navy-900); }
.ca-online { font-size: .75rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.ca-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b6bdc9; }
.ca-online.is-on { color: var(--success); }
.ca-online.is-on::before { background: var(--success); }
.ca-who-info { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.ca-back { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--navy-900); }
.ca-messages { flex: 1; overflow-y: auto; padding: 18px; background: var(--cream); display: flex; flex-direction: column; gap: 8px; }
.ca-msg { max-width: 75%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.45; }
.ca-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ca-msg time { display: block; font-size: .7rem; opacity: .65; margin-top: 3px; text-align: right; }
.ca-msg.is-them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ca-msg.is-me { background: var(--navy-900); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ca-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ca-form textarea { min-height: 52px; resize: vertical; }
.ca-empty { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.ca-empty .icon { width: 40px; height: 40px; color: var(--line); }
.ca-empty[hidden] { display: none; }
@media (max-width: 800px) {
  .ca { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 170px); }
  .ca.has-thread .ca-list, .ca:not(.has-thread) .ca-thread, .ca-empty { display: none; }
  .ca-back { display: inline-flex; }
  .ca-msg { max-width: 88%; }
}
