/* ===================== TOKENS ===================== */
:root {
  --bg: #050810;
  --bg-alt: #080c18;
  --surface: #0d1220;
  --surface-2: #121a30;
  --border: #1c2440;
  --border-soft: #171f38;
  --purple: #9402b1;
  --purple-2: #ab22d4;
  --purple-deep: #5b3bd6;
  --cyan: #01ddfa;
  --text: #f3f5fb;
  --text-dim: #a6adc4;
  --text-mute: #6b738f;
  --green: #02fd73;
  --font: "Cairo", sans-serif;
}

/* ===================== 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 !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;
}

p {
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* 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%;
}

/* ===================== PAGE HEAD ===================== */
.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 34px 28px 20px;
}
.page-head__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--purple);
}
.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-head p {
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 50px;
}

/* ===================== DASHBOARD GRID ===================== */
.dashboard {
  direction: ltr;
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  gap: 18px;
  padding-bottom: 30px;
  align-items: start;
}
.col {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px;
}

/* ---- mini stats (left) ---- */
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-stat {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mini-stat__icon {
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
  color: rgb(189, 1, 247);
}
.mini-stat__num {
  font-size: 16px;
  font-weight: 800;
}
.mini-stat__label {
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 1px;
}

/* ---- filter panel ---- */
.filter-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--purple-2);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 9px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b738f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}
.field select:focus {
  border-color: var(--purple-2);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 8px;
}

/* dual range slider */
.range-dual {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.range-dual__track {
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
}
.range-dual__fill {
  position: absolute;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
}
.range-dual__input {
  position: absolute;
  right: 0;
  left: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  height: 20px;
  margin: 0;
}
.range-dual__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--purple);
  cursor: pointer;
  margin-top: 0;
}
.range-dual__input::-moz-range-thumb {
  pointer-events: all;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--purple);
  cursor: pointer;
}
.range-dual__input::-webkit-slider-runnable-track {
  background: transparent;
}

/* single range slider */
.range-single {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.range-single__track {
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
}
.range-single__fill {
  position: absolute;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple-2), var(--purple));
}
.range-single__input {
  position: absolute;
  right: 0;
  left: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 20px;
  margin: 0;
}
.range-single__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--purple);
  cursor: pointer;
}
.range-single__input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--purple);
  cursor: pointer;
}

/* ===================== MAP COLUMN ===================== */
.col--map {
  position: relative;
}
.legend-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 18px;
  align-self: center;
  margin: 0 auto 14px;
  width: fit-content;
}
.legend-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 10px;
}
.legend-row {
  display: flex;
  gap: 18px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 600;
}
.sw {
  width: 50px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.sw--1 {
  background: #33395e;
}
.sw--2 {
  background: #4a4a8a;
}
.sw--3 {
  background: #6b5ac0;
}
.sw--4 {
  background: #8b5cf6;
}
.sw--5 {
  background: #c084fc;
}

.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1000/800;
  background:
    radial-gradient(
      600px 500px at 45% 55%,
      rgba(124, 92, 255, 0.08),
      transparent 65%
    ),
    var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
}
.map-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.map-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gov-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.gov-label__name {
  font-size: 12px;
  font-weight: 800;
  color: #e7e5ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.gov-label__count {
  font-size: 10px;
  color: #a9a6d9;
  margin-top: 1px;
}
.gov-label__badge {
  margin: 5px auto 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 14, 45, 0.75);
  border: 1.5px solid rgba(196, 132, 252, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #e9d9ff;
}
.gov-label--active .gov-label__name {
  font-size: 14px;
  color: #fff;
}
.gov-label--active .gov-label__badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  border-color: #fff;
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(124, 92, 255, 0.22),
    0 0 30px 6px rgba(124, 92, 255, 0.5);
}

.country-label {
  position: absolute;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
  letter-spacing: 1px;
  pointer-events: none;
}
.cl--tr {
  top: 4%;
  left: 42%;
}
.cl--iq {
  top: 56%;
  right: 4%;
}
.cl--jo {
  bottom: 14%;
  right: 20%;
}
.cl--lb {
  top: 44%;
  left: 6%;
}

/* ===================== RIGHT: GOV PANEL ===================== */
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--purple-2);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: 8px 12px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.back-link svg {
  transform: scaleX(-1);
}

.gov-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gov-title h2 {
  font-size: 22px;
  font-weight: 800;
}
.gov-title svg {
  color: var(--purple-2);
}
.gov-sub {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 4px 0 18px;
}

.gov-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.gov-stat {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
}
.gov-stat__num {
  font-size: 19px;
  font-weight: 800;
}
.gov-stat__num--green {
  color: var(--green);
}
.gov-stat__label {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 4px;
}
.gov-stat--gauge {
  position: relative;
  text-align: center;
}
.gauge {
  display: block;
  margin: 0 auto;
}
.gauge__bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}
.gauge__fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 30px 30px;
}
.gauge__text {
  font-size: 13px;
  font-weight: 800;
  margin-top: -40px;
  margin-bottom: 24px;
}
.gauge__text span {
  font-size: 10px;
  color: var(--green);
}

.sectors-block h4,
.risk-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}
.donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.donut-legend {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donut-legend li {
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.donut-legend b {
  margin-right: auto;
  margin-left: 0;
  color: var(--text);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.risk-block {
  margin-bottom: 20px;
}
.risk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.risk-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(61, 220, 132, 0.12);
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.4);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}
.risk-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  margin-bottom: 10px;
}
.seg {
  flex: 1;
  border-radius: 4px;
}
.seg--1 {
  background: #3ddc84;
}
.seg--2 {
  background: rgba(180, 220, 80, 0.35);
}
.seg--3 {
  background: rgba(230, 150, 60, 0.25);
}
.seg--4 {
  background: rgba(107, 115, 143, 0.25);
}
.risk-desc {
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* AI panel */
.ai-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-panel h4 {
  font-size: 14.5px;
  font-weight: 800;
}
.ai-panel p {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}
.ai-highlight {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.ai-highlight b {
  color: var(--purple-2);
}

/* ===================== OPPORTUNITIES SECTION ===================== */
.opp-section {
  padding-top: 8px;
  margin-bottom: 100px;
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section__head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section__head h2 {
  font-size: 19px;
  font-weight: 800;
}
.section__head h2 span {
  color: var(--purple-2);
}
.nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.nav-arrow:hover {
  border-color: var(--purple-2);
  color: var(--purple-2);
}
.link-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--purple-2);
}
.link-more svg {
  transform: scaleX(-1);
}

.opp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.opp-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.opp-card:hover {
  border-color: var(--purple-deep);
  transform: translateY(-3px);
}
.opp-card__img {
  height: 130px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.opp-card__img--1 {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.1), rgba(5, 8, 16, 0.8)),
    url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=80&w=500&auto=format&fit=crop");
}
.opp-card__img--2 {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.1), rgba(5, 8, 16, 0.8)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=500&auto=format&fit=crop");
}
.opp-card__img--3 {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.1), rgba(5, 8, 16, 0.8)),
    url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=500&auto=format&fit=crop");
}
.opp-card__img--4 {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.1), rgba(5, 8, 16, 0.8)),
    url("https://images.unsplash.com/photo-1587351021355-a479a299d2f9?q=80&w=500&auto=format&fit=crop");
}
.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
}
.tag--infra {
  background: #8a4fd6;
}
.tag--tech {
  background: #1fa8a1;
}
.tag--trade {
  background: #d97b2c;
}
.tag--health {
  background: #3766e0;
}
.bookmark {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opp-card__body {
  padding: 16px;
}
.opp-card__body h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.opp-card__loc {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.opp-card__meta3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.opp-card__meta3 .amount {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}
.amount--green {
  color: var(--green);
}
.amount--purple {
  color: var(--purple-2);
}
.meta-label {
  display: block;
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 3px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: 1fr;
    direction: rtl;
  }
  .col--map {
    order: -1;
  }
  .opp-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .nav,
  .header__actions .btn--ghost {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .opp-row {
    grid-template-columns: 1fr;
  }
  .legend-row {
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
    direction: rtl;
  }
  .col--map {
    order: -1;
  }
  .opp-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    padding: 10px 10px;
    font-size: 10px;
  }

  h1 {
    font-size: 20px !important;
  }
  h2 {
    font-size: 15px !important;
  }

  .brand__logo {
    font-size: 15px;
  }

  .brand__text {
    font-size: 12px;
  }
}

/* =========================================================
   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;
  }
}
