/* ============================================================
   Portal Comercial — Grupo XNOW
   Paleta unificada (tema escuro com laranja XNOW como destaque)
   ============================================================ */
:root {
  --bg:       #0d1117;
  --panel:    #161b22;
  --border:   #30363d;
  --text:     #e6edf3;
  --muted:    #8b949e;

  /* Destaque XNOW */
  --orange:        #ff6b1a;
  --orange-soft:   rgba(255, 107, 26, 0.18);
  --orange-strong: #ff8540;

  /* Indicadores de status */
  --green: #2ea043;
  --red:   #f85149;
  --amber: #d29922;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
}

/* ------- Header padrão (logo + breadcrumb) ------- */
.portal-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(180deg, #11161d 0%, #0d1117 100%);
  border-bottom: 1px solid var(--border);
}
.portal-header img.logo {
  height: 32px; width: auto;
  filter: drop-shadow(0 0 8px rgba(255,107,26,0.15));
}
.portal-header .crumbs {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.portal-header .crumbs a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 12px;
}
.portal-header .crumbs a:hover,
.portal-header .crumbs a.active {
  color: var(--orange);
}

/* ------- Navbar principal (em todas as telas exceto home hero) ------- */
.portal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  background: linear-gradient(180deg, #11161d 0%, #0d1117 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.portal-nav .brand {
  display: flex; align-items: center; padding: 0; margin-right: 12px;
  background: transparent !important;
}
.portal-nav .brand img.logo {
  height: 28px; width: auto;
  filter: drop-shadow(0 0 8px rgba(255,107,26,0.15));
}
.portal-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.portal-nav a:hover {
  background: rgba(255,107,26,0.10);
  color: var(--text);
  text-decoration: none;
}
.portal-nav a.active {
  background: var(--orange);
  color: white;
}
.portal-nav a.active:hover { background: var(--orange-strong); }

/* ------- Helpers ------- */
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-strong); text-decoration: underline; }
button.primary, .btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
button.primary:hover, .btn-primary:hover { background: var(--orange-strong); }
