/* =========================================================================
   ANGELS CARE FACILITY — Design System
   Azul + branco · Inter · muito espaço em branco · cards suaves ·
   bordas arredondadas · sombras discretas · SaaS premium de healthcare.
   Branco é a cor predominante; o azul entra como sinal de confiança.
   ========================================================================= */

:root {
  /* --- Azul (identidade) --- */
  --primary: #2563EB;         /* botões primários, CTAs, links, elementos ativos, progresso */
  --primary-dark: #0D3B66;    /* títulos, navbar/sidebar, marca, textos de destaque, footer */
  --primary-light: #60A5FA;   /* hover, pequenos destaques, elementos secundários (não é cor de texto sobre branco) */
  --primary-soft: #E8F1FF;    /* backgrounds suaves, cards informativos, estados selecionados, badges */
  --primary-softer: #F5F9FF;  /* tint ainda mais leve */
  --accent: #0EA5E9;          /* azul de destaque — indicadores/gráficos pontuais */

  /* --- Neutros --- */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F6F9FD;
  --border: #E5E7EB;
  --border-strong: #D0D9E6;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-soft: #9CA3AF;

  /* --- Semânticas (uso comedido) --- */
  --success: #059669;         /* nudge do #10B981 para passar contraste AA como texto/bold */
  --success-bg: #ECFDF5;
  --warning: #B45309;         /* âmbar legível como texto; #F59E0B fica p/ preenchimentos */
  --warning-bg: #FEF3C7;
  --danger: #DC2626;          /* nudge do #EF4444 para contraste AA de texto */
  --danger-bg: #FEF2F2;
  --info: #0EA5E9;
  --info-bg: #E0F2FE;

  /* --- Forma --- */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* --- Elevação (muito discreta) --- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(13, 59, 102, .06);
  --shadow-lg: 0 20px 48px rgba(13, 59, 102, .12);
  --shadow-btn: 0 8px 20px rgba(37, 99, 235, .20);

  /* --- Tipografia --- */
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Espaçamento base --- */
  --space: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------- Header / navbar ---------- */
.site-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

/* Marca — lockup em duas linhas "Angels Care / FACILITY" */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .26);
  flex-shrink: 0;
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 11px; font-size: .9rem; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-sub {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--primary);
  margin-top: 2px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #BCD6F5; }

/* Logo oficial (arquivos em static/assets/, sem variações geradas da arte) */
.brand-logo-img { display: block; width: auto; height: auto; }
.site-footer .footer-brand .brand-logo-img { height: 46px; border-radius: 12px; }
.auth-aside-logo { height: 44px; border-radius: 12px; }

/* Navbar / sidebar: símbolo oficial + nome em texto (fonte do site). */
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-symbol { display: block; width: auto; height: 32px; flex-shrink: 0; }
.brand-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.app-brand .brand-symbol { height: 30px; }
@media (max-width: 640px) {
  /* sem espaço confortável: fica só o símbolo */
  .site-header .brand-wordmark { display: none; }
}

/* Busca (mantida para agência/cuidadora) */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  flex: 0 1 260px;
  min-width: 180px;
}
.nav-search i { color: var(--text-muted); font-size: .95rem; flex-shrink: 0; }
.nav-search input {
  border: none; background: none; outline: none; padding: 0; width: 100%;
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
}
.nav-search input::placeholder { color: var(--text-soft); }
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }

/* Navegação */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  flex-shrink: 0;
}
.nav-icon-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav-icon-item i { font-size: 1.05rem; color: currentColor; line-height: 1; }
.nav-icon-item span { font-size: inherit; font-weight: 500; }
.nav-icon-item:hover { color: var(--primary-dark); background: var(--primary-soft); }
.nav-icon-item.active { color: var(--primary-dark); background: var(--primary-soft); font-weight: 600; }
.nav-icon-item.active i { color: var(--primary); }
.nav-icon-badge { position: relative; }
.nav-badge {
  position: absolute; top: -1px; right: 4px;
  background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--surface);
}
.nav-icon-avatar .avatar-img, .nav-icon-avatar .chat-avatar { width: 26px !important; height: 26px !important; font-size: 12px !important; }
.nav-icon-exit { color: var(--text-soft); }
.nav-icon-exit i { color: currentColor; font-size: 1rem; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .92rem;
  margin-left: 6px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, .30); }
.nav-login {
  color: var(--text) !important;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .92rem;
}
.nav-login:hover { border-color: var(--primary); color: var(--primary-dark) !important; background: var(--primary-soft); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .22); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 12px 28px rgba(37, 99, 235, .30); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--primary); color: #fff; }
/* Secundário: fundo branco + borda azul + texto azul */
.btn-outline { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary-dark); color: var(--primary-dark); background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Flash / alertas ---------- */
.flash-wrap { padding-top: 20px; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: .93rem;
  border: 1px solid transparent;
}
.flash-success { background: var(--success-bg); color: #065F46; border-color: #A7F3D0; }
.flash-danger { background: var(--danger-bg); color: #991B1B; border-color: #F5C2C2; }
.flash-warning { background: var(--warning-bg); color: #92400E; border-color: #FDE68A; }
.flash-info { background: var(--info-bg); color: #1D4ED8; border-color: #BAE6FD; }
.flash-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* Aviso permanente de conteúdo (não some sozinho, diferente de .flash) */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; margin-bottom: 12px; font-size: .92rem;
}
.callout p { margin: 0; }
.callout i { margin-top: 2px; flex-shrink: 0; }
.callout-warn { background: var(--warning-bg); color: #92400E; border-color: #FDE68A; }
.callout-info { background: var(--info-bg); color: #1D4ED8; border-color: #BAE6FD; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(60% 70% at 88% 8%, var(--primary-soft), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--primary-softer), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--border-strong);
  padding: 7px 16px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.hero-badge i { color: var(--primary); }
.hero h1 { font-size: 3.35rem; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-points { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-point { display: flex; gap: 10px; align-items: flex-start; max-width: 210px; }
.hero-point i { color: var(--primary); font-size: 1.15rem; margin-top: 2px; }
.hero-point strong { display: block; font-size: .9rem; font-weight: 600; color: var(--text); }
.hero-point span { font-size: .82rem; color: var(--text-muted); }

/* Painel visual do hero (imagem humana com moldura suave) */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(140deg, var(--primary-light), var(--primary-dark));
  aspect-ratio: 4 / 3.4;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual .hero-visual-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff; text-align: center; padding: 32px;
}
.hero-visual .hero-visual-fallback svg { width: 128px; height: 128px; opacity: .95; }
.hero-visual .hero-visual-fallback span { font-size: .82rem; opacity: .85; max-width: 260px; }
.hero-visual .hero-visual-caption {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-size: .8rem; font-weight: 600; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow);
}
.hero-visual .hero-visual-caption i { color: var(--primary); }

/* ---------- Seções / cabeçalhos ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--primary);
  display: block; margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-xs);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.card h3 { font-size: 1.15rem; }
.icon-tile {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.45rem; margin-bottom: 18px;
}
.icon-tile.accent { background: var(--info-bg); color: var(--info); }
.icon-tile.success { background: var(--success-bg); color: var(--success); }

/* Cards de solução (referência "Soluções para todos") */
.solucao-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solucao-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.solucao-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.solucao-card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.solucao-card p { color: var(--text-muted); font-size: .95rem; margin: 6px 0 0; flex: 1; }
.solucao-card .solucao-link {
  margin-top: 18px; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px;
}
.solucao-card .solucao-link i { transition: transform .15s ease; }
.solucao-card:hover .solucao-link i { transform: translateX(3px); }
.solucao-card.tone-familia .icon-tile { background: var(--primary-soft); color: var(--primary); }
.solucao-card.tone-cuidadora .icon-tile { background: var(--info-bg); color: var(--info); }
.solucao-card.tone-agencia .icon-tile { background: var(--success-bg); color: var(--success); }

/* Mídia (fotos) dentro dos cards / seções da home */
.solucao-media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  margin: -8px 0 6px; background: var(--primary-soft);
}
.solucao-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.solucao-card:hover .solucao-media img { transform: scale(1.03); }
.solucao-media img { transition: transform .3s ease; }

.how-media-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px;
}
.how-media-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--border); box-shadow: var(--shadow-xs); background: var(--primary-soft);
}
.how-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-media-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; font-size: .82rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(13, 59, 102, .78));
}

.cf-card-media {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9;
  margin-bottom: 16px; background: var(--primary-soft);
}
.cf-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.role-card { text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role-card .icon-tile { margin: 0 auto 16px; }
.role-card p { color: var(--text-muted); font-size: .92rem; min-height: 66px; }

/* ---------- Linha do tempo / jornada ---------- */
.journey { display: flex; flex-direction: column; gap: 4px; }
.journey-step { display: flex; gap: 16px; align-items: flex-start; }
.journey-rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.journey-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
  font-family: var(--font-heading);
}
.journey-line { flex: 1; width: 2px; min-height: 22px; background: var(--border-strong); margin: 4px 0; }
.journey-step:last-child .journey-line { display: none; }
.journey-step h4 { margin: 4px 0 2px; }
.journey-step p { color: var(--text-muted); font-size: .9rem; margin: 0; padding-bottom: 20px; }

/* Progress line horizontal (referência: Solicitação → Em análise → ...) */
.progress-line { display: flex; align-items: flex-start; width: 100%; }
.progress-line .pl-node { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; position: relative; }
.progress-line .pl-node::before {
  content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px;
  background: var(--border-strong); z-index: 0;
}
.progress-line .pl-node:first-child::before { display: none; }
.progress-line .pl-dot {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--border-strong); z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent;
}
.progress-line .pl-label { margin-top: 8px; font-size: .8rem; color: var(--text-muted); }
.progress-line .pl-node.done .pl-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.progress-line .pl-node.done::before { background: var(--primary); }
.progress-line .pl-node.current .pl-dot { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.progress-line .pl-node.current .pl-label { color: var(--primary-dark); font-weight: 600; }

.steps { counter-reset: step; }
.step { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.step-num {
  counter-increment: step; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
}
.step-num::before { content: counter(step); }

/* ---------- Faixa de confiança (rodapé azul claro) ---------- */
.trust-strip { background: var(--primary-soft); }
.trust-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 40px;
}
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item i {
  font-size: 1.15rem; color: var(--primary); background: var(--surface);
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-xs);
}
.trust-item strong { display: block; font-size: .92rem; color: var(--text); }
.trust-item span { font-size: .82rem; color: var(--text-muted); }

/* ---------- Faixa de proposta de valor (landing) ---------- */
.value-band { background: linear-gradient(160deg, var(--primary-dark), #0A2E52); color: #fff; }
.value-band .eyebrow { color: #BCD6F5; }
.value-band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.value-band-inner h2 { color: #fff; margin: 10px 0 14px; }
.value-band-inner p { color: #CFE0F5; margin: 0 0 26px; }

/* ---------- Preços ---------- */
.price-card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 34px; text-align: center;
  position: relative; box-shadow: var(--shadow-lg);
}
.price-card.featured { outline: 2px solid var(--primary-light); outline-offset: -2px; }
.price-card .badge-featured {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 5px 16px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 700;
  white-space: nowrap;
}
.price-value { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--primary-dark); margin: 10px 0; letter-spacing: -0.02em; }
.price-value span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-features { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.price-features li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; }
.price-features li i { color: var(--success); margin-top: 3px; flex-shrink: 0; }
.price-features li i.bi-dash-lg { color: var(--border-strong); }

.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  text-align: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--text); }
.compare-table thead th {
  font-family: var(--font-heading); font-size: 1rem; color: var(--text); font-weight: 700;
  border-bottom: 2px solid var(--border-strong);
}
.compare-table th.col-featured { background: var(--primary-soft); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.compare-table td:nth-child(3) { background: var(--primary-softer); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .icon-yes { color: var(--success); font-size: 1.1rem; }
.compare-table .icon-no { color: var(--border-strong); font-size: 1.1rem; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chevron { color: var(--text-muted); font-size: .9rem; margin-left: 12px; flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: var(--text-muted); margin: 12px 0 0; font-size: .92rem; }

.cta-band {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCEAFF; max-width: 520px; margin: 0 auto 26px; }

/* ---------- Formulários ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.form-card.wide { max-width: 820px; }
.form-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.form-section-head .icon-tile { margin-bottom: 0; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem; }
.form-section-head h3 { margin: 0 0 2px; }
.form-section-head p { margin: 0; color: var(--text-muted); font-size: .85rem; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .88rem; color: var(--text); }
.form-group .hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-soft); }
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-pill {
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 8px 16px; font-size: .85rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: background .15s ease, border-color .15s ease;
}
.checkbox-pill:hover { border-color: var(--primary); background: var(--primary-soft); }
.checkbox-pill input { width: auto; margin: 0; }
.terms-check {
  display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: .85rem;
  color: var(--text-muted); cursor: pointer;
}
.terms-check input { width: auto; margin: 3px 0 0; }
.form-foot { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-muted); }
.doc-upload-row {
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: center;
  padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); margin-bottom: 10px;
}

/* Layout de autenticação em split (referência: login premium) */
.auth-split {
  min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 48px 0;
}
.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  max-width: 1040px; margin: 0 auto; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.auth-aside {
  position: relative; background: linear-gradient(150deg, var(--primary-light), var(--primary-dark));
  color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 520px;
}
.auth-aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.auth-aside .auth-aside-body { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 1.6rem; }
.auth-aside p { color: #DCEAFF; font-size: .95rem; }
.auth-aside .auth-aside-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.auth-aside .auth-aside-points div { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.auth-aside .auth-aside-points i { margin-top: 2px; }
.auth-main { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-main .form-card { border: none; box-shadow: none; padding: 0; max-width: none; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
table th { color: var(--text-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700;
}
.badge-success { background: var(--success-bg); color: #065F46; }
.badge-warning { background: var(--warning-bg); color: #92400E; }
.badge-danger { background: var(--danger-bg); color: #991B1B; }
.badge-info { background: var(--info-bg); color: #1D4ED8; }
.badge-muted { background: var(--primary-soft); color: var(--primary-dark); }
.badge-neutral { background: #EEF0F3; color: var(--text-muted); }

.badge-verified, .badge-pro {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; vertical-align: middle;
}
.badge-verified { background: var(--primary-soft); color: var(--primary-dark); }
.badge-pro { background: var(--info-bg); color: #1D4ED8; }
.badge-rating { background: var(--warning-bg); color: #92400E; }

.stars-readonly { font-size: 1rem; }
.stars-readonly .bi-star-fill { color: #F59E0B; }
.stars-readonly .bi-star { color: var(--border-strong); }

.star-input {
  display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px;
  font-size: 1.9rem; margin-bottom: 16px;
}
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: var(--border-strong); cursor: pointer; transition: color .1s ease; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #F59E0B; }

/* ---------- Dashboard ---------- */
.dash-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 36px 0; }
.dash-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-size: 1.9rem; }
.dash-body { padding: 40px 0 64px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: start; }
.stat-mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.stat-mini .num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); letter-spacing: -0.02em; }
.stat-mini .label { color: var(--text-muted); font-size: .85rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }

.progress-bar { background: var(--border-strong); border-radius: var(--radius-pill); height: 10px; overflow: hidden; }
.progress-bar > div { background: linear-gradient(90deg, var(--primary-light), var(--primary)); height: 100%; }

.job-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; background: var(--surface); box-shadow: var(--shadow-xs); transition: box-shadow .15s ease, border-color .15s ease; }
.job-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.job-card-exclusive { border-color: var(--primary-light); background: linear-gradient(180deg, var(--primary-softer), transparent 46%); }
.job-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; font-size: .85rem; color: var(--text-muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { gap: 14px; }

.empty-state { text-align: center; padding: 54px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.4rem; color: var(--border-strong); margin-bottom: 12px; display: block; }
.empty-state h3 { color: var(--text); }

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); min-height: 560px; box-shadow: var(--shadow); }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 660px; }
.chat-list-item { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s ease; }
.chat-list-item:hover, .chat-list-item.active { background: var(--primary-soft); }
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary-light), var(--primary-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.avatar-img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.photo-upload-row { display: flex; align-items: center; gap: 16px; }
.photo-upload-row .avatar-img, .photo-upload-row .chat-avatar { width: 72px; height: 72px; font-size: 28px; }
.chat-thread { display: flex; flex-direction: column; height: 660px; }
.chat-thread-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-experience-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 10px 22px; border-bottom: 1px solid var(--border); background: var(--surface-alt);
  font-size: .85rem; color: var(--text-muted);
}
.chat-experience-strip .badge-verified, .chat-experience-strip .badge-success, .chat-experience-strip .badge-rating { font-size: .78rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); }
.msg { max-width: 66%; padding: 10px 16px; border-radius: 16px; font-size: .92rem; box-shadow: var(--shadow-xs); }
.msg.theirs { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.mine { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-time { font-size: .68rem; opacity: .65; margin-top: 4px; display: block; }
.chat-input-row { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input-row input { flex: 1; }

/* ---------- Perfil ---------- */
.profile-header-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 26px;
}
.profile-cover { height: 128px; background: linear-gradient(120deg, var(--primary-light), var(--primary), var(--primary-dark)); }
.profile-header-body { padding: 0 32px 28px; }
.profile-avatar-wrap { margin-top: -58px; margin-bottom: 14px; }
.profile-avatar-wrap .avatar-img, .profile-avatar-wrap .chat-avatar { border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-headline { color: var(--text-muted); font-size: 1rem; margin: 0; }
.profile-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.profile-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: start; }
.profile-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
.sidebar-card h4 {
  display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px;
}
.sidebar-card p { margin: 0; font-weight: 600; color: var(--text); }
.sidebar-card p span { font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--primary-soft); color: var(--primary-dark); padding: 5px 12px;
  border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600;
}

/* Card de profissional (referência: cards "Profissionais compatíveis") */
.pro-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pro-card .pro-top { display: flex; gap: 14px; align-items: center; }
.pro-card .pro-top .avatar-img, .pro-card .pro-top .chat-avatar { width: 52px; height: 52px; font-size: 18px; }
.pro-card .pro-name { font-weight: 700; font-size: 1rem; }
.pro-card .pro-role { font-size: .82rem; color: var(--text-muted); }
.pro-card .pro-meta { font-size: .85rem; color: var(--text-muted); margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pro-card .pro-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Busca com filtros ---------- */
.search-layout { display: grid; grid-template-columns: 264px 1fr; gap: 26px; align-items: start; }
.filters-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.filter-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs); }
.filter-box h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px;
}
.filter-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.filter-list a { display: block; padding: 8px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); }
.filter-list a:hover { background: var(--primary-soft); }
.filter-list a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.search-results-count { color: var(--text-muted); font-size: .85rem; margin: 0 0 14px; }
.job-family-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--text-muted); font-size: .85rem; margin: 10px 0 0;
}

/* ---------- Diversos ---------- */
.page-head { padding: 48px 0 8px; }
.page-head .eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--primary);
}
.subscription-box {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); margin-bottom: 22px; box-shadow: var(--shadow-xs);
}
.subscription-box.active { border-color: #A7F3D0; background: var(--success-bg); }
.subscription-box.pending { border-color: #FDE68A; background: var(--warning-bg); }
.doc-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }

.site-footer { background: linear-gradient(165deg, var(--primary-dark), #0A2E52); color: #CBDDF2; padding: 56px 0 22px; margin-top: 72px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.footer-brand p { color: #A9C3E0; font-size: .85rem; margin: 4px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-links a { display: block; color: #BBD3EE; font-size: .9rem; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .8rem; color: #9DB8D6; }

.error-page { text-align: center; padding: 120px 20px; }
.error-page .code { font-family: var(--font-heading); font-size: 5rem; font-weight: 800; color: var(--primary-soft); }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: linear-gradient(165deg, var(--primary-dark), #0A2E52);
  color: #DCEAFF; box-shadow: 0 -6px 24px rgba(0,0,0,.15);
}
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 16px 24px;
}
.cookie-banner-inner p { margin: 0; font-size: .88rem; color: #DCEAFF; }
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-inner .btn { white-space: nowrap; }

/* ---------- Utilidades de animação (discretas) ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-alt) 37%, var(--border) 63%);
  background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: var(--radius-sm);
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* =========================================================================
   APP SHELL (páginas autenticadas) — sidebar fixa + topbar + coluna de conteúdo
   ========================================================================= */
.has-app-shell { background: var(--bg); }
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }

/* ---- Sidebar ---- */
.app-sidebar {
  width: 268px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 40;
}
.app-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 20px 12px; color: var(--text); flex-shrink: 0;
}
.app-nav {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 14px 14px;
  display: flex; flex-direction: column; gap: 1px;
}
.app-nav::-webkit-scrollbar { width: 6px; }
.app-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.app-nav-section {
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-soft); padding: 12px 12px 5px;
}
.app-nav-section:first-child { padding-top: 2px; }
.app-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  position: relative; transition: background .13s ease, color .13s ease;
}
.app-nav-item i { font-size: 1.1rem; width: 21px; text-align: center; color: currentColor; flex-shrink: 0; }
.app-nav-item span { flex: 1; }
.app-nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
.app-nav-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.app-nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.app-nav-item.active i { color: var(--primary); }
.app-nav-exit { color: var(--text-soft); }
.app-nav-exit:hover { background: var(--danger-bg); color: #991B1B; }
.app-nav-badge {
  background: var(--danger); color: #fff; font-size: .66rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.app-sidebar-foot { border-top: 1px solid var(--border); padding: 14px; flex-shrink: 0; }
.app-user-chip { display: flex; align-items: center; gap: 10px; padding: 6px; }
.app-user-chip .avatar-img, .app-user-chip .chat-avatar { width: 34px !important; height: 34px !important; font-size: 14px !important; }
.app-user-chip-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.app-user-chip-text strong { font-size: .88rem; color: var(--text); }
.app-user-chip-text span { font-size: .76rem; color: var(--text-muted); }

/* ---- Backdrop (mobile drawer) ---- */
.app-backdrop {
  display: none; position: fixed; inset: 0; z-index: 39;
  background: rgba(17, 24, 39, .42); backdrop-filter: blur(1px);
}
.app-backdrop.show { display: block; }

/* ---- Coluna de conteúdo ---- */
.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.app-topbar {
  height: 64px; flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.app-nav-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  color: var(--primary-dark); cursor: pointer; padding: 4px; line-height: 1;
}
.app-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-alt); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 9px 16px;
  flex: 0 1 320px; min-width: 160px;
}
.app-search i { color: var(--text-muted); font-size: .95rem; flex-shrink: 0; }
.app-search input {
  border: none; background: none; outline: none; padding: 0; width: 100%;
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
}
.app-search input::placeholder { color: var(--text-soft); }
.app-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }
.app-topbar-spacer { flex: 1; }
.app-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-topbar-icon {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.2rem;
}
.app-topbar-icon:hover { background: var(--primary-soft); color: var(--primary-dark); }
.app-topbar-icon.active { color: var(--primary-dark); background: var(--primary-soft); }
.app-topbar-dot {
  position: absolute; top: 3px; right: 2px;
  background: var(--danger); color: #fff; font-size: .6rem; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--surface);
}
.app-topbar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 6px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--text);
  font-size: .88rem; font-weight: 600;
}
.app-topbar-user:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.app-topbar-user .avatar-img, .app-topbar-user .chat-avatar { width: 30px !important; height: 30px !important; font-size: 13px !important; }

/* ---- Área principal ---- */
.app-main { flex: 1; padding: 0 28px; display: flex; flex-direction: column; }
.app-main > .container { padding-left: 0; padding-right: 0; max-width: 1080px; }
.app-main .flash-wrap { padding-top: 20px; }
/* pages antigas ainda usam <section>/<div class="dash-header"> — normaliza dentro do shell */
.app-main section { padding: 26px 0; }
.app-main .page-head { padding: 30px 0 6px; }
.app-main .page-head h1, .app-main .dash-header h1, .app-main .dash-header h2 {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px;
}
.app-main .dash-header {
  background: transparent; border-bottom: none; padding: 30px 0 6px;
}
.app-main .dash-header .container,
.app-main .dash-body.container { max-width: 1080px; padding-left: 0; padding-right: 0; }
.app-main .dash-body { padding: 20px 0 40px; }

/* Cabeçalho de página padrão do shell */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; padding: 32px 0 22px;
}
.page-header .ph-title h1 { font-size: 1.75rem; margin: 0 0 5px; letter-spacing: -0.02em; }
.page-header .ph-title p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.page-header .ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Grade de indicadores com ícone */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.metric-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-xs); display: flex; gap: 14px; align-items: flex-start;
}
.metric-card .metric-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.15rem;
}
.metric-card .metric-ico.ok { background: var(--success-bg); color: var(--success); }
.metric-card .metric-ico.warn { background: var(--warning-bg); color: var(--warning); }
.metric-card .metric-body { min-width: 0; }
.metric-card .metric-num {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em; line-height: 1.2;
}
.metric-card .metric-label { color: var(--text-muted); font-size: .84rem; margin-top: 2px; }

.app-foot {
  margin-top: auto; padding: 26px 0 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-soft); font-size: .8rem;
}
.app-foot-links { display: flex; gap: 16px; }
.app-foot-links a { color: var(--text-muted); }

.section-title {
  font-size: 1.05rem; font-weight: 600; margin: 4px 0 14px;
  display: flex; align-items: center; gap: 8px;
}

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 1200px) {
  .nav-search { display: none; }
}

@media (max-width: 1024px) {
  .app-sidebar {
    position: fixed; left: 0; top: 0; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.open { transform: none; }
  .app-nav-toggle { display: inline-flex; align-items: center; }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 2.7rem; }
  .auth-layout { grid-template-columns: 1fr; max-width: 460px; }
  .auth-aside { display: none; }
  .auth-main { padding: 40px 32px; }
}

@media (max-width: 960px) {
  .hero-inner, .dash-grid, .grid-3, .grid-2, .solucao-grid, .stat-row, .metric-grid,
  .profile-layout, .search-layout, .trust-strip .container { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 240px; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header-body { padding: 0 20px 24px; }
  .filters-sidebar { position: static; }
  .nav-search { display: none; }
  section { padding: 56px 0; }
  .app-main section { padding: 22px 0; }
  .hero { padding: 60px 0 52px; }
  .how-media-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 680px) {
  .app-main, .app-topbar { padding-left: 16px; padding-right: 16px; }
  .app-search { flex-basis: 100%; }
  .app-topbar-user span { display: none; }
  .page-header { padding-top: 24px; }
  .page-header .ph-actions { width: 100%; }
  .page-header .ph-actions .btn { flex: 1; }
  .how-media-grid { grid-template-columns: 1fr 1fr; }
  .solucao-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; padding: 12px 24px 18px; border-bottom: 1px solid var(--border);
    display: none; gap: 4px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-icon-item {
    flex-direction: row; justify-content: flex-start; gap: 12px; padding: 13px 12px;
    border-radius: var(--radius-sm);
  }
  .nav-icon-item i { font-size: 1.1rem; width: 20px; text-align: center; }
  .nav-icon-item span { font-size: .95rem; }
  .nav-icon-badge .nav-badge { top: 12px; right: auto; left: 20px; }
  .nav-cta, .nav-login { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.15rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .cta-band, .form-card { padding: 32px 24px; }
  .container { padding: 0 18px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.95rem; }
  .btn { padding: 12px 20px; }
}
