@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #030b17;
  --panel: #071321;
  --panel2: #0a1727;
  --line: #17283a;
  --line2: #20344a;
  --purple: #6d1fc3;
  --purple2: #8c36ff;
  --cyan: #39d8ff;
  --text: #e5e6eb;
  --muted: #8e9baa;
}

/* ===================== 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);
}

* {
  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);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}
ul {
  list-style: none;
}

.hero__text {
  width: 100%;
  margin: 0 auto;
  padding: 20px 32px;
}

.hero__inner {
  height: 400px;
}

.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: 15px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg {
  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: 15.5px;
}
.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: 12.5px;
  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: 13.5px;
  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%;
}

/* ---- جميع الصفحات mega menu ---- */
.nav__pages {
  position: relative;
}
.nav__pages-trigger {
  cursor: pointer;
}
.nav__pages-trigger .chev {
  transition: transform 0.2s ease;
}
.nav__pages.is-open .nav__pages-trigger .chev {
  transform: rotate(180deg);
}
.nav__pages.is-open .nav__pages-trigger {
  color: var(--text);
}
.mega {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  z-index: 60;
}
.nav__pages.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__col {
  display: flex;
  flex-direction: column;
}
.mega__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-2);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.mega__col a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 7px 0;
  transition: color 0.15s ease;
}
.mega__col a:hover {
  color: var(--cyan);
}

.btn {
  font-size: 12px;
  border-radius: 5px;
  font-weight: 600;
}
.btn-purple {
  color: #fff;
  background: linear-gradient(135deg, #6418ce, #7e25e9);
  border: 1px solid #8634f3;
  box-shadow: 0 0 18px #6b1bd52b;
}
.btn-purple:hover {
  color: #fff;
  filter: brightness(1.15);
}
.btn-outline-soft,
.btn-dark-soft {
  color: #e1e4ea;
  background: #091321;
  border: 1px solid #203044;
}
.btn-outline-soft:hover,
.btn-dark-soft:hover {
  color: #fff;
  background: #101d2d;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.55fr;
  gap: 24px;
  align-items: center;
  min-height: 250px;
}
.hero-copy h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 13px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.hero-copy h1 span {
  color: #8634ee;
}
.hero-copy p {
  color: #aab3c0;
  line-height: 1.65;
  margin-bottom: 17px;
}
.syria-visual {
  height: 240px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.syria-map {
  width: 285px;
  filter: drop-shadow(0 0 12px #28cfff45);
}
.syria-map svg {
  width: 100%;
  height: auto;
}
.orbit {
  position: absolute;
  border: 1px dashed #27516a;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  opacity: 0.65;
}
.orbit-a {
  left: 30px;
  top: 34px;
}
.orbit-b {
  right: 27px;
  bottom: 30px;
}
.orbit-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid #19415a;
  background: #061321;
  display: grid;
  place-items: center;
  color: #56dcff;
  font-size: 23px;
  box-shadow: 0 0 18px #25cfff15;
}
.oi1 {
  left: 12px;
  top: 27px;
}
.oi2 {
  left: 22px;
  bottom: 18px;
}
.oi3 {
  right: 18px;
  bottom: 18px;
}
.oi4 {
  right: 20px;
  top: 36px;
}
.panel {
  background: linear-gradient(145deg, #081421, #06111f);
  border: 1px solid #192c3f;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0003;
}
.overview {
  padding: 17px 15px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.panel-head a,
.section-title a {
  color: #ad5cff;
  text-decoration: none;
  font-size: 11px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat {
  height: 123px;
  background: #0b1828;
  border: 1px solid #172c40;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stat i {
  color: #a349ff;
  font-size: 24px;
  margin-bottom: 7px;
}
.stat b {
  font-size: 24px;
}
.stat span {
  color: #c6cad1;
  font-size: 11px;
  margin-top: 4px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 3.35fr) minmax(300px, 1.15fr);
  gap: 22px;
}
.search-panel {
  padding: 12px;
}
.search-row {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  gap: 10px;
}
.filter-row {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1.2fr 1.2fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.filter-control,
.search-box {
  height: 39px;
  background: #07111f;
  border: 1px solid #172c40;
  border-radius: 5px;
  color: #cdd3dc;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.filter-control {
  width: 100%;
  text-align: left;
}
.filter-control i:last-child {
  margin-left: auto;
}
.search-box input {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  width: 100%;
  font-size: 11px;
}
.search-box i {
  font-size: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 10px;
}
.section-title h3 {
  font-size: 14px;
  margin: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}
.category-card {
  min-height: 87px;
  background: #081522;
  border: 1px solid #1b3043;
  border-radius: 7px;
  color: #dfe4eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.category-card:hover {
  border-color: #7030b9;
  transform: translateY(-1px);
}
.category-card i {
  font-size: 25px;
  color: #b051ff;
}
.category-card span {
  font-size: 8px;
}
.category-card small {
  color: #b0b8c4;
  font-size: 10px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.service-card {
  background: #081522;
  border: 1px solid #1b3043;
  border-radius: 7px;
  overflow: hidden;
  min-width: 0;
}
.service-image {
  height: 105px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding: 9px;
}
.service-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, #06101ed9);
}
.service-image > span {
  position: relative;
  z-index: 1;
  background: #5b19ad;
  color: #fff;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
}
.heart {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 8px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #aeb7c244;
  background: #06101fbb;
  color: #fff;
}
.heart.liked i:before {
  content: "\\f415";
}
.img-city {
  background: linear-gradient(135deg, #152d4a, #07101e 52%, #204c72);
}
.img-city:before {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 18px,
    #5acfff55 19px 20px
  );
  transform: skewY(-10deg);
}
.img-building {
  background: linear-gradient(130deg, #405366, #101a26 55%, #213c52);
}
.img-building:before {
  content: "";
  position: absolute;
  inset: 18% 12% 0;
  background: linear-gradient(
    75deg,
    #d6dce0 0 23%,
    #657382 24% 50%,
    #d9dee1 51% 72%,
    #596877 73%
  );
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}
.img-law {
  background: radial-gradient(
    circle at 50% 45%,
    #74552c,
    #211b15 40%,
    #070d14 72%
  );
}
.img-law:before {
  content: "⚖";
  position: absolute;
  font-size: 70px;
  color: #c79c54;
  left: 37%;
  top: 15%;
  filter: drop-shadow(0 0 8px #e0ad5b66);
}
.img-finance {
  background: linear-gradient(
    140deg,
    #3a4851,
    #a3a9aa 40%,
    #28333c 41%,
    #65737c
  );
}
.img-finance:before {
  content: "$  %  +";
  position: absolute;
  inset: 38% 8%;
  font-size: 22px;
  letter-spacing: 10px;
  color: #142331;
  transform: rotate(-5deg);
}
.img-ai {
  background:
    radial-gradient(circle at 50% 50%, #17608b, #071523 68%),
    linear-gradient(135deg, #123f65, #081321);
}
.img-ai:before {
  content: "";
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, #5fe8ff 0 2px, transparent 3px);
  background-size: 25px 25px;
  opacity: 0.7;
}
.service-body {
  padding: 9px 10px;
}
.service-body h4 {
  font-size: 11px;
  margin: 0 0 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-body p {
  color: #8f9baa;
  font-size: 9px;
  margin: 0 0 8px;
}
.service-body p strong {
  float: right;
  color: #ffd72f;
  font-weight: 500;
}
.price {
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-top: 5px;
}
.price small {
  display: block;
  color: #8d98a6;
  font-size: 9px;
  font-weight: 400;
}
.price button {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #0b1725;
  border: 1px solid #24394d;
  border-radius: 4px;
  color: #e0e5eb;
  padding: 7px 9px;
  font-size: 9px;
}
.right-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-card {
  min-height: 190px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background: #091625;
}
.ai-glow {
  position: absolute;
  right: -50px;
  top: -60px;
  width: 240px;
  height: 170px;
  background: radial-gradient(ellipse, #6622b588 0, transparent 68%);
  transform: rotate(-25deg);
}
.ai-card > *:not(.ai-glow) {
  position: relative;
}
.ai-title {
  font-size: 14px;
  font-weight: 600;
}
.ai-title span {
  color: #58dcff;
  margin-right: 4px;
}
.ai-title em {
  font-style: normal;
  color: #b45aff;
  border: 1px solid #7937aa;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 8px;
  margin-left: 6px;
}
.ai-card p {
  color: #c0c7d1;
  font-size: 11px;
  line-height: 1.5;
}
.advanced {
  display: block;
  color: #e2e5ea;
  text-decoration: none;
  font-size: 11px;
  margin-top: 11px;
}
.top-rated {
  padding: 15px;
}
.partner-list {
  margin-top: 9px;
}
.partner {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #15273a;
}
.rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22313d;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
}
.rank.gold {
  background: #ffd51d;
  color: #17202a;
}
.rank.teal {
  background: #6dc3bc;
  color: #173034;
}
.rank.orange {
  background: #e99335;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e4e8ea;
  color: #304452;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.partner > span {
  min-width: 0;
  flex: 1;
}
.partner span strong {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner span small {
  display: block;
  color: #8996a5;
  font-size: 9px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner em {
  font-style: normal;
  color: #ffd72f;
  font-size: 10px;
  white-space: nowrap;
}
.partner em small {
  color: #99a3ae;
  font-size: 9px;
}
.all-partners {
  width: 100%;
  height: 34px;
  margin-top: 11px;
  border: 1px solid #20374b;
  background: #07121f;
  color: #e2e6ec;
  border-radius: 5px;
  font-size: 10px;
}

.all-partners a {
  text-decoration: none;
  color: #e2e6ec;
}

.grow-card {
  padding: 20px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-color: #7b35b5;
  background: linear-gradient(135deg, #0a1423, #111026);
}
.grow-card > i {
  font-size: 48px;
  color: #9d48ff;
}
.grow-card h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.grow-card p {
  font-size: 10px;
  color: #9ea9b5;
  line-height: 1.5;
  margin: 0 0 10px;
}
.grow-card .btn {
  font-size: 10px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 25px;
  gap: 25px;
}
.trust-strip > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.trust-strip i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #21104a;
  color: #a84cff;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}
.trust-strip b {
  display: block;
  font-size: 11px;
}
.trust-strip small {
  display: block;
  color: #909baa;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 4px;
}
.toast-message {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #101c2b;
  border: 1px solid #7040a5;
  color: #fff;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 12px;
  transition: 0.25s;
  z-index: 20;
}
.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1250px) {
  .hero-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .hero-copy {
    grid-row: 1;
  }
  .overview {
    grid-column: 1/-1;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .grow-card {
    grid-column: 1/-1;
  }
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .topbar {
    height: auto;
    min-height: 65px;
  }
  .brand {
    min-width: 0;
  }
  .nav-links a {
    padding: 10px;
  }
  .nav-actions {
    padding: 10px 0;
  }
  .hero-grid {
    display: block;
  }
  .hero-copy {
    padding: 15px 4px;
  }
  .overview {
    margin-top: 18px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-row,
  .filter-row {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .right-column {
    display: flex;
  }
  .trust-strip {
    grid-template-columns: 1fr 1fr;
    padding: 15px;
  }
  .service-image {
    height: 120px;
  }
}
@media (max-width: 480px) {
  .services-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .nav-actions {
    flex-wrap: wrap;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 912px) {
  .topbar {
    height: 64px;
  }

  .topbar-inner {
    padding: 0 16px;
  }

  /* Hide desktop elements */

  .desktop-nav,
  .top-actions {
    display: none;
  }

  /* Brand */

  .dlogo {
    width: 36px;
    height: 36px;

    font-size: 20px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 8px;
  }

  /* Hamburger */

  .burger {
    display: flex;
  }

  /* Mobile dropdown */

  .mobile-nav {
    position: absolute;

    top: calc(100% + 8px);
    left: 12px;
    right: 12px;

    display: flex;
    flex-direction: column;

    padding: 10px;

    background: linear-gradient(
      145deg,
      rgba(8, 14, 28, 0.98),
      rgba(5, 10, 22, 0.98)
    );

    border: 1px solid rgba(92, 105, 139, 0.22);

    border-radius: 14px;

    box-shadow:
      0 20px 45px rgba(0, 0, 0, 0.45),
      0 0 25px rgba(91, 33, 182, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  /* Open state */

  .mobile-nav.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }

  /* Links */

  .mobile-nav a {
    min-height: 47px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 13px;

    border-radius: 9px;

    color: #8995ad;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
      background 0.2s ease,
      color 0.2s ease;
  }

  .mobile-nav a i {
    width: 20px;

    text-align: center;

    font-size: 16px;

    color: #74819a;
  }

  .mobile-nav a:hover {
    color: #fff;

    background: rgba(124, 58, 237, 0.08);
  }

  .mobile-nav a:hover i {
    color: #a78bfa;
  }

  /* Active */

  .mobile-nav a.active {
    color: #fff;

    background: linear-gradient(
      90deg,
      rgba(124, 58, 237, 0.16),
      rgba(34, 211, 238, 0.04)
    );

    border: 1px solid rgba(124, 58, 237, 0.14);
  }

  .mobile-nav a.active i {
    color: #a78bfa;
  }

  /* Divider */

  .mobile-divider {
    height: 1px;

    margin: 9px 4px;

    background: rgba(100, 115, 145, 0.14);
  }

  /* Account */

  .mobile-account {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 8px 7px;
  }

  .mobile-account .avatar {
    width: 36px;
    height: 36px;
  }

  .mobile-account > div:last-child {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
  }

  .mobile-account strong {
    color: #e8edf7;

    font-size: 11px;
  }

  .mobile-account small {
    margin-top: 4px;

    color: #65728b;

    font-size: 9px;
  }
}

/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 380px) {
  .topbar-inner {
    padding: 0 12px;
  }

  .brand-text small {
    display: none;
  }

  .mobile-nav {
    left: 8px;
    right: 8px;
  }
}

/* ---- Mobile nav / burger breakpoint (desktop untouched above 860px) ---- */
@media (max-width: 860px) {
  .header__actions {
    display: none;
  }
  .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: linear-gradient(
      160deg,
      rgba(9, 15, 30, 0.98),
      rgba(5, 9, 20, 0.98)
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.55);

    /* Smooth reveal instead of an abrupt display:none/flex swap,
       and no inner scrollbar under normal use. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 45;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav__link {
    width: 100%;
    padding: 13px 6px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
  }
  .nav__link--active::after {
    display: none;
  }

  .nav__pages {
    width: 100%;
  }
  .nav__pages-trigger {
    width: 100%;
  }
  .mega {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 4px;
    box-shadow: none;
    border-color: var(--border-soft);
    background: var(--surface-2);
    margin-top: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__pages.is-open .mega {
    display: grid;
  }
  .mega__col a {
    padding: 9px 4px;
  }

  /* Login / Explore buttons, moved out of the header and shown
     full-width inside the hamburger menu on mobile only. */
  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
  }
  .nav__mobile-actions .lang-switch {
    justify-content: center;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
  }
  .nav__mobile-actions .btn--block {
    margin-top: 0;
    width: 100%;
  }
}

/* Extra safety for very narrow phones so the dropdown never
   touches the viewport edges or overlaps the burger/logo. */
@media (max-width: 380px) {
  .header__inner {
    padding: 16px 16px;
  }
  .brand {
    width: auto;
  }
  .nav {
    right: 10px;
    left: 10px;
    padding: 12px 12px 16px;
  }
}
