I would like to get this style

Currently my MWE is
\documentclass[openany,fleqn]{book}
\usepackage{tikz}
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage[margin=2cm,width=176mm,height=250mm]{geometry}
\usetikzlibrary{calc}
% -------------------------------------------------
% Chapter heading macro
% -------------------------------------------------
\newcommand{\chapterheader}[1]{%
\begin{tikzpicture}[remember picture, overlay]
% Full-width background bar
\fill[black] (-5,0) rectangle (\paperwidth,3.3);
\fill[gray!30] (3,0) rectangle (\paperwidth,3.3);
% Diamond with chapter number (slightly lowered)
\coordinate (C) at (3,.1);
\path[fill=white, draw=gray, line width=0.4pt, rotate around={45:(C)},rounded corners=5pt]
($(C)+(-1.15,-1.15)$) rectangle ($(C)+(1.15,1.15)$);
% Chapter number
\node[text=red, font=\bfseries\fontsize{46}{48}\selectfont] at (C) {\thechapter};
% "Chapter" label (rotated along the diamond)
\node[rotate=45, anchor=west, text=white,
font=\Large\bfseries, opacity=0.95] at (1.2,0.25) {CHAPTER};
% Title text (right side, strong sans serif)
\node[anchor=west, text=black, font=\bfseries\fontsize{30}{32}\selectfont]
at (5,0.95) {\parbox[t]{0.7\textwidth}{#1}};
\end{tikzpicture}%
\vspace{2.2cm}%
}
% -------------------------------------------------
% Apply to \chapter
% -------------------------------------------------
\titleformat{\chapter}[display]
{\normalfont}
{}
{0pt}
{\chapterheader}
\titlespacing*{\chapter}{0pt}{0pt}{1cm}
% -------------------------------------------------
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Algebra}
\section{Numerical Concepts}
\section{Equations and Inequalities}
\section{Partial Fractions}
\section{Permutations and Combinations}
\section{Series}
\section{Complex Numbers}
\end{document}
Thanks in advance



\thechapterunconditionally. don't use it for unnumbered chapters. doesn'ttitlesecprovide some way to format starred headings?\node[text=red, font=\bfseries\fontsize{46}{48}\selectfont] at (C) {\ifnum\thechapter > 0 \thechapter \else\fi};\@makechapterheadand\@makeschapterheadseparately.