* {
  box-sizing: border-box;
}
:root {
  --bg: #020712;
  --bg2: #050b17;
  --panel: #07101f;
  --panel2: #091322;
  --border: #17243a;
  --border2: #1d2c45;
  --text: #f4f5fb;
  --muted: #929bad;
  --purple: #a329ff;
  --purple2: #7419d9;
  --cyan: #0fd7d8;
  --green: #24d99a;
  --yellow: #d4df25;
  --orange: #ffad1f;
}
/* ===================== TOKENS ===================== */
:root {
  --bg: #060a16;
  --bg-alt: hsl(225, 56%, 7%);
  --surface: #0d1428;
  --surface-2: #111a33;
  --border: #1b2440;
  --border-soft: #161f38;
  --purple: #6f03ad;
  --purple-2: #9941fd;
  --purple-deep: #6f029b98;
  --cyan: #06c2db;
  --text: #f3f5fb;
  --text-dim: #a6adc4;
  --text-mute: #6b738f;
  --green: #02fa72;
  --font: "Cairo", "Tajawal", sans-serif;
  --neon-green: #00ff88;
  --neon-glow: rgba(0, 255, 136, 0.25);

  /* ---- Unified type scale (was scattered 8px/9px/10px/11px/13px) ---- */
  --fs-2xs: 11px; /* chips, tiny meta */
  --fs-xs: 11.5px; /* small labels, captions */
  --fs-sm: 12.5px; /* nav links, buttons, secondary text */
  --fs-base: 13.5px; /* body copy / paragraphs */
  --fs-md: 14.5px; /* card titles */
  --fs-lg: 16px; /* section headings */
  --fs-xl: 22px; /* page title */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  direction: rtl;
}

h1 {
  font-size: 20px !important;
}

p {
  font-size: 12px !important;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  font-size: var(--fs-sm);
}
ul {
  list-style: none;
}

/* Icons: give every Bootstrap Icon a consistent baseline so mixed
   icon+text rows (nav, buttons, metrics, info list) line up instead
   of sitting at whatever size the surrounding text happens to be. */
.bi {
  line-height: 1;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-fluid {
  width: 100%;
  padding: 0 30px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 25px !important;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg,
.btn .bi {
  flex-shrink: 0;
}
.btn--primary {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-deep) 100%
  );
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.65);
  display: inline-flex;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(124, 92, 255, 0.8);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--purple-2);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--purple-2);
  background: rgba(124, 92, 255, 0.06);
}
.btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
  margin-top: 18px;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  padding: 20px 30px;
  direction: ltr !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 200px;
}
.brand__logo {
  width: 48px;
  height: 48px;
  border: 2px solid #8d2bdf;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: grid;
  place-items: center;
  color: #f8f7f8;
  font-weight: 800;
  font-size: 17px;
  background: rgb(104, 3, 236);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
  direction: rtl !important;
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.nav__link:hover {
  color: var(--text);
}
.nav__link--active {
  color: var(--text);
}
.nav__link--active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -27px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 8px 4px;
}
.lang-switch .chev {
  opacity: 0.6;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  flex-shrink: 0;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons duplicated inside the mobile hamburger menu.
   Hidden everywhere by default; only revealed on small screens
   when the mobile nav is open (see the 860px media query). */
.nav__mobile-actions {
  display: none;
}
.nav__mobile-btn-wrap {
  display: block;
  width: 100%;
}
.workspace {
  display: grid;
  grid-template-columns: 245px minmax(640px, 1fr) 376px;
  gap: 18px;
  max-width: 1536px;
  margin: 0 auto;
}
.left-sidebar {
  border-left: 1px solid #101a2c;
  padding: 25px 14px 20px 14px;
  min-height: calc(100vh - 72px);
}
.searchbox {
  height: 38px;
  border: 1px solid #1c2a40;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  margin-bottom: 15px;
  background: #050c18;
}
.searchbox input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  width: 100%;
  font-size: 11px;
}
.searchbox input::placeholder {
  color: #818a9c;
}
.searchbox i {
  color: #bbc0ca;
  font-size: 13px;
}
.sector-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sector {
  height: 39px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  text-align: right;
  cursor: pointer;
  color: #b9bec9;
}
.sector i {
  width: 18px;
  text-align: center;
  color: #aab1be;
}
.sector span {
  flex: 1;
}

.sector span > a {
  text-decoration: none;
  color: var(--text);
}

.sector b {
  font-weight: 500;
  background: #101b2e;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 11px;
  color: #d8dbe1;
}
.sector.active {
  background: linear-gradient(90deg, #4e148a, #28114d);
  color: #fff;
  border-color: #6b1cb1;
}
.sector.selected {
  background: linear-gradient(90deg, #1a1030, #0e1727);
  border-color: #5f1e9e;
  color: #fff;
  box-shadow: inset 3px 0 0 #a329ff;
}
.sector.selected i {
  color: #c147ff;
}
.filter-panel {
  border-top: 1px solid #152239;
  margin-top: 16px;
  padding: 16px 12px 0;
}
.filter-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filter-title i {
  color: #b744ff;
}
.filter-panel label {
  display: block;
  color: #9ca4b3;
  font-size: 10px;
  margin: 11px 0 7px;
}
.filter-panel select {
  width: 100%;
  background: #050c18;
  border: 1px solid #1a2a42;
  color: #bfc4ce;
  height: 34px;
  border-radius: 6px;
  padding: 0 9px;
  outline: 0;
}
.risk-scale {
  position: relative;
  height: 16px;
  margin-top: 12px;
}
.risk-line {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #23bd72 0 25%,
    #d2d82c 25% 55%,
    #ff9d21 55% 78%,
    #e63d2f 78% 100%
  );
}
.dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 5px;
  background: #10182a;
  border: 1px solid #d8dce6;
}
.d1 {
  left: 0;
}
.d2 {
  left: 46%;
}
.d3 {
  left: 67%;
}
.d4 {
  right: 0;
}
.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a7adba;
}
.range-wrap input {
  width: 100%;
  accent-color: #a329ff;
}
.range-wrap > div {
  display: flex;
  justify-content: space-between;
  color: #a6adba;
  font-size: 9px;
}
.filter-btn,
.reset-btn {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  margin-top: 14px;
  cursor: pointer;
}
.filter-btn {
  border: 1px solid #6b1dc2;
  background: linear-gradient(90deg, #4d0f94, #6e16c7);
  box-shadow: 0 5px 18px rgba(120, 26, 215, 0.14);
}
.reset-btn {
  border: 1px solid #1b2a41;
  background: #060c17;
  color: #a8aebb;
}
.main-content {
  padding: 18px 0 30px;
  min-width: 0;
}
.breadcrumbs {
  color: #777f91;
  font-size: 10px;
  margin: 2px 7px 17px;
}
.breadcrumbs span {
  margin: 0 8px;
  color: #4c566b;
}
.hero {
  display: grid;
  grid-template-columns: 365px 1fr 38px;
  gap: 25px;
  align-items: center;
  min-height: 160px;
  margin: 0 5px 8px;
}
.hero-image {
  height: 159px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #16263e;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-copy {
  direction: rtl;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 17px;
}
.title-row h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.title-row i {
  color: #9d28ff;
  font-size: 31px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 0 9px rgba(164, 36, 255, 0.55));
}
.hero-copy p {
  font-size: 14px;
  line-height: 2.1;
  color: #b1b5c0;
  max-width: 490px;
  margin: 14px 0 0;
}
.bookmark {
  align-self: start;
  margin-top: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #28364e;
  background: #070e1b;
  border-radius: 6px;
  color: #b548ff;
  cursor: pointer;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 5px 12px;
}
.stat-card {
  height: 115px;
  border: 1px solid #182840;
  background: linear-gradient(145deg, #07101e, #07111e);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #120e2d;
  border: 1px solid #35206c;
  font-size: 18px;
  flex: none;
}
.stat-icon.purple {
  color: #b03cff;
}
.stat-icon.cyan {
  color: #18dfe2;
  background: #08252d;
  border-color: #0e5965;
}
.stat-icon.green {
  color: #9be634;
  background: #152417;
  border-color: #3c6624;
}
.stat-card strong {
  font-size: 21px;
  display: block;
  line-height: 1.2;
}
.stat-card small {
  display: block;
  color: #e1e2e8;
  font-size: 11px;
  margin-top: 4px;
}
.stat-card em {
  display: block;
  color: #7f8797;
  font-size: 9px;
  font-style: normal;
  margin-top: 3px;
}
.tabs {
  height: 51px;
  border-top: 1px solid #152239;
  border-bottom: 1px solid #18263b;
  display: flex;
  align-items: stretch;
  gap: 27px;
  margin: 0 5px 11px;
  overflow: hidden;
  white-space: nowrap;
}
.tabs a {
  color: #adb3c0;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 11px;
}
.tabs a.active {
  color: #f2f2f7;
  font-weight: 600;
}
.tabs a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #a329ff;
  box-shadow: 0 0 11px #a329ff;
}
.charts-row {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 9px;
  margin: 0 5px;
}
.panel {
  border: 1px solid #17263d;
  background: linear-gradient(
    150deg,
    rgba(7, 15, 28, 0.96),
    rgba(5, 12, 23, 0.98)
  );
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 10px;
  border-bottom: 1px solid #132138;
}
.panel-head h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 700;
}
.panel-head select {
  background: #07101e;
  border: 1px solid #1d2c43;
  color: #aeb4c0;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  outline: 0;
}
.legend {
  font-size: 9px;
  color: #9199aa;
  margin-top: 9px;
}
.legend span {
  display: inline-block;
  width: 9px;
  height: 5px;
  border-radius: 6px;
  margin-left: 5px;
}
.purple-dot {
  background: #a329ff;
}
.cyan-dot {
  background: #10cfd1;
  margin-right: 15px;
}
.chart-wrap {
  padding: 8px 10px 8px;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.grid line {
  stroke: #132035;
  stroke-width: 1;
}
.axis-text {
  fill: #70798b;
  font-size: 10px;
}
.line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.purple-line {
  stroke: url(#lineGlow);
}
.cyan-line {
  stroke: #10c7ca;
}
.points circle {
  fill: #101729;
  stroke-width: 2;
}
.purple-points circle {
  stroke: #a329ff;
}
.cyan-points circle {
  stroke: #10c7ca;
}
.donut-content {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 18px 15px 17px;
  min-height: 258px;
}
.donut {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: conic-gradient(
    #5720b8 0 32%,
    #1197a0 32% 60%,
    #7db52b 60% 80%,
    #e2a720 80% 92%,
    #497bd0 92% 97%,
    #838a99 97% 100%
  );
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
}
.donut:after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #07101f;
  box-shadow: inset 0 0 0 1px #101c2d;
}
.donut-hole {
  z-index: 1;
  text-align: center;
}
.donut-hole strong {
  display: block;
  font-size: 14px;
}
.donut-hole span {
  font-size: 8px;
  color: #777f90;
}
.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donut-legend div {
  display: grid;
  grid-template-columns: 11px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #9da4b2;
}
.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.donut-legend b {
  color: #e3e5ea;
  font-size: 11px;
}
.c1 {
  background: #5720b8;
}
.c2 {
  background: #1197a0;
}
.c3 {
  background: #7db52b;
}
.c4 {
  background: #e2a720;
}
.c5 {
  background: #497bd0;
}
.c6 {
  background: #838a99;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr 1.16fr;
  gap: 9px;
  margin: 11px 5px 0;
}
.bottom-grid .panel {
  min-height: 250px;
}
.risk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #111d30;
  font-size: 10px;
}
.risk-item span {
  flex: 1;
}
.risk-item b {
  font-weight: 500;
}
.risk-item b:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 5px;
}
.medium {
  color: #e4a51d;
}
.medium:before {
  background: #e4a51d;
}
.low {
  color: #6fca3c;
}
.low:before {
  background: #6fca3c;
}
.outline-btn {
  height: 34px;
  margin: 13px 12px;
  width: calc(100% - 24px);
  border: 1px solid #7020aa;
  background: linear-gradient(
    90deg,
    rgba(68, 17, 104, 0.1),
    rgba(86, 18, 130, 0.08)
  );
  border-radius: 5px;
  color: #b34aff;
  font-size: 10px;
  cursor: pointer;
}
.outline-btn i {
  margin-right: 7px;
}
.opp-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-bottom: 1px solid #111d30;
  font-size: 10px;
}
.opp-item > span:nth-child(2) {
  flex: 1;
}
.opp-icon {
  width: 23px;
  height: 23px;
  border-radius: 5px;
  background: #151035;
  color: #b33fff;
  display: grid;
  place-items: center;
}
.opp-item b {
  background: #23114a;
  color: #b653ff;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 9px;
}
.forecast-panel .panel-head {
  padding-bottom: 8px;
}
.mini-chart {
  padding: 5px 10px 0;
}
.area {
  fill: rgba(120, 30, 212, 0.16);
}
.forecast-line {
  fill: none;
  stroke: #b13cff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.right-sidebar {
  padding: 22px 19px 25px;
  border-right: 1px solid #101a2c;
  min-width: 0;
}
.kpi-panel {
  overflow: hidden;
}
.kpi-panel .panel-head {
  padding: 14px 17px;
}
.panel-icon {
  color: #bd4dff;
  font-size: 14px;
}
.kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 0 18px;
  border-bottom: 1px solid #142137;
  color: #9ca4b3;
  font-size: 11px;
}
.kpi b {
  font-size: 16px;
  color: #f2f3f6;
}
.kpi b small {
  font-size: 9px;
  color: #aeb3be;
  font-weight: 400;
}
.purple-text {
  color: #c04dff !important;
}
.green-text {
  color: #2bdb9d !important;
}
.cyan-text {
  color: #0fd5d7 !important;
}
.kpi.last {
  border-bottom: 0;
}
.ring-row {
  min-height: 66px;
}
.ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#1ad8a4 0 89%, #172637 89% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.ring:after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #07101f;
}
.ring strong,
.ring small {
  z-index: 1;
}
.ring strong {
  font-size: 12px;
  color: #f2f3f7;
}
.ring small {
  font-size: 7px;
  color: #9da4af;
  margin-right: 2px;
}
.province-panel {
  margin-top: 15px;
  padding-bottom: 2px;
}
.province-panel .panel-head {
  padding: 15px 18px;
}
.bar-item {
  display: grid;
  grid-template-columns: 56px 1fr 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 17px;
  font-size: 10px;
  color: #adb4c0;
}
.bar-item b {
  font-size: 11px;
  color: #e2e4e9;
  text-align: left;
}
.bar {
  height: 5px;
  background: #121e30;
  border-radius: 10px;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #7720d0, #a22aff);
  border-radius: 10px;
  box-shadow: 0 0 9px rgba(152, 36, 255, 0.35);
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: 220px minmax(580px, 1fr);
  }
  .right-sidebar {
    display: none;
  }
  .topnav {
    gap: 18px;
  }
  .brand {
    min-width: 210px;
  }
  .hero {
    grid-template-columns: 300px 1fr 38px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .forecast-panel {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 15px;
  }
  .topnav {
    display: none;
  }
  .top-actions {
    margin-right: auto;
  }
  .workspace {
    display: block;
  }
  .left-sidebar {
    display: none;
  }
  .main-content {
    padding: 15px;
  }
  .hero {
    grid-template-columns: 1fr 1fr 38px;
  }
  .hero-image {
    height: 180px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .charts-row {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .forecast-panel {
    grid-column: auto;
  }
  .right-sidebar {
    display: block;
    border: 0;
    padding: 0 15px 30px;
  }
  .right-sidebar .panel {
    margin-top: 12px;
  }
}
@media (max-width: 600px) {
  .brand-name {
    display: none;
  }
  .topbar {
    height: 62px;
  }
  .top-actions .language,
  .top-actions .login {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-image {
    height: 180px;
  }
  .bookmark {
    position: absolute;
    left: 30px;
    margin-top: 10px;
  }
  .title-row h1 {
    font-size: 28px;
  }
  .hero-copy p {
    font-size: 12px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 20px;
  }
  .donut-content {
    flex-direction: column;
  }
  .donut-legend {
    width: 100%;
  }
}

/* =========================================================
   MOBILE NAVBAR — FINAL FIX
========================================================= */

@media screen and (max-width: 768px) {
  /* Header */
  .header__inner {
    height: 64px !important;
    padding: 0 20px !important;
  }

  /* Hide desktop actions */
  .header__actions {
    display: none !important;
  }

  /* Show burger */
  .burger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ================= NAV ================= */

  .header .nav {
    position: fixed !important;

    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    z-index: 999 !important;

    width: 100% !important;
    height: calc(60vh - 64px) !important;

    /* THIS IS THE IMPORTANT PART */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    flex: none !important;

    gap: 0 !important;

    padding: 20px !important;

    background: var(--surface, #0d1428) !important;
    border-top: 1px solid var(--border-soft, #161f38);

    overflow-y: auto !important;
    overflow-x: hidden !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(-10px) !important;

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease !important;
  }

  /* Open */
  .header .nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  /* ================= LINKS ================= */

  .header .nav > .nav__link {
    display: flex !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    align-items: center !important;
    justify-content: flex-start !important;

    padding: 15px 5px !important;

    margin: 0 !important;

    font-size: 14px !important;
    text-align: right !important;

    border-bottom: 1px solid var(--border-soft, #161f38);

    white-space: normal !important;
  }

  /* Remove desktop active underline */
  .header .nav__link--active::after {
    display: none !important;
  }

  /* ================= MOBILE BUTTONS ================= */

  .header .nav__mobile-actions {
    display: flex !important;

    flex-direction: column !important;

    align-items: stretch !important;

    width: 100% !important;

    flex: 0 0 auto !important;

    gap: 10px !important;

    margin-top: 20px !important;
  }

  .header .nav__mobile-btn-wrap {
    display: block !important;
    width: 100% !important;
  }

  .header .nav__mobile-actions .lang-switch {
    display: flex !important;
    width: 100% !important;

    align-items: center !important;
    justify-content: flex-start !important;

    padding: 12px 5px !important;
  }

  .header .nav__mobile-actions .btn {
    width: 100% !important;
  }
}
