:root {
  --bg: #0b1220;
  --bg2: #111827;
  --card: #151e30;
  --text: #e8eef9;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent2: #16a34a;
  --line: #243047;
  --danger: #ef4444;
  --warn: #f59e0b;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* Header — logo no centro, menus embaixo, conta à direita sem empurrar a logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg, var(--bg));
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding: 14px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  gap: 10px;
}
.header-top-spacer {
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  justify-self: center;
  grid-column: 2;
  z-index: 1;
}
.brand-text { white-space: nowrap; }
.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}
.header-account {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  max-width: min(280px, 38vw);
  font-size: .82rem;
  text-align: right;
}
.header-account-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  flex-wrap: nowrap;
}
.header-account .nav-user {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  text-align: right;
}
.header-link {
  color: var(--muted);
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
}
.header-link:hover { color: var(--text); }
.header-sep {
  color: #475569;
  user-select: none;
}
.nav-links {
  display: flex;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2px;
  border-top: 1px solid rgba(36, 48, 71, .7);
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

/* Submenu da área do cliente (mesmo visual do site) */
.cliente-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.cliente-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
}
.cliente-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  transition: .15s ease;
}
.cliente-subnav a:hover {
  color: var(--text);
  border-color: var(--muted);
}
.cliente-subnav a.active {
  color: #052e16;
  background: var(--accent);
  border-color: var(--accent);
}
.cliente-intro {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 70ch;
}
.cliente-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 8px 0 32px;
}
.cliente-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  min-height: 150px;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.cliente-hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cliente-hub-accent { border-color: rgba(34, 197, 94, .4); }
.cliente-hub-card h3 { font-size: 1.05rem; margin: 0; }
.cliente-hub-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.conteudo-hub-icon { font-size: 1.5rem; line-height: 1; }
.conteudo-hub-count {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}
.cliente-list { display: grid; gap: 10px; margin-bottom: 28px; }
.cliente-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: inherit;
  transition: border-color .15s ease;
}
a.cliente-list-item:hover { border-color: var(--accent); }
.cliente-list-item-static { align-items: flex-start; flex-wrap: wrap; }
.cliente-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cliente-dados-box {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.cliente-detail {
  margin: 8px 0 40px;
}
.chip-soft {
  background: rgba(148, 163, 184, .12) !important;
  border-color: rgba(148, 163, 184, .25) !important;
  color: var(--muted) !important;
}
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  .cliente-list-item { flex-direction: column; align-items: flex-start; }
}
.forms-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  margin-bottom: 48px;
}
.field-row-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) {
  .forms-grid { grid-template-columns: 1fr; }
  .field-row-form { grid-template-columns: 1fr; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700;
  cursor: pointer; font-size: .95rem; transition: .15s ease;
}
.btn-primary { background: var(--accent); color: #052e16; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--muted); }
.btn-wa { background: #25d366; color: #052e16; }
.btn-small { padding: 8px 14px; font-size: .85rem; }

/* Hero */
.hero {
  padding: 56px 0 36px;
  display: grid; gap: 28px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .header-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }
  .header-top-spacer { display: none; }
  .brand {
    grid-column: 1;
    order: 1;
  }
  .header-account {
    grid-column: 1;
    justify-self: center;
    align-items: center;
    order: 2;
    max-width: 90vw;
    text-align: center;
  }
  .header-account-links { justify-content: center; }
  .header-account .nav-user { text-align: center; }
  .nav-links {
    order: 3;
    gap: 4px 14px;
    font-size: .9rem;
  }
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15; margin-bottom: 14px;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 8px; }
.hero-card ul { margin: 12px 0 0 18px; color: var(--muted); }

/* Sections */
.section { padding: 48px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 1.7rem; margin-bottom: 6px; }
.section-head p { color: var(--muted); }

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #334155; }
.card-cover {
  aspect-ratio: 1080/700; background: #0f172a;
  object-fit: cover; width: 100%;
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  font-size: .75rem; font-weight: 700; color: #bbf7d0;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25);
  padding: 4px 8px; border-radius: 999px;
}
.card-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Banner destaque */
.destaque {
  background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(14,165,233,.12));
  border: 1px solid rgba(34,197,94,.3);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px; display: grid; gap: 16px;
  grid-template-columns: 1.1fr .9fr; align-items: center;
}
@media (max-width: 800px) { .destaque { grid-template-columns: 1fr; } }
.destaque img { border-radius: 12px; width: 100%; max-height: 320px; object-fit: cover; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding: 28px 0 40px;
  color: var(--muted); font-size: .9rem;
  background: var(--footer-bg, var(--bg));
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid strong { color: var(--text); display: block; margin-bottom: 8px; }

/* Forms */
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; max-width: 560px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #0b1220;
  color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid rgba(34,197,94,.35); border-color: var(--accent);
}
.alert {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem;
}
.alert-ok { background: rgba(34,197,94,.12); color: #bbf7d0; border: 1px solid rgba(34,197,94,.3); }
.alert-err { background: rgba(239,68,68,.12); color: #fecaca; border: 1px solid rgba(239,68,68,.3); }

.page-title { padding: 36px 0 10px; }
.page-title h1 { font-size: 2rem; margin-bottom: 6px; }
.page-title p { color: var(--muted); }

.empty {
  text-align: center; color: var(--muted); padding: 40px 16px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* Tabela de preços — até 3 cards por linha, largura fixa (não estica a tela) */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 300px;
  flex: 0 1 300px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .pricing-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
.pricing-card.is-featured {
  border-color: rgba(34, 197, 94, .55);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .25), var(--shadow);
  background: linear-gradient(180deg, rgba(34,197,94,.08), var(--card) 40%);
}
.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .2);
  color: #86efac;
}
.pricing-type {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.pricing-name {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
.pricing-price {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.pricing-period {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.pricing-desc {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 14px;
}
.pricing-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: .9rem;
  border-bottom: 1px solid rgba(36, 48, 71, .8);
  color: #cbd5e1;
}
.pricing-features li:last-child { border-bottom: 0; }
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.pricing-cta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
}
.pricing-cta .btn {
  width: auto;
  min-width: 140px;
  max-width: 100%;
  padding: 9px 20px;
  font-size: .88rem;
  font-weight: 700;
}
