/* MorPay — هيدر كبسولة عائم */
.mp-top {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.75rem 1rem 0.35rem;
  background: transparent;
}

.mp-top-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.55rem 0.85rem 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 8, 40, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  box-shadow:
    0 0 0 1px rgba(107, 43, 255, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(107, 43, 255, 0.18);
}

.mp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  min-width: 0;
  padding-inline-end: 0.85rem;
  border-inline-end: 1px solid rgba(139, 92, 246, 0.35);
}

.mp-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
  background: #12062e;
}

.mp-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  justify-content: center;
}

.mp-brand-text strong {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.mp-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.mp-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-width: 4.4rem;
  padding: 0.35rem 0.45rem 0.45rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 14px;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.mp-nav a svg {
  width: 22px;
  height: 22px;
  stroke: #a78bfa;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mp-nav a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
}

.mp-nav a:hover svg {
  stroke: #c4b5fd;
}

.mp-nav a.is-on {
  color: #fdd100;
}

.mp-nav a.is-on svg {
  stroke: #fdd100;
}

.mp-nav a.is-on::after {
  content: "";
  position: absolute;
  bottom: 0.15rem;
  width: 1.35rem;
  height: 2.5px;
  border-radius: 99px;
  background: #fdd100;
  box-shadow: 0 0 10px rgba(253, 209, 0, 0.65);
}

.mp-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid rgba(139, 92, 246, 0.35);
}

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.mp-btn:active { transform: scale(0.98); }

.mp-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.mp-btn-login {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(139, 92, 246, 0.65);
}

.mp-btn-login:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #fff;
}

.mp-btn-login svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.mp-btn-register {
  color: #1a1200;
  background: #fdd100;
  border: 1.5px solid #fdd100;
  box-shadow: 0 0 22px rgba(253, 209, 0, 0.4);
}

.mp-btn-register:hover {
  filter: brightness(1.05);
  color: #1a1200;
}

.mp-btn-register svg {
  stroke: #1a1200;
  fill: none;
  stroke-width: 1.8;
}

.mp-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.mp-mobile-auth { display: none !important; }

@media (max-width: 1100px) {
  .mp-nav a { min-width: 3.6rem; font-size: 0.72rem; padding-inline: 0.3rem; }
  .mp-btn { padding: 0.55rem 0.8rem; font-size: 0.82rem; }
}

@media (max-width: 900px) {
  .mp-top { padding: 0.55rem 0.65rem 0.25rem; }

  .mp-top-inner {
    border-radius: 22px;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
  }

  .mp-brand {
    border: 0;
    padding: 0;
    order: 1;
    flex: 1;
  }

  .mp-menu-btn {
    display: grid;
    place-items: center;
    order: 2;
  }

  .mp-actions {
    display: none;
  }

  .mp-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(139, 92, 246, 0.28);
  }

  .mp-nav.is-open {
    display: flex;
  }

  .mp-nav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    font-size: 0.92rem;
    border-radius: 12px;
  }

  .mp-nav a.is-on::after {
    display: none;
  }

  .mp-nav a.is-on {
    background: rgba(253, 209, 0, 0.12);
  }

  .mp-mobile-auth {
    display: flex !important;
    margin-top: 0.25rem;
  }

  .mp-mobile-auth.mp-btn-register {
    margin-top: 0.15rem;
  }
}
